
  @font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("anton.woff2") format("woff2");
  }

  :root {
    --deep: #3d0000;          /* bordeaux profond (sections sombres) */
    --wine: #4d0a12;          /* bordeaux des grands titres sur blanc */
    --rose: #e39aa8;          /* accent rosé, très parcimonieux */
    --ink: #1c1517;           /* quasi-noir chaud (texte sur blanc) */
    --muted: #8f868a;         /* gris chaud (labels) */
    --line: #e7dede;          /* filets clairs */
    --track: #ece3e3;         /* fond des barres */
    --paper: #ffffff;
    --on-deep: #f4ecec;
    --on-deep-muted: rgba(244, 236, 236, .52);
    --on-deep-line: rgba(244, 236, 236, .16);

    --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --display: "Anton", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: #201013;
    color: var(--ink);
    font-family: var(--mono);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .kit {
    width: 100%;
    background: var(--paper);
  }

  /* ---------- primitives ---------- */
  .eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
  }
  .display {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .9;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0;
  }
  .rule {
    height: 2px;
    background: var(--wine);
    border: 0;
    flex: 1;
  }
  .tnum { font-variant-numeric: tabular-nums; }

  /* ======================================================= SECTION 1 — HERO */
  .hero {
    background: var(--deep);
    color: var(--on-deep);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
  }
  .hero-text {
    padding: clamp(2rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
  }
  .hero .eyebrow { color: var(--on-deep-muted); }
  .hero-name {
    font-size: clamp(3.6rem, 11vw, 8.4rem);
    color: #fff;
  }
  .hero-handle {
    font-size: 1rem;
    letter-spacing: .12em;
    color: var(--on-deep);
    width: fit-content;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rose);
    text-decoration: none;
    transition: color .15s ease;
  }
  a.hero-handle:hover { color: #fff; }
  a.contact-link { text-decoration: none; transition: color .15s ease; }
  a.contact-link:hover { color: #fff; }
  .hero-bio {
    max-width: 42ch;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
  }
  .hero-bio p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.72;
    color: var(--on-deep);
  }
  .tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
  .tag {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--on-deep);
    padding: .62rem .95rem;
    border: 1px solid var(--on-deep-line);
    border-radius: 2px;
  }

  .hero-media { position: relative; overflow: hidden; }
  .photo {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 90% at 70% 20%, rgba(227,154,168,.12), transparent 60%),
      linear-gradient(150deg, #5a1119 0%, #2c0709 100%);
    display: grid;
    place-items: center;
  }
  .photo::after {
    content: "";
    position: absolute;
    inset: clamp(14px, 2vw, 26px);
    border: 1px solid rgba(244, 236, 236, .28);
    pointer-events: none;
  }
  .photo-note {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(244, 236, 236, .5);
    text-align: center;
    padding: 0 1rem;
    line-height: 2;
  }
  .photo-badge {
    position: absolute;
    left: clamp(14px, 2vw, 26px);
    bottom: clamp(14px, 2vw, 26px);
    z-index: 2;
    background: var(--deep);
    color: var(--on-deep);
    font-size: .64rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    padding: .6rem 1rem;
  }

  /* ======================================================= WHITE SECTIONS */
  .sheet { padding: clamp(2.4rem, 5.5vw, 6rem) clamp(1.6rem, 6vw, 8rem); }
  .sec-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
  .sec-titlerow { display: flex; align-items: center; gap: 1.6rem; }
  .sec-title { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--wine); }
  .sec-tag {
    font-size: .68rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }

  /* ---- Section 2: audience ---- */
  /* AUDIENCE — 2 colonnes : démographie (gauche) · performance (droite). */
  .aud-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.8rem, 4vw, 3.4rem);
    align-items: center;
  }
  .aud-col { display: flex; flex-direction: column; min-width: 0; }
  .aud-demo { gap: 1.6rem; }
  .aud-perf { gap: 1.6rem; border-left: 1px solid var(--line); padding-left: clamp(1.4rem, 3vw, 3rem); align-items: center; }
  .aud-group { display: flex; flex-direction: column; gap: 1.15rem; }
  .aud-demo { gap: 2.1rem; }
  /* Label de section (Âge / Genre / Localisation / Formats) = mini-titre bordeaux,
     DÉTACHÉ de ses données par un filet + de l'air (avant il était collé à la 1re ligne). */
  .col-label {
    font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--wine); font-weight: 700; margin: 0;
    padding-bottom: .6rem; border-bottom: 1px solid var(--line);
  }

  /* Barres : nom fixe · piste FLEXIBLE (longue → proportions lisibles) · valeur. */
  .bars { display: flex; flex-direction: column; gap: .72rem; }
  .bar-row { display: grid; grid-template-columns: 5.4rem 1fr 2.6rem; align-items: center; gap: .8rem; }
  .bar-name { font-size: .82rem; color: var(--ink); white-space: nowrap; }
  .bar-track { display: block; height: 9px; background: var(--track); border-radius: 999px; overflow: hidden; }
  /* display:block OBLIGATOIRE : sans lui, le <span> reste inline et son width:X% est
     ignoré → la barre ne montrait aucun remplissage proportionnel (bug d'origine). */
  .bar-fill { display: block; height: 100%; background: var(--wine); border-radius: 999px; min-width: 3px; }
  .bar-val { font-size: .82rem; font-weight: 700; color: var(--wine); text-align: right; }

  /* Genre : barre scindée Femmes | Hommes. */
  .gsplit { display: flex; flex-direction: column; gap: .6rem; }
  .gsplit-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--track); }
  .gseg { height: 100%; }
  .gseg-f { background: var(--wine); }
  .gseg-h { background: #bfa2a6; }
  .gsplit-legend { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--ink); }
  .gl { display: flex; align-items: center; gap: .45rem; }
  .gdot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
  .gdot-f { background: var(--wine); }
  .gdot-h { background: #bfa2a6; }

  /* Performance : donut des formats + KPI héro. */
  .perf-formats { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
  .perf-best { font-size: .8rem; color: var(--ink); text-align: center; margin: .35rem 0 0; }
  .perf-best b { color: var(--wine); font-weight: 700; }
  .big-stat { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--wine); line-height: 1; }
  .stat-cap { font-size: .82rem; color: var(--ink); margin-top: .35rem; }
  .donut { width: min(190px, 52vw); height: auto; margin: .2rem auto 0; display: block; }
  .legend { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; margin: .55rem auto 0; width: fit-content; }
  .legend-item { display: flex; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
  .swatch { width: 11px; height: 11px; border-radius: 2px; flex: none; }

  .perf-kpis { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
  .kpi { display: flex; flex-direction: column; gap: .1rem; }
  .kpi-hero .big-stat { font-size: clamp(3rem, 7vw, 4.4rem); }
  .aud-foot { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.1rem; border-top: 1px solid var(--line);
    font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

  /* ---- Sections 3 & 4: platform ---- */
  .plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.6rem); align-items: start; }
  .plat-name { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ink); text-transform: uppercase; line-height: 1; margin: .5rem 0 1.1rem; }
  .plat-kicker { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
  .plat-intro { font-size: .9rem; line-height: 1.75; color: var(--ink); max-width: 44ch; margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); }
  .plat-tris { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.8rem; }
  .tri { border-top: 2px solid var(--wine); padding-top: .8rem; }
  .tri-num { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--wine); line-height: 1; }
  .tri-cap { font-size: .74rem; line-height: 1.5; color: var(--ink); margin-top: .5rem; }
  .plat-rows { display: flex; flex-direction: column; }
  .plat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .plat-row:first-child { border-top: 1px solid var(--line); }
  .plat-row-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
  .plat-row-val { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); }

  /* phone mockup placeholder */
  .phone-wrap { display: grid; place-items: center; }
  .phone {
    width: min(300px, 78vw);
    aspect-ratio: 300 / 620;
    background: #0e0e10;
    border-radius: 40px;
    padding: 11px;
    box-shadow: 0 26px 60px -28px rgba(24, 18, 20, .34);
    position: relative;
  }
  .phone-screen {
    width: 100%; height: 100%;
    border-radius: 30px;
    background: linear-gradient(180deg, #f6f2f2, #efe6e6);
    display: grid;
    place-items: center;
  }
  .phone-screen span {
    font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
    color: #b7a9aa; text-align: center; line-height: 2; padding: 0 1.6rem;
  }
  .phone::before {
    content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); z-index: 2;
  }

  /* ---- Section 4: captures de stats ---- */
  /* Captures d'écran d'insights (portraits de téléphone) : `contain` et non `cover`,
     pour ne JAMAIS rogner les chiffres. Fond clair pour les captures transparentes. */
  .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.7rem, 1.6vw, 1.3rem); }
  .stat-shot {
    aspect-ratio: 9 / 16;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .stat-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }

  /* ---- Section 5: brands ---- */
  .logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
  .logo-cell {
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }
  .logo-cell:nth-child(5n) { border-right: 0; }
  .logo-cell:nth-last-child(-n+5) { border-bottom: 0; }
  .logo-cell span {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .04em;
    color: #b3a7a9;
    text-align: center;
  }

  /* ======================================================= SECTION 6 — CONTACT */
  .contact {
    background: var(--deep);
    color: var(--on-deep);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
  }
  .contact-text { padding: clamp(2.4rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
  .contact .eyebrow { color: var(--on-deep-muted); }
  .contact-title { font-size: clamp(3rem, 8vw, 6rem); color: #fff; }
  .contact-block { display: flex; flex-direction: column; gap: .3rem; }
  .contact-block .k { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--on-deep-muted); }
  .contact-block .v { font-size: 1.02rem; letter-spacing: .04em; color: var(--on-deep); }
  .send {
    width: fit-content; margin-top: .6rem;
    font-family: var(--mono); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--deep); background: var(--on-deep);
    border: 0; padding: .95rem 2rem; cursor: pointer;
    text-decoration: none; display: inline-block;
  }
  .send:hover { background: #fff; }

  .footer {
    grid-column: 1 / -1;
    background: #2c0709;
    padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.6rem, 5vw, 4.5rem);
    display: flex; flex-direction: column; gap: .5rem;
    border-top: 1px solid var(--on-deep-line);
  }
  .footer div { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-deep-muted); }

  /* ======================================================= PDF BUTTON */
  .pdf-btn {
    position: fixed; right: 22px; bottom: 22px; z-index: 50;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: #fff; background: var(--deep); text-decoration: none;
    border: 1px solid rgba(255,255,255,.14);
    padding: .95rem 1.4rem; border-radius: 3px; cursor: pointer;
    box-shadow: 0 16px 40px -14px rgba(0,0,0,.6);
    display: inline-flex; align-items: center; gap: .6rem;
    transition: transform .15s ease, background .15s ease;
  }
  .pdf-btn:hover { transform: translateY(-2px); background: #520606; }
  .pdf-btn:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
  .pdf-btn svg { width: 15px; height: 15px; }

  /* ======================================================= RESPONSIVE */
  @media (max-width: 860px) {
    .hero, .contact { grid-template-columns: 1fr; }
    .hero-media { min-height: 78vh; }
    .contact .contact-media { min-height: 62vh; position: relative; }
    .aud-grid { grid-template-columns: 1fr; }
    .aud-perf { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.8rem; }
    .plat-grid { grid-template-columns: 1fr; }
    .plat-media { order: -1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-cell:nth-child(5n) { border-right: 1px solid var(--line); }
    .logo-cell:nth-child(2n) { border-right: 0; }
    .logo-cell:nth-last-child(-n+5) { border-bottom: 1px solid var(--line); }
    .logo-cell:nth-last-child(-n+2) { border-bottom: 0; }
  }
  @media (max-width: 460px) {
    .plat-tris { grid-template-columns: 1fr; }
    .bar-row { grid-template-columns: 4.4rem 1fr 2.4rem; }
  }

  /* ======================================================= WEB / MOTION */
  html { scroll-behavior: smooth; }

  .progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: #b83a5a; z-index: 60;
    transition: width .12s linear;
  }

  .tag, .logo-cell span, .plat-row, .send, .pdf-btn { transition: all .2s ease; }
  .tag:hover { border-color: var(--rose); transform: translateY(-1px); }
  .logo-cell:hover span { color: var(--wine); }
  .plat-row:hover { background: #faf6f6; }

  html.js [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  html.js [data-reveal].in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pdf-btn, .tag, .logo-cell span, .plat-row, .send { transition: none; }
    html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  }

  /* ======================================================= PRINT / PDF
     Export = diapositives 16:9 PAYSAGE (13,33 × 7,5 in — format présentation),
     une section = une diapo, contenu centré verticalement. Calqué sur le deck
     de référence. Rendu côté serveur (Chrome headless) → 1 clic = le bon PDF. */
  @media print {
    @page { size: 338.67mm 190.5mm; margin: 0; }   /* 16:9 paysage */
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    html, body { background: #fff; margin: 0; width: 100%; }
    .kit { max-width: none; width: 100%; }
    .pdf-btn, .progress { display: none !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }

    /* Forcer les grilles DESKTOP (la largeur diapo déclencherait sinon les
       breakpoints mobile < 860px → tout s'empile). */
    .hero, .contact { grid-template-columns: 1.02fr 1fr !important; }
    .aud-grid { grid-template-columns: 1.18fr .82fr !important; align-items: center !important; margin: 0 !important; }
    .plat-grid { grid-template-columns: 1.05fr 1fr !important; align-items: center !important; margin: 0 !important; }
    .plat-media { order: 0 !important; }
    .logo-grid { grid-template-columns: repeat(5, 1fr) !important; }
    /* Captures : 3 colonnes, hauteur fixe pour tenir sur une diapo 16:9 (2 rangées max). */
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6mm !important; }
    .stat-shot { aspect-ratio: auto !important; height: 52mm !important; }
    .aud-perf { border-left: 1px solid var(--line) !important; padding-left: 12mm !important; align-items: center !important; }

    /* Une section = une diapo 16:9 pleine. overflow:hidden → jamais de débordement. */
    .hero, .sheet, .contact {
      width: 100%; height: 190.5mm; break-inside: avoid; break-after: page;
      box-sizing: border-box; overflow: hidden;
    }
    .contact { break-after: auto; }

    /* Zone de sécurité homogène + centrage vertical. */
    .hero-text, .contact-text { padding: 0 20mm !important; justify-content: center; gap: 6mm !important; }
    .hero-bio { gap: 3.5mm !important; max-width: 46ch; }
    .hero-media, .contact-media { min-height: 0; }
    .sheet { display: flex; flex-direction: column; justify-content: center; padding: 15mm 20mm !important; }
    .sec-head { margin-bottom: 9mm !important; gap: 3mm !important; }
    .sec-titlerow { gap: 8mm !important; }
    .aud-col { gap: 7mm !important; }
    .aud-demo { gap: 11mm !important; }
    .aud-perf { gap: 6mm !important; }
    .aud-group { gap: 4.5mm !important; }
    .aud-foot { margin-top: 9mm !important; padding-top: 4mm !important; }
    .plat-intro { margin-bottom: 7mm !important; }
    .plat-tris { margin-bottom: 7mm !important; gap: 6mm !important; }

    /* Échelle typographique de la diapo 16:9 — plus affirmée, remplit mieux la diapo. */
    .hero-name { font-size: 52pt; }
    .contact-title { font-size: 50pt; }
    .sec-title { font-size: 33pt; }
    .plat-name { font-size: 22pt; margin: 3mm 0 !important; }
    .big-stat { font-size: 24pt; }
    .kpi-hero .big-stat { font-size: 34pt; }
    .tri-num, .plat-row-val { font-size: 19pt; }
    .hero-handle { font-size: 12pt; }
    .contact-block .v { font-size: 12pt; }
    .hero-bio p, .plat-intro { font-size: 10.5pt; line-height: 1.6; }
    .bar-name, .bar-val, .stat-cap, .tri-cap, .gsplit-legend, .perf-best { font-size: 9pt; }
    .plat-row-label, .plat-kicker, .legend-item, .sec-tag,
    .eyebrow, .tag, .aud-foot, .photo-note, .photo-badge,
    .contact-block .k, .footer div, .logo-cell span { font-size: 8pt; }
    /* Labels de section = mini-titres bordeaux, plus affirmés que les autres labels. */
    .col-label { font-size: 8.5pt !important; color: var(--wine) !important; letter-spacing: .18em !important;
                 padding-bottom: 2.6mm !important; margin-bottom: 0 !important; }

    /* Réglages fins. */
    .tri, .plat-row, .bar-row, .legend-item, figure { break-inside: avoid; }
    .bars { gap: 3.4mm !important; }
    /* piste FLEXIBLE (1fr) → barres longues, proportions enfin lisibles */
    .bar-row { padding: 0 !important; grid-template-columns: 20mm 1fr 9mm !important; gap: 3mm !important; }
    .bar-track { height: 3mm !important; }
    .gsplit-bar { height: 3.8mm !important; }
    .gsplit { gap: 2.5mm !important; }
    .tri { padding-top: 3mm !important; }
    .tri-cap { margin-top: 2mm !important; }
    .plat-row { padding: 3mm 0 !important; }
    .stat-cap { margin-top: 2mm !important; }
    .donut { width: 40mm !important; margin: 2mm auto 0 !important; }
    .legend { gap: 2mm !important; margin-top: 3mm !important; }
    .perf-kpis { gap: 5mm !important; margin-top: 2mm !important; }
    /* Pas d'ombre à l'impression : le halo gris derrière le mockup n'est pas beau.
       Le téléphone repose sur du blanc pur. */
    .phone { width: 58mm !important; box-shadow: none !important; }
    .send { display: none; }

    /* Marques : cartes encadrées centrées, adaptatif (2 → N logos) — plus de
       grille 5 colonnes à moitié vide quand il y a peu de marques. */
    .logo-grid { display: flex !important; flex-wrap: wrap; justify-content: center; align-content: center;
                 gap: 7mm !important; border: 0 !important; }
    .logo-cell { width: 54mm !important; aspect-ratio: 3 / 2; border: 1px solid var(--line) !important;
                 padding: 5mm !important; }
  }
