/* =========================================================
   Pulswift — Design System
   Charte : vert #03652c · encre #131915 · Poppins
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --brand-900: #012c13;
  --brand-800: #024a20;
  --brand-700: #03652c; /* couleur officielle */
  --brand-600: #0a7d3a;
  --brand-500: #14964a;
  --brand-100: #d9ece1;
  --brand-50:  #eff7f2;

  /* Ink / neutres */
  --ink-900: #131915; /* couleur officielle */
  --ink-800: #1e2721;
  --ink-700: #35423a;
  --ink-600: #4d5b53;
  --ink-500: #6b7a72;
  --ink-400: #94a29a;
  --ink-300: #c3cec8;
  --ink-200: #e2e8e5;
  --ink-100: #f0f4f2;
  --ink-50:  #f7faf8;
  --white:   #ffffff;

  /* Sémantique */
  --bg: var(--white);
  --bg-soft: var(--ink-50);
  --bg-dark: var(--ink-900);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-600);
  --border: var(--ink-200);
  --ring: var(--brand-700);
  --accent: var(--brand-700);
  --on-accent: var(--white);

  /* Typo */
  --font: "poppins", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 2.9vw, 3.5rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.5vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Espacements (density 4/10) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Ombres (Soft UI Evolution) */
  --sh-xs: 0 1px 2px rgba(19, 25, 21, .06);
  --sh-sm: 0 2px 8px rgba(19, 25, 21, .06), 0 1px 2px rgba(19, 25, 21, .04);
  --sh-md: 0 8px 24px rgba(19, 25, 21, .08), 0 2px 6px rgba(19, 25, 21, .04);
  --sh-lg: 0 20px 48px rgba(19, 25, 21, .12), 0 4px 12px rgba(19, 25, 21, .06);
  --sh-brand: 0 12px 32px rgba(3, 101, 44, .22);

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-100); color: var(--brand-900); }

/* ---------- 3. Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: clamp(4rem, 2rem + 8vw, 8.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--compact { padding-block: clamp(3rem, 1.5rem + 4.5vw, 5rem); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--white); }
.section--dark p,
.section--dark .section-head p,
.section--dark .split > div > p,
.section--dark .screen-card__body p { color: rgba(255, 255, 255, .74); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--brand-700); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Titres de section */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-700);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--brand-700);
}
.section--dark .eyebrow { color: var(--brand-500); }
.section--dark .eyebrow::before { background: var(--brand-500); }

.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p {
  margin-top: var(--space-2);
  font-size: var(--fs-lead);
  color: var(--fg-muted);
}

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--brand-700); color: var(--white); box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-800); }

.btn--dark { background: var(--ink-900); color: var(--white); }
.btn--dark:hover { background: var(--ink-800); }

.btn--ghost { border-color: var(--ink-300); color: var(--ink-900); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink-900); background: var(--ink-50); }

.btn--light { background: var(--white); color: var(--ink-900); }
.btn--light:hover { background: var(--ink-100); }

.btn--outline-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Contour vert, sur fond clair */
.btn--outline { border-color: var(--brand-700); color: var(--brand-700); background: var(--white); }
.btn--outline:hover { background: var(--brand-50); border-color: var(--brand-800); color: var(--brand-800); }

.btn--lg { min-height: 56px; padding: .9rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--brand-700); font-size: var(--fs-sm);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--brand-500); }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--sh-xs); }

.header__inner {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav { display: none; margin-inline-start: var(--space-2); }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-700);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink-900); background: var(--ink-100); }
.nav__link[aria-current="page"] { color: var(--brand-700); font-weight: 600; }
.nav__link .chev { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__item--has-menu[data-open="true"] .chev { transform: rotate(180deg); }

.header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.header__actions .btn--ghost { display: none; }
/* Sous 600px, les CTA vivent dans le menu et le héros : on garde le header respirable */
@media (max-width: 599px) {
  .header__actions .btn--primary { display: none; }
}

/* Mega menu */
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item--has-menu[data-open="true"] .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }

.megamenu__grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-block: var(--space-4);
}
.megamenu__col h3 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-500); margin-bottom: var(--space-2); font-weight: 600;
}
.megalink {
  display: flex; gap: .85rem; padding: .7rem; border-radius: var(--r-md);
  transition: background-color var(--dur) var(--ease);
}
.megalink:hover { background: var(--brand-50); }
/* Sélecteur doublé volontairement : `.megalink span` plus bas est plus
   spécifique et repasserait la pastille en display:block, ce qui décale
   l'icône de 9px vers le haut de son carré vert. */
.megalink .megalink__icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
}
.megalink__icon svg { width: 20px; height: 20px; }
.megalink strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.megalink span { display: block; font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.45; }

.megamenu__promo {
  background: var(--ink-900); color: #fff; border-radius: var(--r-lg);
  padding: var(--space-3); align-self: start;
}
.megamenu__promo h3 {
  color: #fff; font-size: 1.05rem; text-transform: none;
  letter-spacing: -.02em; margin-bottom: .5rem;
}
.megamenu__promo p { font-size: var(--fs-sm); color: rgba(255,255,255,.72); margin-bottom: var(--space-2); }

/* Burger */
.burger {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center; flex: none;
}
.burger:hover { background: var(--ink-100); }
.burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-900); position: relative;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: var(--ink-900);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Menu mobile */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--white);
  padding: var(--space-3) 0 var(--space-5);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 280ms var(--ease), visibility 280ms;
}
.mobile-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__toggle,
.mobile-nav__solo {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 1rem .25rem; font-size: 1.0625rem; font-weight: 600; text-align: left;
}
.mobile-nav__toggle svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__panel { display: none; padding-bottom: .75rem; }
.mobile-nav__panel[data-open="true"] { display: block; }
.mobile-nav__panel a {
  display: block; padding: .65rem .25rem .65rem 1rem;
  color: var(--ink-600); font-size: var(--fs-sm);
  border-left: 2px solid var(--border);
}
.mobile-nav__panel a:hover { color: var(--brand-700); border-left-color: var(--brand-700); }
.mobile-nav__cta { margin-top: var(--space-3); display: grid; gap: .75rem; }

body.no-scroll { overflow: hidden; }

/* ---------- 5b. Bouton flottant, apparaît au défilement ---------- */
.floating-cta {
  position: fixed; z-index: 90;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: var(--r-full);
  background: var(--brand-700); color: var(--white);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: -.01em;
  box-shadow: 0 14px 36px rgba(3, 101, 44, .34);
  white-space: nowrap;

  /* état de repos : hors champ, inerte */
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity 260ms var(--ease), transform 320ms var(--ease),
              background-color var(--dur) var(--ease);
}
.floating-cta svg { width: 18px; height: 18px; flex: none; }
.floating-cta[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.floating-cta:hover { background: var(--brand-800); }
.floating-cta:focus-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 599px) {
  .floating-cta { left: 1rem; right: 1rem; justify-content: center; }
}
/* pas de glissement si l'utilisateur a désactivé les animations */
@media (prefers-reduced-motion: reduce) {
  .floating-cta { transform: none; }
}

/* ---------- 6. Hero (texte centré, fond clair) ---------- */
.hero {
  background: var(--white);
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
  text-align: center;
}
.hero__eyebrow {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: clamp(1.25rem, 2vw, 2rem);
}
.hero h1 {
  font-size: var(--fs-display);
  /* Deux propositions, deux lignes : la coupure est forcée à la virgule
     (voir .br-lg). Corps réduit par rapport au reste des titres, sinon la
     première ligne frôle le bord du conteneur. */
  font-size: clamp(2rem, 1.2rem + 3.3vw, 3.5rem);
  max-width: 34ch; margin-inline: auto;
  text-wrap: pretty;
}

/* Retour à la ligne réservé aux grands écrans : en dessous, le texte
   se replie tout seul et une coupure forcée créerait des lignes bancales. */
.br-lg { display: none; }
@media (min-width: 900px) {
  .br-lg { display: inline; }
}
.hero__lead {
  margin: clamp(1.25rem, 2.5vw, 2rem) auto 0;
  max-width: 44rem;
  font-size: var(--fs-lead);
  color: var(--fg-muted);
}
.hero .btn-group {
  justify-content: center;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

/* Marqueur suisse */
.swiss-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: var(--space-3);
  padding: .5rem 1rem .5rem .6rem;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--white);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-700);
}
.swiss-badge svg { flex: none; }
.hero .swiss-badge { margin-inline: auto; }

.swiss-badge--footer {
  margin-top: var(--space-3);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .82);
}

.swiss-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: var(--space-2);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-700);
}
.swiss-eyebrow svg { flex: none; }

/* Emplacement image pleine largeur sous le hero */
.hero__media { margin-top: clamp(2.5rem, 5vw, 5rem); }
.hero__media .media__frame {
  aspect-ratio: 16 / 7;
  border-radius: var(--r-lg);
  align-items: center;
}
.hero__media .media__mock { max-width: min(38%, 360px); }
@media (max-width: 599px) {
  .hero__media .media__frame { aspect-ratio: 4 / 3; }
  .hero__media .media__mock { max-width: 74%; }
}

/* Maquette caisse (utilisée dans les emplacements photo) */
.hero__visual { position: relative; padding-bottom: 56px; }
.device {
  background: linear-gradient(160deg, #fff, #eef3f0);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,.6);
  overflow: hidden;
}
.device__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem .9rem; background: var(--ink-900);
}
.device__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.device__bar span { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.5); font-style: normal; }
.device__body { padding: var(--space-2); display: grid; gap: .6rem; }

.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tile {
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-md);
  padding: .7rem; box-shadow: var(--sh-xs);
}
.tile__dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); margin-bottom: .5rem; }
.tile__l1 { height: 7px; width: 78%; border-radius: 4px; background: var(--ink-200); margin-bottom: .35rem; }
.tile__l2 { height: 7px; width: 46%; border-radius: 4px; background: var(--ink-100); }
.tile--accent { background: var(--brand-700); border-color: var(--brand-700); }
.tile--accent .tile__dot { background: rgba(255,255,255,.28); }
.tile--accent .tile__l1 { background: rgba(255,255,255,.55); }
.tile--accent .tile__l2 { background: rgba(255,255,255,.3); }

.total-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border-radius: var(--r-md);
  background: var(--ink-900); color: #fff;
}
.total-bar small { color: rgba(255,255,255,.55); font-size: 11px; display: block; }
.total-bar strong { font-size: 1.05rem; }
.total-bar .chip {
  background: var(--brand-700); padding: .45rem .9rem; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600;
}

/* ---------- 7. Bandeau confiance ---------- */
.trust { border-bottom: 1px solid var(--border); }
.trust__label {
  text-align: center; font-size: var(--fs-xs); color: var(--ink-500);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3);
}
.trust__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-2) var(--space-5); align-items: center;
}
.trust__item {
  font-weight: 700; font-size: 1.05rem; color: var(--ink-500);
  letter-spacing: -.02em;
}
.trust__more {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-400);
}

/* ---------- 8. Cartes produits ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--5 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--ink-300); }
.card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.card p { color: var(--fg-muted); font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; padding-top: var(--space-2); }

.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--space-2);
  background: var(--brand-50); color: var(--brand-700);
}
.card__icon svg { width: 24px; height: 24px; }

.card--feature { padding: var(--space-4); }

/* Carte posée sur un fond sombre */
.card--on-dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  color: var(--white);
  box-shadow: none;
}
.card--on-dark:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.card--on-dark p { color: rgba(255, 255, 255, .7); }
.card--on-dark .card__icon { background: rgba(255, 255, 255, .09); color: var(--brand-500); }

/* Carte produit large avec visuel */
.product-card {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; background: var(--white); box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.product-card__media {
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: var(--space-4);
  background: linear-gradient(155deg, var(--brand-50), var(--ink-100));
  border-bottom: 1px solid var(--border);
}
.product-card__media svg { width: min(60%, 190px); height: auto; color: var(--brand-700); }
.product-card__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.product-card__body p { color: var(--fg-muted); font-size: var(--fs-sm); }
.product-card__body .link-arrow { margin-top: auto; padding-top: var(--space-3); }
.product-card__body .checklist { margin-bottom: var(--space-2); }

.tag {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-800); background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: .25rem .6rem; border-radius: var(--r-full); margin-bottom: .75rem;
}

/* Listes à puces check */
.checklist { display: grid; gap: .6rem; margin-top: var(--space-2); }
.checklist li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--fg-muted);
}
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--brand-700); margin-top: 2px; }
.section--dark .checklist li { color: rgba(255,255,255,.75); }
.section--dark .checklist svg { color: var(--brand-500); }

/* ---------- 9. Split (texte + visuel) ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.split h2 { font-size: var(--fs-h2); text-wrap: pretty; }
.split > div > p { color: var(--fg-muted); font-size: var(--fs-lead); margin-top: var(--space-3); max-width: 34rem; }
.split .btn-group { margin-top: var(--space-4); }
.split .eyebrow { margin-bottom: var(--space-3); }

/* Liste de bénéfices séparée par des filets */
.feature-list { margin-top: clamp(2rem, 3.5vw, 3rem); }
/* variante resserrée, pour les blocs secondaires */
.feature-list--tight { margin-top: var(--space-3); }
.feature-list--tight li { padding: .8rem .25rem; font-size: var(--fs-sm); }
.feature-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem .25rem;
  border-top: 1px solid var(--border);
  font-size: 1.0625rem; letter-spacing: -.01em;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list svg { width: 20px; height: 20px; flex: none; color: var(--ink-900); }
.section--dark .feature-list li { border-color: rgba(255, 255, 255, .18); color: #fff; }
.section--dark .feature-list svg { color: var(--brand-500); }

/* ---------- Visuel : emplacement photo + carte de données ----------
   .media__frame est l'emplacement photo. Pour poser une vraie image :
   <div class="media__frame"><img class="media__img" src="…" alt=""></div>
   Le fond coloré et la maquette ne servent que tant qu'il n'y a pas de photo. */
.media { position: relative; }

.media__frame {
  position: relative;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  background: var(--ink-800);
}
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__frame:has(> .media__img) { padding: 0; }

/* Cadre qui épouse le format de la photo au lieu de la recadrer en 4/3.
   À utiliser dès que l'image n'est pas en 4/3 — un 16/9 recadré perd 12 %
   de chaque côté. Le contour et l'arrondi sont conservés. */
.media__frame--natural,
.media__frame:has(> .media__img).media__frame--natural {
  aspect-ratio: auto;
  padding: 0;
}
.media__frame--natural > .media__img { width: 100%; height: auto; object-fit: contain; }

/* Rendu produit détouré sur blanc : pas de cadre, pas de recadrage.
   Le produit flotte sur la page, et sa hauteur est bornée pour ne pas
   écraser le texte à côté. */
.media__frame--photo,
.media__frame:has(> .media__img).media__frame--photo {
  aspect-ratio: auto;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  place-items: center;
}
.media__frame--photo::after { display: none; }
/* width:100% + height:auto laisse le navigateur réserver la place à partir
   des attributs width/height de la balise : pas de saut au chargement,
   même avec loading="lazy". La taille se borne sur le cadre, pas sur l'image. */
.media__frame--photo > .media__img {
  width: 100%; height: auto;
  object-fit: contain;
}
.media__frame--photo { max-width: 520px; margin-inline: auto; }
.hero__media .media__frame--photo { max-width: 640px; }

/* Fonds studio (remplacés par la photo le moment venu) */
.media__frame--green { background: linear-gradient(160deg, #0b7c39 0%, #024a20 100%); }
.media__frame--ink   { background: linear-gradient(160deg, #2b3a32 0%, #101613 100%); }
.media__frame--clay  { background: linear-gradient(160deg, #e9dccd 0%, #d3bda6 100%); }

/* Léger vignettage, comme une prise de vue studio */
.media__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 65% at 50% 35%, transparent, rgba(0, 0, 0, .22));
}
.media__frame--clay::after {
  background: radial-gradient(75% 65% at 50% 35%, transparent, rgba(90, 60, 30, .16));
}
.media__frame:has(> .media__img)::after { display: none; }

/* Icône de repli, quand aucune maquette n'est posée */
.media__frame > svg {
  position: relative; z-index: 1;
  width: min(46%, 210px); height: auto;
  color: rgba(255, 255, 255, .82);
}
.media__frame--clay > svg { color: rgba(19, 25, 21, .6); }

/* Décale le visuel vers la droite dans sa colonne, sans le redimensionner.
   Uniquement à partir de deux colonnes : en pile, il n'y a rien à décaler. */
@media (min-width: 860px) {
  .media--nudge-right { transform: translateX(4%); }
}

/* La carte de données occupe un coin : la maquette se décale vers l'autre.
   Restreint aux maquettes : un cadre à simple icône doit rester centré. */
.media:has(.media__card:not(.media__card--bottom)) .media__frame:has(.media__mock, .mock-kiosks, .mock-chart) { align-items: end; }
.media:has(.media__card--bottom) .media__frame:has(.media__mock, .mock-kiosks, .mock-chart) { align-items: start; }

/* Maquette produit posée dans l'emplacement */
.media__mock { position: relative; z-index: 1; width: 100%; max-width: 340px; }
.media__mock .device { box-shadow: 0 30px 60px rgba(0, 0, 0, .38); }

/* Rangée de bornes : montre les formats côte à côte.
   Les largeurs sont en % du cadre pour rester fluides jusqu'à 320px. */
.mock-kiosks {
  position: relative; z-index: 1;
  width: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(.5rem, 2vw, 1.6rem);
}
.mock-kiosk {
  display: flex; flex-direction: column; align-items: center;
  min-width: 0; flex: 0 1 auto;
}
.mock-kiosk__screen {
  width: 100%; aspect-ratio: 71 / 100;
  background: #0d1310; border-radius: 9px; padding: 5px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .34);
}
.mock-kiosk__screen > span {
  display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 5px;
  background: linear-gradient(155deg, var(--brand-600), var(--brand-900));
}
.mock-kiosk__screen svg { width: 34%; max-width: 34px; color: rgba(255, 255, 255, .9); }
.mock-kiosk__foot { width: 44%; height: 9px; border-radius: 0 0 5px 5px; background: #0d1310; }
.mock-kiosk__label {
  margin-top: .6rem; font-size: var(--fs-xs); font-weight: 600;
  color: rgba(255, 255, 255, .78);
}
.media__frame--clay .mock-kiosk__label { color: rgba(19, 25, 21, .65); }

/* Mini graphique pour les visuels « pilotage » */
.mock-chart {
  position: relative; z-index: 1;
  width: min(100%, 340px);
  background: #fff; border-radius: var(--r-md);
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 26px 52px rgba(0, 0, 0, .34);
}
.mock-chart__title { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500); }
.mock-chart__value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 1rem; }
.mock-chart__bars { display: flex; align-items: flex-end; gap: .5rem; height: 92px; }
.mock-chart__bars i {
  flex: 1; border-radius: 4px 4px 0 0; background: var(--brand-100);
}
.mock-chart__bars i.is-peak { background: var(--brand-700); }

.media__card {
  position: absolute; left: 6%; top: 7%;
  max-width: 62%;
  background: var(--ink-900); color: #fff;
  border-radius: var(--r-md);
  padding: .95rem 1.15rem;
  box-shadow: var(--sh-lg);
}
.media__card--bottom { top: auto; bottom: 8%; left: auto; right: 6%; }
.media__card strong {
  display: block; font-size: 1.0625rem; letter-spacing: -.02em;
  color: var(--brand-500); margin-bottom: .35rem;
}
.media__card span { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .72); line-height: 1.6; }

/* Compat : ancien nom */
.visual-frame {
  background: linear-gradient(150deg, var(--brand-50), var(--ink-100));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
}
.visual-frame svg { width: min(46%, 200px); height: auto; color: var(--brand-700); }
.visual-frame--dark { background: linear-gradient(150deg, #1c2a22, var(--ink-900)); border-color: rgba(255,255,255,.12); }
.visual-frame--dark svg { color: var(--brand-500); }

/* ---------- 9b. Duo : deux packs présentés en prose ---------- */
.duo { display: grid; gap: var(--space-3); }
.duo__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.duo__item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.duo__item--featured {
  border-color: var(--brand-700);
  box-shadow: var(--sh-brand);
  background: linear-gradient(180deg, var(--brand-50), #fff 22%);
}
.duo__tag {
  display: inline-block; align-self: flex-start;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  margin-bottom: var(--space-4);
}
.duo__item h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.duo__item p {
  color: var(--fg-muted); font-size: 1.0625rem; line-height: 1.65;
  margin-bottom: var(--space-2);
}
.duo__item .link-arrow { margin-top: auto; padding-top: var(--space-2); }

@media (min-width: 860px) {
  .duo { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  /* les deux paragraphes démarrent à la même hauteur */
  .duo__item h3 { min-height: 2.3em; }
}

/* ---------- 10. Packs ---------- */
.pack {
  position: relative;
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  background: var(--white); padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pack--featured {
  border-color: var(--brand-700);
  box-shadow: var(--sh-brand);
  background: linear-gradient(180deg, var(--brand-50), #fff 26%);
}
.pack__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-700); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: var(--r-full); white-space: nowrap;
}
.pack h3 { font-size: 1.4rem; }
.pack__for { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: .35rem; min-height: 3rem; }
.pack__price {
  margin: var(--space-3) 0; padding-block: var(--space-2);
  border-block: 1px dashed var(--border);
}
.pack__price strong { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.pack__price span { font-size: var(--fs-xs); color: var(--ink-500); }
.pack .checklist { flex: 1; margin-bottom: var(--space-3); }
.pack .btn { width: 100%; }

/* ---------- 11. Écrans / bornes ---------- */

/* Photo avec légende, posée dans une colonne de .split */
.figure-inline { margin: 0; }
.figure-inline img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 52%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.figure-inline figcaption {
  margin-top: .9rem; text-align: center;
  font-size: var(--fs-sm); color: var(--ink-500);
}

/* Réalisation en cours : photo verticale contenue + verrou des deux marques */
.figure-portrait { margin: 0; }
.figure-portrait img {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.figure-portrait figcaption {
  margin-top: .9rem; text-align: center;
  font-size: var(--fs-sm); color: var(--ink-500);
}

.case-label {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-2);
}
.case-lockup {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin-bottom: var(--space-3);
  color: var(--ink-400);
}
.case-lockup > img { height: 26px; width: auto; }
/* le logo The Meal n'existe qu'en blanc sur fond transparent :
   on repeint son alpha à l'encre du site */
.case-lockup__partner {
  height: 22px;
  background: var(--ink-900);
  -webkit-mask: url("../assets/brand/themeal-logo.png") no-repeat center / contain;
  mask: url("../assets/brand/themeal-logo.png") no-repeat center / contain;
  aspect-ratio: 372 / 88;
}

/* Un h2 qui doit peser comme un h3 (blocs secondaires) */
.h3 { font-size: var(--fs-h3); }
.split .h3 + p { margin-top: var(--space-2); }

/* Sous-titre au-dessus d'une grille de fiches */
.subhead {
  font-size: var(--fs-h3);
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 var(--space-3);
}

/* Ligne de précision, en fin de section */
.note-line {
  display: flex; gap: .75rem; align-items: flex-start;
  max-width: 52rem; margin: clamp(2rem, 3vw, 2.75rem) auto 0;
  padding: 1.1rem 1.25rem;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.6;
}
.note-line svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand-700); }

.screen-card {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--white); overflow: hidden; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.screen-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.screen-card--featured { border-color: var(--brand-700); box-shadow: var(--sh-brand); }
.screen-card--featured .screen-card__size { color: var(--brand-700); }
.screen-card__stage {
  background: linear-gradient(160deg, #f2f6f4, #e3ebe7);
  padding: var(--space-4) var(--space-3);
  display: grid; place-items: end center; height: 272px;
  border-bottom: 1px solid var(--border);
}
.screen-mock {
  background: var(--ink-900); border-radius: 10px; padding: 7px;
  box-shadow: var(--sh-md); position: relative;
}
.screen-mock__inner {
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900));
  border-radius: 5px; width: 100%; height: 100%;
  display: grid; place-items: center;
}
.screen-mock__inner svg { width: 34%; max-width: 46px; color: rgba(255,255,255,.9); }
.screen-mock__foot {
  width: 46%; height: 10px; margin: 0 auto; border-radius: 0 0 5px 5px;
  background: var(--ink-800);
}
.screen-card__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.screen-card__body h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.screen-card__body .btn { margin-top: auto; }
.screen-card__size { font-size: var(--fs-sm); color: var(--brand-700); font-weight: 600; margin-bottom: .5rem; }
.screen-card__body p { color: var(--fg-muted); font-size: var(--fs-sm); }

.spec-list { display: grid; gap: 0; margin-top: var(--space-2); }
.spec-list div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink-500); }
.spec-list dd { font-weight: 600; text-align: right; margin: 0; }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 1rem 1.1rem; text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--border); }
thead th {
  background: var(--ink-50); font-weight: 600; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600);
  position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--brand-50); }
td.center, th.center { text-align: center; }
.tick { color: var(--brand-700); width: 20px; height: 20px; display: inline-block; }
.dash { color: var(--ink-300); }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: var(--space-2); padding: 1.25rem .25rem;
  font-size: 1.0625rem; font-weight: 600; text-align: left; letter-spacing: -.015em;
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--brand-700); }
.faq__q .ic {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__q .ic svg { width: 15px; height: 15px; }
.faq__q[aria-expanded="true"] .ic {
  transform: rotate(180deg); background: var(--brand-700); border-color: var(--brand-700); color: #fff;
}
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.faq__a[data-open="true"] { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 3rem 1.35rem .25rem; color: var(--fg-muted); font-size: var(--fs-sm); }

/* ---------- 17. CTA pleine largeur (bandeau noir) ---------- */
.cta-section {
  background: var(--ink-900); color: #fff;
  padding-block: clamp(4rem, 2rem + 8vw, 8rem);
  text-align: center;
}
.cta-section h2 { font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-section p {
  margin: var(--space-3) auto 0; max-width: 44rem;
  font-size: var(--fs-lead); color: rgba(255, 255, 255, .74);
}
.cta-section .btn-group { margin-top: var(--space-4); justify-content: center; }

.center-link { text-align: center; margin-top: var(--space-4); }

/* ---------- 18. Formulaire ---------- */
.form-shell {
  display: grid; gap: var(--space-5);
  align-items: start;
}
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--space-4);
  box-shadow: var(--sh-md);
}
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: .4rem; }
.field .req { color: var(--brand-700); }
.field .hint { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-500); margin-top: .15rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--ink-300); border-radius: var(--r-md);
  background: var(--white); font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(3, 101, 44, .14);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5b53' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
  padding-right: 2.6rem;
}
.field-row { display: grid; gap: var(--space-2) var(--space-3); }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: #c62828; }
.error-msg { display: none; margin-top: .35rem; font-size: var(--fs-xs); color: #c62828; font-weight: 500; }
.field.is-invalid .error-msg { display: flex; align-items: center; gap: .3rem; }

/* Choix de demande (radio cards) */
.choice-grid { display: grid; gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1.5px solid var(--ink-300); border-radius: var(--r-md);
  padding: .9rem; min-height: 48px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.choice input:hover + .choice__box { border-color: var(--ink-400); }
.choice input:checked + .choice__box {
  border-color: var(--brand-700); background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(3, 101, 44, .1);
}
.choice input:focus-visible + .choice__box { outline: 3px solid var(--ring); outline-offset: 2px; }
.choice__ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--brand-700);
}
.choice__ic svg { width: 18px; height: 18px; }
.choice__box b { display: block; font-size: var(--fs-sm); }
.choice__box small { display: block; font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.4; }

.field label.checkbox,
.checkbox {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: var(--fs-xs); font-weight: 400; line-height: 1.5; color: var(--fg-muted);
}
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-700); flex: none; }

.form-aside { display: grid; gap: var(--space-3); }
.aside-block {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--space-3); background: var(--bg-soft);
}
.aside-block h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.contact-line { display: flex; gap: .7rem; align-items: center; font-size: var(--fs-sm); padding: .4rem 0; }
.contact-line svg { width: 18px; height: 18px; color: var(--brand-700); flex: none; }

.form-success {
  display: none; text-align: center; padding: var(--space-4) var(--space-2);
}
.form-success[data-show="true"] { display: block; }
.form-success .ic {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto var(--space-3);
  background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center;
}
.form-success .ic svg { width: 30px; height: 30px; }
.form-success h2 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.form-success p { color: var(--fg-muted); font-size: var(--fs-sm); }

/* ---------- 18b. Pages légales ---------- */
.legal { max-width: 46rem; }
.legal > p,
.legal > ul,
.legal > ol { color: var(--fg-muted); margin-bottom: var(--space-3); }
.legal h2 {
  font-size: var(--fs-h3);
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.0625rem; margin: var(--space-3) 0 .5rem; }
.legal ul { padding-left: 1.25rem; }
.legal ul li { list-style: disc; margin-bottom: .5rem; }
.legal a:not(.btn) { color: var(--brand-700); font-weight: 500; text-decoration: underline; }
.legal dl { margin-bottom: var(--space-3); }
.legal dt { font-weight: 600; margin-top: var(--space-2); }
.legal dd { margin: 0; color: var(--fg-muted); }

.legal-date {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm); color: var(--ink-500);
}

/* Marqueur voyant : information que seul l'éditeur peut fournir.
   Volontairement criard pour qu'aucune page ne parte en ligne avec un trou. */
.todo {
  background: #fff3bf; color: #6b4e00;
  padding: .1rem .45rem; border-radius: 4px;
  font-weight: 600; font-size: .95em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- 19. Page header interne ---------- */
.page-hero {
  background: var(--ink-900); color: #fff; position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50rem 30rem at 85% 0%, rgba(3,101,44,.5), transparent 60%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 20ch; }
.page-hero p { margin-top: var(--space-3); font-size: var(--fs-lead); color: rgba(255,255,255,.74); max-width: 44rem; }
.page-hero .btn-group { margin-top: var(--space-4); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: var(--fs-xs); color: rgba(255,255,255,.55); margin-bottom: var(--space-3); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb svg { width: 12px; height: 12px; }

/* ---------- 20. Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.66); padding-block: var(--space-6) var(--space-3); }
.footer__grid { display: grid; gap: var(--space-4); }
.footer__brand img { height: 28px; margin-bottom: var(--space-2); }
.footer__brand p { font-size: var(--fs-sm); max-width: 24rem; }
.footer h3 {
  color: #fff; font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: var(--space-2);
}
.footer li { margin-bottom: .6rem; }
.footer a { font-size: var(--fs-sm); transition: color var(--dur) var(--ease); }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.social { display: flex; gap: .5rem; margin-top: var(--space-3); }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: var(--brand-700); border-color: var(--brand-700); }
.social svg { width: 18px; height: 18px; }

/* ---------- 21. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

/* ---------- 22. Breakpoints ---------- */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .split--reverse > div:first-child { order: 2; }
  /* bloc secondaire : le texte prend la place, la photo reste discrète */
  .split--aside { grid-template-columns: 1.6fr 1fr; gap: var(--space-5); align-items: center; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .form-shell { grid-template-columns: 1.55fr 1fr; }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .mobile-nav { display: none; }
  .header__actions .btn--ghost { display: inline-flex; }
  .megamenu__grid { grid-template-columns: 1fr 1fr 1fr .9fr; }
}

@media (min-width: 1180px) {
  .grid--5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- 23. Accessibilité motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .pack:hover, .screen-card:hover { transform: none; }
}

/* ---------- 24. Impression ---------- */
@media print {
  .header, .mobile-nav, .footer, .cta-section { display: none; }
  body { color: #000; }
}
