/* ==========================================================================
   DVLP · Landing page
   Direction artistique : dossier "SITE DVLP" (Brockmann Medium + palette 4 teintes)
   Rôles couleur validés :
     - Bleu pastel  #deeef5 : fond dominant (teinte des fichiers BLEU du dossier)
     - Brun         #1a0b0c : texte + sections sombres (rythme)
     - Rouge        #e73a2d : accent réservé aux moments forts (étoile, CTA)
     - Beige        #f9f4ef : fond discret, ponctuel
   ========================================================================== */

@font-face {
  font-family: "Brockmann";
  src: url("../fonts/brockmann-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brockmann";
  src: url("../fonts/brockmann-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brockmann";
  src: url("../fonts/brockmann-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Graisses (21/09) : 400 texte · 500 titres et interface · 600 chiffres et accents */
  --fw-texte: 400;
  --fw-titre: 500;
  --fw-accent: 600;
  /* Palette (source : PALETTE/palette copie.png) */
  --bleu: #deeef5; /* bleu des fichiers LOGO/MONOGRAMME BLEU (validé) · palette d'origine : #ecf7fb */
  --brun: #1a0b0c;
  --rouge: #e73a2d;
  --beige: #f9f4ef;

  /* Rôles */
  --bg: var(--bleu);
  --ink: var(--brun);
  --ink-soft: rgba(26, 11, 12, 0.64);
  --ink-faint: rgba(26, 11, 12, 0.38);
  --line: rgba(26, 11, 12, 0.14);
  --accent: var(--rouge);

  /* Typo · une seule graisse : la hiérarchie passe par la taille, la casse et l'interlettrage */
  --font: "Brockmann", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: clamp(3rem, 0.9rem + 8.2vw, 10.75rem);
  --fs-display-b: clamp(2.6rem, 0.9rem + 5.6vw, 7.25rem);
  --fs-h2: clamp(2.25rem, 1rem + 4vw, 5rem);
  --fs-stat: clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
  --fs-lead: clamp(1.125rem, 0.98rem + 0.5vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Espace */
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1680px;
  --header-h: clamp(64px, 5.6vw, 88px);
  --radius-pill: 999px;

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --dur: 0.5s;

  /* Grain (texture qui répond au grain de l'étoile) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.04  0 0 0 0 0.05  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--fw-texte);
  font-size: var(--fs-body);
  line-height: 1.4;  /* petits textes resserrés (17/09) : 1,5 → 1,4 ; les titres gardent leur propre interligne */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--rouge); color: var(--brun); }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--brun); color: var(--bleu); padding: 10px 16px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Éléments typographiques ---------- */
.label {
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
}
.lead { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.012em; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--rouge);
  --btn-ink: var(--brun);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.75em;
  min-height: 56px; padding: 0 1.5em 0 1.6em;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1;
  overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease-out);
}
/* Remplissage brun au survol, qui monte depuis le bas */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brun);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--bleu); }
.btn__icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(4px) rotate(-45deg); }

.btn--ghost { --btn-bg: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--sm { min-height: 44px; font-size: 0.9375rem; padding: 0 1.2em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 1.0625rem; padding-block: 0.5em;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size var(--dur) var(--ease-out);
}
.link-arrow:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color .4s ease, box-shadow .4s ease, color .4s ease, transform .5s var(--ease-out);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.is-scrolled {
  background: rgba(222, 238, 245, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: block; position: relative; width: clamp(92px, 7.6vw, 124px); }
.brand img { width: 100%; height: auto; }
.brand__light { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__link {
  position: relative; font-size: 0.9375rem; letter-spacing: -0.005em; padding-block: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav .btn--ghost:hover { color: var(--bleu); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease-out), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Header posé sur un visuel sombre (variante B) : classe .in-dark gérée en JS tant qu'on est dans le hero */
.site-header.in-dark { color: var(--beige); }
.site-header.in-dark .brand__dark { opacity: 0; }
.site-header.in-dark .brand__light { opacity: 1; }
.site-header.in-dark.is-scrolled { background: rgba(26, 11, 12, 0.88); box-shadow: 0 1px 0 rgba(249, 244, 239, 0.12); }
.site-header.in-dark .btn--ghost:hover, .site-header.in-dark .btn--ghost:focus-visible { color: var(--brun); }
.site-header.in-dark .btn--ghost::before { background: var(--beige); }
/* Bouton « Prendre rendez-vous » de l'en-tête : contour au repos, se remplit d'orange au survol (clair comme sombre) */
.site-header .nav .btn--ghost { transition: color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.site-header .nav .btn--ghost::before { background: var(--rouge); }
.site-header .nav .btn--ghost:hover, .site-header .nav .btn--ghost:focus-visible { color: var(--brun); box-shadow: inset 0 0 0 1px var(--rouge); }

/* Bouton RDV de l'en-tête mobile */
.rdv-quick { display: none; }
@media (max-width: 900px) {
  .rdv-quick {
    display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2;
    margin-left: auto; margin-right: -12px; height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
    /* contour au repos (brun sur fond clair, beige sur fond sombre : suit la couleur de l'en-tête) */
    background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor;
    font-size: 0.8125rem; letter-spacing: .02em; line-height: 1; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    opacity: 0; visibility: hidden; transform: scale(.85);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility .35s,
                background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  }
  .rdv-quick.is-visible { opacity: 1; visibility: visible; transform: none; }
  /* appui (et survol avec une souris) : se remplit d'orange */
  .rdv-quick:active, .rdv-quick.is-pressed { background: var(--rouge); color: var(--brun); box-shadow: inset 0 0 0 1px var(--rouge); transform: scale(.96); }
  @media (hover: hover) { .rdv-quick:hover { background: var(--rouge); color: var(--brun); box-shadow: inset 0 0 0 1px var(--rouge); } }
  .rdv-quick:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
  .menu-open .rdv-quick { opacity: 0; visibility: hidden; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--brun); color: var(--beige);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav .nav__link { font-size: clamp(2.25rem, 10vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.1; }
  .nav .btn--ghost { color: var(--beige); }
  .nav .btn--ghost::before { background: var(--rouge); }
  .nav .btn--ghost:hover { color: var(--brun); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--beige); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .brand__dark { opacity: 0; }
  .menu-open .brand__light { opacity: 1; }
  .brand { z-index: 2; }
  body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   ÉTOILE ANIMÉE (stop-motion, source : ANIMATION SYMBOLE)
   ========================================================================== */
.star {
  position: relative; display: inline-block;
  aspect-ratio: 360 / 421;
}
.star img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; visibility: hidden;
}
.star img.is-on { visibility: visible; }

/* ==========================================================================
   HERO · commun
   ========================================================================== */
.hero { position: relative; }

/* Révélation des lignes du titre */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.reveal-line > span { display: inline-block; transform: translateY(108%); animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease-out) forwards; animation-delay: var(--d, 600ms); }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.availability { display: inline-flex; align-items: center; gap: 10px; }
.availability__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); position: relative; flex: none;
}
.availability__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--rouge);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); }
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat__value { font-size: var(--fs-stat); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.stat__value sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.2em; margin-left: 0.04em; letter-spacing: 0; }
.stat__label { font-size: var(--fs-small); line-height: 1.3; color: var(--ink-soft); max-width: 22ch; }

.clients { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 4vw, 64px); }
.clients__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); }
/* PLACEHOLDER logo client : remplacer le <span> par <img src="logo.svg" alt="Nom du client"> */
.logo-ph {
  height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
  white-space: nowrap;
}

/* ==========================================================================
   HERO · VARIANTE A : typo XXL + étoile animée
   ========================================================================== */
.hero--a {
  min-height: max(680px, 100svh);
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding-top: calc(var(--header-h) + clamp(16px, 3vh, 40px));
  padding-bottom: clamp(24px, 3.5vh, 44px);
  row-gap: clamp(28px, 4.5vh, 56px);
}
.hero--a .hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-soft); }
.hero--a .hero__title-wrap { align-self: center; }
.hero--a .hero__title {
  font-size: min(var(--fs-display), 15.2vh);
  line-height: 0.9;
  letter-spacing: -0.052em;
  font-weight: 500;
  margin-left: -0.05em;
}
.hero--a .hero__title .star {
  width: 0.7em; margin-left: 0.06em;
  vertical-align: -0.02em;
  transform: rotate(var(--star-rot, 0deg));
  will-change: transform;
}
.hero--a .hero__bottom {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 120px); align-items: end;
}
.hero--a .hero__intro { display: flex; flex-direction: column; gap: 28px; max-width: 34rem; }
.hero--a .hero__intro .lead { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero--a .clients { padding-top: clamp(18px, 2.4vh, 28px); border-top: 1px solid var(--line); }
.hero--a .clients .label { color: var(--ink-soft); }

@media (min-width: 641px) and (max-height: 780px) {
  .hero--a { row-gap: 22px; padding-top: calc(var(--header-h) + 8px); padding-bottom: 18px; }
  .hero--a .hero__title { font-size: min(var(--fs-display), 14vh); }
  .hero--a .hero__intro { gap: 20px; }
  .hero--a .clients { padding-top: 14px; }
  .logo-ph { height: 38px; }
}
@media (max-width: 1100px) {
  .hero--a .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .clients__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero--a { min-height: auto; row-gap: 36px; padding-top: calc(var(--header-h) + 28px); }
  .hero--a .hero__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero--a .hero__title { font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 0.92; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .stat__value { font-size: clamp(1.625rem, 8vw, 2.25rem); }
  .stat__label { font-size: 0.75rem; }
  .clients { grid-template-columns: 1fr; gap: 16px; }
  .clients__list { gap: 10px; }
  .logo-ph { height: 40px; font-size: 0.625rem; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   HERO · VARIANTE B : visuel plein écran
   ========================================================================== */
.hero--b {
  min-height: max(700px, 100svh);
  color: var(--beige);
  background: var(--brun);
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Teinte brune légère : raccorde les images (très vertes) à la palette */
.hero__media-tint { position: absolute; inset: 0; background: var(--brun); opacity: .18; mix-blend-mode: multiply; }

.media-controls {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 20px); z-index: 1;
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
}
.media-credit { color: rgba(249, 244, 239, .78); text-shadow: 0 1px 12px rgba(26, 11, 12, .35); }
.media-toggle {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--beige);
  box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .45); background: rgba(26, 11, 12, .2);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.media-toggle svg { width: 11px; height: 11px; }
.media-toggle:hover { background: var(--beige); color: var(--brun); }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* Voile pour la lisibilité du texte sur n'importe quelle future vidéo */
.hero--b::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 11, 12, .7) 0%, rgba(26, 11, 12, .34) 45%, rgba(26, 11, 12, .06) 72%),
    linear-gradient(180deg, rgba(26, 11, 12, .5) 0%, rgba(26, 11, 12, 0) 22%, rgba(26, 11, 12, .12) 45%, rgba(26, 11, 12, .88) 100%);
}

.hero--b .hero__content {
  align-self: end;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: clamp(28px, 4vh, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
}
.hero--b .hero__left { display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 32px); }
.hero--b .hero__meta { color: rgba(249, 244, 239, .72); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero--b .hero__title {
  /* 3 lignes exactement : la plus longue (« L'agence des entreprises ») mesure ~11,2 em, la taille est bornée par la largeur disponible */
  font-size: min(var(--fs-display-b), 9.6vh, calc((100vw - 2 * var(--gutter)) / 11.2));
  /* interligne 1,06 : le jambage du g (0,24 em) et le point du i de la ligne suivante (0,75 em) ne se touchent plus */
  line-height: 1.06; letter-spacing: -0.045em; font-weight: 500; margin-left: -0.04em;
}
.hero--b .hero__title .reveal-line > span { white-space: nowrap; }
/* marge du masque d'animation agrandie pour ne pas rogner les jambages (g, p, q) */
.hero--b .hero__title .reveal-line { padding-bottom: 0.28em; margin-bottom: -0.28em; }
.hero--b .hero__title .star { width: 0.68em; margin-left: 0.06em; vertical-align: -0.02em; }
.hero--b .lead { color: rgba(249, 244, 239, .82); max-width: 36rem; }
.hero--b .btn:hover, .hero--b .btn:focus-visible { color: var(--brun); }
.hero--b .btn::before { background: var(--beige); }
.hero--b .link-arrow { color: var(--beige); }

.hero--b .stats { grid-template-columns: 1fr; gap: 0; }
.hero--b .stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 16px; border-top-color: rgba(249, 244, 239, .18); }
.hero--b .stat:last-child { border-bottom: 1px solid rgba(249, 244, 239, .18); }
.hero--b .stat__label { color: rgba(249, 244, 239, .68); text-align: right; }
.hero--b .stat__value { font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); }

.hero--b .clients-bar { border-top: 1px solid rgba(249, 244, 239, .18); background: rgba(26, 11, 12, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero--b .clients { padding-block: clamp(16px, 2.2vh, 24px); }
.hero--b .clients .label { color: rgba(249, 244, 239, .6); }
.hero--b .logo-ph { border-color: rgba(249, 244, 239, .16); color: rgba(249, 244, 239, .42); }

@media (max-width: 1000px) {
  .hero--b .hero__content { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero--b .hero__title { font-size: min(clamp(2.4rem, 11vw, 4rem), calc((100vw - 2 * var(--gutter)) / 11.2)); }
  .hero--b .hero__content { padding-top: calc(var(--header-h) + 120px); }
  .media-credit { display: none; }
  .hero--b .clients-bar .clients { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   Section suivante · emplacement (en attente de validation du hero)
   ========================================================================== */
.next-ph {
  min-height: 60vh; display: grid; place-items: center; text-align: center;
  padding-block: 96px; border-top: 1px solid var(--line);
}
.next-ph p { color: var(--ink-faint); }
.next-ph strong { display: block; font-weight: 500; font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-top: 14px; }

/* ==========================================================================
   SECTIONS · commun
   ========================================================================== */
.section { padding-block: clamp(88px, 11vw, 176px); }
.section__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start; margin-bottom: clamp(48px, 6vw, 96px);
}
.section__index { grid-column: 1 / span 3; color: var(--ink-soft); padding-top: 0.9em; }
.section__title {
  grid-column: 1 / span 9;
  font-size: clamp(1.9rem, 0.9rem + 2.9vw, 4rem); line-height: 1.1; letter-spacing: -0.038em; font-weight: 500;
  max-width: 24ch; text-wrap: balance;
}
.ink-soft { color: var(--ink-soft); }
/* partie grise des titres : les mots montent un à un quand le titre est entièrement à l'écran */
.js .section__title .sw { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + 250ms); }
.js .section__title.is-words-on .sw { opacity: 1; transform: none; }
/* lien dans un titre : souligné discret, orange au survol */
.link-inline { color: inherit; text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .12em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color var(--dur), text-decoration-color var(--dur); }
.link-inline:hover, .link-inline:focus-visible { color: var(--rouge); text-decoration-color: var(--rouge); }

/* Apparition au scroll (uniquement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .section__head { grid-template-columns: 1fr; row-gap: 20px; }
  .section__index, .section__title { grid-column: 1; padding-top: 0; }
}

/* ==========================================================================
   2. RÉASSURANCE · phrase révélée au scroll
   ========================================================================== */
.statement { position: relative; height: 115vh; }  /* zone épinglée raccourcie de moitié (17/09) */
.statement__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.statement__inner { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 48px); }
.statement__text {
  font-size: min(clamp(2.4rem, 0.4rem + 7vw, 9.5rem), 12.5vh);
  line-height: 0.98; letter-spacing: -0.05em; font-weight: 500;
  max-width: 17ch; text-wrap: balance;
}
.statement__text .w {
  display: inline-block;
  opacity: calc(0.12 + 0.88 * var(--p, 1));
  transform: translateY(calc((1 - var(--p, 1)) * 0.18em));
  will-change: opacity, transform;
}
.statement__text .star { width: 0.62em; margin-left: 0.08em; vertical-align: -0.04em; }
.statement__progress { width: min(240px, 40%); height: 1px; background: var(--line); overflow: hidden; }
.statement__progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.no-js .statement, .statement.is-static { height: auto; }
.no-js .statement__sticky, .statement.is-static .statement__sticky { position: static; height: auto; padding-block: clamp(88px, 11vw, 176px); }
@media (max-width: 640px) {
  .statement { height: 110vh; }
  .statement__text { max-width: none; font-size: clamp(2.4rem, 11vw, 3.5rem); text-wrap: pretty; }
}

/* ---------- Bandeau logos défilant (hero) ---------- */
.marquee {
  display: flex; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex; flex: none; gap: clamp(12px, 2vw, 28px); padding-right: clamp(12px, 2vw, 28px);
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .logo-ph { width: clamp(132px, 12vw, 176px); flex: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Logos clients : hauteur de reference commune, --k = ajustement optique logo par logo */
.logo-client { flex: none; display: grid; place-items: center; height: clamp(42px, 4.2vw, 54px); width: clamp(134px, 12.5vw, 192px); }
.logo-client img {
  display: block; width: auto; max-width: 100%; height: calc(clamp(26px, 2.7vw, 38px) * var(--k, 1));
  opacity: .82; transition: opacity .4s var(--ease-out);
}
.marquee:hover .logo-client img { opacity: 1; }
@media (max-width: 640px) { .logo-client { width: 114px; height: 40px; } .logo-client img { height: calc(26px * var(--k, 1)); } }

/* ==========================================================================
   THÈME SOMBRE (sections brunes) : on redéfinit les rôles, le reste suit
   ========================================================================== */
[data-theme="dark"]:not(html):not(body) {
  --ink: var(--beige);
  --ink-soft: rgba(249, 244, 239, 0.66);
  --ink-faint: rgba(249, 244, 239, 0.4);
  --line: rgba(249, 244, 239, 0.16);
  background-color: var(--brun);
  color: var(--ink);
}
[data-theme="dark"]:not(html):not(body) .btn:hover, [data-theme="dark"]:not(html):not(body) .btn:focus-visible { color: var(--brun); }
[data-theme="dark"]:not(html):not(body) .btn::before { background: var(--beige); }
.btn--light { --btn-bg: var(--beige); --btn-ink: var(--brun); }
.btn--light::before, [data-theme="dark"]:not(html):not(body) .btn--light::before { background: var(--rouge); }
.btn--light:hover, .btn--light:focus-visible, [data-theme="dark"]:not(html):not(body) .btn--light:hover { color: var(--brun); }
.section--tight { padding-block: clamp(40px, 5vw, 80px); }

/* ==========================================================================
   3. PROPOSITION DE VALEUR · cases extensibles
   ========================================================================== */
.pillars { padding-top: 0; }
.pillars .container { padding-top: clamp(72px, 8vw, 128px); border-top: 1px solid var(--line); }
.pillars .section__head { margin-bottom: clamp(40px, 5vw, 72px); }

.pcards { display: flex; gap: clamp(10px, 1.1vw, 18px); height: clamp(400px, 54vh, 520px); }
.pcard {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(22px, 2.2vw, 36px); border-radius: 18px;
  background: rgba(249, 244, 239, 0.34);
  box-shadow: inset 0 0 0 1px rgba(26, 11, 12, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  transition: flex-grow .85s var(--ease-out), background-color .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.pcard:not(.is-active):hover { background: rgba(249, 244, 239, 0.55); }
.pcard.is-active {
  flex-grow: 2.35; cursor: default;
  background: var(--rouge);
  /* texte brun plein sur l'orange (contraste suffisant) */
  --ink-soft: rgba(26, 11, 12, 0.86); --ink-faint: rgba(26, 11, 12, 0.66); --line: rgba(26, 11, 12, 0.28);
  box-shadow: 0 40px 70px -40px rgba(26, 11, 12, 0.45);
}
.pcard:focus-visible { outline: 2px solid var(--brun); outline-offset: 3px; }

.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pcard__star { position: relative; display: block; width: clamp(40px, 3.4vw, 54px); aspect-ratio: 360 / 421; transition: transform .9s var(--ease-out); }
.pcard__star img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.pcard__star img.is-on { visibility: visible; }
.pcard.is-active .pcard__star { transform: rotate(-14deg) scale(1.12); }
.pcard__num { font-size: var(--fs-small); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.pcard__title { font-size: clamp(1.35rem, 0.9rem + 1vw, 2.1rem); line-height: 1.06; letter-spacing: -0.032em; font-weight: 500; max-width: 15ch; }
.pcard__details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .85s var(--ease-out); }
.pcard.is-active .pcard__details { grid-template-rows: 1fr; }
/* largeur figée : le texte ne se recompose pas pendant que la case s'élargit */
.pcard__inner {
  min-height: 0; overflow: hidden; width: clamp(280px, 34vw, 520px);
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease-out), transform .6s var(--ease-out);
}
.pcard.is-active .pcard__inner { opacity: 1; transform: none; transition-delay: .3s, .3s; }
.pcard__text { padding-top: 16px; color: var(--ink-soft); max-width: 44ch; }
.pcard__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pcard__foot .label { color: var(--ink-faint); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__tags li { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); }

/* Sans JS : toutes les cases ouvertes */
.no-js .pcard { flex-grow: 1; background: var(--beige); }
.no-js .pcard__details { grid-template-rows: 1fr; }
.no-js .pcard__inner { opacity: 1; transform: none; width: auto; }

/* 901–1100 px : cartes plus étroites, textes des 3 portes plus longs → hauteur fixe plus grande (rien n'est coupé) */
@media (min-width: 901px) and (max-width: 1100px) {
  .pcards { height: 500px; }
}

@media (max-width: 900px) {
  .pcards { flex-direction: column; height: auto; }
  .pcard { flex: none; justify-content: flex-start; gap: 22px; padding: 22px; border-radius: 16px; }
  .pcard__inner { width: auto; }
  .pcard__title { max-width: none; }
}

/* ==========================================================================
   4. RÉALISATIONS · bande courbée des clients + planches
   ========================================================================== */
.travaux { position: relative; background: var(--beige); --bg: var(--beige); padding-block: clamp(88px, 11vw, 168px) clamp(72px, 8vw, 120px); overflow: hidden; }
.travaux__head { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.travaux__head .label { color: var(--ink-soft); }
/* titre réduit (17/09) : ~20 % plus petit sur ordinateur, un peu plus petit sur mobile */
.travaux__title {
  font-size: clamp(2.4rem, 0.9rem + 5vw, 6rem); line-height: .95; letter-spacing: -0.05em; font-weight: 500; text-wrap: balance;
  /* alignement optique (21/09) : le D d'un titre de cette taille a un blanc à sa gauche.
     On décale le bloc d'autant pour que la lettre tombe pile sur le texte en dessous. */
  margin-left: -0.086em;
}
/* sur petit écran le blanc de la lettre est proportionnellement plus faible */
@media (max-width: 640px) { .travaux__title { margin-left: -0.034em; } }
/* interligne resserré (1,5 → 1,32) */
.travaux__intro { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem); line-height: 1.32; color: var(--ink-soft); max-width: 44ch; }

.curve {
  position: relative; perspective: 1500px; perspective-origin: 50% 40%;
  padding-block: 12px 8px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.curve__track { pointer-events: none; display: flex; align-items: flex-start; gap: clamp(14px, 1.5vw, 24px); width: max-content; transform-style: preserve-3d; will-change: transform; }
.tcard { pointer-events: auto; --h: clamp(250px, 40vh, 460px); flex: none; transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; }
/* Carte client : photo en fond (images de remplacement pour le moment) + nom par-dessus */
.tcard__btn {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  height: var(--h); aspect-ratio: 1 / 1; padding: clamp(18px, 1.8vw, 28px); border-radius: 12px; overflow: hidden;
  text-align: left; background: var(--brun); color: var(--beige);
  transition: transform .6s var(--ease-out);
}
.tcard--light .tcard__btn { background: var(--bleu); }
.tcard__media { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.tcard__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease-out);
}
/* Voile : le nom reste lisible quelle que soit la photo */
.tcard__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(26, 11, 12, .95) 0%, rgba(26, 11, 12, .82) 34%, rgba(26, 11, 12, .5) 64%, rgba(26, 11, 12, .42) 100%),
    linear-gradient(to bottom, rgba(26, 11, 12, .55) 0%, rgba(26, 11, 12, 0) 26%);
}
.tcard__btn > :not(.tcard__media) { position: relative; z-index: 1; }
.tcard:hover .tcard__media img, .tcard__btn:focus-visible .tcard__media img { transform: scale(1.06); }
.curve.is-dragging .tcard .tcard__media img { transform: none; }
.tcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; opacity: .7; font-variant-numeric: tabular-nums; }
.tcard__name {
  /* interligne 1,05 : crochets et jambages ne touchent pas la ligne suivante (règle typographique) */
  font-size: calc(var(--h) * 0.14); line-height: 1.05; letter-spacing: -0.045em; font-weight: 500;
  overflow-wrap: anywhere; transition: color .35s ease;
}
.tcard__pieces { font-size: calc(var(--h) * 0.03 + 4px); line-height: 1.35; opacity: .72; }
.tcard__open { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 12px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
.tcard__plus { position: relative; width: 12px; height: 12px; margin-left: auto; transition: transform .5s var(--ease-out); }
.tcard__plus::before, .tcard__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.tcard__plus::after { transform: rotate(90deg); }
/* Survol : la carte grandit, le nom passe en orange */
.tcard__caption { transition: transform .6s var(--ease-out); }
.tcard:hover .tcard__btn, .tcard__btn:focus-visible { transform: scale(1.045); }
.tcard:hover .tcard__caption { transform: translateY(5px); }
.tcard:hover .tcard__name, .tcard__btn:focus-visible .tcard__name { color: var(--rouge); }
.tcard:hover .tcard__plus { transform: rotate(90deg); }
/* pendant le glisser, on fige le jeu de survol */
.curve.is-dragging .tcard .tcard__btn,
.curve.is-dragging .tcard .tcard__caption { transform: none; }
.curve.is-dragging .tcard .tcard__name { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .tcard:hover .tcard__btn, .tcard:hover .tcard__caption { transform: none; }
}
.tcard__btn:focus-visible { outline: 2px solid var(--rouge); outline-offset: 4px; }
.tcard__caption { display: flex; flex-direction: column; gap: 4px; padding: 14px 2px 0; }
.tcard__tags { font-size: var(--fs-small); color: var(--ink-soft); }

.travaux__foot { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: clamp(32px, 4vw, 56px); }
.travaux__hint { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--ink-soft); }
.travaux__hint-icon { position: relative; width: 44px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.travaux__hint-icon::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--rouge); animation: hintSlide 2.4s var(--ease-out) infinite; }
@keyframes hintSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.travaux .btn--ghost:hover, .travaux .btn--ghost:focus-visible { color: var(--beige); }

/* ---------- Galerie plein écran ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(26, 11, 12, .97); color: var(--beige);
  opacity: 0; transition: opacity .4s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: clamp(18px, 3vh, 32px); }
.lightbox__count { color: var(--rouge); font-variant-numeric: tabular-nums; }
.lightbox__title { margin-top: 8px; font-size: clamp(1.6rem, 1rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.lightbox__tags { margin-top: 8px; font-size: var(--fs-small); color: rgba(249, 244, 239, .62); }
.lightbox__close { color: var(--beige); }
.lightbox__close .case-close__icon { box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .6); }
.lightbox__close:hover .case-close__icon { background: var(--beige); color: var(--brun); }
.lb-arrow { position: relative; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .45); transition: background-color .3s, box-shadow .3s; }
.lb-arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-top: 1.75px solid var(--beige); border-right: 1.75px solid var(--beige); }
.lb-arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lb-arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.lb-arrow:hover, .lb-arrow:focus-visible { background: var(--rouge); box-shadow: none; }
.lb-arrow:hover::before, .lb-arrow:focus-visible::before { border-color: var(--brun); }

/* ---------- Planche d'un client (ensemble des pièces) ---------- */
.planche { grid-template-rows: auto minmax(0, 1fr); background: var(--brun); }
.planche__actions { display: flex; align-items: center; gap: 10px; }
.planche__actions .lb-arrow { width: 48px; height: 48px; }
.planche__actions .lightbox__close { margin-left: 8px; }
.planche__body { min-height: 0; padding-block: clamp(38px, 6.6vh, 76px) clamp(18px, 3vh, 32px); overflow-y: auto; overscroll-behavior: contain; }
/* le titre de la planche respire : il descend du haut de l'écran et s'éloigne des pièces */
.planche .lightbox__top { padding-top: clamp(30px, 6vh, 68px); }
.planche__set {
  height: 100%; min-height: 460px;
  display: grid; gap: clamp(8px, 1vw, 14px);
  grid-template-columns: 1fr 1.15fr 1.15fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "video site site poster" "video logo post poster";
}
.planche__set.is-in .piece { animation: pieceIn .7s var(--ease-out) both; }
.planche__set.is-in .piece:nth-child(2) { animation-delay: .06s; }
.planche__set.is-in .piece:nth-child(3) { animation-delay: .12s; }
.planche__set.is-in .piece:nth-child(4) { animation-delay: .18s; }
.planche__set.is-in .piece:nth-child(5) { animation-delay: .24s; }
.planche__set.is-in .piece:nth-child(6) { animation-delay: .30s; }
@keyframes pieceIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .planche__set.is-in .piece { animation: none; } }

.piece { position: relative; margin: 0; min-width: 0; min-height: 0; }
.piece--site { grid-area: site; } .piece--video { grid-area: video; } .piece--logo { grid-area: logo; }
.piece--post { grid-area: post; } .piece--poster { grid-area: poster; }
/* Planche « terrain » : deux vidéos verticales qui tiennent toute la hauteur, quatre photos au centre */
.planche__set--terrain {
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  grid-template-rows: minmax(min-content, 0.8fr) 1fr 1fr;
  grid-template-areas: "v1 txt txt v2" "v1 p1 p2 v2" "v1 p3 p4 v2";
}
.piece--v1 { grid-area: v1; } .piece--v2 { grid-area: v2; }
.piece--p1 { grid-area: p1; } .piece--p2 { grid-area: p2; }
.piece--p3 { grid-area: p3; } .piece--p4 { grid-area: p4; }
.piece--photo .piece__plate { padding: 0; background: #1f1314; }
/* Bloc de texte d'une planche : pas de plateau, il respire sur le fond */
.piece--texte {
  grid-area: txt; display: flex; flex-direction: column; gap: .8em; min-width: 0;
  padding: clamp(2px, .5vw, 10px) clamp(10px, 1.3vw, 22px) 0 clamp(2px, .4vw, 8px);
}
.texte__titre { font-size: clamp(.95rem, .5vw + .78rem, 1.2rem); font-weight: var(--fw-titre); line-height: 1.2; color: var(--beige); }
.texte__corps { font-size: clamp(.76rem, .3vw + .68rem, .9rem); line-height: 1.55; color: rgba(249, 244, 239, .58); max-width: 46ch; }
.mock-photo { position: absolute; inset: 0; overflow: hidden; }
.mock-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform .9s var(--ease-out); }
@media (hover: hover) { .piece--photo:hover .mock-photo img { transform: scale(1.04); } }
/* Planche « galerie » : six photos, une large au centre en haut */
.planche__set--galerie {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(min-content, 1fr) 1fr;
  grid-template-areas: "txt large large g1" "g2 g3 g4 g5";
}
.piece--g1 { grid-area: g1; } .piece--g2 { grid-area: g2; } .piece--large { grid-area: large; }
.piece--g3 { grid-area: g3; } .piece--g4 { grid-area: g4; } .piece--g5 { grid-area: g5; }
/* Planche « atelier » : une vidéo verticale sur toute la hauteur, six photos à côté */
.planche__set--atelier {
  grid-template-columns: 1.02fr 1fr 1fr 1.14fr;
  grid-template-rows: minmax(min-content, 0.56fr) 1.22fr 1.22fr;
  grid-template-areas: "va txt txt a1" "va a2 a3 a1" "va a4 a5 a6";
}
.piece--va { grid-area: va; }
.piece--a1 { grid-area: a1; } .piece--a2 { grid-area: a2; } .piece--a3 { grid-area: a3; }
.piece--a4 { grid-area: a4; } .piece--a5 { grid-area: a5; } .piece--a6 { grid-area: a6; }
/* Planche « film » : le film institutionnel occupe le haut, six photos autour */
.planche__set--film {
  grid-template-columns: repeat(12, 1fr); grid-template-rows: 1.6fr 1fr;
  grid-template-areas:
    "film film film film film film film film n1 n1 txt txt"
    "n2 n2 n3 n3 n4 n4 n5 n5 n6 n6 txt txt";
}
.piece--film { grid-area: film; }
.piece--n1 { grid-area: n1; } .piece--n2 { grid-area: n2; } .piece--n3 { grid-area: n3; }
.piece--n4 { grid-area: n4; } .piece--n5 { grid-area: n5; } .piece--n6 { grid-area: n6; }
/* Planche « scène » : une vidéo verticale à gauche, cinq photos dont une en paysage */
.planche__set--scene {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: minmax(min-content, 1fr) 1fr;
  grid-template-areas: "vm vm m3 m3 txt txt" "vm vm m1 m2 m4 m5";
}
.piece--vm { grid-area: vm; }
.piece--m1 { grid-area: m1; } .piece--m2 { grid-area: m2; } .piece--m3 { grid-area: m3; }
.piece--m4 { grid-area: m4; } .piece--m5 { grid-area: m5; }
/* Planche « institution » : un film 16:9 en grand, quatre images du film autour */
.planche__set--institution {
  grid-template-columns: 4.6fr 1fr; grid-template-rows: 0.79fr 0.21fr;
  grid-template-areas: "filmi txt" ". txt";
}
.piece--filmi { grid-area: filmi; }
/* Planche « café » : deux vidéos verticales sur les côtés, six photos au centre */
.planche__set--cafe {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr;
  grid-template-rows: minmax(min-content, 0.75fr) 1fr 1fr;
  grid-template-areas: "cv1 txt txt txt cv2" "cv1 c1 c2 c3 cv2" "cv1 c4 c5 c6 cv2";
}
.piece--cv1 { grid-area: cv1; } .piece--cv2 { grid-area: cv2; }
.piece--c1 { grid-area: c1; } .piece--c2 { grid-area: c2; } .piece--c3 { grid-area: c3; }
.piece--c4 { grid-area: c4; } .piece--c5 { grid-area: c5; } .piece--c6 { grid-area: c6; }
/* le « plateau » : fond coloré, la pièce centrée dedans avec son vrai format */
.piece__plate {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  padding: clamp(14px, 1.6vw, 26px);
  border-radius: 12px; background: #2b1c1d; container-type: size;
}
.piece--site .piece__plate { background: var(--bleu); }
.piece--logo .piece__plate { background: var(--beige); }
.piece--poster .piece__plate { background: var(--bleu); }
.piece__cap {
  position: absolute; left: 14px; top: 12px; z-index: 1; pointer-events: none;
  font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(249, 244, 239, .7);
}
.piece--site .piece__cap, .piece--logo .piece__cap, .piece--poster .piece__cap { color: rgba(26, 11, 12, .62); }

/* Site dans un navigateur */
.mock-browser {
  width: min(100cqw, 100cqh * 1.52); aspect-ratio: 16 / 10.5; display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(26, 11, 12, .45);
}
.mock-browser__bar { flex: none; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #f1ece6; }
.mock-browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(26, 11, 12, .18); }
.mock-browser__url { flex: 1; max-width: 50%; margin: 0 auto; padding: 3px 10px; border-radius: 99px; background: #fff; font-size: .625rem; color: rgba(26, 11, 12, .55); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-browser img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }

/* Vidéo 9:16 dans un téléphone */
.mock-phone {
  position: relative; width: min(100cqw, 100cqh * 0.5625); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 0 0 5px #0d0506, 0 30px 60px -24px rgba(0, 0, 0, .7);
}
.mock-phone video { width: 100%; height: 100%; object-fit: cover; }
.mock-phone__play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: var(--rouge); transition: opacity .3s ease, transform .4s var(--ease-out);
}
.mock-phone__play::before { content: ""; position: absolute; left: 21px; top: 17px; border-left: 16px solid var(--brun); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.mock-phone.is-playing .mock-phone__play { opacity: 0; transform: scale(.7); }
.mock-phone:focus-visible { outline: 2px solid var(--rouge); outline-offset: 8px; }

/* Film 16:9 dans un écran */
.mock-screen {
  position: relative; width: min(100cqw, 100cqh * 1.7778); aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 0 0 4px #0d0506, 0 30px 60px -24px rgba(0, 0, 0, .7);
}
.mock-screen video { width: 100%; height: 100%; object-fit: cover; }
.mock-screen.is-playing .mock-phone__play { opacity: 0; transform: scale(.7); }
.mock-screen:focus-visible { outline: 2px solid var(--rouge); outline-offset: 8px; }

/* Vidéo en plein cadre dans la planche : plus de cadre téléphone ni d'écran, l'image remplit la case */
.piece--plein .piece__plate { padding: 0; background: #000; }
.piece--plein .mock-phone, .piece--plein .mock-screen {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 0; box-shadow: none;
}
.piece--plein .mock-phone video, .piece--plein .mock-screen video { width: 100%; height: 100%; object-fit: cover; }

/* Logo */
.mock-logo { display: inline-flex; align-items: flex-start; gap: .12em; color: var(--brun); font-size: clamp(1.6rem, 14cqw, 4rem); line-height: 1; letter-spacing: -0.05em; }
.mock-logo__mark { font-size: .38em; letter-spacing: 0; color: var(--rouge); padding-top: .1em; }

/* Post réseaux (4:5) */
.mock-post {
  width: min(100cqw, (100cqh - 28px) * 0.8); display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden; background: #fff; color: var(--brun); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .7);
}
.mock-post__head { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; font-size: .625rem; }
.mock-post__head i { width: 14px; height: 14px; border-radius: 50%; background: var(--rouge); }
.mock-post img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* Affiche (format A) */
.mock-poster {
  position: relative; width: min(100cqw, 100cqh * 0.707); aspect-ratio: 1 / 1.414; overflow: hidden;
  border-radius: 3px; background: var(--brun); box-shadow: 0 30px 60px -28px rgba(26, 11, 12, .55);
}
.mock-poster img { width: 100%; height: 100%; object-fit: cover; }
.mock-poster__txt { position: absolute; left: 8%; right: 8%; bottom: 7%; color: var(--beige); font-size: clamp(.9rem, 11cqw, 2.2rem); line-height: .92; letter-spacing: -0.04em; }

/* ---------- Une pièce en grand (depuis une planche) ---------- */
.mock-photo { cursor: pointer; }
.mock-photo:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
/* Mention et loupe : signaler qu'une pièce s'ouvre en grand */
.planche__hint { margin-top: 10px; font-size: var(--fs-small); color: rgba(249, 244, 239, .5); }
.hint-touch { display: none; }
@media (hover: none) { .hint-clic { display: none; } .hint-touch { display: inline; } }
@media (hover: hover) {
  .piece--photo .mock-photo::after {
    content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(26, 11, 12, .5) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23f9f4ef'%20stroke-width='2'%20stroke-linecap='round'%3E%3Ccircle%20cx='10.5'%20cy='10.5'%20r='6.5'/%3E%3Cpath%20d='M15.5%2015.5%2021%2021'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
  }
  .piece--photo:hover .mock-photo::after { opacity: 1; transform: none; }
}
.pzoom {
  position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: rgba(13, 5, 6, .97); color: var(--beige); opacity: 0; transition: opacity .35s ease;
}
.pzoom.is-open { opacity: 1; }
.pzoom[hidden] { display: none; }
.pzoom__bar { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding-top: clamp(18px, 3vh, 32px); }
.pzoom__count { color: var(--rouge); font-variant-numeric: tabular-nums; }
.pzoom__stage {
  min-height: 0; display: grid; place-items: center;
  padding: clamp(16px, 2.4vh, 30px) var(--gutter) clamp(24px, 4vh, 46px);
}
.pzoom__stage img, .pzoom__stage video {
  /* la pièce occupe toute la place disponible, sans jamais être déformée ni rognée */
  width: 100%; object-fit: contain;
  height: calc(100vh - 176px); height: calc(100dvh - 176px);
}
.pzoom__stage video { background: #000; }
@media (max-width: 760px) {
  .pzoom__bar { flex-wrap: wrap; }
  .pzoom .planche__actions { width: 100%; }
  .pzoom .lightbox__close { margin-left: auto; }
  .pzoom__stage img, .pzoom__stage video { height: calc(100vh - 250px); height: calc(100dvh - 250px); }
}

/* Écrans peu hauts / tablettes : 2 lignes plus basses → on laisse défiler */
@media (max-height: 640px) and (min-width: 761px) {
  .planche__set { height: auto; grid-template-rows: 300px 300px; }
}
/* Mobile et tablette en portrait : planche en 2 colonnes qui défile */
@media (max-width: 760px) {
  .planche .lightbox__top { flex-wrap: wrap; }
  .planche__actions { width: 100%; }
  .planche__actions .lightbox__close { margin-left: auto; }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .planche__set {
    height: auto; min-height: 0;
    grid-template-columns: 1fr 1fr; grid-template-rows: 62vw 118vw 62vw;
    grid-template-areas: "site site" "video poster" "logo post";
  }
  .planche__set--terrain {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 84vw 62vw 62vw;
    grid-template-areas: "txt txt" "v1 v2" "p1 p2" "p3 p4";
  }
  .planche__set--galerie {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 58vw 70vw 70vw 105vw;
    grid-template-areas: "txt txt" "large large" "g1 g2" "g3 g4" "g5 g5";
  }
  .planche__set--atelier {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 150vw 70vw 70vw 70vw;
    grid-template-areas: "txt txt" "va va" "a1 a2" "a3 a4" "a5 a6";
  }
  .planche__set--film {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 62vw 70vw 70vw 70vw;
    grid-template-areas: "txt txt" "film film" "n1 n2" "n3 n4" "n5 n6";
  }
  .planche__set--scene {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 112vw 70vw 50vw 70vw;
    grid-template-areas: "txt txt" "vm vm" "m1 m2" "m3 m3" "m4 m5";
  }
  .planche__set--institution {
    grid-template-columns: 1fr; grid-template-rows: 56vw auto;
    grid-template-areas: "filmi" "txt";
  }
  .planche__set--cafe {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 84vw 70vw 70vw 70vw;
    grid-template-areas: "txt txt" "cv1 cv2" "c1 c2" "c3 c4" "c5 c6";
  }
}
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .tcard { --h: clamp(220px, 34vh, 280px); }
}

/* ---------- Curseur personnalisé : le symbole orange ---------- */
html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on input:not([type="checkbox"]), html.cursor-on textarea { cursor: text !important; }
html.cursor-on select, html.cursor-on input[type="checkbox"] { cursor: pointer !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .25s ease; will-change: transform; }
.cursor.is-visible { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor__spin { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: cursorSpin 9s linear infinite; }
@keyframes cursorSpin { to { transform: rotate(360deg); } }
.cursor__star {
  position: absolute; left: -11px; top: -13px; width: 22px; height: 26px;
  background: var(--rouge);
  -webkit-mask: url("../img/brand/curseur.webp") center / contain no-repeat;
          mask: url("../img/brand/curseur.webp") center / contain no-repeat;
  transform: scale(var(--cs, 1)); transition: transform .35s var(--ease-out), background-color .25s ease;
}
.cursor.is-link { --cs: 1.8; }
.cursor.is-down { --cs: .75; }
.cursor.is-link.is-down { --cs: 1.4; }
.cursor.on-orange .cursor__star { background: var(--brun); }
.cursor__label {
  position: absolute; left: 22px; top: 12px; white-space: nowrap;
  padding: 7px 11px; border-radius: var(--radius-pill); background: var(--brun); color: var(--beige);
  font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; line-height: 1;
  opacity: 0; transform: scale(.7); transform-origin: 0 0; transition: opacity .25s ease, transform .35s var(--ease-out);
}
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.has-label { --cs: 1.5; }

/* ==========================================================================
   4. PORTFOLIO · cartes plein cadre empilées au scroll
   ========================================================================== */
.work .section__title { max-width: 22ch; }
.work__list { position: relative; }
.work__list, .work__footer, .work .section__head { max-width: min(1160px, 100%); margin-inline: auto; }
.work-card {
  position: sticky;
  top: calc(var(--header-h) + clamp(28px, 5vh, 56px) + var(--i, 0) * 14px);
  /* même hauteur ouverte ou fermée : la page ne bouge pas quand on ouvre l'étude de cas */
  height: min(calc(100svh - var(--header-h) - 104px), 780px);
  min-height: 420px;
  margin-bottom: clamp(40px, 9vh, 96px);
}
.work-card:last-child { margin-bottom: 0; }
/* Ordinateur : les cartes s'empilent dans une scène épinglée courte (100vh de défilement au total : réglable avec --stack ; plus grand = défilement plus doux).
   Les cartes partagent la même case de grille ; le JS les fait monter l'une sur l'autre selon le défilement. */
@media (min-width: 1101px) {
  .work__list.is-stage {
    display: grid; grid-template-areas: "stack";
    height: calc(max(min(100svh - var(--header-h) - 104px, 780px), 420px) + var(--stack, 100vh));  /* 50vh par carte qui se pose (3 cartes) */
  }
  .work__list.is-stage .work-card { grid-area: stack; align-self: start; margin-bottom: 0; will-change: transform; }
  .work__list.is-settling .work-card { transition: transform .7s var(--ease-out); }
}
.work-card__inner {
  position: relative; height: 100%; overflow: hidden; border-radius: 14px;
  background: #2a1a1b;
  box-shadow: 0 -24px 60px rgba(10, 4, 5, 0.45);
}
.work-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* l'image reste fixe : pas de zoom au survol ni au clic */
}
.work-card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(26, 11, 12, .45) 0%, rgba(26, 11, 12, 0) 26%, rgba(26, 11, 12, 0) 48%, rgba(26, 11, 12, .85) 100%);
  color: var(--beige);
}
.work-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.work-card__tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.work-card__tags li {
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: var(--radius-pill);
  background: rgba(26, 11, 12, .35); box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.work-card__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 32px; row-gap: 14px; align-items: end;
}
.work-card__title { grid-column: 1; font-size: clamp(2rem, 1rem + 3.6vw, 4.75rem); line-height: .95; letter-spacing: -0.045em; font-weight: 500; }
.work-card__title .ink-soft { color: rgba(249, 244, 239, .6); }
.work-card__result { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.work-card__value { font-size: clamp(2.5rem, 1.2rem + 4vw, 5.5rem); line-height: .9; letter-spacing: -0.05em; color: var(--beige); font-variant-numeric: tabular-nums; }
.work-card__value sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; letter-spacing: 0; }
.work-card__label { font-size: var(--fs-small); color: rgba(249, 244, 239, .72); max-width: 22ch; }
.work-card__cta { grid-column: 1; justify-self: start; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }

/* Bouton « Voir l'étude de cas complète » : pastille bien visible, icône + qui pivote */
.case-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 22px 6px 6px; border-radius: var(--radius-pill);
  background: var(--beige); color: var(--brun);
  font-size: 1rem; letter-spacing: -0.005em; line-height: 1;
  box-shadow: 0 10px 30px -12px rgba(10, 4, 5, .55);
  transition: background-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.case-btn__icon {
  position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--rouge); transition: transform .6s var(--ease-out), background-color .45s var(--ease-out);
}
.case-btn__icon::before, .case-btn__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; background: var(--brun);
  transform: translate(-50%, -50%);
}
.case-btn__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.case-btn__icon::before { animation: none; }
/* anneau qui pulse doucement pour signaler que c'est cliquable */
.case-btn__icon { box-shadow: 0 0 0 0 rgba(231, 58, 45, .55); animation: caseRing 2.6s ease-out infinite; }
@keyframes caseRing { 0% { box-shadow: 0 0 0 0 rgba(231, 58, 45, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(231, 58, 45, 0); } }
.case-btn:hover, .case-btn:focus-visible { background: var(--rouge); transform: translateY(-2px); }
.case-btn:hover .case-btn__icon, .case-btn:focus-visible .case-btn__icon { background: var(--beige); transform: rotate(90deg); animation: none; }
.case-btn__icon--arrow::before { width: 13px; transform: translate(-55%, -50%); }
.case-btn__icon--arrow::after { width: 8px; height: 8px; background: none; border-top: 1.75px solid var(--brun); border-right: 1.75px solid var(--brun); transform: translate(-30%, -50%) rotate(45deg); }
.case-btn--link:hover .case-btn__icon { transform: translateX(3px); }
.case-btn__hint { font-size: var(--fs-small); color: rgba(249, 244, 239, .72); }

/* Panneau d'étude de cas : se remplit en cercle depuis le bouton */
.work-case {
  --cs: 1;                                  /* facteur d'ajustement : voir « tenir dans la carte » dans main.js */
  position: absolute; inset: 0; z-index: 3;
  --ink: var(--brun); --ink-soft: rgba(26, 11, 12, .72); --ink-faint: rgba(26, 11, 12, .5); --line: rgba(26, 11, 12, .18);
  color: var(--ink); background: var(--bleu);
  clip-path: circle(0px at var(--cx, 50%) var(--cy, 90%));
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1);
}
.work-case.is-open { clip-path: circle(var(--r, 150%) at var(--cx, 50%) var(--cy, 90%)); }
.work-case__scroll {
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(clamp(14px, 1.5vh + .6vw, 30px) * var(--cs));
  padding-bottom: calc(clamp(22px, 2.4vh + .8vw, 46px) * var(--cs));   /* la citation ne colle pas au bord bas */
  display: flex; flex-direction: column; gap: calc(clamp(10px, 1.4vh, 18px) * var(--cs));
  opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s var(--ease-out);
}
.work-case.is-open .work-case__scroll { opacity: 1; transform: none; transition-delay: .45s, .45s; }
.work-case__bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex: none; }
.work-case__bar .label { color: var(--ink-soft); }
.case-close { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink); }
.case-close__icon { position: relative; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); transition: background-color .35s, transform .5s var(--ease-out); }
.case-close__icon::before, .case-close__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.case-close__icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
.case-close:hover .case-close__icon, .case-close:focus-visible .case-close__icon { background: var(--brun); color: var(--beige); transform: rotate(90deg); }
.case-close:focus-visible { outline: 2px solid var(--brun); outline-offset: 4px; }
/* étude de cas : bouton Fermer un peu plus petit, les blocs remontent d'autant */
.work-case__bar .case-close { font-size: .75rem; }
.work-case__bar .case-close__icon { width: 34px; height: 34px; }
.work-case__bar .case-close__icon::before, .work-case__bar .case-close__icon::after { width: 12px; }

/* ---------- Composition en bulles (condensée : tout tient dans la carte) ---------- */
.case-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: var(--radius-pill);
  background: var(--beige); font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase;
}
.case-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); flex: none; }

.case-bento {
  flex: 1; min-height: 0;
  display: grid; gap: calc(clamp(8px, .8vw, 12px) * var(--cs));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(min-content, .92fr) minmax(min-content, 1.3fr) minmax(min-content, auto);
}
.tile {
  position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: calc(clamp(12px, .9vh + .5vw, 20px) * var(--cs)); border-radius: 18px; background: var(--beige);
}
.tile__label {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
}
.tile__num {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 9px; border-radius: var(--radius-pill);
  background: var(--rouge); color: var(--brun); font-size: .75rem; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.tile__text { font-size: calc(clamp(.875rem, .5vh + .55rem, 1rem) * var(--cs)); line-height: 1.36; }
/* toutes les cases suivent la même logique que la case rouge :
   le titre en haut, le contenu calé sur le bas */
.tile--intro .tile__lead,
.tile--challenge .tile__text,
.tile--results .tile__text,
.tile--answer .case-answer { margin-top: auto; }
/* un peu d'air entre le numéro de l'étape et son texte */
.tile--challenge .tile__label,
.tile--answer .tile__label,
.tile--results .tile__label {
  flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.1vh, 14px);
  margin-bottom: clamp(4px, .9vh, 10px);
  font-size: calc(clamp(1rem, .55vh + .78rem, 1.3rem) * var(--cs)); font-weight: var(--fw-accent);
  letter-spacing: -0.02em; text-transform: none; color: var(--ink);
}

/* En-tête */
.tile--intro { grid-column: span 8; justify-content: flex-start; }
.tile--intro .case-meta { margin-top: auto; }
.tile__title-xl { font-size: calc(clamp(1.3rem, 2.2vh + .45vw, 2.6rem) * var(--cs)); line-height: 1; letter-spacing: -0.04em; font-weight: var(--fw-accent); outline: none; max-width: 18ch; }
/* en-tête de l'étude : le titre « [Client] · [ce qu'on a fait] » prend toute la largeur (sinon 2 lignes et la case déborde) */
.tile--intro .tile__title-xl { max-width: none; text-wrap: balance; }
.tile__lead { font-size: calc(clamp(.875rem, .7vh + .4rem, 1.15rem) * var(--cs)); line-height: 1.3; color: var(--ink-soft); max-width: 46ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.case-meta li {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--bleu); font-size: .8125rem;
}
.case-meta li span { font-size: .625rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }

/* Résultat phare */
.tile--key { grid-column: span 4; justify-content: flex-start; background: var(--rouge); color: var(--brun); }
.tile--key .tile__label { color: rgba(26, 11, 12, .82); }
.key-figure { margin-top: auto; font-size: calc(clamp(2.4rem, 5.6vh + .6vw, 5rem) * var(--cs)); line-height: .85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.key-figure sup { font-size: .4em; vertical-align: top; position: relative; top: .2em; letter-spacing: 0; margin-left: .04em; }
.key-caption { font-size: calc(.8125rem * var(--cs)); line-height: 1.3; max-width: 26ch; color: rgba(26, 11, 12, .86); }

/* Défi / Réponse / Résultats */
.tile--challenge { grid-column: span 4; }
.tile--answer { grid-column: span 4; }
.tile--results { grid-column: span 4; }
.case-answer { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.case-answer li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: calc(clamp(.8125rem, .42vh + .55rem, .95rem) * var(--cs)); line-height: 1.3;
  padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
.case-answer li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-answer li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); flex: none; transform: translateY(-2px); }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.case-stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--bleu); }
.case-stat__v { font-size: clamp(1.4rem, 2.4vh + .4vw, 2.2rem); line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.case-stat__v sup { font-size: .45em; vertical-align: top; position: relative; top: .15em; letter-spacing: 0; }
.case-stat__l { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--ink-soft); }
.case-stat__l::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); flex: none; }

/* Bandeau final : citation courte + accès à l'étude complète */
.tile--foot {
  grid-column: span 12; flex-direction: row; align-items: center;
  flex-wrap: wrap; gap: 12px 24px; background: var(--brun); color: var(--beige);
}
.case-line { display: flex; align-items: baseline; gap: 10px; margin: 0; min-width: 0; }
.case-line p { font-size: calc(clamp(.875rem, .7vh + .4rem, 1.1rem) * var(--cs)); line-height: 1.28; }
.case-line cite { display: block; margin-top: 4px; font-style: normal; font-size: .75rem; color: rgba(249, 244, 239, .6); }
.quote-mark { font-size: 1.8rem; line-height: 1; color: var(--rouge); }
.tile--foot .btn { flex: none; min-height: 48px; font-size: .9375rem; }
.tile--foot .btn::before { background: var(--beige); }
.tile--foot .btn:hover, .tile--foot .btn:focus-visible { color: var(--brun); }

@media (min-width: 1101px) and (max-height: 900px) {
  .work-case__scroll {
    padding: calc(clamp(14px, 1.6vh + .5vw, 28px) * var(--cs));
    padding-bottom: calc(clamp(20px, 2.6vh + .7vw, 42px) * var(--cs));
    gap: calc(10px * var(--cs));
  }
  .tile { padding: calc(14px * var(--cs)) calc(16px * var(--cs)); gap: calc(8px * var(--cs)); }
  .tile__title-xl { font-size: calc(clamp(1.4rem, 2.2vh + .4vw, 2.2rem) * var(--cs)); }
  .tile__lead { font-size: calc(.9375rem * var(--cs)); }
  .key-caption { font-size: calc(.75rem * var(--cs)); }
  .case-stat { padding: 10px 12px; }
  .tile--foot { padding: calc(12px * var(--cs)) calc(16px * var(--cs)); }
}
@media (max-width: 1100px) {
  .case-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; }
  .tile--intro { grid-column: span 6; }
  .tile--key { grid-column: span 6; }
  .tile--challenge, .tile--answer { grid-column: span 3; }
  .tile--results { grid-column: span 6; }
  .tile--foot { grid-column: span 6; }
}

.btn--dark { --btn-bg: var(--brun); --btn-ink: var(--beige); }
.btn--dark::before, [data-theme="dark"]:not(html):not(body) .btn--dark::before { background: var(--beige); }
.btn--dark:hover, .btn--dark:focus-visible, [data-theme="dark"]:not(html):not(body) .btn--dark:hover { color: var(--brun); }
/* Fenêtre trop basse pour qu'une étude tienne dans la carte (ordinateur portable 1280 x 800 par exemple) :
   la carte s'agrandit comme sur mobile, le texte garde sa taille et c'est la page qui défile. */
@media (min-width: 1101px) and (max-height: 789px) {
  .work-card.is-open { position: relative; top: auto; height: auto; }
  .work-card.is-open .work-card__inner { aspect-ratio: auto; height: auto; }
  .work-card.is-open .work-case { position: relative; }
  .work-card.is-open .work-card__img { height: auto; bottom: auto; aspect-ratio: 16 / 9; }
  .work-card.is-open .work-case__scroll { height: auto; }
}

@media (max-width: 1100px) {
  /* sur petit écran la carte s'agrandit pour tout afficher : c'est la page qui défile, pas le panneau */
  .work-card.is-open { position: relative; top: auto; height: auto; }
  .work-card.is-open .work-card__inner { aspect-ratio: auto; height: auto; }
  /* la carte grandit pour accueillir l'étude : l'image garde son cadrage au lieu de se dilater */
  .work-card.is-open .work-card__img { height: auto; bottom: auto; aspect-ratio: 16 / 9; }
  .work-card.is-open .work-case { position: relative; }
  .work-case__scroll { height: auto; }
  .case-bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile, .tile--intro, .tile--key, .tile--challenge, .tile--answer, .tile--results, .tile--foot { grid-column: 1; }
  .tile { border-radius: 16px; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .tile--foot { flex-direction: column; align-items: flex-start; }
  .tile--foot .btn { width: 100%; justify-content: space-between; }
  .work-case__bar .case-chip { font-size: .625rem; padding: 8px 11px; }
  .case-btn { min-height: 48px; font-size: .9375rem; }
  .case-btn__icon { width: 36px; height: 36px; }
  .case-btn__hint { display: none; }
}
.work__footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .work-card { height: auto; min-height: 0; top: calc(var(--header-h) + 16px + var(--i, 0) * 8px); margin-bottom: 24px; }
  .work-card__inner { aspect-ratio: 4 / 5; height: auto; }
  .work-card__bottom { grid-template-columns: 1fr; }
  .work-card__result { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left; order: -1; }
  .work-card__top { flex-direction: column; align-items: flex-start; }
  .work-card__tags { justify-content: flex-start; }
}

/* ==========================================================================
   5. MÉTHODE · parcours courbe animé au scroll
   ========================================================================== */
.journey { position: relative; }
.journey__sticky { padding-block: clamp(88px, 11vw, 176px); }
.journey__inner { display: flex; flex-direction: column; gap: clamp(36px, 5.5vh, 76px); }
.journey__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.journey__head .section__index { grid-column: 1 / span 3; padding-top: .7em; }
.journey__title {
  grid-column: 1 / span 9; font-size: clamp(1.7rem, 0.9rem + 1.9vw, 3.1rem); line-height: 1.04; letter-spacing: -0.038em; font-weight: 500; max-width: 34ch;
}

.journey__map { position: relative; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.journey__trail { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.journey__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.journey__tip { fill: var(--rouge); transition: opacity .3s; }

.journey__steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px);
  grid-template-rows: minmax(140px, auto) clamp(140px, 21vh, 240px) minmax(140px, auto);
}
.jstep { grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; position: relative; }
.jstep__star {
  grid-row: 2; position: relative; display: block; justify-self: start;
  width: clamp(40px, 3.4vw, 54px); aspect-ratio: 360 / 421;
  transform: scale(var(--s, 1)); transform-origin: 50% 50%;
  transition: transform .7s var(--ease-out);
}
.journey__gap { fill: #000; transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease-out); }
.jstep__star img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.jstep__star img.is-on { visibility: visible; }
/* Inversé le 18/09 : crêtes (étapes 1 et 3) = symbole en haut, texte au-dessus de la vague ;
   creux (étapes 2 et 4) = symbole en bas, texte en dessous. L'étape 1 se lit donc en premier et l'étape 4 se découvre en dernier. */
.jstep:nth-child(odd) .jstep__star { align-self: start; }
.jstep:nth-child(even) .jstep__star { align-self: end; }
.jstep:nth-child(odd) .jstep__body { grid-row: 1; align-self: end; padding-bottom: clamp(32px, 4.5vh, 48px); }
.jstep:nth-child(even) .jstep__body { grid-row: 3; align-self: start; padding-top: clamp(32px, 4.5vh, 48px); }

.jstep__body { display: flex; flex-direction: column; gap: 8px; max-width: 28ch; transition: opacity .6s var(--ease-out); }
.jstep__meta { color: var(--ink-soft); font-size: 0.6875rem; }
.jstep__meta span { color: var(--ink-faint); }
.jstep__title { font-size: clamp(1.1rem, 0.85rem + 0.55vw, 1.5rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
/* Initiale de chaque étape en rouge : D-V-L-P */
.jstep__initial { color: var(--rouge); }
.jstep__text { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.4; }
.jstep__deliverable { font-size: 0.75rem; padding-top: 8px; border-top: 1px solid var(--line); }
.jstep__deliverable .label { color: var(--ink-faint); margin-right: 6px; }

/* États pilotés en JS */
.js .journey.is-live .jstep__body { opacity: .32; }
.js .journey.is-live .jstep.is-done .jstep__body { opacity: .78; }
.js .journey.is-live .jstep.is-current .jstep__body { opacity: 1; }
.jstep.is-current .jstep__star { --s: 1.35; }

/* Épinglage : seulement si l'écran est assez grand pour tout voir d'un coup */
@media (min-width: 901px) and (min-height: 700px) {
  .js .journey.is-live { height: 190vh; }  /* zone épinglée raccourcie (17/09) ; +30vh le 18/09 pour compenser le départ du tracé à l'épinglage */
  .js .journey.is-live .journey__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 8px) 24px; }
  .js .journey.is-live .journey__inner { width: 100%; transform: translateY(calc(-1 * clamp(24px, 6vh, 72px))); }  /* titre un peu plus haut (21/09) */
}

/* Écrans épinglés peu hauts (700–920 px) : vague et espacements resserrés pour que tout tienne sous le menu */
@media (min-width: 901px) and (min-height: 700px) and (max-height: 920px) {
  .js .journey.is-live .journey__inner { gap: 44px; }
  .js .journey.is-live .journey__steps { grid-template-rows: minmax(120px, auto) clamp(96px, 13vh, 130px) minmax(120px, auto); }
  .js .journey.is-live .jstep:nth-child(odd) .jstep__body { padding-bottom: 22px; }
  .js .journey.is-live .jstep:nth-child(even) .jstep__body { padding-top: 22px; }
  .js .journey.is-live .jstep__body { gap: 6px; }
}

/* Fenêtres vraiment basses (700–799 px) : dernier cran de resserrage, sinon l'épinglage est coupé (18/09) */
@media (min-width: 901px) and (min-height: 700px) and (max-height: 799px) {
  .js .journey.is-live .journey__sticky { padding-block: calc(var(--header-h) + 4px) 16px; }
  .js .journey.is-live .journey__inner { gap: 28px; transform: translateY(calc(-1 * clamp(8px, 2.5vh, 24px))); }  /* fenêtres basses : un peu d'air sous le titre, sans le coller au menu (21/09) */
  .js .journey.is-live .journey__title { font-size: clamp(1.5rem, 0.7rem + 1.5vw, 2.4rem); }
  .js .journey.is-live .journey__steps { grid-template-rows: minmax(104px, auto) clamp(72px, 10vh, 104px) minmax(104px, auto); }
  .js .journey.is-live .jstep:nth-child(odd) .jstep__body { padding-bottom: 14px; }
  .js .journey.is-live .jstep:nth-child(even) .jstep__body { padding-top: 14px; }
}

/* Mobile / tablette : serpentin vertical */
@media (max-width: 900px) {
  .journey__head { grid-template-columns: 1fr; row-gap: 18px; }
  .journey__head .section__index, .journey__title { grid-column: 1; padding-top: 0; }
  .journey__steps { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 56px; }
  .jstep { grid-row: auto; grid-template-rows: none; grid-template-columns: 96px 1fr; align-items: start; }
  .jstep__star, .jstep:nth-child(odd) .jstep__star, .jstep:nth-child(even) .jstep__star { grid-row: 1; grid-column: 1; align-self: start; width: 36px; }
  .jstep:nth-child(odd) .jstep__star { margin-left: 2px; }
  .jstep:nth-child(even) .jstep__star { margin-left: 36px; }
  .jstep .jstep__body, .jstep:nth-child(odd) .jstep__body, .jstep:nth-child(even) .jstep__body { grid-row: 1; grid-column: 2; padding: 0; align-self: start; }
  .jstep.is-current .jstep__star { --s: 1.25; }
}

/* ==========================================================================
   7. ILS EN PARLENT · citation en grand + vidéo verticale
   ========================================================================== */
.voices {
  background: var(--brun); color: var(--beige);
  padding-block: clamp(80px, 10vw, 160px);
  --ink: var(--beige); --ink-soft: rgba(249, 244, 239, .66); --ink-faint: rgba(249, 244, 239, .42); --line: rgba(249, 244, 239, .18);
}
.voices__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.voices__main { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); min-width: 0; }
.voices__main .section__index { color: var(--ink-soft); }

.tquote { margin: 0; display: flex; flex-direction: column; gap: clamp(26px, 3.5vh, 40px); }
.tquote__foot { margin-top: auto; }  /* signature calée en bas quand le témoignage est plus court */
.tquote[hidden] { display: none !important; }
.tquote__text {
  position: relative; margin: 0;
  font-size: clamp(1.6rem, .9rem + 2.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em;
  text-wrap: pretty; max-width: 22ch;
}
.tquote__mark { color: var(--rouge); margin-right: .12em; }
.tquote__mark--end { margin-right: 0; margin-left: .12em; }
.tquote__text em { font-style: normal; color: var(--rouge); }
.tquote__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.tquote__id { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); color: var(--ink-soft); margin-right: auto; }
.tquote__id strong { font-weight: 500; font-size: 1rem; color: var(--ink); }
.tquote .avatar-ph { background: rgba(249, 244, 239, .16); }
/* Logo du client qui témoigne : beige, --k = ajustement optique logo par logo */
.tquote__logo { display: grid; place-items: center; height: 44px; }
.tquote__logo img {
  display: block; width: auto; max-width: min(190px, 34vw);
  height: calc(clamp(22px, 2.1vw, 30px) * var(--k, 1));
  opacity: .88;
}
/* le mot rouge et sa suite coulent sur la même ligne de base : un mot long (Stratégie, Rebranding) ne coupe plus la suite mot par mot */
.tquote__result { display: block; font-size: var(--fs-small); line-height: 1.25; color: var(--ink-soft); max-width: 30ch; }
.tquote__result strong { margin-right: 8px; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.04em; color: var(--rouge); font-variant-numeric: tabular-nums; }
/* apparition à chaque changement de témoignage */
.tquote.is-active { animation: voiceIn .7s var(--ease-out) both; }
@keyframes voiceIn { from { opacity: 0; transform: translateY(14px); } }

/* Une seule ligne qui défile de gauche à droite ; le fondu à droite signale qu'il y a d'autres noms */
.tvoices {
  display: flex; gap: 10px; padding: clamp(16px, 2vh, 24px) 4px 4px; border-top: 1px solid var(--line);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
}
.tvoices::-webkit-scrollbar { display: none; }
.tvoices.has-more {
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
          mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.tvoice {
  flex: none; scroll-snap-align: start; white-space: nowrap;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: var(--radius-pill);
  color: var(--ink-soft); text-align: left;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.tvoice .avatar-ph { width: 36px; height: 36px; background: rgba(249, 244, 239, .16); transition: background-color .4s; }
.tvoice__id { display: flex; flex-direction: column; gap: 1px; font-size: .75rem; }
.tvoice__id strong { font-weight: 500; font-size: .875rem; color: var(--ink); transition: color .4s; }
.tvoice:hover { box-shadow: inset 0 0 0 1px var(--line); }
.tvoice.is-active { background: var(--rouge); color: rgba(26, 11, 12, .78); box-shadow: none; }
.tvoice.is-active .avatar-ph { background: rgba(26, 11, 12, .22); }
.tvoice.is-active .tvoice__id strong { color: var(--brun); }
.tvoice:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }

/* Vidéo verticale */
.voices__video { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.voices__video { width: 100%; max-width: min(340px, 100%); margin-inline: auto; }
.video-ph {
  /* largeur donnée explicitement : Safari (iPhone) ramène à 0 un bouton qui n'a qu'une hauteur et un ratio */
  position: relative; display: grid; place-items: center; width: min(100%, calc(min(66vh, 560px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16;
  background: #241516; color: var(--beige); border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8);
}
.video-ph::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .3; mix-blend-mode: screen; }
.video-ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .12); border-radius: inherit; }
.video-ph__play {
  position: relative; width: clamp(48px, 4.2vw, 64px); height: clamp(48px, 4.2vw, 64px); border-radius: 50%;
  display: grid; place-items: center; background: var(--rouge); color: var(--brun);
  transition: transform .5s var(--ease-out);
}
.video-ph__play svg { width: 26%; height: 26%; margin-left: 6%; }
.video-ph:hover .video-ph__play, .video-ph:focus-visible .video-ph__play { transform: scale(1.09); }
.video-ph__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-ph__caption { position: absolute; left: 18px; bottom: 16px; color: rgba(249, 244, 239, .66); text-align: left; line-height: 1.5; }
.video-ph__play, .video-ph__caption { transition: opacity .3s ease, transform .5s var(--ease-out); }
.video-ph.is-playing .video-ph__play, .video-ph.is-playing .video-ph__caption { opacity: 0; pointer-events: none; }
.video-ph__time { position: absolute; right: 18px; top: 16px; color: rgba(249, 244, 239, .66); }
.voices__hint { font-size: var(--fs-small); color: var(--ink-faint); text-align: center; }
.avatar-ph { width: 48px; height: 48px; border-radius: 50%; background: rgba(26, 11, 12, .12); flex: none; }

@media (max-width: 900px) {
  .voices__grid { grid-template-columns: 1fr; gap: 32px; }
  .voices__video { order: -1; max-width: 320px; margin-inline: auto; }
  .tquote__text { max-width: none; }
  .tvoices { gap: 8px; }
  .tvoice { padding: 8px 14px 8px 8px; }
  .tvoice__id span { display: none; }
}

/* ==========================================================================
   8. DIAGNOSTIC DE MARQUE (remplace le guide)
   ========================================================================== */
.diag { padding-top: clamp(80px, 10vw, 150px); }
.diag__card {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px);
  padding: clamp(24px, 3.4vw, 56px); border-radius: 8px;
  background: var(--brun); color: var(--beige);
  --ink: var(--beige); --ink-soft: rgba(249, 244, 239, .66); --ink-faint: rgba(249, 244, 239, .42); --line: rgba(249, 244, 239, .16);
  min-height: clamp(420px, 56vh, 560px);
}

/* Jauge de score */
.diag__side { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.gauge { position: relative; width: min(220px, 70%); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 6; }
.gauge__bg { stroke: rgba(249, 244, 239, .14); }
.gauge__arc {
  stroke: var(--rouge); stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--p, 0));
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.gauge__value { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.gauge__value span { font-size: clamp(2.4rem, 1rem + 3vw, 3.6rem); line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.gauge__value small { font-size: .8125rem; color: var(--ink-soft); }
.gauge__label { color: var(--ink-soft); max-width: 22ch; }

.diag__axes { width: 100%; display: grid; gap: 0; margin-top: auto; }
.diag__axes li {
  display: flex; align-items: center; gap: 10px; padding-block: 11px;
  border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-soft);
}
.diag__axes li:last-child { border-bottom: 1px solid var(--line); }
.diag__axis-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(249, 244, 239, .28); flex: none; transition: background-color .4s; }
.diag__axes li.is-done .diag__axis-dot { background: var(--rouge); }
.diag__axes li.is-done { color: var(--ink); }
.diag__axis-val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Écrans */
.diag__main { position: relative; display: flex; flex-direction: column; min-width: 0; }
.diag__step { display: none; flex-direction: column; gap: clamp(16px, 2vh, 24px); flex: 1; }
.diag__step.is-active { display: flex; animation: voiceIn .55s var(--ease-out) both; }
.diag__kicker { color: var(--ink-soft); }
.diag__title { font-size: clamp(1.9rem, 1rem + 2.8vw, 4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; max-width: 16ch; }
.diag__lead { font-size: clamp(1rem, .95rem + .35vw, 1.25rem); line-height: 1.32; color: var(--ink-soft); max-width: 46ch; }
.diag__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.diag__facts li { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; padding: 8px 13px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); }
.diag__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.diag__note { font-size: var(--fs-small); color: var(--ink-faint); max-width: 48ch; }
.diag__card .btn::before { background: var(--beige); }
.diag__card .btn:hover, .diag__card .btn:focus-visible { color: var(--brun); }
.diag__card .btn--light::before { background: var(--rouge); }

/* Questions */
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-soft); }
.quiz__back { font-size: var(--fs-small); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.quiz__back:hover { color: var(--ink); }
.quiz__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--rouge); transition: width .5s var(--ease-out); }
.quiz__list { flex: 1; display: flex; flex-direction: column; }
.quiz-q { display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 28px); flex: 1; }
.quiz-q[hidden] { display: none; }
.quiz-q__text { font-size: clamp(1.25rem, 1rem + 1.1vw, 2.1rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 24ch; }
.quiz-options { display: grid; gap: 8px; margin-top: auto; }
.quiz-option {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: clamp(12px, 1.6vh, 18px) 18px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.3;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s;
}
.quiz-option__key {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line); font-size: .75rem; color: var(--ink-soft);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.quiz-option:hover, .quiz-option:focus-visible { background: rgba(249, 244, 239, .07); box-shadow: inset 0 0 0 1px rgba(249, 244, 239, .38); }
.quiz-option:hover .quiz-option__key, .quiz-option:focus-visible .quiz-option__key { background: var(--rouge); color: var(--brun); box-shadow: none; }
.quiz-option.is-picked { background: var(--rouge); color: var(--brun); box-shadow: none; }
.quiz-option.is-picked .quiz-option__key { background: var(--brun); color: var(--beige); box-shadow: none; }

/* Résultat */
.diag__verdict { font-size: clamp(1.6rem, 1rem + 2vw, 3rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; outline: none; }
.diag__verdict-text { color: var(--ink-soft); max-width: 46ch; }
.diag__reveal { position: relative; }
.diag__reveal .diag__bars { transition: filter .6s var(--ease-out), opacity .6s var(--ease-out); }
.diag__reveal.is-locked .diag__bars { filter: blur(7px); opacity: .5; pointer-events: none; user-select: none; }
.diag__reveal-note {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  text-align: center; font-size: var(--fs-small); color: var(--ink);
  opacity: 0; transition: opacity .5s ease;
}
.diag__reveal.is-locked .diag__reveal-note { opacity: 1; }
.diag__bars { display: grid; gap: 10px; }
.diag-bar { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; font-size: var(--fs-small); }
.diag-bar__track { height: 6px; border-radius: 3px; background: rgba(249, 244, 239, .14); overflow: hidden; }
.diag-bar__fill { display: block; height: 100%; width: 0; background: var(--rouge); border-radius: 3px; transition: width 1s var(--ease-out); }
.diag-bar__val { text-align: right; font-variant-numeric: tabular-nums; }
.diag__locked { margin-top: auto; padding-top: clamp(14px, 2vh, 22px); border-top: 1px solid var(--line); }
.diag__locked .label { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.diag__lock { width: 14px; height: 14px; border-radius: 3px; background: var(--rouge); flex: none; box-shadow: 0 -4px 0 -1px transparent; position: relative; }
.diag__lock::before { content: ""; position: absolute; left: 3px; right: 3px; top: -5px; height: 6px; border: 1.5px solid var(--rouge); border-bottom: 0; border-radius: 4px 4px 0 0; }
.diag__teaser { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--ink-soft); font-size: var(--fs-small); }
.diag__teaser li { display: flex; align-items: baseline; gap: 8px; }
.diag__teaser li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rouge); }
.diag__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.diag__input {
  flex: 1 1 200px; min-height: 52px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 244, 239, .32); background: transparent; color: var(--beige); font: inherit; font-size: 1rem;
}
.diag__input::placeholder { color: rgba(249, 244, 239, .5); }
.diag__input:focus { outline: none; border-color: var(--beige); }
.diag__form .btn { flex: none; }
.diag__form .diag__note, .diag__form .form-success { flex-basis: 100%; margin-top: 4px; }
.diag__after { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.diag__after .diag__lead { flex-basis: 100%; }

@media (max-width: 900px) {
  .diag__card { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .diag__side { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 16px; }
  .gauge { width: 110px; }
  .gauge__label { flex: 1; min-width: 140px; }
  .diag__axes { margin-top: 0; }
  .diag__title { max-width: none; }
  .diag-bar { grid-template-columns: 96px 1fr 40px; }
  .diag__form .btn { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 20px; }
.faq__head .section__index { padding-top: 0; }
.faq__title { font-size: clamp(1.9rem, 1rem + 2.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; max-width: 14ch; }
.faq__more { color: var(--ink-soft); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: clamp(20px, 2.2vw, 30px);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover span:first-child { color: var(--ink-soft); }
.faq__icon { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s var(--ease-out), box-shadow .4s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brun); color: var(--bleu); box-shadow: none; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 60px clamp(22px, 2.4vw, 32px) 0; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__answer { padding-right: 0; }
}

/* ==========================================================================
   9. CTA FINAL + CONTACT
   ========================================================================== */
.contact { padding-bottom: clamp(64px, 8vw, 120px); }
.contact__head { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(48px, 7vw, 112px); }
.contact__head .availability { color: var(--ink-soft); }
.contact__title { font-size: clamp(2.3rem, 0.3rem + 8.4vw, 10rem); line-height: .9; letter-spacing: -0.055em; font-weight: 500; }
.contact__title > span { display: block; }
.contact__title .star { width: .66em; margin-left: .06em; vertical-align: -0.02em; }
/* Grille : carte agenda (grande) + coordonnées, puis le formulaire replié sur toute la largeur */
.contact__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 72px) clamp(32px, 5vw, 96px); align-items: stretch; }
.contact__write { grid-column: 1 / -1; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 2.4vw, 40px); row-gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); padding-top: 18px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.125rem; color: var(--beige);
  background: transparent; border: 0; border-bottom: 1px solid rgba(249, 244, 239, .3); border-radius: 0;
  padding: 10px 0 12px; transition: border-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23f9f4ef' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field select option { color: var(--brun); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rouge); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; padding-top: 22px; }
.field--check label { padding-top: 0; text-transform: none; letter-spacing: 0; font-size: var(--fs-small); }
.field--check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rouge); flex: none; }
.contact-form__submit { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 28px; }
.contact-form__submit .ink-soft { font-size: var(--fs-small); }

.contact__aside { display: flex; flex-direction: column; justify-content: flex-end; }

/* Carte agenda : le chemin principal, en orange */
.rdv-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4vw, 56px);
  min-height: clamp(320px, 30vw, 440px);
  padding: clamp(28px, 3.6vw, 56px); border-radius: 18px;
  background: var(--rouge); color: var(--brun);
  --ink-soft: rgba(26, 11, 12, 0.86); --ink-faint: rgba(26, 11, 12, 0.66); --line: rgba(26, 11, 12, 0.28);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.7);
}
.rdv-card__body { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); max-width: 40rem; }
.rdv-card .rdv-card__kicker { color: var(--brun); }
.rdv-card__title { font-size: clamp(2rem, 1rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; max-width: 16ch; }
.rdv-card__text { color: var(--ink-soft); font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1875rem); line-height: 1.36; max-width: 46ch; }
.rdv-card__btn { align-self: flex-start; white-space: nowrap; }

.contact__direct { display: grid; gap: 18px; }
.contact__direct div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__direct dt { color: var(--ink-faint); }
.contact__direct dd { overflow-wrap: break-word; min-width: 0; }
.contact__direct a { transition: color var(--dur); }
.contact__direct a:hover, .contact__direct a:focus-visible { color: var(--rouge); }

/* « Vous préférez écrire ? » : formulaire replié */
.write-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.9rem); letter-spacing: -0.03em; text-align: left; color: var(--ink);
  transition: color var(--dur);
}
.write-toggle:hover, .write-toggle:focus-visible { color: var(--rouge); }
.write-toggle:focus-visible { outline: 2px solid var(--rouge); outline-offset: 4px; }
.write-toggle__icon { position: relative; width: 22px; height: 22px; flex: none; }
.write-toggle__icon::before, .write-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform .5s var(--ease-out); }
.write-toggle__icon::after { transform: rotate(90deg); }
.write-toggle[aria-expanded="true"] .write-toggle__icon::after { transform: rotate(0deg); }
.write-toggle[aria-expanded="true"] { border-bottom-color: transparent; }
.write-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.write-panel.is-open { grid-template-rows: 1fr; }
.write-panel__inner { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .35s var(--ease-out); }
.write-panel.is-open .write-panel__inner { opacity: 1; transition-delay: .2s; }
.write-panel .contact-form { padding: 4px 0 28px; border-bottom: 1px solid var(--line); }
.field__opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
/* Sans JS : formulaire visible */
.no-js .write-panel { grid-template-rows: 1fr; }
.no-js .write-panel__inner { opacity: 1; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .rdv-card { min-height: 0; }
}
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__submit .btn { width: 100%; justify-content: space-between; }
  .rdv-card__btn { align-self: stretch; justify-content: space-between; }
}
@media (max-width: 420px) {
  .contact__direct div { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding-top: clamp(56px, 6vw, 96px); border-top: 1px solid rgba(249, 244, 239, .12); }
.site-footer__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 32px; align-items: start; }
.site-footer__col { display: flex; flex-direction: column; gap: 16px; }
.site-footer__col .label { color: var(--ink-faint); }
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer__col .nav__link { font-size: 0.9375rem; overflow-wrap: anywhere; }
.site-footer__up { font-size: var(--fs-small); color: var(--ink-soft); }
.site-footer__up:hover { color: var(--ink); }
/* Logotype de pied de page : plus mesuré sur ordinateur, et révélé de gauche à droite au scroll */
.site-footer__logo {
  display: block; width: 100%; height: auto;
  margin-top: clamp(64px, 9vw, 140px);
  clip-path: inset(0 var(--fl-hidden, 0%) 0 0);
}
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding-block: 28px 32px; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--ink-faint);
}
.site-footer__bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__bottom a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__up { grid-column: 1 / -1; }
}

/* ==========================================================================
   Accessibilité : mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-line > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none !important; }
  .marquee { overflow-x: auto; }
  .case-btn__icon { animation: none !important; }
  .cursor__spin, .travaux__hint-icon::after { animation: none !important; }
  .journey__line { stroke-dasharray: none !important; }
}

/* ==========================================================================
   CALENDRIER DE DÉMONSTRATION (prise de rendez-vous)
   ========================================================================== */
.booking { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(26, 11, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease; }
.booking.is-open { opacity: 1; }
.booking__panel {
  width: min(1080px, 100%); max-height: 96vh; overflow: auto;
  background: var(--brun); color: var(--beige); border-radius: 10px; padding: clamp(20px, 2.6vw, 40px);
  --ink: var(--beige); --ink-soft: rgba(249, 244, 239, .66); --ink-faint: rgba(249, 244, 239, .42); --line: rgba(249, 244, 239, .16);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8);
  transform: translateY(12px) scale(.99); transition: transform .45s var(--ease-out);
}
.booking.is-open .booking__panel { transform: none; }
.booking__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.booking__kicker { color: var(--ink-soft); }
.booking__title { margin-top: 8px; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; outline: none; }
.booking__step { padding-top: clamp(18px, 2.4vh, 28px); }
.booking__step[hidden] { display: none !important; }
.booking__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: start; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__month { font-size: 1.0625rem; letter-spacing: -0.01em; text-transform: capitalize; }
.cal__nav { position: relative; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s; }
.cal__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1.6px solid var(--beige); border-right: 1.6px solid var(--beige); transform: translate(-30%, -50%) rotate(-135deg); }
.cal__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.cal__nav:hover:not(:disabled) { background: var(--rouge); box-shadow: none; }
.cal__nav:hover:not(:disabled)::before { border-color: var(--brun); }
.cal__nav:disabled { opacity: .3; }
.cal__days, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__days span { text-align: center; font-size: .625rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 6px; }
.cal__day {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .3s var(--ease-out), color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.cal__day:hover:not(:disabled) { background: rgba(249, 244, 239, .1); transform: translateY(-1px); }
.cal__day:disabled { color: var(--ink-faint); box-shadow: none; }
.cal__day.is-empty { box-shadow: none; }
.cal__day.is-selected:not(:disabled) { background: var(--rouge); color: var(--brun); box-shadow: none; transform: none; }
.booking__note { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-faint); }
.booking__note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
/* l'agenda prend toute la hauteur libre de l'écran (titre, marges et lien de secours déduits) */
.booking__embed { height: max(480px, min(900px, calc(96vh - 190px))); border-radius: 8px; overflow: hidden; background: var(--beige); }
.booking__embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.slots { display: flex; flex-direction: column; gap: 12px; }
.slots .label { color: var(--ink-soft); }
.slots__list { display: grid; gap: 8px; }
.slots__empty { font-size: var(--fs-small); color: var(--ink-faint); }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font-size: 1rem; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease-out), color .3s, box-shadow .3s;
}
.slot span { font-size: var(--fs-small); color: var(--ink-soft); }
.slot:hover, .slot:focus-visible { background: var(--rouge); color: var(--brun); box-shadow: none; }
.slot:hover span, .slot:focus-visible span { color: rgba(26, 11, 12, .7); }

.booking__recap { font-size: clamp(1.0625rem, 1rem + .5vw, 1.4rem); letter-spacing: -0.02em; margin-bottom: 18px; }
.booking__recap strong { color: var(--rouge); font-weight: 500; }
.booking__form { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); row-gap: 6px; }
.booking__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 22px; }
.booking__panel .btn::before { background: var(--beige); }
.booking__panel .btn:hover, .booking__panel .btn:focus-visible { color: var(--brun); }
.booking__panel .btn--light::before { background: var(--rouge); }
.booking__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.booking__check { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--rouge); }
.booking__check::before { content: ""; position: absolute; left: 15px; top: 13px; width: 12px; height: 20px; border: 2px solid var(--brun); border-top: 0; border-left: 0; transform: rotate(40deg); }
.booking__done .booking__note { max-width: 54ch; }

@media (max-width: 800px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__form { grid-template-columns: 1fr; }
  .booking__panel { max-height: 96vh; }
  .booking__embed { height: calc(96vh - 190px); min-height: 460px; }
}

/* Toute la carte d'étude de cas est cliquable */
.work-card__inner { cursor: pointer; }
.work-card.is-open .work-card__inner { cursor: default; }

/* ==========================================================================
   PAGES LÉGALES · mentions-legales.html · confidentialite.html · cookies.html
   Pages sans JavaScript : l'en-tête est collant avec un fond plein
   (sur la page d'accueil, c'est le script qui pose le fond au défilement).
   ========================================================================== */
.page-legale .site-header { position: sticky; background: var(--bleu); box-shadow: 0 1px 0 var(--line); }

.legal { padding-block: clamp(40px, 7vh, 88px) clamp(56px, 9vh, 112px); }
.legal__inner { max-width: 74ch; }
.legal__kicker { color: var(--ink-faint); }
.legal__title {
  /* interligne 1,06 : jambages et accents ne touchent pas la ligne suivante (règle typographique) */
  font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.2rem); line-height: 1.06; letter-spacing: -0.045em;
  font-weight: 500; margin: 14px 0 0; text-wrap: balance;
}
.legal__lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.38; color: var(--ink-soft); max-width: 54ch; margin-top: 18px; }
.legal__date { font-size: var(--fs-small); color: var(--ink-faint); margin: 22px 0 0; padding-bottom: clamp(24px, 4vh, 40px); border-bottom: 1px solid var(--line); }

.legal h2 { font-size: clamp(1.25rem, 1rem + 0.85vw, 1.7rem); line-height: 1.16; letter-spacing: -0.03em; font-weight: 500; margin: clamp(40px, 6vh, 64px) 0 0; }
.legal h3 { font-size: 1.0625rem; line-height: 1.25; font-weight: 500; margin: 26px 0 0; }
.legal p { margin: 12px 0 0; line-height: 1.5; color: var(--ink-soft); }
.legal ul { margin: 12px 0 0; padding-left: 1.15em; }
.legal li { margin-top: 6px; line-height: 1.5; color: var(--ink-soft); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color .3s ease; }
.legal a:hover { color: var(--rouge); }

.legal__dl { margin: 16px 0 0; }
.legal__dl > div { display: grid; grid-template-columns: minmax(0, 14em) 1fr; gap: 6px 24px; padding-block: 12px; border-top: 1px solid var(--line); }
.legal__dl dt { margin: 0; font-size: var(--fs-small); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.legal__dl dd { margin: 0; line-height: 1.4; }

.legal__back { margin-top: clamp(48px, 7vh, 80px); padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .legal__dl > div { grid-template-columns: 1fr; gap: 2px; }
}


/* ==========================================================================
   HIÉRARCHIE TYPOGRAPHIQUE (21/09) · Brockmann en trois graisses
   400 Regular  : texte courant, réponses, descriptions
   500 Medium   : titres, menu, boutons, libellés en capitales
   600 SemiBold : chiffres, scores et mots mis en avant
   ========================================================================== */

/* Interface : le Medium garde sa présence aux petites tailles */
.label, .nav__link, .btn, summary, label, .site-footer__up,
.tcard__open, .work-card__cta, .write-toggle, .quiz-option, .quiz__back,
.case-close, .media-toggle, .lightbox__count, .cal__day, .slot {
  font-weight: var(--fw-titre);
}

/* Sur la vidéo du haut de page, le Regular devient trop fragile : on garde le Medium */
.hero--b .lead { font-weight: var(--fw-titre); }

/* Chiffres, scores et mots mis en avant */
.stat__value, .work-card__value, .key-figure, .gauge__value span,
.tquote__result strong, .tquote__id strong, .tvoice__id strong,
.booking__recap strong, .legal strong, .next-ph strong,
.quiz-option__key, .diag__axes b, .tquote__text em {
  font-weight: var(--fw-accent);
}

/* ==========================================================================
   TÉMOIGNAGES : les avis tournent tout seuls (toutes tailles d'écran)
   La barre au bas du nom actif montre le temps avant l'avis suivant ;
   à sa fin, le JS passe au nom suivant. En pause au survol et pendant la vidéo.
   ========================================================================== */
.tvoice { position: relative; overflow: hidden; }
.voices.is-auto .tvoice.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(26, 11, 12, .38); transform-origin: left; transform: scaleX(0);
  animation: tvAuto 7s linear forwards;
}
.voices.is-auto.is-paused .tvoice.is-active::after,
.voices.is-auto:has(.video-ph.is-playing) .tvoice.is-active::after { animation-play-state: paused; }
@keyframes tvAuto { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .voices.is-auto .tvoice.is-active::after { animation: none; } }

/* ==========================================================================
   OPTIMISATION TÉLÉPHONE (28/10) : moins de vide, l'essentiel dans l'écran
   ========================================================================== */
@media (max-width: 640px) {
  .section { padding-block: 56px; }

  /* Témoignages : vidéo, avis et noms tiennent dans un seul écran */
  .voices { padding-block: 44px; }
  .voices__grid { gap: 20px; }
  .voices__main { gap: 18px; }
  .video-ph { width: min(100%, calc(clamp(240px, 42svh, 380px) * 9 / 16)); }
  .tquote { gap: 14px; }
  .tquote__text { font-size: 1.45rem; line-height: 1.14; }
  .tquote .avatar-ph, .tvoice .avatar-ph { display: none; }   /* ronds vides en attendant les photos */
  .tquote__foot { gap: 6px 16px; }
  .tvoice { padding: 12px 16px; }   /* 44 px de haut : confortable sous le doigt */
  .tvoices { padding-top: 14px; }

  .travaux { padding-block: 56px 48px; }

  /* Diagnostic : la question et le bouton d'abord, la jauge ensuite */
  .diag__main { order: -1; }

  /* « Tout commence chez vous » : plus d'épinglage sur téléphone, le bloc prend la hauteur de son texte.
     Les mots s'allument toujours au défilement (le calcul du JS reste valable sans épinglage). */
  .statement { height: auto; }
  .statement__sticky { position: relative; height: auto; padding-block: 64px 24px; }

  /* Zones de toucher agrandies sans changer le dessin : bouton Rendez-vous (36 px) et lien Diagnostic du titre */
  .rdv-quick::before { content: ""; position: absolute; inset: -4px -2px; }
  .section__title .link-inline { position: relative; }
  .section__title .link-inline::before { content: ""; position: absolute; inset: -6px -4px; }

  /* Email et téléphone : zone de toucher d'au moins 40 px de haut */
  .contact__direct a { display: inline-block; padding-block: 10px; margin-block: -10px; }
}
