/* ==========================================================================
   VARIABLES & RESET (ÉCRIN NEUTRE STUDIO)
   ========================================================================== */

:root {
    --bg-color: #FFFFFF;
    --text-main: #0A0A0A; /* Noir encre profond */
    --text-muted: #808080; /* Gris pur */
    --border-light: #F0F0F0;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ==========================================================================
   TYPOGRAPHIE & UTILITAIRES
   ========================================================================== */

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.label-mono {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.margin-t { margin-top: 3rem; }
.margin-b { margin-bottom: 3rem; }

.pointer {
    cursor: pointer;
}

/* Soulignement propre pour tous les liens */
a {
    text-decoration: none;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Ajuste selon ton goût */
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.3s var(--ease-editorial);
    transform: scaleX(0);
    transform-origin: left;
}

a:hover::after {
    transform: scaleX(1);
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-header {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: flex;
    gap: 0.5rem;
}

.logo-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    transform: translateY(-3px);
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color 0.4s var(--ease-editorial);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

/* ==========================================================================
   ACCUEIL : HERO & SHOWCASE
   ========================================================================== */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-container {
    width: 100%;
}

.hero-meta {
    display: flex;
    gap: 4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
    max-width: 1200px;
    margin-bottom: 6rem;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-description {
    max-width: 450px;
    color: var(--text-muted);
    font-size: 1rem;
}


.cta-arrow {
    transition: transform 0.5s var(--ease-editorial);
}

.cta-link:hover .cta-arrow {
    transform: translate(3px, -3px);
}

/* Projet à la une : Style Éditorial Asymétrique */
.showcase-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-light);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.editorial-case {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.image-wrapper {
    overflow: hidden;
    background-color: #FAFAFA;
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    transition: transform 1.2s var(--ease-editorial);
}

.editorial-case:hover .image-wrapper img {
    transform: scale(1.03);
}

.case-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.case-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 2rem;
}

.case-summary {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 450px;
}

.btn-editorial {
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-arrow {
    transition: transform 0.4s var(--ease-editorial);
}

.btn-editorial:hover .btn-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   PAGE ÉTUDE DE CAS (PROJET.HTML)
   ========================================================================== */

.cs-top {
    padding: 12rem 0 6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cs-client {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cs-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1;
    max-width: 1000px;
    margin-bottom: 4rem;
}

.brief-text {
    max-width: 500px;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Grille spécifique pour le contenu des sections */
.cs-block {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cs-grid-editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.cs-sticky-index {
    align-self: start;
}

.visual-row img {
    margin: auto 50%;
}

.big-number {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.block-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.1;
}

.lead-paragraph {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Décalages visuels (Asymétrie) */
.personas-offset-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.persona-item {
    background-color: #FCFCFC;
    padding: 3rem;
}

.persona-num {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.persona-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
}

.persona-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.quote {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.persona-points li {
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 0;
}

/* Grilles d'images épurées sans cadres */
.grid-2-clean {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.grid-3-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.grid-4-clean {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3-offset {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.screen-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Pastilles de couleurs isolées (Section 6) */
.client-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.swatch-border {
    border: 1px solid var(--border-light);
}

.color-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.color-hex {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    padding: 6rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.footer-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}


/* ==========================================================================
   MEDIA QUERIES (DESKTOP AVANCÉ / SWISS GRID)
   ========================================================================== */

@media screen and (min-width: 1024px) {
    .editorial-case {
        grid-template-columns: 7fr 4fr;
        align-items: center;
    }

    .cs-grid-editorial {
        grid-template-columns: 3fr 7fr;
    }

    .cs-sticky-index {
        position: sticky;
        top: 4rem;
    }

    .personas-offset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Décalage asymétrique brutaliste très élégant */
    .offset-down {
        transform: translateY(4rem);
    }

    .grid-4-clean {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-3-offset {
        grid-template-columns: repeat(3, 1fr);
    }

    .push-mid {
        transform: translateY(3rem);
    }
}