/* =========================================================
   COMMUNIK8 — feuille de style
   Système visuel « Riverside » : toile blanche, texte quasi noir,
   bandes sombres en alternance et un seul accent bleu (celui du badge certifié).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --accent: #42a5f5;
  --accent-hover: #64b5f6;
  --accent-50: #e3f2fd;
  --accent-100: #d3e9fc;
  --accent-200: #90caf9;
  --carbon: #1d1d1d;
  --white: #ffffff;
  --fog: #f6f6f6;
  --graphite: #383838;
  --ash: #d2d2d2;
  --silver: #b4b4b4;
  --smoke: #969696;
  --midnight: #111111;
  --onyx: #000000;
  --error: #ffb4b4;

  /* Texte et filets sur fond sombre */
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.56);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Typographie */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-label: 'IBM Plex Sans', var(--font);
  --track: -0.006em;
  --track-tight: -0.022em;

  /* Mise en page */
  --container: 1200px;
  --gutter: 16px;
  --nav-h: 64px;
  --section-y: clamp(80px, 10vw, 128px);

  /* Formes */
  --r-img: 4px;
  --r-card: 8px;
  --r-link: 20px;
  --r-hero: 60px;
  --r-pill: 300px;
  --shadow-md: rgba(0, 0, 0, 0.25) 0 4px 15px 0;

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

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
html.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--track);
  font-optical-sizing: auto;
  color: var(--carbon);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--accent-100); color: var(--carbon); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--white); color: var(--carbon); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* Icônes à trait fin */
.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--dark { background: var(--midnight); color: var(--on-dark); }

/* Grilles à une colonne : un contenu large ne doit jamais élargir la page */
.head--split, .services__grid, .reviews__grid, .plans, .extras, .faq, .contact__grid, .form, .form__row,
.booking__pick, .booking__side, .booking__you, .showcase__grid, .footer__grid, .legal__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Typographie ---------- */
.t-display-xl {
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: var(--track-tight);
}
.t-display {
  font-weight: 800;
  font-size: clamp(34px, 4.7vw, 56px);
  line-height: 1.08;
  letter-spacing: var(--track-tight);
}
.t-heading-lg {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.17;
  letter-spacing: var(--track-tight);
}
.lead {
  font-size: 18px;
  line-height: 1.44;
  color: var(--graphite);
  max-width: 46ch;
}
.lead--dark { color: var(--on-dark-2); }

/* Masque des lignes animées (SplitText) : marge pour accents et jambages */
.split-line-mask { padding-block: 0.1em; margin-block: -0.1em; }

/* ---------- Pastilles (tags) ---------- */
.tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-50);
  color: var(--carbon);
  font-size: 14px; font-weight: 500; line-height: 1.57;
  white-space: nowrap;
}
.tag--dark, .eyebrow--dark {
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.tag--sm { padding: 3px 10px; font-size: 12px; line-height: 1.5; }
.eyebrow { margin-bottom: 20px; }

.dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.22);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); }
.motion .dot { animation: pulse 2.4s ease-in-out infinite; }
.motion .rec-dot { animation: blink 1.4s steps(1, end) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(66, 165, 245, 0); } }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- Boutons ---------- */
/* Texte en gras, relief léger, remplissage qui monte au survol, lettres qui roulent (JS),
   reflet qui traverse le bouton bleu, onde au clic et léger effet aimant à la souris (JS). */
.btn {
  --fill: rgba(255, 255, 255, 0.16);
  --lift: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 16px; font-weight: 650; line-height: 1.5;
  letter-spacing: -0.012em;
  white-space: nowrap;
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px + var(--lift));
  transition: background-color 0.3s, color 0.35s, border-color 0.3s, box-shadow 0.5s var(--ease), scale 0.35s var(--ease), --lift 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--fill);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease);
  pointer-events: none;
}
.btn .i { width: 17px; height: 17px; stroke-width: 1.9; transition: transform 0.5s var(--ease); }
.btn:active { scale: 0.96; transition-duration: 0.3s, 0.35s, 0.3s, 0.5s, 0.12s, 0.5s; }
@media (hover: hover) {
  .btn:hover, .feature:hover .btn { --lift: -2px; }
  .btn:hover::before, .feature:hover .btn::before { transform: none; border-radius: 0; }
  .btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
}

/* Lettres qui roulent : chaque lettre monte et laisse place à sa copie (ombre portée) */
.btn-roll { display: inline-block; }
.btn-roll__w { display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; }
.btn-roll__c {
  display: inline-block;
  text-shadow: 0 1.5em currentColor;
  transition: transform 0.6s var(--ease) var(--d, 0ms);
}
@media (hover: hover) {
  .btn:hover .btn-roll__c, .feature:hover .btn .btn-roll__c { transform: translateY(-1.5em); }
}
.btn:focus-visible .btn-roll__c { transform: translateY(-1.5em); }

/* Icônes : la flèche repart, l'agenda sonne */
@media (hover: hover) {
  .motion .btn:hover .i--go, .motion .feature:hover .btn .i--go { animation: btn-go 0.7s var(--ease); }
  .motion .btn:hover .i--cal { animation: btn-ring 0.8s ease; }
}
@keyframes btn-go {
  0% { transform: translateX(0); opacity: 1; }
  38% { transform: translateX(130%); opacity: 0; }
  39% { transform: translateX(-130%); opacity: 0; }
  100% { transform: translateX(3px); opacity: 1; }
}
@keyframes btn-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(5deg); }
  75% { transform: rotate(-2deg); }
}

/* Onde au clic (créée en JS) */
.btn__ripple {
  position: absolute; z-index: -1; border-radius: 50%;
  background: currentColor; opacity: 0;
  pointer-events: none;
}

.btn--accent {
  --fill: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #62b6f8 0%, var(--accent) 48%, #2e95ec 100%);
  color: var(--midnight);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 10px 26px -12px rgba(66, 165, 245, 0.95);
}
/* Reflet qui traverse le bouton bleu (au survol, et une fois à son apparition) */
.btn--accent::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; z-index: -1;
  width: 42%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.6) 50%, transparent 85%);
  transform: translateX(-130%) skewX(-16deg);
  pointer-events: none;
}
.motion .btn--accent.is-shine::after { animation: btn-shine 1.1s var(--ease); }
@media (hover: hover) {
  .btn--accent:hover, .feature:hover .btn--accent {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 16px 34px -12px rgba(66, 165, 245, 1);
  }
  .motion .btn--accent:hover::after, .motion .feature:hover .btn--accent::after { animation: btn-shine 1s var(--ease); }
}
@keyframes btn-shine {
  from { transform: translateX(-130%) skewX(-16deg); }
  to { transform: translateX(300%) skewX(-16deg); }
}
.section--dark .btn--accent, .opening .btn--accent, .post-cta .btn--accent {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 10px 32px -10px rgba(66, 165, 245, 0.75);
}

.btn--white {
  --fill: var(--accent-50);
  background: var(--white); color: var(--carbon);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 8px 22px -12px rgba(0, 0, 0, 0.5);
}
.btn--ghost-light {
  --fill: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (hover: hover) { .btn--ghost-light:hover { border-color: rgba(255, 255, 255, 0.7); } }
.btn--outline {
  --fill: var(--carbon);
  border: 1.5px solid var(--carbon); color: var(--carbon);
}
@media (hover: hover) { .btn--outline:hover { color: var(--white); } }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn[disabled]::before { display: none; }
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
  .eyebrow { white-space: normal; }
}
@media (max-width: 359px) {
  .hero__cta .btn { padding-inline: 18px; font-size: 15px; }
  .hero__cta .btn .i { display: none; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.link-arrow .i { width: 14px; height: 14px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.logo__badge { width: 28px; height: 28px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  color: var(--on-dark);
  background: rgba(17, 17, 17, 0.76);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.55s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__links { display: none; gap: 2px; margin-inline: auto; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px; font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px;
  background: var(--white); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__cta { gap: 8px; }
.nav__cta .i { width: 16px; height: 16px; }
.nav__cta-short { display: none; }
@media (max-width: 479px) {
  .logo { gap: 8px; font-size: 16px; }
  .logo__badge { width: 24px; height: 24px; }
  .nav__cta { padding-inline: 14px; }
  .nav__cta .i, .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
}
@media (max-width: 339px) { .nav__cta { display: none; } }
.nav__toggle {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px; border-radius: 2px; background: var(--white);
  transition: transform 0.4s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav__progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__end { margin-left: 0; }
  .nav__toggle { display: none; }
}

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--midnight); color: var(--on-dark);
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
.menu__links a {
  display: block;
  padding: 4px 0;
  font-size: clamp(36px, 11vw, 56px); font-weight: 800; line-height: 1.15;
  letter-spacing: var(--track-tight);
  transform: translateY(16px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.16s; }
.menu__foot { display: grid; gap: 8px; color: var(--on-dark-2); font-weight: 500; }
.menu__cta { justify-self: start; margin-bottom: 16px; white-space: normal; text-align: left; }
.menu__cta .i { width: 18px; height: 18px; }

/* ---------- En-têtes de section ---------- */
.head { margin-bottom: clamp(40px, 6vw, 72px); }
.head--split { display: grid; gap: 20px 48px; align-items: end; }
.head--center { text-align: center; max-width: 820px; margin-inline: auto; }
.head--center .lead { margin: 20px auto 0; }
@media (min-width: 900px) {
  .head--split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .head--split > .lead, .head--split > .reviews__score { justify-self: end; }
}

/* =========================================================
   OUVERTURE : hero + film
   ========================================================= */
.opening { position: relative; background: var(--midnight); color: var(--on-dark); }

.hero {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + clamp(36px, 8vh, 96px));
}
.hero__title { margin-top: 4px; }
.hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px;
  margin-top: 28px;
}
.hero__lead { max-width: 44ch; font-size: 18px; line-height: 1.44; color: var(--on-dark-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tags { display: none; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
@media (min-width: 600px) { .hero__tags { display: flex; } }
@media (max-width: 599px) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* Film : une carte qui s'agrandit jusqu'au plein écran.
   Les variables --ix / --iy / --r (marges et arrondi du cadre) sont pilotées en JS. */
.reel {
  --cw: min(var(--container), calc(100vw - 2 * var(--gutter)));
  --ch: min(calc(var(--cw) * 9 / 16), 70vh);
  position: relative; z-index: 1;
  height: 260vh;
  margin-top: calc(48px - (100vh - var(--ch)) / 2);
}
.reel__sticky {
  --ix: calc((100vw - var(--cw)) / 2);
  --iy: calc((100vh - var(--ch)) / 2);
  --r: var(--r-hero);
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.reel__frame {
  position: absolute; inset: 0;
  background: var(--onyx);
  clip-path: inset(var(--iy) var(--ix) round var(--r));
}
.reel__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; z-index: 0;
  transition: opacity 0.6s ease;
}
.reel__video.is-on { opacity: 1; }
.reel__video.is-top { z-index: 1; }
.reel__shade { position: absolute; inset: 0; z-index: 2; background: var(--onyx); opacity: 0.08; }
.reel__words {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: min(17ch, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 800;
  font-size: clamp(30px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: var(--track-tight);
  color: var(--white);
  pointer-events: none;
}
.motion .reel__words { visibility: hidden; }
.reel__ui {
  position: absolute; z-index: 4;
  left: calc(var(--ix) + 20px); right: calc(var(--ix) + 20px); bottom: calc(var(--iy) + 20px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.reel__ui > * { pointer-events: auto; }
.reel__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.reel__film {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px 0 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--white);
  transition: background-color 0.25s;
}
.reel__film .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
@media (hover: hover) { .reel__film:hover { background: rgba(17, 17, 17, 0.75); } }
.reel__caption, .reel__toggle, .reel__film {
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.reel__caption {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel__toggle {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
}
.reel__toggle .i { width: 16px; height: 16px; }
.reel__toggle .i--play { display: none; fill: currentColor; }
.reel.is-paused .reel__toggle .i--play { display: block; }
.reel.is-paused .reel__toggle .i--pause { display: none; }
@media (max-width: 599px) {
  .reel { --ch: calc(var(--cw) * 9 / 16); margin-top: calc(32px - (100vh - var(--ch)) / 2); }
  .reel__sticky { --r: 20px; height: 100svh; }
  .reel__caption { font-size: 12px; padding: 6px 12px; }
  .reel__by { display: none; }
  .reel__film { height: 40px; padding: 0 14px 0 12px; font-size: 13px; }
  .reel__toggle { width: 40px; height: 40px; }
}

/* Sans animation : le film devient une carte fixe suivie du manifeste */
html:not(.motion) .reel { height: auto; margin-top: 48px; padding-bottom: var(--section-y); }
html:not(.motion) .reel__sticky { position: relative; height: auto; overflow: visible; --ix: 0px; --iy: 0px; }
html:not(.motion) .reel__frame {
  position: relative;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  clip-path: none;
  border-radius: var(--r-hero);
  overflow: hidden;
}
html:not(.motion) .reel__ui {
  left: calc((100% - min(var(--container), calc(100% - 2 * var(--gutter)))) / 2 + 16px);
  right: calc((100% - min(var(--container), calc(100% - 2 * var(--gutter)))) / 2 + 16px);
  top: 16px; bottom: auto;
}
html:not(.motion) .reel__words {
  position: static; transform: none;
  margin: clamp(56px, 8vw, 96px) auto 0;
}
@media (max-width: 599px) { html:not(.motion) .reel__frame { border-radius: 20px; } }

/* =========================================================
   RÉSULTATS
   ========================================================= */
.results {
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--r-hero));
  border-radius: var(--r-hero) var(--r-hero) 0 0;
  background: var(--white);
}
html:not(.motion) .results { margin-top: 0; border-radius: 0; }
@media (max-width: 599px) { .results { margin-top: -24px; border-radius: 24px 24px 0 0; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.stat { padding-top: 20px; border-top: 1px solid var(--ash); }
.stat__num {
  display: block;
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 10px; color: var(--graphite); max-width: 22ch; }
.results__note { margin-top: 32px; font-size: 14px; color: var(--graphite); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =========================================================
   CONFIANCE (logos)
   ========================================================= */
.trust { background: var(--fog); padding-block: 32px; }
.trust__inner { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.trust__label { flex: none; font-size: 14px; font-weight: 500; color: var(--graphite); text-align: center; }
.marquee {
  position: relative; min-width: 0; flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__list { display: flex; flex: none; align-items: center; gap: 72px; padding-right: 72px; }
.marquee__list li { display: flex; align-items: center; height: 56px; }
.marquee img { width: auto; height: var(--h, 40px); opacity: 0.66; transition: opacity 0.3s; }
.marquee li:hover img, .marquee li:hover .wordmark { opacity: 1; }
.wordmark {
  font-weight: 800; font-size: 19px; letter-spacing: 0.16em;
  color: var(--carbon); opacity: 0.66; white-space: nowrap;
  transition: opacity 0.3s;
}
.wordmark--serif {
  display: grid; justify-items: center;
  font-weight: 300; font-size: 18px; letter-spacing: 0.34em; text-transform: uppercase;
}
.wordmark--serif small { font-size: 9px; font-weight: 500; letter-spacing: 0.5em; margin-top: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 768px) {
  .trust__inner { flex-direction: row; align-items: center; gap: 40px; }
  .trust__label { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; gap: 16px 48px; padding: 0; flex: 1; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

/* =========================================================
   SERVICES (bande sombre)
   ========================================================= */
.services__grid { display: grid; border-top: 1px solid var(--line-dark); }
.service {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 20px; align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}
.service__media {
  grid-row: span 2;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--carbon);
}
.service__media img, .service__media video { width: 100%; height: 100%; object-fit: cover; }
.service__media video { position: absolute; inset: 0; }
.service__film { position: absolute; inset: 0; z-index: 1; }
.service__chip { z-index: 2; }

/* Vidéos muettes en boucle : l'image reste visible jusqu'à la première image lue */
.autoloop { opacity: 0; transition: opacity 0.6s ease; }
.autoloop.is-playing { opacity: 1; }
.service__label {
  font-family: var(--font-label);
  font-weight: 600; font-size: 16px; line-height: 1.5;
  letter-spacing: normal;
  color: var(--on-dark);
}
.service__text { font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }

.service__play {
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 17, 17, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.service__play .i { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.service__chip {
  position: absolute; left: 8px; top: 8px;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92); color: var(--carbon);
  font-size: 11px; font-weight: 600;
}
.service__media--brand { background: var(--fog); color: var(--carbon); }
.brandboard {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10%;
}
.brandboard__aa { font-weight: 800; font-size: clamp(28px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.brandboard__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6%; }
.brandboard__swatches i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.brandboard__swatches i:nth-child(1) { background: var(--carbon); }
.brandboard__swatches i:nth-child(2) { background: var(--white); }
.brandboard__swatches i:nth-child(3) { background: var(--accent-200); }
.brandboard__swatches i:nth-child(4) { background: var(--accent); }
.brandboard__meta { font-size: 11px; font-weight: 500; color: var(--graphite); line-height: 1.4; }
.services__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 6vw, 64px); }

@media (max-width: 699px) {
  .service__media--brand .brandboard { padding: 12%; }
  .brandboard__meta { display: none; }
  .brandboard__aa { font-size: 30px; }
  .service__chip { display: none; }
  .service__play { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
}
@media (min-width: 700px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; border-top: 0; }
  .service { display: block; padding: 0; border: 0; }
  .service__label { margin-top: 20px; }
  .service__text { margin-top: 6px; }
}
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .service { padding: 24px 20px 0; border-left: 1px solid var(--line-dark); }
  .service:first-child { border-left: 0; padding-left: 0; }
  .service:last-child { padding-right: 0; }
}

/* =========================================================
   MÉTHODE : la scène suit les étapes
   ========================================================= */
.method__layout { --stage-h: min(calc(100vh - 152px), 760px); position: relative; }
.stage {
  position: sticky;
  top: calc((100vh - var(--stage-h)) / 2 + 24px);
  height: var(--stage-h);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--midnight);
  color: var(--on-dark);
  isolation: isolate;
  container-type: size;
  container-name: stage;
}

/* Barre façon « story » : progression des 4 étapes */
.stage__bar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  padding: 14px 16px 28px;
  background: linear-gradient(rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0));
  pointer-events: none;
}
.stage__segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stage__segs span { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.stage__segs i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.stage[data-active="0"] .stage__segs span:nth-child(-n+1) i,
.stage[data-active="1"] .stage__segs span:nth-child(-n+2) i,
.stage[data-active="2"] .stage__segs span:nth-child(-n+3) i,
.stage[data-active="3"] .stage__segs span:nth-child(-n+4) i { transform: scaleX(1); }
.stage__who { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.stage__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--white);
}
.stage__avatar svg { width: 20px; height: 20px; }
.stage__name { font-weight: 600; }
.stage__step { display: inline-block; height: 1.5em; overflow: hidden; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.stage__step-in { display: block; }
.stage__step b { font-weight: 600; color: var(--white); margin-right: 4px; }
.stage__case {
  margin-left: auto;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
@container stage (max-width: 470px) { .stage__case { display: none; } }

/* Scènes */
.scene { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.stage[data-active="0"] .scene--brief,
.stage[data-active="1"] .scene--shoot,
.stage[data-active="2"] .scene--profile,
.stage[data-active="3"] .scene--profile,
.stage[data-active="3"] .scene--report { visibility: visible; opacity: 1; }

/* 1. Premier échange */
.scene--brief { display: grid; place-items: center; padding: 84px 20px 20px; background: var(--midnight); }
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transform: scale(1.08); }
.brief {
  position: relative;
  width: min(360px, 100%);
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--white); color: var(--carbon);
  box-shadow: var(--shadow-md);
}
.brief__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ash); }
.brief__title { font-weight: 600; font-size: 18px; }
.brief__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fog); font-weight: 500; }
.brief__check {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); border: 1.5px solid var(--accent); color: var(--midnight);
}
.brief__check .i { width: 14px; height: 14px; stroke-width: 2.2; }
.brief__foot { margin-top: 14px; font-size: 13px; color: var(--graphite); }
@container stage (max-height: 520px) {
  .brief { padding: 14px 16px; }
  .brief__head { padding-bottom: 8px; }
  .brief__list li { padding: 7px 0; font-size: 14px; }
  .brief__foot { display: none; }
}

/* 2. Shooting */
.scene--shoot { background: var(--onyx); }
.shoot__blur, .shoot__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shoot__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.6));
}
.reelcard {
  position: absolute; right: 6%; top: max(80px, 18cqh);
  width: clamp(84px, 24cqw, 150px);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--carbon);
  box-shadow: 0 0 0 2px var(--white), var(--shadow-md);
}
.reelcard img { width: 100%; height: 100%; object-fit: cover; }
.reelcard__tag, .roll__label {
  position: absolute; left: 8px; top: 8px;
  padding: 2px 9px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92); color: var(--carbon);
  font-size: 11px; font-weight: 600;
}
.reelcard__play {
  position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 17, 17, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.reelcard__play .i { width: 12px; height: 12px; margin-left: 2px; fill: currentColor; }
.reelcard__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.reelcard__bar i { display: block; height: 100%; background: var(--white); transform: scaleX(0.6); transform-origin: left; }
@container stage (max-height: 360px) {
  .reelcard { width: 64px; top: 72px; }
  .reelcard__play { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .roll__label { display: none; }
}
.roll { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 8px; }
.roll__label { position: static; justify-self: start; font-size: 12px; }
.roll__thumbs { display: flex; gap: 8px; }
.roll__thumbs img {
  width: clamp(50px, 15cqw, 92px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-img);
  box-shadow: 0 0 0 2px var(--white), var(--shadow-md);
}

/* 3. Profil structuré */
.scene--profile { display: grid; place-items: center; padding: 80px 16px 16px; background: var(--midnight); }
.profile { width: min(330px, 84cqw, calc((100cqh - 232px) * 0.75)); }
.profile__head { display: flex; align-items: center; gap: 12px; }
.profile__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 2px var(--midnight), 0 0 0 4px var(--accent-200);
}
.profile__name { font-weight: 600; }
.profile__meta { font-size: 13px; color: var(--on-dark-3); }
.profile__tabs { display: flex; margin-top: 14px; border-bottom: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-3); }
.profile__tabs span { flex: 1; padding: 8px 0; text-align: center; }
.profile__tabs .is-on { color: var(--white); box-shadow: inset 0 -1px 0 var(--white); }
.profile__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2px; }
.profile__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cal {
  position: absolute; right: 14px; bottom: 14px;
  width: min(236px, 64cqw);
  padding: 12px 14px 14px;
  border-radius: var(--r-card);
  background: var(--white); color: var(--carbon);
  box-shadow: var(--shadow-md);
}
.cal__title { font-size: 12px; font-weight: 600; }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 8px; text-align: center; font-size: 11px; font-weight: 500; color: var(--graphite); }
.cal__days i { display: block; width: 7px; height: 7px; margin: 6px auto 0; border-radius: 50%; background: var(--fog); box-shadow: inset 0 0 0 1px var(--ash); }
.cal__days .is-post i { background: var(--accent); box-shadow: none; }
.stage[data-active="3"] .profile, .stage[data-active="3"] .cal { opacity: 0.22; }
@container stage (max-height: 560px) {
  .profile { width: min(300px, 84cqw, calc(100cqh - 196px)); }
  .profile__tabs { display: none; }
  .profile__grid { margin-top: 10px; }
  .profile__grid img { aspect-ratio: 1; }
  .profile__avatar { width: 40px; height: 40px; }
}

/* 4. Rapport */
.scene--report { display: grid; place-items: center; padding: 80px 16px 16px; }
.report {
  width: min(380px, 100%);
  padding: 20px 20px 16px;
  border-radius: var(--r-card);
  background: var(--white); color: var(--carbon);
  box-shadow: var(--shadow-md);
}
.report__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report__title { font-weight: 600; }
.report__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.report__val {
  font-weight: 800; font-size: clamp(32px, 10cqw, 48px); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.report__lbl { margin-top: 6px; font-size: 13px; color: var(--graphite); }
.report__chart { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.report__grid { fill: none; stroke: var(--fog); stroke-width: 1; }
.report__area { fill: url(#chart-fill); }
.report__line { fill: none; stroke: var(--carbon); stroke-width: 2.5; stroke-linecap: round; }
.report__dot { fill: var(--accent); stroke: var(--white); stroke-width: 3; }
.report__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--graphite); }
@container stage (max-height: 520px) {
  .report { padding: 14px 16px 12px; }
  .report__chart { margin-top: 10px; max-height: 26cqh; }
}

/* Étapes (texte) */
.step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px;
}
.motion .step { opacity: 0.25; transition: opacity 0.6s var(--ease); }
.motion .step.is-active { opacity: 1; }
.step__kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--graphite); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent-50); color: var(--carbon);
  font-size: 14px; font-weight: 700;
  transition: background-color 0.4s, color 0.4s;
}
.step.is-active .step__num { background: var(--accent); color: var(--midnight); }
.step__title {
  margin-top: 16px;
  font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08;
  letter-spacing: var(--track-tight);
}
.step__text { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--graphite); max-width: 42ch; }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.step__proof {
  margin-top: 20px; max-width: 44ch;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  background: var(--fog);
  font-size: 15px;
}

.step__link { margin-top: 22px; align-self: flex-start; font-size: 15px; }
.step__link .i { width: 14px; height: 14px; }

/* Ordinateur et tablette à l'horizontale : les étapes à gauche, la scène à droite */
@media (min-width: 960px), (min-width: 720px) and (orientation: landscape) {
  .method__layout {
    --stage-h: clamp(220px, calc(100vh - 152px), 760px);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "steps stage";
    gap: 0 clamp(32px, 5vw, 64px);
  }
  .method__stage-col { grid-area: stage; }
  .method__steps { grid-area: steps; }
}
@media (max-width: 1099px) and (min-width: 720px) and (orientation: landscape) {
  .step__title { font-size: 32px; }
  .step__text { font-size: 16px; }
  .step__tags .tag { font-size: 13px; padding: 4px 12px; }
}
/* Téléphone et tablette à la verticale : la scène reste en haut, la carte de l'étape active se cale juste en dessous */
@media (max-width: 959px) and (orientation: portrait) {
  .method__layout { --stage-h: min(46svh, 440px); --stage-top: calc(var(--nav-h) + 8px); }
  .method__stage-col { display: contents; }
  .stage {
    top: var(--stage-top);
    z-index: 3;
    box-shadow: 0 0 0 var(--gutter) var(--white);
  }
  .stage.is-stuck {
    box-shadow: 0 0 0 var(--gutter) var(--white), 0 calc(-1 * (var(--nav-h) + 8px)) 0 var(--gutter) var(--white);
  }
  .step { display: block; min-height: 64svh; padding: 0; }
  .step__card {
    position: sticky;
    top: calc(var(--stage-top) + var(--stage-h) + 4px);
    padding: 20px 0 24px;
    background: var(--white);
  }
  .step__title { margin-top: 10px; font-size: 30px; }
  .step__text { margin-top: 10px; font-size: 16px; }
  .step__tags { margin-top: 16px; gap: 6px; }
  .step__tags .tag { padding: 4px 12px; font-size: 13px; }
  .step__proof { margin-top: 14px; padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 959px) and (orientation: portrait) and (max-height: 700px) {
  .method__layout { --stage-h: 42svh; }
  .step__tags { display: none; }
}
/* Petit écran tenu à l'horizontale : lecture simple, la scène ne reste pas collée */
@media (max-width: 719px) and (orientation: landscape) {
  .method__layout { --stage-h: min(320px, 80vh); }
  .method__stage-col { display: contents; }
  .stage { position: relative; top: 0; margin-bottom: 8px; }
  .step { min-height: 0; padding-block: 28px; }
}
html:not(.motion) .step { min-height: 0; }
@media (max-width: 959px) and (orientation: portrait) {
  html:not(.motion) .stage { position: relative; top: 0; margin-bottom: 8px; }
  html:not(.motion) .step__card { position: static; }
}

/* =========================================================
   AVANT / APRÈS
   ========================================================= */
.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 80vh;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--onyx);
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Changement d'exemple : la nouvelle paire apparaît par-dessus l'ancienne, sans passer par le noir */
.ba__pair { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0s 0.55s; }
.ba__pair.is-on { z-index: 1; opacity: 1; visibility: visible; transition: opacity 0.55s ease, visibility 0s; }
.ba__pair.is-prev { opacity: 1; visibility: visible; transition: none; }
.ba__label, .ba__handle { z-index: 2; }
.ba-picker {
  display: flex; gap: 8px;
  margin: 0 auto 20px; width: max-content; max-width: 100%;
  padding: 4px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow-x: auto; scrollbar-width: none;
}
.ba-picker::-webkit-scrollbar { display: none; }
.ba-picker__btn {
  flex: none;
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--on-dark-2);
  transition: background-color 0.3s var(--ease), color 0.3s;
}
.ba-picker__btn[aria-pressed="true"] { background: var(--white); color: var(--carbon); }
@media (hover: hover) { .ba-picker__btn[aria-pressed="false"]:hover { color: var(--white); } }
.ba__caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 599px) {
  .ba-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: 100%; }
  .ba-picker__btn { padding: 9px 4px; font-size: 13px; }
  .ba__caption { font-size: 13px; }
}
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 48px; margin-left: -24px;
  display: grid; place-items: center;
  outline-offset: -6px;
}
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: var(--white);
}
.ba__knob {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--carbon);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease);
}
.ba__knob .i { width: 22px; height: 22px; }
.ba.is-dragging .ba__knob, .ba__handle:focus-visible .ba__knob { transform: scale(1.1); }
@media (hover: hover) { .ba:hover .ba__knob { transform: scale(1.06); } }
.ba__label {
  position: absolute; top: 16px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(17, 17, 17, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  pointer-events: none;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }
.compare__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; margin-top: 40px; color: var(--on-dark-2); }
.compare__stats li { display: flex; align-items: baseline; gap: 10px; }
.compare__stats strong { font-weight: 800; font-size: 30px; letter-spacing: var(--track-tight); color: var(--white); }
.compare__stats span { color: var(--on-dark-3); }
@media (max-width: 599px) { .ba { aspect-ratio: 1; } }

/* =========================================================
   RÉALISATIONS
   ========================================================= */
.work { position: relative; background: var(--white); }
.work__sticky { padding-block: var(--section-y); }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.work__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.work__count { font-size: 14px; font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums; }
.work__count-cur { color: var(--carbon); }
.work__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.work__viewport::-webkit-scrollbar { display: none; }
.work__rail {
  display: flex; gap: 16px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}
.case {
  flex: none;
  width: min(82vw, 400px);
  display: flex; flex-direction: column;
  padding: 12px;
  border: 1px solid var(--ash);
  border-radius: var(--r-card);
  background: var(--white);
  scroll-snap-align: center;
}
.case__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-img); overflow: hidden; background: var(--fog); }
.case__media img, .case__media video { width: 100%; height: 100%; object-fit: cover; }
.case__media video { position: absolute; inset: 0; }
.case__type { z-index: 1; }
.case__type {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92); color: var(--carbon);
  font-size: 12px; font-weight: 600;
}
.case__body { flex: 1; display: flex; flex-direction: column; padding: 16px 6px 4px; }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--graphite); }
.case__title { margin-top: 12px; font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: var(--track-tight); }
.case__desc { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.case__link { font-weight: 600; color: var(--carbon); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.case__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 18px; }
.case__stats div { padding-top: 12px; border-top: 1px solid var(--ash); }
.case__stats dt { font-size: 13px; color: var(--graphite); }
.case__stats dd { margin-top: 2px; font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: var(--track-tight); }
.case__stats abbr { text-decoration: none; color: var(--smoke); cursor: help; }
.case--cta {
  justify-content: center; align-items: flex-start; gap: 20px;
  padding: 32px;
  border-color: var(--midnight);
  background: var(--midnight); color: var(--on-dark);
}
.case--cta__kicker { font-weight: 500; color: var(--on-dark-2); }
.case--cta__title { font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: var(--track-tight); }
.work__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; }
.work__note { font-size: 13px; color: var(--graphite); }
.work__progress { position: relative; flex: 1 1 200px; max-width: 360px; height: 2px; border-radius: 2px; background: var(--ash); overflow: hidden; }
.work__progress span { position: absolute; inset: 0; background: var(--carbon); transform: scaleX(0); transform-origin: left; }
@media (min-width: 700px) { .work__aside { align-items: flex-end; } }

/* Version épinglée (grand écran) : le rail défile à l'horizontale pendant le scroll */
.work.is-pinned .work__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--nav-h) + 8px) 24px;
  overflow: hidden;
}
.work.is-pinned .work__head { margin-bottom: 32px; }
.work.is-pinned .work__viewport { overflow: visible; scroll-snap-type: none; }
.work.is-pinned .case { width: clamp(300px, min(30vw, 50vh), 420px); }
.work.is-pinned .case__media img, .work.is-pinned .case__media video { transform: scale(1.16); }

/* =========================================================
   CARROUSEL MISK BEIRUT
   ========================================================= */
.showcase { background: var(--fog); overflow: hidden; }
.showcase__grid { display: grid; gap: 48px; align-items: center; }
.showcase__text .lead { margin-top: 20px; }
.showcase__points { display: grid; gap: 10px; margin-top: 28px; }
.showcase__points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.showcase__points .i { width: 18px; height: 18px; margin-top: 3px; stroke-width: 2; }
.showcase__nav { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.round-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--carbon); color: var(--carbon);
  transition: background-color 0.25s, color 0.25s;
}
.round-btn:hover { background: var(--carbon); color: var(--white); }
.round-btn .i { width: 18px; height: 18px; }
.showcase__count { min-width: 4.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--graphite); }
.showcase__cur { color: var(--carbon); }

.showcase__stage { position: relative; display: grid; place-items: center; padding-block: 16px; }
.showcase__ghost {
  position: absolute; z-index: 1;
  width: min(330px, 78%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  transition: transform 1s var(--ease), opacity 0.6s;
}
.showcase__ghost--1 { transform: translateX(30%) rotate(7deg) scale(0.86); }
.showcase__ghost--2 { transform: translateX(-30%) rotate(-7deg) scale(0.86); }
.motion .showcase__stage:not(.is-in) .showcase__ghost { transform: none; opacity: 0; }
.igpost {
  position: relative; z-index: 2;
  width: min(380px, 100%);
  overflow: hidden;
  border: 1px solid var(--ash);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.igpost__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.igpost__head img { width: 32px; height: 32px; border-radius: 50%; }
.igpost__head p { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.igpost__head strong { font-weight: 600; }
.igpost__head span { font-size: 12px; color: var(--graphite); }
.igpost__viewport {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  outline-offset: -3px;
}
.igpost__viewport.is-dragging { cursor: grabbing; }
.igpost__track { display: flex; height: 100%; transition: transform 0.6s var(--ease); }
.igpost__viewport.is-dragging .igpost__track { transition: none; }
.igpost__slide { flex: 0 0 100%; height: 100%; }
.igpost__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-select: none; user-select: none; }
.igpost__badge {
  position: absolute; top: 10px; right: 10px;
  padding: 2px 9px; border-radius: var(--r-pill);
  background: rgba(17, 17, 17, 0.6); color: var(--white);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.igpost__dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 14px; }
.igpost__dots button { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--ash); transition: background-color 0.3s, transform 0.3s; }
.igpost__dots button::before { content: ""; position: absolute; inset: -8px -3px; }
.igpost__dots button[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
@media (min-width: 900px) {
  .showcase__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* =========================================================
   AVIS
   ========================================================= */
.reviews__score { font-size: 16px; color: var(--on-dark-2); }
.reviews__score strong {
  display: block;
  font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.03em; color: var(--white);
}
.quote-hero blockquote p {
  max-width: 25ch;
  font-weight: 700; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.14;
  letter-spacing: var(--track-tight);
}
.who { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.who img, .who__initial { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.who__initial { display: grid; place-items: center; background: var(--accent-100); color: var(--carbon); font-weight: 700; }
.who > span:last-child { display: flex; flex-direction: column; font-size: 14px; color: var(--on-dark-3); line-height: 1.4; }
.who strong { font-size: 15px; font-weight: 600; color: var(--white); }
.reviews__grid { display: grid; gap: 16px; margin-top: clamp(48px, 7vw, 80px); }
.review {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}
.review blockquote p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.review .who { margin-top: 0; }
@media (min-width: 700px) { .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .reviews__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =========================================================
   TARIFS
   ========================================================= */
.plans { display: grid; gap: 16px; max-width: 520px; margin-inline: auto; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--ash);
  border-radius: var(--r-card);
  background: var(--white);
}
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.plan__badge {
  padding: 3px 12px; border-radius: var(--r-pill);
  background: var(--accent-100); color: var(--carbon);
  font-size: 12px; font-weight: 600;
}
.plan__for { margin-top: 12px; font-size: 15px; color: var(--graphite); }
.plan__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin-top: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--ash);
}
.plan__amount { font-weight: 800; font-size: clamp(44px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.035em; }
.plan__per { font-size: 14px; color: var(--graphite); }
.plan__list { flex: 1; display: grid; align-content: start; gap: 12px; margin: 24px 0 32px; }
.plan__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.plan__list .i { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2; color: var(--carbon); }
.plan--featured { border-color: var(--carbon); background: var(--carbon); color: var(--on-dark); }
.plan--featured .plan__for, .plan--featured .plan__per { color: var(--on-dark-2); }
.plan--featured .plan__price { border-color: var(--line-dark); }
.plan--featured .plan__list .i { color: var(--accent-200); }
.plan__plus { font-weight: 600; }
.pricing__note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--graphite); }

/* Garantie résultat : le badge certifié du logo sert de sceau */
.guarantee {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: start;
  max-width: 520px; margin: 16px auto 0;
  padding: 24px 20px;
  border-radius: var(--r-card);
  background: var(--accent-50);
}
.guarantee__badge { width: 36px; height: 36px; }
.guarantee__title { font-size: 17px; font-weight: 700; letter-spacing: var(--track-tight); line-height: 1.3; }
.guarantee__text { margin-top: 6px; font-size: 15px; color: var(--graphite); }
.guarantee__link {
  grid-column: 2; justify-self: start;
  font-size: 14px; font-weight: 600;
  padding-bottom: 2px; border-bottom: 1px solid currentColor;
}
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .plan__for { min-height: 4.5em; }
  .guarantee {
    grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 28px;
    max-width: none; padding: 28px 32px;
  }
  .guarantee__badge { width: 44px; height: 44px; }
  .guarantee__text { max-width: 78ch; }
  .guarantee__link { grid-column: auto; white-space: nowrap; }
}

.extras, .faq { display: grid; gap: 24px 48px; margin-top: clamp(72px, 10vw, 128px); }
.extras__head p, .faq__head p { margin-top: 8px; font-size: 18px; color: var(--graphite); }
.extra { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--ash); }
.extras__list .extra:last-child { border-bottom: 1px solid var(--ash); }
.extra__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 18px; font-weight: 600; }
.extra__desc { margin-top: 4px; font-size: 15px; color: var(--graphite); }
.extra__price { font-weight: 800; font-size: 24px; letter-spacing: var(--track-tight); white-space: nowrap; }

.faq__item { border-top: 1px solid var(--ash); }
.faq__list .faq__item:last-child { border-bottom: 1px solid var(--ash); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-size: 18px; font-weight: 600; line-height: 1.4;
}
.faq__icon {
  position: relative; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fog);
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px;
  border-radius: 2px; background: var(--carbon);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q:hover .faq__icon { background: var(--accent-50); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--accent-50); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.5s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__a p { max-width: 62ch; padding-bottom: 24px; color: var(--graphite); }
@media (min-width: 900px) {
  .extras, .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* =========================================================
   ACCUEIL : maintenir le badge pour le certifier
   Plein écran à l'arrivée sur le site ; --charge (0 → 1) suit l'appui.
   ========================================================= */
.intro { display: none; }
html.intro-on, html.intro-on body { overflow: hidden; }
html.intro-on .intro {
  position: fixed; inset: 0; z-index: 150;
  display: grid; align-items: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.certify {
  --charge: 0;
  --s: clamp(132px, min(46vw, 27vh), 228px);
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(66, 165, 245, 0.08), transparent 60%),
    var(--midnight);
  color: var(--on-dark);
  -webkit-user-select: none; user-select: none;
}
.intro:focus { outline: none; }
.certify__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Logo en haut à gauche, à la place exacte de celui de la navigation : le badge viendra s'y poser */
.intro__bar { position: absolute; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; }
.intro__slot {
  display: grid; place-items: center;
}
.intro__slot::before {
  content: ""; width: 86%; height: 86%; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
}
.intro__skip {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px; font-weight: 600;
  color: var(--on-dark-2);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.intro__skip .i { width: 14px; height: 14px; stroke-width: 1.9; transition: transform 0.4s var(--ease); }
/* Rappel quand on essaie de défiler pendant l'accueil */
.intro__skip.is-hinted { color: var(--white); border-color: var(--accent); animation: skip-hint 1.6s var(--ease); }
@keyframes skip-hint {
  0% { box-shadow: 0 0 0 0 rgba(66, 165, 245, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(66, 165, 245, 0); }
}
@media (hover: hover) {
  .intro__skip:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
  .intro__skip:hover .i { transform: translateX(3px); }
}

.certify__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-block: calc(var(--nav-h) + 8px) 72px;
}
.certify__eyebrow { margin-bottom: clamp(14px, 2.4vh, 24px); }
.certify__head { display: grid; }
.certify__head > * { grid-area: 1 / 1; }
.certify__title { margin-inline: auto; }
.intro__line { display: block; overflow: hidden; padding-block: 0.08em; margin-block: -0.08em; }
.intro__line > span { display: inline-block; }
.certify__accent { color: var(--accent); }

/* Badge */
.certify__badge-wrap {
  position: relative;
  width: var(--s); height: var(--s);
  margin-block: calc(var(--s) * 0.3) calc(var(--s) * 0.26);
}
.certify__glow {
  position: absolute; inset: -110%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(66, 165, 245, 0.5), rgba(66, 165, 245, 0.12) 42%, transparent 72%);
  opacity: calc(0.22 + var(--charge) * 0.7);
  transform: scale(calc(0.7 + var(--charge) * 0.4));
  pointer-events: none;
}
.certify__wave {
  position: absolute; inset: -2%; border-radius: 50%;
  border: 1px solid rgba(66, 165, 245, 0.6);
  opacity: 0; pointer-events: none;
}
.motion .certify.is-live:not(.is-holding):not(.is-certified) .certify__wave { animation: certify-wave 3.2s var(--ease) 1.6s infinite; }
.motion .certify.is-live:not(.is-holding):not(.is-certified) .certify__wave + .certify__wave { animation-delay: 3.2s; }
@keyframes certify-wave {
  0% { transform: scale(0.94); opacity: 0.75; }
  100% { transform: scale(2); opacity: 0; }
}
.certify__badge {
  position: absolute; inset: 0;
  border-radius: 50%;
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.6s var(--ease);
}
/* Zone de toucher plus large que le badge */
.certify__badge::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; }
/* Interrupteur invisible posé sur le badge (iPhone) : il donne le retour haptique au relâchement */
.certify__haptic {
  position: absolute; z-index: 4;
  left: -22%; top: -22%; width: 144%; height: 144%;
  margin: 0; opacity: 0;
  border-radius: 50%; clip-path: circle(50%);
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.certify__badge:focus-visible { outline-offset: calc(var(--s) * 0.22); border-radius: 50%; }
.certify.is-holding .certify__badge { transition: none; }
.certify.is-certified .certify__badge { cursor: default; }
.certify.is-certified .certify__glow { opacity: 0.6; transform: scale(1.05); }
.certify__svg {
  position: relative;
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5));
}
.certify__shape { fill: url(#certify-shade); stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.5; }
.certify__liquid { fill: url(#certify-blue); }
.certify__check-ghost {
  fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1;
  stroke-dasharray: 1.2 1.4; stroke-linejoin: round;
  transition: opacity 0.4s;
}
.certify__check { fill: none; stroke: var(--white); stroke-width: 3; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; }
.certify.is-certified .certify__check { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.12s; }
.certify:not(.is-certified) .certify__check-ghost { opacity: calc(1 - var(--charge) * 0.6); }
.certify.is-certified .certify__check-ghost { opacity: 0; }

/* Anneau de progression */
.certify__ring {
  position: absolute; left: -20%; top: -20%;
  width: 140%; height: 140%; max-width: none;
  overflow: visible; pointer-events: none;
  transform: rotate(-90deg);
}
.certify__track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1.2; }
.certify__progress {
  fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(66, 165, 245, 0.9));
}
.certify.is-certified .certify__ring { opacity: 0; transform: rotate(-90deg) scale(1.12); transition: opacity 0.7s 0.5s, transform 1s var(--ease) 0.5s; }

/* Consigne sous le badge, puis le message de bienvenue une fois certifié */
.certify__foot { display: grid; justify-items: center; }
.certify__foot > * { grid-area: 1 / 1; }
.certify__hint {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-label); font-weight: 600;
  font-size: 13px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-3);
  transition: opacity 0.4s, transform 0.6s var(--ease), visibility 0s;
}
.certify__hint-b { color: var(--white); font-variant-numeric: tabular-nums; }
.certify.is-holding .certify__hint-a { color: var(--accent); }
.certify__lead { max-width: 34ch; font-size: 17px; line-height: 1.5; color: var(--on-dark-2); }

.certify__title--done,
.certify__after { opacity: 0; visibility: hidden; }
.certify.is-certified .certify__title:not(.certify__title--done),
.certify.is-certified .certify__hint { opacity: 0; visibility: hidden; transition: opacity 0.45s, transform 0.7s var(--ease), filter 0.6s, visibility 0s 0.7s; }
.certify.is-certified .certify__title--done,
.certify.is-certified .certify__after { opacity: 1; visibility: visible; }
.certify.is-certified .certify__title--done { transition: opacity 0.8s var(--ease) 0.25s, transform 1s var(--ease) 0.25s, filter 0.8s 0.25s; }
.certify.is-certified .certify__after { transition: opacity 0.8s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }
.motion .certify__title--done { transform: translateY(32px); filter: blur(10px); }
.motion .certify__after { transform: translateY(14px); }
.motion .certify.is-certified .certify__title:not(.certify__title--done) { transform: translateY(-28px); filter: blur(10px); }
.motion .certify.is-certified .certify__hint { transform: translateY(-10px); }
.motion .certify.is-certified .certify__title--done,
.motion .certify.is-certified .certify__after { transform: none; filter: none; }

/* Onde de choc à la certification */
.certify__shock {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
}

/* Arrivée : le titre monte ligne à ligne, le badge entre en tournant */
.motion .intro .certify__eyebrow { animation: intro-up 1s var(--ease) 0.15s both; }
.motion .intro .intro__line > span { animation: intro-line 1.3s var(--ease) 0.25s both; }
.motion .intro .intro__line + .intro__line > span { animation-delay: 0.38s; }
.motion .intro .certify__badge-wrap { animation: intro-badge 1.7s var(--ease) 0.45s both; }
.motion .intro .certify__foot { animation: intro-up 1s var(--ease) 1.05s both; }
.motion .intro .intro__bar, .motion .intro .intro__skip { animation: intro-fade 1s ease 1.3s both; }
@keyframes intro-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes intro-line { from { transform: translateY(110%); } }
@keyframes intro-badge { from { opacity: 0; transform: translateY(70px) scale(0.2) rotate(-200deg); } }
@keyframes intro-fade { from { opacity: 0; } }

@media (max-width: 599px) {
  .intro { height: 100svh; }
  .certify__lead { font-size: 16px; }
  .intro__skip { left: 50%; right: auto; transform: translateX(-50%); }
}
/* Écran très bas (téléphone à l'horizontale) */
@media (max-height: 560px) {
  .certify { --s: 92px; }
  .certify__eyebrow { display: none; }
  .certify__title { font-size: clamp(28px, 4.4vw, 40px); }
  .certify__inner { padding-bottom: 56px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid { display: grid; gap: 48px; }
.contact__intro .lead { margin-top: 20px; }
.founder {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}
.founder__kicker { font-size: 13px; font-weight: 500; color: var(--on-dark-3); }
.founder__name { margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: var(--track-tight); }
.founder__role { font-size: 14px; font-weight: 500; color: var(--accent-200); }
.founder__text { margin-top: 12px; font-size: 15px; color: var(--on-dark-2); }
.contact__list { display: grid; gap: 2px; margin-top: 28px; }
.contact__list a, .contact__list span { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 500; }
.contact__list .i { width: 20px; height: 20px; color: var(--accent-200); }
.contact__list a:hover { color: var(--accent-200); }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}

.form {
  display: grid; gap: 20px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-card);
  border: 1px solid var(--line-dark);
  background: var(--carbon);
}
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.req { color: var(--accent-200); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--midnight); color: var(--white);
  font: inherit; font-size: 16px; letter-spacing: var(--track);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-200);
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.28);
}
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field select option { color: var(--carbon); background: var(--white); }
.field__err { display: none; margin-top: 8px; font-size: 13px; color: var(--error); }
.field.has-error .field__err { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.5); }
.chip input:checked + span { background: var(--accent-50); border-color: var(--accent-50); color: var(--carbon); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--chips.has-error .chip span { border-color: rgba(255, 180, 180, 0.6); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__legal { font-size: 13px; color: var(--on-dark-3); }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 14px; color: var(--error); }
.form__status:empty { display: none; }
.form-done {
  display: grid; justify-items: center; gap: 12px;
  padding: 56px 32px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-dark);
  background: var(--carbon);
  text-align: center;
}
.form-done[hidden], .form[hidden] { display: none; }
.form-done__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--carbon); }
.form-done__icon .i { width: 24px; height: 24px; stroke-width: 2; }
.form-done__title { font-size: 30px; font-weight: 800; letter-spacing: var(--track-tight); }
.form-done p { color: var(--on-dark-2); max-width: 36ch; margin-bottom: 12px; }

/* Onglets du panneau de contact */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-bottom: 16px; padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: var(--carbon);
}
.tabs__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--on-dark-2);
  transition: background-color 0.25s, color 0.25s;
}
.tabs__btn .i { width: 18px; height: 18px; }
.tabs__btn:hover { color: var(--white); }
.tabs__btn[aria-selected="true"] { background: var(--white); color: var(--carbon); }
.tabpanel[hidden] { display: none; }
@media (max-width: 380px) { .tabs__btn { font-size: 14px; padding-inline: 8px; } .tabs__btn .i { display: none; } }

/* Prise de rendez-vous */
.booking__title { font-size: 22px; font-weight: 800; letter-spacing: var(--track-tight); }
.booking__sub { margin-top: 4px; font-size: 15px; color: var(--on-dark-2); }
.booking__pick { display: grid; gap: 24px; }
.booking__side { display: grid; gap: 24px; align-content: start; }
.booking fieldset > legend {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 15px; font-weight: 600; color: var(--white);
}
.booking__n {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px; font-weight: 700;
}
.booking__you { display: grid; gap: 20px; }
.opt { font-weight: 400; color: var(--on-dark-3); }

.agenda { padding: 14px; border-radius: var(--r-card); border: 1px solid var(--line-dark); background: var(--midnight); }
.booking__day.has-error .agenda { border-color: var(--error); }
.agenda__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.agenda__month { font-weight: 600; }
.agenda__month::first-letter { text-transform: uppercase; }
.agenda__nav {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16); color: var(--white);
  transition: background-color 0.2s;
}
.agenda__nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.agenda__nav:disabled { opacity: 0.25; cursor: default; }
.agenda__nav .i { width: 16px; height: 16px; }
.agenda__week, .agenda__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.agenda__week span { padding-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--on-dark-3); }
.agenda__day {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--white);
  transition: background-color 0.2s, color 0.2s;
}
.agenda__day:disabled { color: rgba(255, 255, 255, 0.24); cursor: default; }
.agenda__day.is-open { background: rgba(255, 255, 255, 0.07); }
.agenda__day.is-open:hover { background: rgba(255, 255, 255, 0.18); }
.agenda__day.is-today::after {
  content: ""; position: absolute; bottom: 3px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent-200);
}
.agenda__day[aria-pressed="true"] { background: var(--white); color: var(--carbon); font-weight: 700; }
@media (max-width: 380px) { .agenda { padding: 10px; } .agenda__week, .agenda__days { gap: 2px; } .agenda__day { font-size: 13px; } }

.booking__hint { font-size: 14px; color: var(--on-dark-3); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots:empty { display: none; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span {
  display: flex; justify-content: center;
  padding: 9px 0;
  border-radius: var(--r-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.slot:hover span { border-color: rgba(255, 255, 255, 0.5); }
.slot input:checked + span { background: var(--white); border-color: var(--white); color: var(--carbon); }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.slot input:disabled + span { opacity: 0.3; text-decoration: line-through; cursor: default; }
.booking__time.has-error .slot span { border-color: rgba(255, 180, 180, 0.6); }

.booking__recap {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  border: 1px solid rgba(66, 165, 245, 0.35);
  background: rgba(66, 165, 245, 0.1);
  font-size: 15px; font-weight: 500; color: var(--on-dark-2);
}
.booking__recap .i { width: 18px; height: 18px; color: var(--accent-200); }
.booking__recap.is-ready { color: var(--white); background: rgba(66, 165, 245, 0.18); }
.booking-done__recap { font-weight: 600; color: var(--white) !important; }
.booking-done__add {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 4px 0 12px; padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.booking-done__add .booking-done__label { flex-basis: 100%; max-width: none; margin: 0; font-size: 13px; font-weight: 600; color: var(--on-dark-3); }
@media (min-width: 640px) {
  .booking__pick { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
}

/* Bouton flottant « Rendez-vous offert » */
.fab {
  position: fixed; z-index: 80;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--white); color: var(--carbon);
  font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0; transform: translateY(calc(100% + 32px)); pointer-events: none; visibility: hidden;
  transition: transform 0.55s var(--ease), opacity 0.3s, visibility 0s linear 0.55s;
}
.fab.is-visible {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: transform 0.55s var(--ease), opacity 0.3s, visibility 0s;
}
html.menu-open .fab { opacity: 0; pointer-events: none; visibility: hidden; }
.fab__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--midnight); transition: background-color 0.25s; }
.fab__icon .i { width: 18px; height: 18px; }
.fab:hover .fab__icon { background: var(--accent-hover); }
@media (max-width: 479px) { .fab { font-size: 14px; padding-right: 16px; } }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.footer { padding-top: clamp(64px, 8vw, 96px); background: var(--white); overflow: hidden; }
.footer .container { container-type: inline-size; }
.footer__grid { display: grid; gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--graphite); }
.footer__mail { display: inline-block; margin-top: 12px; font-weight: 600; border-bottom: 1px solid currentColor; }
.footer__title { margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--graphite); }
.footer__col a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-weight: 500; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col .i { width: 14px; height: 14px; }
.footer__word {
  display: flex; justify-content: space-between;
  margin-top: clamp(56px, 8vw, 104px);
  overflow: hidden;
  font-weight: 800;
  font-size: calc(100cqw / 6.15);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--carbon);
  white-space: nowrap;
}
.footer__word span { display: block; padding-bottom: 0.04em; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 20px; padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ash);
  font-size: 14px; color: var(--graphite);
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   ÉTATS INITIAUX DES ANIMATIONS (uniquement si .motion)
   ========================================================= */
.motion [data-hero] { opacity: 0; transform: translateY(20px); }
.motion [data-hero-title], .motion [data-split] { visibility: hidden; }
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.motion .reel__sticky { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   PAGE MENTIONS LÉGALES
   ========================================================= */
.legal-hero { padding: calc(var(--nav-h) + clamp(56px, 10vw, 120px)) 0 clamp(56px, 8vw, 96px); background: var(--midnight); color: var(--on-dark); }
.legal-hero .lead { margin-top: 20px; }
.legal { padding-block: var(--section-y); }
.legal__grid { display: grid; gap: 48px; }
.legal__toc { display: grid; gap: 4px; align-content: start; }
.legal__toc a { display: flex; gap: 12px; padding: 8px 0; font-weight: 500; color: var(--graphite); border-bottom: 1px solid var(--fog); }
.legal__toc a:hover { color: var(--carbon); }
.legal__toc span { font-variant-numeric: tabular-nums; color: var(--smoke); }
.legal__body section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--ash); scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__body section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal__body h2 { font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: var(--track-tight); margin-bottom: 20px; }
.legal__body h2 span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--graphite); }
.legal__body p, .legal__body li { color: var(--graphite); max-width: 70ch; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 14px; }
.legal__body ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.legal__body strong { color: var(--carbon); }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) {
  .legal__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; }
  .legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
}

/* =========================================================
   RESSOURCES : guides et articles
   ========================================================= */
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 0.2s; }
@media (min-width: 960px) and (max-width: 1179px) {
  .nav__bar { gap: 12px; }
  .nav__links a { padding-inline: 9px; font-size: 14px; }
  .nav__links a::after { left: 9px; right: 9px; }
}

/* Fil d'Ariane */
.crumbs { margin-bottom: 28px; font-size: 14px; color: var(--on-dark-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; opacity: 0.5; }
.crumbs a { color: var(--on-dark-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--on-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* En-tête d'article */
.post-hero, .hub-hero {
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(120px, 14vw, 176px);
  background: var(--midnight); color: var(--on-dark);
}
.hub-hero { padding-bottom: clamp(56px, 8vw, 96px); }
.hub-hero .t-display-xl { max-width: 18ch; }
.hub-hero .lead { margin-top: 24px; max-width: 60ch; }
.post-hero__title {
  max-width: 22ch;
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: var(--track-tight);
}
.post-hero__lead { margin-top: 24px; max-width: 62ch; font-size: clamp(17px, 1.6vw, 20px); }
.post-hero__lead strong { color: var(--on-dark); font-weight: 600; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.byline__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--midnight);
  font-weight: 800; font-size: 15px; letter-spacing: 0;
}
.byline p { display: grid; font-size: 14px; line-height: 1.45; }
.byline__name { font-weight: 600; color: var(--on-dark); }
.byline__meta { color: var(--on-dark-3); }

.post-cover { margin-top: clamp(-136px, -11vw, -88px); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-img); background: var(--fog); }
.post-cover figcaption { margin-top: 12px; font-size: 14px; color: var(--graphite); }

/* Mise en page article : sommaire + texte */
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: clamp(32px, 5vw, 64px) var(--section-y); }
.post__aside { display: grid; gap: 16px; align-content: start; }
.toc { border: 1px solid var(--ash); border-radius: var(--r-card); background: var(--white); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease);
}
.toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { display: grid; padding: 0 10px 12px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px;
  padding: 7px 8px; border-radius: 6px;
  font-size: 14px; line-height: 1.4; color: var(--graphite);
  transition: background-color 0.2s, color 0.2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-variant-numeric: tabular-nums; color: var(--smoke); }
.toc a:hover { background: var(--fog); color: var(--carbon); }
.toc a.is-active { background: var(--accent-50); color: var(--carbon); font-weight: 500; }
.toc a.is-active::before { color: var(--carbon); }
.aside-cta { display: none; }

@media (min-width: 1024px) {
  .post__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
  .post__aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; overscroll-behavior: contain; }
  .toc summary { pointer-events: none; }
  .toc summary::after { display: none; }
  .aside-cta { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: var(--r-card); background: var(--midnight); color: var(--on-dark); }
  .aside-cta__title { font-weight: 700; line-height: 1.3; }
  .aside-cta p:not(.aside-cta__title) { font-size: 14px; color: var(--on-dark-2); }
}

/* Texte d'article */
.prose { max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--graphite); }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: clamp(48px, 6vw, 72px);
  font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.2;
  letter-spacing: var(--track-tight); color: var(--carbon);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h3 { margin-top: 36px; font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; color: var(--carbon); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h4 { margin-top: 28px; font-weight: 700; font-size: 18px; color: var(--carbon); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 14px; }
.prose > p:first-child { font-size: 20px; line-height: 1.6; color: var(--carbon); }
.prose strong { font-weight: 600; color: var(--carbon); }
.prose a:not(.btn) { color: var(--carbon); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.prose a:not(.btn):hover { text-decoration-color: var(--carbon); }
.prose ul, .prose ol { display: grid; gap: 10px; padding-left: 4px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: item; }
.prose ol[start] { counter-reset: none; }
.prose ol > li { position: relative; padding-left: 36px; }
.prose ol > li::before {
  content: counter(list-item); position: absolute; left: 0; top: 0.2em;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fog); color: var(--carbon);
  font-size: 13px; font-weight: 700; line-height: 1;
}
.prose blockquote {
  padding: 20px 24px; border-left: 3px solid var(--accent);
  background: var(--fog); border-radius: 0 var(--r-card) var(--r-card) 0;
  font-weight: 600; color: var(--carbon);
}
.prose code { padding: 2px 6px; border-radius: 4px; background: var(--fog); font-size: 0.9em; }
.post-figure img { width: 100%; border-radius: var(--r-img); background: var(--fog); }
.post-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--smoke); }
.prose .post-figure { margin-block: 32px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--ash); border-radius: var(--r-card); -webkit-overflow-scrolling: touch; }
.prose .table-wrap { margin-block: 28px; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fog); }
.table-wrap thead th { background: var(--midnight); color: var(--on-dark); font-weight: 600; font-size: 14px; white-space: nowrap; }
.table-wrap tbody th { font-weight: 600; color: var(--carbon); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) { background: #fafafa; }

/* Encadrés */
.callout { padding: 22px 24px; border-radius: var(--r-card); background: var(--accent-50); color: var(--carbon); font-size: 17px; }
.callout > * + * { margin-top: 10px; }
.callout__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.callout__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.callout--exemple { background: var(--fog); }
.callout--attention { background: #fff4e5; }
.callout--attention .callout__title::before { background: #f5a623; }
.prose .callout { margin-block: 32px; }

.checklist { padding: 22px 24px; border: 1px solid var(--ash); border-radius: var(--r-card); }
.prose .checklist { margin-block: 32px; }
.checklist__title { margin-bottom: 12px; font-weight: 700; color: var(--carbon); }
.prose .checklist ul { gap: 2px; padding: 0; }
.prose .checklist li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fog); font-size: 16px; line-height: 1.5; }
.prose .checklist li:last-child { border-bottom: 0; }
.prose .checklist li::before { display: none; }
.checklist .i { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--midnight); stroke-width: 2.2; }

.post-cta { display: grid; gap: 12px; justify-items: start; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-card); background: var(--midnight); color: var(--on-dark-2); }
.prose .post-cta { margin-block: 48px; }
.post-cta__title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: var(--track-tight); color: var(--white); }
.post-cta p { font-size: 17px; }
.post-cta .btn { margin-top: 8px; }

/* FAQ d'article */
.post-faq { margin-top: clamp(56px, 7vw, 80px); }
.prose .post-faq h2 { margin-bottom: 20px; }
.post-faq__item { border-bottom: 1px solid var(--ash); }
.post-faq__item:first-of-type { border-top: 1px solid var(--ash); }
.post-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--carbon);
  cursor: pointer; list-style: none;
}
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--fog); transition: transform 0.4s var(--ease), background-color 0.2s; }
.post-faq__icon::before, .post-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--carbon); border-radius: 2px; }
.post-faq__icon::after { transform: rotate(90deg); }
.post-faq__item summary:hover .post-faq__icon { background: var(--accent-50); }
.post-faq__item[open] .post-faq__icon { transform: rotate(45deg); background: var(--accent-50); }
.post-faq__a { padding: 0 0 22px; font-size: 17px; }
.post-faq__a > * + * { margin-top: 12px; }

/* Bandeau final */
.post-end__inner { display: grid; justify-items: start; }
.post-end .lead { margin-top: 20px; max-width: 56ch; }
.post-end__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Cartes de guides */
.related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.related__head .t-display { max-width: 18ch; }
.rgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rcard[hidden] { display: none; }
.rcard__link { display: grid; gap: 12px; align-content: start; height: 100%; }
.rcard__media { display: block; overflow: hidden; border-radius: var(--r-img); background: var(--fog); }
.rcard__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.8s var(--ease); }
.rcard__link:hover .rcard__media img { transform: scale(1.04); }
.rcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--graphite); }
.rcard__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rcard__meta .i { width: 15px; height: 15px; }
.rcard__cat { padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-50); color: var(--carbon); }
.rcard__title { font-weight: 800; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; color: var(--carbon); }
.rcard__text { color: var(--graphite); font-size: 15px; line-height: 1.55; }
.rcard__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--carbon); }
.rcard__more .i { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.rcard__link:hover .rcard__more .i { transform: translateX(3px); }
.rcard__link:hover .rcard__title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Page Ressources */
.hub { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  border-radius: var(--r-card); background: var(--fog);
}
.feature__media { display: block; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 48px); }
.feature__title { font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: var(--track-tight); color: var(--carbon); }
.feature__text { color: var(--graphite); max-width: 46ch; }
.feature .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .feature__media img { aspect-ratio: auto; min-height: 420px; }
}
.hub__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: clamp(56px, 7vw, 88px) 0 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--ash); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--carbon);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter span { font-size: 12px; color: var(--smoke); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--carbon); }
.filter[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.filter[aria-pressed="true"] span { color: var(--on-dark-3); }
.hub__empty { padding: 32px 0; color: var(--graphite); }
.hub-about { background: var(--fog); }
.hub-about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 72px; }
.hub-about__text { display: grid; gap: 14px; max-width: 62ch; color: var(--graphite); font-size: 17px; }
.hub-about__text a { color: var(--carbon); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 960px) { .hub-about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

.home-guides { border-bottom: 1px solid var(--ash); }
.home-guides .eyebrow { margin-bottom: 16px; }

@media (max-width: 479px) {
  .crumbs [aria-current] { max-width: 48vw; }
  .prose { font-size: 17px; }
  .prose > p:first-child { font-size: 18px; }
  .callout, .checklist { padding: 18px; }
}

/* Tableaux d'article sur petit écran : une fiche par ligne */
@media (max-width: 639px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .table-wrap table { min-width: 0; font-size: 15px; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tbody { display: grid; gap: 12px; }
  .table-wrap tbody tr { display: block; padding: 14px 16px; border: 1px solid var(--ash); border-radius: var(--r-card); }
  .table-wrap tbody tr:nth-child(even) { background: none; }
  .table-wrap tbody th { display: block; padding: 0 0 8px; border: 0; font-size: 16px; }
  .table-wrap tbody th:empty { display: none; }
  .table-wrap td { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; padding: 8px 0; border: 0; border-top: 1px solid var(--fog); }
  .table-wrap td::before { content: attr(data-label); font-size: 13px; font-weight: 500; color: var(--smoke); }
  .table-wrap td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table-wrap td[data-label=""]::before { display: none; }
}

/* Images d'article : infographies, portraits et galeries */
.post-figure--info img { max-width: 560px; margin-inline: auto; border-radius: var(--r-card); }
.post-figure--info figcaption { text-align: center; }
.post-figure--portrait img { max-width: 440px; }
.post-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.prose .post-gallery { margin-block: 32px; }
.post-gallery .post-figure { margin: 0; }
.post-gallery img { width: 100%; max-width: none; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 479px) { .post-gallery { gap: 8px; } .post-gallery figcaption { font-size: 13px; } }

/* Miniatures 16:9 (photo + titre) : affichées en entier */
.rcard__media img { aspect-ratio: 16 / 9; }
.feature__media img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .feature { align-items: center; }
  .feature__media img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}

/* =========================================================
   LECTEUR VIDÉO (films complets)
   ========================================================= */
.film {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--white);
  overflow: hidden;
}
.film[open] { display: grid; place-items: center; animation: film-in 0.45s var(--ease); }
.film::backdrop { background: rgba(0, 0, 0, 0.92); }
.film__box {
  position: relative;
  width: min(calc(100vw - 2 * var(--gutter)), calc((100dvh - 140px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--onyx);
}
.film--portrait .film__box {
  width: min(calc(100vw - 2 * var(--gutter)), calc((100dvh - 140px) * 9 / 16));
  aspect-ratio: 9 / 16;
}
.film__video { display: block; width: 100%; height: 100%; background: var(--onyx); }
.film__title {
  position: absolute; top: 22px; left: var(--gutter); right: 80px;
  font-size: 14px; font-weight: 600; color: var(--on-dark-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.film__close {
  position: absolute; top: 12px; right: var(--gutter);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
  transition: background-color 0.25s;
}
.film__close .i { width: 18px; height: 18px; stroke-width: 2; }
@media (hover: hover) { .film__close:hover { background: rgba(255, 255, 255, 0.24); } }
html.film-open { overflow: hidden; }
@keyframes film-in { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) {
  .film[open] { animation: none; }
  .autoloop { display: none; }
}

