/* ============================================================
   Simplicy-E — main.css
   Design system complet : tokens, composants, sections
   ============================================================ */

/* ======================== TOKENS ======================== */
:root {
    --accent:      #AEB7A1;  /* vert sauge */
    --accent-2:    #B79D90;  /* nude rosé */
    --paper:       #F5F1EB;  /* ivoire fond */
    --cream:       #EDE7DC;  /* beige principal */
    --cream-soft:  #E5DDD0;
    --ink:         #4A3F38;  /* brun profond */
    --ink-soft:    #6b5d52;
    --ink-mute:    #9B8A7A;
    --line:        #D8C9B8;
    --font-display:'Instrument Serif', Georgia, serif;
    --font-sans:   'Geist', 'Inter', system-ui, sans-serif;
    --font-mono:   'JetBrains Mono', ui-monospace, monospace;
    --radius:      18px;
    --radius-sm:   10px;
    --radius-lg:   28px;
    --shadow-1:    0 1px 2px rgba(74,63,56,.06), 0 4px 14px rgba(74,63,56,.06);
    --shadow-2:    0 10px 30px rgba(74,63,56,.12), 0 2px 6px rgba(74,63,56,.06);
}

/* ======================== RESET ======================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

/* ======================== UTILITIES ======================== */
.site { width: 100%; overflow-x: hidden; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-mute);
}
.eyebrow::before {
    content: ""; width: 24px; height: 1px;
    background: var(--ink-mute);
}

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    font-weight: 500; font-size: 15px;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--paper) !important; }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cream); }
.arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex; gap: 64px;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* Photo placeholder */
.photo-ph {
    width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, rgba(74,63,56,.05) 0 8px, transparent 8px 16px),
                linear-gradient(180deg, var(--cream-soft), var(--cream));
    position: relative;
}
.photo-ph::after {
    content: attr(data-label);
    position: absolute; inset: auto 12px 12px auto;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-soft); background: rgba(255,255,255,.7);
    padding: 4px 8px; border-radius: 4px;
}

/* Cursor blob */
#cursor-blob {
    position: fixed; pointer-events: none; z-index: 0;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
    filter: blur(40px); opacity: .4;
    transform: translate(-50%, -50%);
    transition: opacity .6s ease;
}
@media (pointer: coarse) { #cursor-blob { display: none; } }

/* ======================== NAV ======================== */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 56px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    max-width: 100%; margin: 0;
}
.admin-bar .nav {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .nav { top: 46px; }
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: 22px; font-style: italic;
}
.nav-mark {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); position: relative; flex-shrink: 0;
}
.nav-mark::after {
    content: ""; position: absolute; right: -6px; top: -2px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; font-size: 13px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all .3s ease; }

/* Sticky nav */
.nav.scrolled {
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    box-shadow: 0 1px 0 var(--line);
    padding-top: 16px; padding-bottom: 16px;
}
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s ease, box-shadow .3s ease, padding .3s ease; }

/* Mobile nav */
.nav-mobile {
    position: fixed; inset: 0; z-index: 100;
    background: var(--paper);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 32px;
    font-family: var(--font-display); font-size: 32px; font-style: italic;
    opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile .btn { font-family: var(--font-sans); font-style: normal; font-size: 16px; }

/* ======================== HERO ======================== */
.hero {
    position: relative; overflow: hidden;
    background: var(--paper);
    /* La nav sticky est à l'intérieur de la section hero */
}
.hero > .nav { background: transparent; box-shadow: none; }

/* Fond vidéo */
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
}
.hero-bg video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--paper) 88%, transparent) 0%,
            color-mix(in srgb, var(--paper) 65%, transparent) 40%,
            color-mix(in srgb, var(--paper) 88%, transparent) 100%),
        linear-gradient(90deg,
            color-mix(in srgb, var(--paper) 80%, transparent) 0%,
            color-mix(in srgb, var(--paper) 20%, transparent) 50%,
            color-mix(in srgb, var(--paper) 80%, transparent) 100%);
}
.hero-bg-grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .2;
    background-image: radial-gradient(rgba(74,63,56,.2) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: multiply;
}

/* ======================== HERO D ======================== */
.hero-d {
    position: relative;
    width: 100%; min-height: 100vh;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    padding: 40px 56px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
    color: var(--ink);
    isolation: isolate;
    overflow: hidden;
    z-index: 1;
}

/* Grille technique de fond */
.hd-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(74,63,56,.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(74,63,56,.08) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 80%);
    opacity: .6; z-index: 0;
}

/* Halo doux en haut à droite */
.hero-d::before {
    content: "";
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 65%);
    filter: blur(60px); z-index: 0; pointer-events: none;
}

/* Crop marks */
.hd-reg { position: absolute; width: 22px; height: 22px; z-index: 1; opacity: .4; pointer-events: none; }
.hd-reg span { position: absolute; background: var(--ink); }
.hd-reg span:nth-child(1) { width: 100%; height: 1px; }
.hd-reg span:nth-child(2) { width: 1px; height: 100%; }
.hd-reg-tl { top: 22px; left: 22px; }
.hd-reg-tl span:nth-child(1) { top: 0; left: 0; }
.hd-reg-tl span:nth-child(2) { top: 0; left: 0; }
.hd-reg-tr { top: 22px; right: 22px; }
.hd-reg-tr span:nth-child(1) { top: 0; right: 0; }
.hd-reg-tr span:nth-child(2) { top: 0; right: 0; }
.hd-reg-bl { bottom: 22px; left: 22px; }
.hd-reg-bl span:nth-child(1) { bottom: 0; left: 0; }
.hd-reg-bl span:nth-child(2) { bottom: 0; left: 0; }
.hd-reg-br { bottom: 22px; right: 22px; }
.hd-reg-br span:nth-child(1) { bottom: 0; right: 0; }
.hd-reg-br span:nth-child(2) { bottom: 0; right: 0; }

/* Index vertical gauche */
.hd-index {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    display: flex; align-items: center; gap: 16px;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-mute); z-index: 2; white-space: nowrap;
}
.hd-index-n { color: var(--accent); font-weight: 500; }
.hd-index-line { width: 56px; height: 1px; background: var(--line); }

/* ===== STAGE PRINCIPAL ===== */
.hd-stage {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    flex: 1;
}

/* Photo pleine hauteur centrée — mix-blend sur fond ivoire */
.hd-portrait-full {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(320px, 35vw, 580px);
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Fondu doux bas pour intégration */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.hd-portrait-full img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 10%;
    /* Mix-blend : le blanc du fond photo disparaît sur l'ivoire */
    mix-blend-mode: multiply;
    filter: contrast(1.04) saturate(.92);
}

/* Lines typographiques géantes */
.hd-line {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(88px, 13vw, 196px);
    line-height: .82;
    letter-spacing: -0.035em;
    display: flex; align-items: center;
    position: relative; z-index: 3;
}
.hd-line-1 { justify-content: flex-start; }
.hd-line-2 { justify-content: space-between; margin-top: .06em; }
.hd-line-3 { justify-content: flex-end; margin-top: .06em; }

.hd-word { position: relative; display: inline-block; }
.hd-w-stroke {
    position: absolute; inset: 0;
    -webkit-text-stroke: 1.5px var(--ink);
    color: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}
.hd-word:hover .hd-w-stroke { opacity: 1; }
.hd-word-em { font-style: italic; }
.hd-word-right { } /* aligné à droite via justify-content: space-between */
.hd-word-accent { font-style: italic; color: var(--accent); }

/* Annotations architecturales */
.hd-anno {
    position: absolute; z-index: 4;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-soft);
    opacity: 0;
    animation: hdAnnoIn .8s ease forwards;
}
.hd-anno-1 { top: 28%; left: 18%; animation-delay: 1s; }
.hd-anno-2 { top: 56%; right: 12%; animation-delay: 1.2s; flex-direction: row-reverse; }
@keyframes hdAnnoIn { to { opacity: 1; } }

.hd-anno-bullet {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.hd-anno-line { width: 40px; height: 1px; background: var(--accent); flex-shrink: 0; }
.hd-anno-text {
    display: flex; flex-direction: column; gap: 2px;
    background: color-mix(in srgb, var(--paper) 80%, transparent);
    backdrop-filter: blur(4px);
    padding: 6px 10px; border-radius: 6px;
    border: 1px solid var(--line);
}
.hd-anno-text em { font-style: italic; color: var(--ink-mute); font-size: 10px; }
.hd-anno-text strong { font-size: 12px; color: var(--ink); }
.hd-anno-text span { font-size: 10px; color: var(--ink-mute); }

/* ===== FOOTER BANDE HERO ===== */
.hd-foot {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 32px; align-items: end;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}
.hd-foot-col { display: flex; flex-direction: column; gap: 8px; }
.hd-foot-k {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-mute);
}

/* Rotateur de missions */
.hd-rotator { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.hd-rotator-pre { font-size: 14px; color: var(--ink-soft); }
.hd-rotator-window { position: relative; height: 1.4em; overflow: hidden; }
.hd-rotator-item {
    position: absolute; left: 0; top: 0; width: 100%;
    font-family: var(--font-display); font-style: italic; font-size: 22px;
    color: var(--ink); white-space: nowrap;
    transform: translateY(100%); opacity: 0;
    transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s ease;
}
.hd-rotator-item.active { transform: translateY(0); opacity: 1; }
.hd-rotator-item.prev { transform: translateY(-100%); opacity: 0; }
.hd-rotator-v { color: var(--accent); }

/* CTA footer */
.hd-foot-cta { align-items: center; gap: 12px; }
.hd-cta-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-family: var(--font-mono);
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
}
.hd-cta-ghost-line {
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 1px; background: var(--ink-mute);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
}
.hd-cta-ghost:hover .hd-cta-ghost-line { transform: scaleX(1); }

/* Meta droite */
.hd-foot-meta { align-items: flex-end; }
.hd-meta-row {
    display: flex; justify-content: space-between;
    gap: 24px; align-items: center;
    font-size: 12px; color: var(--ink-soft);
    padding: 4px 0; border-bottom: 1px solid var(--line);
}
.hd-meta-row:last-child { border-bottom: 0; }
.hd-meta-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.hd-meta-v { font-family: var(--font-display); font-style: italic; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* Pulsation disponibilité */
.hd-pulse {
    display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: #6b9c6b;
    box-shadow: 0 0 0 0 rgba(107,156,107,.5);
    animation: hdPulse 2s ease-out infinite;
}
@keyframes hdPulse {
    0%   { box-shadow: 0 0 0 0 rgba(107,156,107,.5); }
    100% { box-shadow: 0 0 0 10px rgba(107,156,107,0); }
}

/* Réseaux sociaux dans hero */
.hd-social-row { display: flex; gap: 10px; align-items: center; }
.hd-social {
    display: inline-flex; padding: 6px;
    color: var(--ink-mute); border-radius: 6px;
    transition: color .25s ease, background .25s ease;
}
.hd-social:hover { color: var(--ink); background: var(--cream); }

/* Ticker vertical droit */
.hd-edge {
    position: absolute; right: 14px; top: 0; bottom: 0;
    display: flex; align-items: center; z-index: 2; pointer-events: none;
    overflow: hidden; width: 18px;
}
.hd-edge span {
    font-family: var(--font-mono); font-size: 9px;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--ink-mute); white-space: nowrap;
    writing-mode: vertical-rl; text-orientation: mixed;
    animation: tickerScroll 18s linear infinite;
}
@keyframes tickerScroll {
    from { transform: translateY(100%); }
    to   { transform: translateY(-100%); }
}

/* ======================== VALUES ======================== */
.values {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}
.marquee-item {
    display: inline-flex; align-items: center; gap: 18px;
    font-family: var(--font-display); font-style: italic; font-size: 44px;
    white-space: nowrap;
}
.marquee-num { font-family: var(--font-mono); font-style: normal; font-size: 14px; color: var(--ink-mute); }
.marquee-sep { color: var(--accent); font-style: normal; }

/* ======================== SECTION HEAD ======================== */
.section-head {
    padding: 80px 56px 32px;
    max-width: 1280px; margin: 0 auto;
}
.section-head.center { text-align: center; }
.section-head h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(40px, 5vw, 64px); line-height: 1.05;
    margin-top: 16px; letter-spacing: -0.02em;
}
.section-head .section-sub { margin-top: 16px; color: var(--ink-soft); font-size: 17px; max-width: 540px; }

/* ======================== SERVICES ======================== */
.services { background: var(--paper); }
.services-grid {
    padding: 0 56px 80px;
    max-width: 1280px; margin: 0 auto;
    display: grid; gap: 20px;
}
.services-grid-A { grid-template-columns: repeat(3, 1fr); }

.service {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--line);
    transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
    position: relative; overflow: hidden; min-height: 280px;
    cursor: pointer;
}
.service::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%),
        color-mix(in srgb, var(--accent) 15%, transparent), transparent 50%);
    opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); background: var(--paper); }
.service:hover::before { opacity: 1; }
.service-icon { margin-bottom: 8px; color: var(--ink); }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.service p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.service-link {
    margin-top: auto; font-size: 13px; color: var(--ink);
    display: inline-flex; gap: 6px; align-items: center;
    padding-top: 12px; border-top: 1px solid var(--line);
    background: none; border-left: 0; border-right: 0; border-bottom: 0;
    cursor: pointer;
}
.service-link:hover .arrow { transform: translateX(4px); }

.service-cta {
    background: var(--ink); color: var(--cream);
    border-color: var(--ink); justify-content: center; align-items: flex-start;
}
.service-cta h3 { color: var(--cream); }
.service-cta p { color: rgba(237,231,220,.7); margin-bottom: 12px; }
.service-cta:hover { background: var(--ink-soft); }
.service-cta::before { display: none; }

/* ======================== MODAL ======================== */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(74,63,56,.6);
    backdrop-filter: blur(8px);
    display: grid; place-items: center;
    padding: 32px;
    animation: fadeIn .25s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal {
    background: var(--paper);
    border-radius: var(--radius-lg);
    max-width: 640px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 40px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
    position: relative; animation: pop .35s cubic-bezier(.2,.8,.2,1);
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--cream); color: var(--ink);
    font-size: 24px; line-height: 1; display: grid; place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--accent); color: var(--paper); transform: rotate(90deg); }
.modal-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.modal-icon { background: var(--cream); border-radius: var(--radius); padding: 8px; flex-shrink: 0; }
.modal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; margin-top: 8px; }
.modal-long { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 12px; }
.modal-list { display: flex; flex-direction: column; gap: 8px; }
.modal-list li {
    padding-left: 24px; position: relative;
    font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.modal-list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.modal-cta { display: flex; gap: 12px; }

/* ======================== CLIENTS ======================== */
.clients {
    padding: 56px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.clients-head { padding: 0 56px 24px; max-width: 1280px; margin: 0 auto; }
.logos-track { gap: 80px; }
.logo-item {
    font-family: var(--font-display); font-style: italic;
    font-size: 28px; color: var(--ink-soft); white-space: nowrap;
    transition: color .3s ease; cursor: default;
}
.logo-item:hover { color: var(--accent); }

/* ======================== ABOUT ======================== */
.about {
    padding: 80px 56px;
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 56px; align-items: center;
}
.about-photo {
    aspect-ratio: 4/5; border-radius: var(--radius-lg);
    overflow: hidden; position: relative;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.about-photo:hover { transform: scale(1.02); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-tag {
    position: absolute; bottom: 20px; left: 20px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--paper); box-shadow: var(--shadow-1);
    font-size: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05;
}
.about-text p { color: var(--ink-soft); font-size: 16px; }
.about-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.about-list li { padding-left: 24px; position: relative; font-size: 14px; color: var(--ink-soft); }
.about-list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

/* ======================== PROJECTS ======================== */
.projects { padding-bottom: 80px; background: var(--paper); }
.projects-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    max-width: 1280px; margin: 0 auto;
    padding: 80px 56px 32px;
}
.projects-controls { display: flex; align-items: center; gap: 16px; }
.proj-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--paper);
    font-size: 18px; display: grid; place-items: center;
    color: var(--ink); transition: background .25s ease, border-color .25s ease;
}
.proj-btn:hover { background: var(--cream); border-color: var(--ink); }
.proj-count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); min-width: 60px; text-align: center; }
.proj-count strong { color: var(--ink); font-size: 18px; }

.projects-slider { padding: 0 56px; max-width: 1280px; margin: 0 auto; }
.projects-track {
    display: flex; gap: 28px;
    overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.projects-track::-webkit-scrollbar { display: none; }

.project-card {
    flex-shrink: 0;
    width: clamp(280px, 38vw, 480px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--line);
    scroll-snap-align: start;
    transition: transform .4s ease, box-shadow .4s ease;
}
.project-card.is-active { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.project-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-img img { transform: scale(1.04); }
.project-cat {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 85%, transparent);
    backdrop-filter: blur(6px);
    font-size: 11px; letter-spacing: .08em; color: var(--ink);
}
.project-body { padding: 24px; }
.project-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.project-summary { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.projects-progress {
    height: 2px; background: var(--line); border-radius: 2px;
    margin-top: 24px; overflow: hidden;
}
.projects-progress-bar {
    height: 100%; background: var(--accent);
    border-radius: 2px; transition: width .4s ease;
}

/* ======================== FAQ ======================== */
.faq { background: var(--paper); padding-bottom: 80px; }
.faq-list {
    max-width: 760px; margin: 0 auto;
    padding: 0 56px 40px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; display: flex; justify-content: space-between;
    align-items: center; gap: 16px;
    padding: 22px 0; font-size: 17px; font-weight: 500;
    background: none; text-align: left; cursor: pointer;
    color: var(--ink); transition: color .2s ease;
}
.faq-q:hover { color: var(--ink-soft); }
.faq-toggle { font-size: 22px; color: var(--accent); flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.faq-a:not([hidden]) { max-height: 400px; }
.faq-a[hidden] { display: block; max-height: 0; }
.faq-a p { padding-bottom: 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }

/* ======================== CONTACT ======================== */
.contact { background: var(--cream); padding: 80px 56px; }
.contact-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 80px; align-items: start;
}
.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.contact-intro h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em;
    margin-top: 12px;
}
.contact-intro > p { color: var(--ink-soft); font-size: 17px; }
.contact-meta-block { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-meta-block div { display: flex; flex-direction: column; gap: 4px; }
.meta-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.contact-meta-block a, .contact-meta-block span { font-size: 15px; color: var(--ink); }
.contact-meta-block a:hover { color: var(--accent); }
.contact-calendly { align-self: flex-start; }

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-sent { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; text-align: center; }
.contact-sent[hidden] { display: none; }
.contact-fields { display: flex; flex-direction: column; gap: 20px; }
.sent-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--paper); display: grid; place-items: center; font-size: 28px; }
.contact-sent h3 { font-family: var(--font-display); font-size: 32px; font-weight: 400; }
.contact-sent p { color: var(--ink-soft); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft); }
.contact-form input,
.contact-form textarea {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 14px 16px;
    font-family: var(--font-sans); font-size: 15px; color: var(--ink);
    outline: none; transition: border-color .25s ease, box-shadow .25s ease;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form-foot small { font-size: 12px; color: var(--ink-mute); max-width: 280px; line-height: 1.5; }
.form-error { padding: 12px 16px; background: #fee; border: 1px solid #fcc; border-radius: var(--radius-sm); font-size: 14px; color: #c33; }
.form-error[hidden] { display: none; }

/* ======================== FOOTER ======================== */
.footer { background: var(--ink); color: var(--cream); padding: 64px 56px 32px; }
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(237,231,220,.15);
}
.footer .nav-logo { color: var(--cream); }
.footer .nav-mark { background: var(--cream); }
.footer .nav-mark::after { background: var(--accent); }
.footer-tag { margin-top: 16px; font-size: 14px; color: rgba(237,231,220,.6); line-height: 1.6; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237,231,220,.5); margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { font-size: 14px; color: rgba(237,231,220,.7); transition: color .2s ease; }
.footer ul li a:hover { color: var(--cream); }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-social { padding: 8px; border-radius: 8px; color: rgba(237,231,220,.6); transition: color .25s ease, background .25s ease; }
.footer-social:hover { color: var(--cream); background: rgba(237,231,220,.1); }
.footer-base {
    max-width: 1280px; margin: 24px auto 0;
    display: flex; justify-content: space-between;
    font-size: 12px; color: rgba(237,231,220,.4);
    font-family: var(--font-mono); letter-spacing: .06em;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .hd-foot { grid-template-columns: 1fr 1fr; }
    .hd-foot-meta { display: none; }
    .about { grid-template-columns: 1fr; max-width: 600px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .services-grid-A { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav { padding: 20px 24px; }

    .hero-d { padding: 24px 24px 28px; }
    .hd-stage { padding: 0 8px; min-height: 60vh; }
    .hd-line { font-size: clamp(56px, 18vw, 96px); }
    .hd-portrait-full { width: clamp(220px, 55vw, 380px); }
    .hd-anno { display: none; }
    .hd-index { display: none; }
    .hd-edge { display: none; }
    .hd-foot { grid-template-columns: 1fr; gap: 20px; }
    .hd-foot-meta { display: none; }

    .values .marquee-item { font-size: 28px; }
    .section-head { padding: 48px 24px 24px; }
    .services-grid { padding: 0 24px 48px; }
    .services-grid-A { grid-template-columns: 1fr; }
    .clients-head { padding: 0 24px 20px; }
    .about { padding: 48px 24px; }
    .projects-head { padding: 48px 24px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
    .projects-slider { padding: 0 24px; }
    .faq-list { padding: 0 24px 32px; }
    .contact { padding: 48px 24px; }
    .footer { padding: 48px 24px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .hd-pulse { animation: none; }
    .hd-anno { animation: none; opacity: 1; }
    .hd-edge span { animation: none; }
}
