/* ═══════════════════════════════════════════════════════════
   SEEN. — Charte v2
   Noir · Ivoire · Bordeaux — Archivo / Space Grotesk / Inter
   Règles : 1 mot marqué par titre · bordeaux ≤ 10% · pas de
   dégradés, pas d'ombres, pas de reliefs, arrondis ≤ 6px
═══════════════════════════════════════════════════════════ */

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

:root {
    --noir: #0B0B0C;
    --ivoire: #F3EFE7;
    --bordeaux: #8A3B32;
    --bordeaux-print: #66302A;
    --graphite: #262421;
    --gris-chaud: #93908A;

    --font-titres: 'Archivo', sans-serif;
    --font-marque: 'Space Grotesk', sans-serif;
    --font-texte: 'Inter', sans-serif;

    --pad-x: clamp(1.2rem, 4vw, 3.5rem);
    --maxw: 1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-texte);
    font-weight: 300;
    background: var(--noir);
    color: var(--ivoire);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--bordeaux); color: var(--ivoire); }

img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ── WORDMARK ── */
.wordmark {
    font-family: var(--font-marque);
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--ivoire);
    text-decoration: none;
    font-size: 1.05rem;
}
.wordmark .dot { color: var(--bordeaux); }

/* ── TITRES + MOT MARQUÉ ── */
h1, h2, h3, .h-style {
    font-family: var(--font-titres);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
}
mark {
    background: var(--bordeaux);
    color: var(--ivoire);
    border-radius: 4px;
    padding: .02em .16em;
}
.face-claire mark { background: var(--bordeaux-print); }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem var(--pad-x);
    background: rgba(11,11,12,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(243,239,231,.07);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-link {
    font-size: .8rem; font-weight: 400; letter-spacing: .06em;
    color: var(--gris-chaud); text-decoration: none;
    transition: color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ivoire); }

/* ── BOUTONS (pill = exception autorisée) ── */
.btn {
    display: inline-block;
    font-family: var(--font-texte);
    font-size: .82rem; font-weight: 500; letter-spacing: .04em;
    background: var(--bordeaux); color: var(--ivoire);
    text-decoration: none; border: none; cursor: pointer;
    padding: .8rem 1.7rem; border-radius: 999px;
    transition: background .2s;
}
.btn:hover { background: #9d453b; }
.btn-sm { padding: .55rem 1.2rem; font-size: .76rem; }
.btn-ghost {
    background: none; border: 1px solid rgba(243,239,231,.25); color: var(--ivoire);
}
.btn-ghost:hover { background: rgba(243,239,231,.06); border-color: rgba(243,239,231,.45); }
.face-claire .btn { background: var(--bordeaux-print); }

/* ── SECTIONS ── */
/* Rythme vertical uniforme : 64px mobile → 120px desktop max */
.section { padding: clamp(4rem, 7vw, 7.5rem) var(--pad-x); }
.inner { max-width: var(--maxw); margin: 0 auto; }
.surtitre {
    font-size: .68rem; font-weight: 500; letter-spacing: .42em;
    text-transform: uppercase; color: var(--gris-chaud);
    display: block; margin-bottom: 1.2rem;
}
.sec-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    margin-bottom: 1.2rem;
    max-width: 18ch;
}
.sec-title.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── FACE CLAIRE (max 1 bloc / page) ── */
.face-claire {
    background: var(--ivoire);
    color: var(--noir);
}
.face-claire .surtitre { color: var(--bordeaux-print); }

/* ── HERO ── */
.hero {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 7rem var(--pad-x) 4rem;
}
.hero-title {
    font-size: clamp(2.6rem, 7.5vw, 5.6rem);
    max-width: 15ch;
    margin-bottom: 1.6rem;
}
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--gris-chaud); font-weight: 300;
    max-width: 46ch; margin-bottom: 2.6rem;
}
.page-hero {
    padding: clamp(9rem, 16vw, 12rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
}
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); }
.page-hero .hero-sub { margin-bottom: 0; margin-top: 1.4rem; }

/* ── BANDE DE CONFIANCE ── */
.trust {
    border-top: 1px solid rgba(243,239,231,.07);
    border-bottom: 1px solid rgba(243,239,231,.07);
    padding: 1.1rem 0;
    overflow: hidden;
}
.trust-track {
    display: flex; gap: 3.5rem; width: max-content;
    animation: trustScroll 36s linear infinite;
}
.trust-name {
    font-size: .78rem; font-weight: 400; letter-spacing: .22em;
    text-transform: uppercase; color: var(--gris-chaud); white-space: nowrap;
}
@keyframes trustScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust-track { animation: none; } }

/* ── PORTFOLIO GRILLE ── */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-item {
    position: relative; overflow: hidden; cursor: pointer;
    background: var(--graphite);
    aspect-ratio: 4 / 3;
    border-radius: 4px;
}
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf-item:hover img { transform: scale(1.04); }
.pf-cap {
    position: absolute; inset: auto 0 0 0;
    padding: 2.2rem 1rem .9rem;
    background: rgba(11,11,12,.82);
    opacity: 0; transition: opacity .3s;
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.pf-item:hover .pf-cap, .pf-item:focus-visible .pf-cap { opacity: 1; }
.pf-client { font-family: var(--font-titres); font-weight: 900; font-size: .95rem; }
.pf-type { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gris-chaud); white-space: nowrap; }
.pf-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(11,11,12,.72); border: 1px solid rgba(243,239,231,.4);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.pf-play::after {
    content: ''; display: block;
    border-left: 13px solid var(--ivoire);
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
    margin-left: 3px;
}
.pf-item.hidden { display: none; }

/* ── FILTRES ── */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
    font-family: var(--font-texte); font-size: .74rem; font-weight: 400;
    letter-spacing: .14em; text-transform: uppercase;
    background: none; border: 1px solid rgba(243,239,231,.18); color: var(--gris-chaud);
    padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.filter-btn:hover { color: var(--ivoire); border-color: rgba(243,239,231,.4); }
.filter-btn.active { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--ivoire); }

/* ── 3 MÉTIERS ── */
.metiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 800px) { .metiers { grid-template-columns: 1fr; } }
.metier {
    background: var(--graphite); border-radius: 6px;
    padding: 2.2rem 1.8rem;
}
.metier h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.metier p { font-size: .92rem; color: var(--gris-chaud); }
.metiers-note {
    margin-top: 2rem; text-align: center;
    font-size: .88rem; color: var(--gris-chaud);
}

/* ── PREUVES ── */
.preuves { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
@media (max-width: 760px) { .preuves { grid-template-columns: 1fr; } }
.preuve {
    background: var(--graphite); border-radius: 6px;
    padding: 2.6rem 2rem;
    text-decoration: none; display: block;
    transition: background .2s;
}
.preuve:hover { background: #2d2b27; }
.preuve-chiffre {
    font-family: var(--font-titres); font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1;
    margin-bottom: .6rem;
}
.preuve-client { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 1rem; font-weight: 500; }
.preuve p { font-size: .92rem; color: var(--gris-chaud); }
.preuve-lien { display: inline-block; margin-top: 1.2rem; font-size: .78rem; color: var(--ivoire); }

/* ── STUDIO EN BREF / BLOCS CLAIRS ── */
.bref-grid {
    display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: center;
}
@media (max-width: 800px) { .bref-grid { grid-template-columns: 1fr; } }
.bref-photo { border-radius: 6px; overflow: hidden; }
.bref-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.face-claire p { font-size: 1.02rem; line-height: 1.8; }
.face-claire .lien-sobre { color: var(--bordeaux-print); font-weight: 500; text-decoration: none; }
.face-claire .lien-sobre:hover { text-decoration: underline; }

/* ── MÉTHODE (3 étapes) ── */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 800px) { .etapes { grid-template-columns: 1fr; } }
.etape { border-top: 2px solid var(--bordeaux); padding-top: 1.4rem; }
.etape-num { font-family: var(--font-titres); font-weight: 900; color: var(--gris-chaud); font-size: .85rem; margin-bottom: .5rem; }
.etape h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.etape p { font-size: .9rem; color: var(--gris-chaud); }

/* ── ÉTUDES DE CAS ── */
.cas { background: var(--graphite); border-radius: 6px; padding: clamp(1.8rem, 4vw, 3rem); margin-top: 1.2rem; }
.cas h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 1.4rem; }
.cas-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 800px) { .cas-cols { grid-template-columns: 1fr; } }
.cas-col h4 { font-family: var(--font-texte); font-weight: 500; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: .6rem; }
.cas-col p, .cas-col li { font-size: .9rem; color: var(--gris-chaud); }
.cas-col ul { list-style: none; }
.cas-col li { padding-left: 1rem; position: relative; margin-bottom: .35rem; }
.cas-col li::before { content: '—'; position: absolute; left: 0; color: var(--bordeaux); }

/* ── CTA FINAL ── */
.cta-final { text-align: center; padding: clamp(4rem, 7vw, 7.5rem) var(--pad-x); }
.cta-final h2 { font-size: clamp(1.9rem, 4.8vw, 3.4rem); margin: 0 auto 1.4rem; max-width: 20ch; }
.cta-final p { color: var(--gris-chaud); max-width: 52ch; margin: 0 auto 2.4rem; font-size: .98rem; }

/* ── FORMULAIRE ── */
.diag-form { max-width: 480px; }
.fg { margin-bottom: 1.2rem; }
.fg label { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-chaud); margin-bottom: .45rem; }
.fg input {
    width: 100%; background: var(--graphite);
    border: 1px solid rgba(243,239,231,.14); border-radius: 4px;
    padding: .85rem 1rem; color: var(--ivoire);
    font-family: var(--font-texte); font-size: .95rem;
    outline: none; transition: border-color .2s;
}
.fg input:focus { border-color: var(--bordeaux); }
.form-note { margin-top: 1rem; font-size: .8rem; color: var(--gris-chaud); }
.diag-alt { margin-top: 3rem; font-size: .92rem; color: var(--gris-chaud); }
.diag-alt a { color: var(--ivoire); text-decoration: none; border-bottom: 1px solid var(--bordeaux); }
.diag-alt a:hover { color: var(--bordeaux); }

/* ── FOOTER ── */
footer {
    border-top: 1px solid rgba(243,239,231,.07);
    padding: 2.2rem var(--pad-x);
    display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
    align-items: center; justify-content: space-between;
    font-size: .76rem; color: var(--gris-chaud);
}
footer a { color: var(--gris-chaud); text-decoration: none; }
footer a:hover { color: var(--ivoire); }
.f-left { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }

/* ── REVEAL ── */
.r { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.r.on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .r { opacity: 1; transform: none; transition: none; }
    .pf-item img { transition: none; }
}

/* ── LIGHTBOX VIDÉO ── */
#lb {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(11,11,12,.94);
    display: none; align-items: center; justify-content: center;
    padding: 1.5rem;
}
#lb.open { display: flex; }
#lb video { max-width: min(92vw, 900px); max-height: 82vh; border-radius: 4px; }
#lb-close {
    position: absolute; top: 1.2rem; right: 1.6rem;
    background: none; border: none; color: var(--ivoire);
    font-size: 1.6rem; cursor: pointer; line-height: 1; padding: .4rem;
}

/* ── HERO STATS (compteur agrégé — pas de bordeaux ici, règle des 10 %) ── */
.hero-stats { display: flex; flex-wrap: wrap; align-items: stretch; margin-bottom: 2.6rem; }
.hstat { display: flex; flex-direction: column; gap: .4rem; padding: 0 1.8rem; border-left: 1px solid var(--graphite); }
.hstat:first-child { padding-left: 0; border-left: none; }
.hstat-n {
    font-family: var(--font-titres); font-weight: 900;
    font-size: clamp(1.75rem, 2.6vw, 2.125rem); /* ~28-34px */
    line-height: 1; letter-spacing: -.02em; color: var(--ivoire);
}
.hstat-l { font-family: var(--font-texte); font-weight: 300; font-size: .8125rem; /* 13px */ color: var(--gris-chaud); }
@media (max-width: 520px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .hstat { padding: 0; border-left: none; }
}

/* ── FAQ — accordéon ── */
.faq { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--graphite); }
.faq-item { border-bottom: 1px solid var(--graphite); }
.faq-q {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    width: 100%; background: none; border: none; cursor: pointer; text-align: left;
    padding: 1.15rem 0;
    font-family: var(--font-titres); font-weight: 700; font-size: 1.125rem; /* 18px */
    color: var(--ivoire); letter-spacing: -.01em;
}
.faq-x { font-family: var(--font-texte); font-weight: 300; font-size: 1.3rem; color: var(--gris-chaud); line-height: 1; flex-shrink: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .2s ease; }
.faq-a p { font-family: var(--font-texte); font-weight: 300; font-size: .9375rem; /* 15px */ color: #B4B0A8; max-width: 65ch; padding-bottom: 1.2rem; }

/* ── MÉTA-ARGUMENT (sous les études de cas) ── */
.meta-cas { text-align: center; margin-top: 3rem; }
.meta-cas .h-style { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .6rem; }
.meta-cas p:not(.h-style) { font-size: .95rem; color: var(--gris-chaud); }

/* ── DIAGNOSTIC — livrable ── */
.diag-livrable { max-width: 620px; margin-bottom: 3rem; padding: 1.8rem; background: var(--graphite); border-radius: 6px; border-left: 2px solid var(--bordeaux); }
.diag-livrable .h-style { font-size: 1.15rem; margin-bottom: .7rem; }
.diag-livrable p { font-size: .93rem; color: var(--gris-chaud); }

/* ── STICKY WHATSAPP (charte : bordeaux, pas de vert hors palette) ── */
.wa-sticky {
    position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 120;
    background: var(--bordeaux); color: var(--ivoire);
    font-size: .78rem; font-weight: 500; letter-spacing: .05em;
    text-decoration: none; padding: .75rem 1.4rem; border-radius: 999px;
    transition: background .2s;
}
.wa-sticky:hover { background: #9d453b; }

/* ── SITES — mockup navigateur charte sombre ── */
.site-mock {
    display: flex; flex-direction: column;
    text-decoration: none;
    border: 1px solid rgba(243,239,231,.14);
}
.site-bar {
    display: flex; gap: .35rem; align-items: center;
    padding: .6rem .8rem;
    border-bottom: 1px solid rgba(243,239,231,.1);
}
.site-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-chaud); opacity: .45; }
.site-bar i:first-child { background: var(--bordeaux); opacity: 1; }
.site-domain {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-titres); font-weight: 900;
    font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: -.02em;
    color: var(--ivoire); text-align: center; padding: 1rem;
}
.site-mock:hover .site-domain { color: var(--bordeaux); }

/* ── PLACEHOLDERS EN ATTENTE — JAMAIS visibles en production.
      display:none inconditionnel ; seen.js les réaffiche en localhost uniquement. ── */
.pending { display: none !important; }
.pending.pending-local {
    display: block !important;
    border: 1px dashed var(--bordeaux); border-radius: 4px;
    padding: 1rem 1.2rem; margin: 1.2rem 0;
}
.pending-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }

/* ── COOKIES ── */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: var(--graphite);
    border-top: 1px solid rgba(243,239,231,.1);
    padding: 1rem var(--pad-x);
    display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between;
}
#cookie-banner p { font-size: .78rem; color: var(--gris-chaud); max-width: 60ch; }
#cookie-banner a { color: var(--ivoire); }
.ck-actions { display: flex; gap: .6rem; }
