/* Hallmark · macrostructure: image-backed narrative · tone: premium calm · anchor hue: blue */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 */
@import url("../tokens.css");
/* ==========================================================================
   Elly Énergie — Home
   Design system + composants. Aucune dépendance externe hors Google Fonts.
   Ordre : tokens → reset → primitives → layout → composants → sections → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque (extraites du logo : dégradé cyan → bleu) — accents / CTA */
  --cyan-300: #7fe6fb;
  --cyan-400: #38d2f5;
  --cyan-500: #1cb8e6;
  --blue-400: #4d94ff;
  --blue-500: #2f86ff;
  --blue-600: #1b6bf0;
  --blue-700: #1250c9;

  /* Bleus profonds (réservés aux rares accents / skip-link) */
  --navy-950: #030c1a;
  --navy-900: #061530;
  --navy-800: #0a2246;
  --navy-700: #0f3160;
  --navy-600: #16457f;

  /* Neutres — Apple light */
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --paper-3: #e8e8ed;
  --line: #d2d2d7;
  --line-strong: #b0b0b5;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --muted: #86868b;

  /* Accents */
  --amber: #ffb547;
  --green: #34c759;

  /* Aplats — un seul bleu de marque, sans dégradé (clarté Apple).
     Ces variables restent des « backgrounds » : elles alimentent aussi des
     background-clip:text, qui fonctionne à l'identique avec une couleur pleine. */
  --grad-brand: var(--blue-600);
  --grad-text: var(--blue-600);
  --grad-dark: var(--paper-2);
  --grad-brand-ink: var(--blue-600);

  /* Typographie */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --fs-hero: clamp(2.9rem, 1.2rem + 6.4vw, 6.1rem);
  --fs-h2: clamp(2.1rem, 1.1rem + 3.3vw, 3.9rem);
  --fs-h3: clamp(1.28rem, 1.05rem + 0.8vw, 1.65rem);
  --fs-lead: clamp(1.05rem, 0.96rem + 0.4vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Espacement */
  --shell: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5.5rem, 9vw, 10rem);

  /* Rayons — plus doux, style produit Apple */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Ombres — plus légères */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --sh-md: 0 8px 24px -8px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --sh-lg: 0 20px 48px -16px rgba(0, 0, 0, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.06);
  /* Pas de halo coloré sous les CTA : Apple pose des aplats sans ombre portée. */
  --sh-brand: none;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s var(--ease);
  --t-mid: 0.4s var(--ease);
  --t-slow: 0.8s var(--ease-out);

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   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) + 24px);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--blue-600); color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--paper-2); }
/* Ancien « dark » → bandeau clair Apple (HTML peut encore porter section--dark) */
.section--dark { background: var(--paper-2); color: var(--text); }
.section--flush-top { padding-top: 0; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translate(-50%, 0); }

.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;
}

/* Eyebrow / badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--grad-brand);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--blue-600); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 550;
  letter-spacing: 0.005em;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text-2);
  box-shadow: var(--sh-xs);
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 204, 143, 0.22);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 204, 143, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(46, 204, 143, 0); }
}

/* Titre de section */
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow::before { display: none; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.section-head p {
  margin-top: 1.15rem;
  font-size: var(--fs-lead);
  color: var(--text-2);
  line-height: 1.55;
}

/* Variante éditoriale : titre à gauche, chapô à droite */
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 0.9rem;
  align-items: end;
}
.section-head--split .eyebrow { grid-column: 1 / -1; }
.section-head--split h2 { margin-top: 0; }
.section-head--split p { margin-top: 0; max-width: 52ch; padding-bottom: 0.4rem; }
@media (max-width: 900px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; row-gap: 1.15rem; }
  .section-head--split p { padding-bottom: 0; }
}
.section--dark .section-head p { color: var(--text-2); }

.grad-text {
  background: var(--grad-brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.serif-accent {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  letter-spacing: inherit;
}

/* Boutons */
.btn {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.15;
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: var(--sh-brand);
  transition: transform var(--t-fast), box-shadow var(--t-mid), background-color var(--t-fast), border-color var(--t-fast);
  isolation: isolate;
  text-align: center;
}
/* Survol Apple : la couleur s'assombrit, le bouton ne bouge pas. */
.btn:hover { --btn-bg: var(--blue-700); }
.btn:active { opacity: 0.9; }
.btn .arrow { transition: transform var(--t-mid); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--blue-500);
  color: var(--blue-700);
  box-shadow: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--paper-2);
  border-color: var(--blue-500);
  color: var(--blue-700);
  box-shadow: var(--sh-sm);
}

/* Ancien bouton « light » sur fond sombre → primaire brand sur fond clair */
.btn--light {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  box-shadow: none;
}
.btn--light:hover { --btn-bg: var(--blue-700); }

.btn--sm { padding: 0.65rem 1.2rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn--stack { flex-direction: column; gap: 0.1rem; padding-block: 0.85rem; }
.btn--stack > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn--stack small { font-size: 0.75rem; font-weight: 450; opacity: 0.78; letter-spacing: 0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 570;
  font-size: var(--fs-sm);
  color: var(--blue-600);
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow:hover { gap: 0.75rem; color: var(--blue-700); }

/* Icônes */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.6; }
.icon-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(27, 107, 240, 0.08);
  color: var(--blue-600);
  border: 0;
}
.icon-tile .icon { width: 22px; height: 22px; }
.section--dark .icon-tile { background: rgba(27, 107, 240, 0.08); color: var(--blue-600); }

/* Révélation au scroll */
.reveal {
  opacity: 1;
  transform: none;
}
.motion-ready .reveal {
  opacity: 0.72;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img,
  .story-card__media img,
  .split__media img { transform: none; transition: none; }
}

/* Grain — désactivé (système light Apple, sans overlay bruit) */
.grain::before {
  content: none;
  display: none;
}

/* --------------------------------------------------------------------------
   4. Bandeau promo
   -------------------------------------------------------------------------- */
/* Bandeau d'annonce type Apple : gris très clair, texte encre, sans aplat vif. */
.promo {
  position: relative;
  z-index: 60;
  background: var(--paper-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.6rem var(--gutter);
  text-align: center;
  flex-wrap: wrap;
}
.promo strong { font-weight: 600; color: var(--text); }
.promo__icon { color: var(--blue-600); }
.promo a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  color: var(--blue-600);
  transition: color var(--t-fast);
}
.promo a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.promo__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.promo__close:hover { background: rgba(0, 0, 0, 0.06); color: var(--text); }
body.promo-hidden .promo { display: none; }

/* --------------------------------------------------------------------------
   5. Header — clair dès le départ (hero light)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  border-bottom: 1px solid transparent;
  --nav-fg: var(--text);
  --nav-hover: var(--paper-2);
  --nav-border: var(--line-strong);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.brand img {
  height: 34px;
  width: auto;
  transition: filter var(--t-mid);
}
.brand__name { display: none; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 0.15rem; margin-inline: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.55rem 0.72rem;
  border-radius: var(--r-sm);
  font-size: 0.925rem;
  font-weight: 520;
  letter-spacing: -0.008em;
  color: var(--nav-fg);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { background: var(--nav-hover); }
.nav__link .chev { width: 13px; height: 13px; opacity: 0.6; transition: transform var(--t-fast); }
.nav__item.is-open .nav__link .chev { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 264px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__panel a:hover { background: var(--paper-2); color: var(--blue-700); }

/* Actions header */
.header__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.header__ghost {
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--nav-fg);
  border: 1px solid var(--nav-border);
  transition: background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.header__ghost:hover { background: var(--nav-hover); }

/* État "scrollé" : verre dépoli */
.header.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 16px -8px rgba(0, 0, 0, 0.08);
}
/* Logo reste en couleurs sur hero clair (plus d'invert) */
.header:not(.is-stuck) .brand img { filter: none; }

/* Burger — flex colonne : en grid, les trois barres formeraient trois rangées
   réparties sur la hauteur et la croix de fermeture ne se rejoindrait pas. */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--nav-fg);
  border: 1px solid var(--nav-border);
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-fast);
}
.burger span + span { margin-top: 4.5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile — light */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__group + .mobile-nav__group { border-top: 1px solid var(--line); }
.mobile-nav__toggle,
.mobile-nav__solo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 570;
  color: var(--text);
  text-align: left;
}
.mobile-nav__toggle .chev { transition: transform var(--t-mid); opacity: 0.55; }
.mobile-nav__group.is-open .mobile-nav__toggle .chev { transform: rotate(180deg); }
.mobile-nav__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid);
}
.mobile-nav__group.is-open .mobile-nav__sub { grid-template-rows: 1fr; }
.mobile-nav__sub > div { overflow: hidden; }
.mobile-nav__sub a {
  display: block;
  padding: 0.62rem 0 0.62rem 1rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  border-left: 1px solid var(--line);
}
.mobile-nav__sub a:hover { color: var(--blue-700); border-left-color: var(--blue-500); }
.mobile-nav__cta { display: grid; gap: 0.75rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   6. Hero — structure du backup, traitement clair modern-minimal
   -------------------------------------------------------------------------- */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
/* Hallmark · genre: modern-minimal · macrostructure: image-backed split hero · theme: Apple-light */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  min-height: min(900px, 92vh);
  color: var(--text);
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 1;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.025);
  filter: none;
  animation: none;
}

/* Séquence éditoriale photo — trois tuiles égales, titre centré (page produit
   Apple). Pas de scrim sombre sur les photos : la légende passe sous l'image. */
.visual-story {
  padding-block: var(--section-y);
  background: var(--paper);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
}
.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--paper-2);
}
.story-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.35rem, 2vw, 1.9rem);
}
.story-card__body h3 { font-size: 1.25rem; letter-spacing: -0.028em; }
.story-card__body p { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(255, 255, 255, 0.98) 33%, rgba(255, 255, 255, 0.84) 56%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.2) 100%);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  width: min(42vw, 600px);
  height: min(42vw, 600px);
  right: 5vw;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 107, 240, 0.12), rgba(27, 107, 240, 0) 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.042em;
  margin-top: 1.6rem;
  color: var(--text);
}
.hero h1 .line { display: block; }
.hero__lead {
  margin-top: 1.7rem;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero .btn-row { margin-top: 2.2rem; }
.hero__micro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.7rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hero__micro li { display: flex; align-items: center; gap: 0.45rem; }
.hero__micro .icon { width: 15px; height: 15px; color: var(--blue-600); }

/* Carte simulateur du hero — flat light Apple */
.simul {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -36px rgba(29, 29, 31, 0.36), var(--sh-md);
  color: var(--text);
}
.simul__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.simul__head h2 {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--text);
}
.simul__head span { font-size: var(--fs-xs); color: var(--muted); }
.simul__field { margin-top: 1.5rem; }
.simul__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.seg button {
  padding: 0.6rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 560;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--sh-xs);
}
.simul__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.simul__amount output {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-600) var(--fill, 40%), var(--paper-3) var(--fill, 40%));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-600) var(--fill, 40%), var(--paper-3) var(--fill, 40%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue-500);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue-500);
  box-shadow: var(--sh-sm);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); }

.simul__result {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.simul__result p {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.simul__result .value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.simul__result small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.simul .btn { margin-top: 1.15rem; }
.simul__legal { margin-top: 0.85rem; font-size: 0.72rem; line-height: 1.45; color: var(--muted); }

/* --------------------------------------------------------------------------
   7. Bandeau de preuve (stats + logos)
   -------------------------------------------------------------------------- */
.proof { background: var(--paper-2); color: var(--text); padding-block: clamp(2.5rem, 5vw, 4rem); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.stat { position: relative; padding-left: 1.5rem; }
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem; bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  opacity: 0.85;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat__label {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--text-2);
}

/* Bandeau logos — sur fond clair : beaucoup de logos clients ont un fond blanc
   opaque, illisible sur du bleu nuit. */
.logos { background: var(--paper); padding-block: clamp(2.5rem, 5vw, 3.75rem); }

.marquee {
  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__title {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.marquee img {
  height: clamp(28px, 3.2vw, 42px);
  width: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.marquee img:hover { opacity: 1; transform: scale(1.04); }

/* --------------------------------------------------------------------------
   8. Grille de cartes génériques
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }

/* Indication « faites glisser », affichée uniquement quand la grille devient
   un carrousel tactile (voir la requête média mobile). */
.swipe-hint {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--muted);
}
.swipe-hint .icon { width: 15px; height: 15px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge {
  0%, 60%, 100% { transform: translateX(0); }
  75% { transform: translateX(5px); }
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }

/* Cartes secteurs */
.sector { color: inherit; }
.sector__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.sector__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.sector:hover .sector__media img { transform: scale(1.07); }
.sector__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.sector__body h3 { font-size: 1.16rem; letter-spacing: -0.026em; }
.sector__body p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.sector__body .link-arrow { margin-top: auto; padding-top: 0.6rem; }

/* Cartes "pourquoi" */
.why {
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.why__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Même contrainte que .step__art : viewBox carré imposé, le SVG source porte
   preserveAspectRatio="none". */
.why__art {
  width: clamp(74px, 6.6vw, 98px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  margin-right: -0.4rem;
  transition: transform var(--t-mid);
}
.why:hover .why__art { transform: translateY(-2px); }

.why__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 640;
  letter-spacing: -0.042em;
  line-height: 1;
  background: var(--grad-brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why h3 { font-size: 1.12rem; letter-spacing: -0.024em; }
.why p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
/* Pas de halo radial : la carte reste un aplat net. */

/* --------------------------------------------------------------------------
   9. Méthode (timeline)
   -------------------------------------------------------------------------- */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  background: var(--paper-2);
  padding-right: 0.75rem;
}
.section--dark .step::after { background: var(--paper-2); color: var(--blue-600); }
.section--dark .step::before { background: linear-gradient(90deg, var(--line-strong), transparent); }
/* Illustrations vectorielles générées : le SVG source porte
   preserveAspectRatio="none", d'où une boîte strictement carrée pour éviter
   toute déformation. */
.step__art {
  width: clamp(96px, 9vw, 124px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 1.1rem;
  transition: transform var(--t-mid);
}
.step:hover .step__art { transform: translateY(-4px) rotate(-1.5deg); }

.step h3 { font-size: 1.18rem; letter-spacing: -0.026em; }
.step p { margin-top: 0.7rem; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.section--dark .step p { color: var(--text-2); }
.step__meta {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.02em;
}
.section--dark .step__meta { color: var(--blue-600); }

/* --------------------------------------------------------------------------
   10. Sections "split" image + contenu
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 3 / 2;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 900ms var(--ease-out);
}
.split__media:hover img { transform: scale(1.055); }
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}
.split h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.split > div > p { margin-top: 1.2rem; font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; }
.section--dark .split > div > p { color: var(--text-2); }

.checklist { margin-top: 1.9rem; display: grid; gap: 0.95rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.55; }
.checklist .icon {
  width: 20px; height: 20px;
  margin-top: 1px;
  color: var(--blue-600);
  flex: none;
}
.section--dark .checklist .icon { color: var(--blue-600); }
.checklist strong { font-weight: 600; }

/* Badge flottant sur média */
.media-badge {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.media-badge .value {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--blue-700);
}
.media-badge p { font-size: var(--fs-xs); line-height: 1.45; color: var(--text-2); }

/* --------------------------------------------------------------------------
   11. Témoignages
   -------------------------------------------------------------------------- */
.testi-wrap { position: relative; }
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * clamp(1rem, 1.6vw, 1.5rem)) / 3);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  scroll-snap-align: start;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.testi__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.testi__saving {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.testi__sector {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.testi blockquote {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--text-2);
  flex: 1;
}
.testi__author { display: flex; align-items: center; gap: 0.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.testi__avatar {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.testi__author cite { font-style: normal; font-weight: 600; font-size: var(--fs-sm); display: block; }
.testi__author span { font-size: var(--fs-xs); color: var(--muted); }

.slider-nav { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.75rem; }
.slider-nav button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: var(--paper);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.slider-nav button:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: #fff; }
.slider-nav button:disabled { opacity: 0.35; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   12. Section marché / E-Radar (light Apple)
   -------------------------------------------------------------------------- */
.market__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.market__text .section-head { margin-bottom: 0; }

/* Carte produit E-Radar — visuel de veille dessiné en SVG plutôt qu'une photo
   décorative : lisible, net à toute densité, cohérent avec le reste des cartes. */
.radar {
  margin: 0;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.radar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
.radar__label { font-size: var(--fs-xs); color: var(--text-2); }
.radar__badge {
  flex: none;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(27, 107, 240, 0.09);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.radar__chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 260;
}
.radar__area { fill: rgba(27, 107, 240, 0.07); }
.radar__line {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.radar__marker { stroke: var(--blue-600); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.45; }
.radar__dot { fill: var(--paper); stroke: var(--blue-600); stroke-width: 3; }
.radar__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.radar__stats > div { padding: 1.1rem clamp(0.9rem, 1.4vw, 1.35rem); background: var(--paper); }
.radar__stats dt { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.03em; }
.radar__stats dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.028em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text);
}
.trend { font-size: 0.8rem; font-weight: 600; letter-spacing: 0; }
.trend--up { color: #d70015; }
.trend--down { color: var(--green); }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem);
  font-weight: 570;
  letter-spacing: -0.022em;
  color: var(--text);
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--blue-600); }
.faq__icon {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 25%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-fast);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0); opacity: 0; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 1.6rem;
  max-width: 68ch;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   14. CTA final + formulaire
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
  background: var(--paper-2);
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(245, 245, 247, 0.9) 18%, rgba(255, 255, 255, 0.82) 55%, rgba(245, 245, 247, 0.75) 100%);
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.cta h2 { font-size: var(--fs-h2); margin-top: 1rem; color: var(--text); }
.cta > .shell > .cta__grid > div > p { margin-top: 1.3rem; font-size: var(--fs-lead); color: var(--text-2); max-width: 46ch; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.25rem; }
.cta__contact a { display: flex; align-items: center; gap: 0.7rem; font-weight: 550; color: var(--text); transition: color var(--t-fast); }
.cta__contact a:hover { color: var(--blue-700); }
.cta__contact .icon { color: var(--blue-600); }
.cta__contact small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }

.form-card {
  padding: clamp(1.6rem, 2.5vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  color: var(--text);
}
.form-card h3 { font-size: 1.32rem; letter-spacing: -0.028em; color: var(--text); }
.form-card > p { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--text-2); }
.field { margin-top: 1.1rem; }
.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field select option { background: var(--paper); color: var(--text); }
.field input::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47, 134, 255, 0.15); }
.field input[aria-invalid="true"] { border-color: #d70015; }
.field .error { display: none; margin-top: 0.4rem; font-size: var(--fs-xs); color: #d70015; }
.field.has-error .error { display: block; }
.form-card .btn { margin-top: 1.5rem; }
.form-legal { margin-top: 0.9rem; font-size: 0.72rem; line-height: 1.5; color: var(--muted); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; color: var(--blue-600); }
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-ok { display: block; background: rgba(46, 204, 143, 0.16); border: 1px solid rgba(46, 204, 143, 0.4); }
.form-status.is-err { display: block; background: rgba(255, 143, 143, 0.14); border: 1px solid rgba(255, 143, 143, 0.4); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--paper-2);
  color: var(--text-2);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.footer__brand img { height: 36px; width: auto; filter: none; }
.footer__brand p { margin-top: 1.15rem; font-size: var(--fs-sm); line-height: 1.6; max-width: 34ch; color: var(--text-2); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.socials a:hover { background: var(--text); color: var(--paper); border-color: var(--text); }
.footer h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.15rem;
}
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { font-size: var(--fs-sm); color: var(--text-2); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--text); }
.footer__contact { display: grid; gap: 1rem; }
.footer__contact li { display: flex; gap: 0.7rem; font-size: var(--fs-sm); line-height: 1.5; }
.footer__contact .icon { color: var(--blue-600); margin-top: 2px; }
.footer__contact a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   16. Barre d'action mobile
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  z-index: 40;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; padding-block: 0.85rem; font-size: var(--fs-sm); }

/* Bouton rappel flottant (desktop) */
.callback-fab {
  position: fixed;
  z-index: 39;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: var(--sh-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
}
.callback-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.callback-fab:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  /* Sans la nav centrale, c'est le bloc d'actions qui pousse à droite */
  .header__actions { margin-left: auto; }
  .header__actions .header__ghost { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .testi-track { grid-auto-columns: calc((100% - clamp(1rem, 1.6vw, 1.5rem)) / 2); }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--rev .split__media { order: 0; }
  .cta__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
    /* Le rythme desktop (jusqu'à 160 px de padding par bord) rendait la page
       mobile interminable : on resserre l'échelle verticale. */
    --section-y: clamp(3.5rem, 11vw, 4.5rem);
  }

  /* Bandeau promo compact : une seule ligne, version courte du message */
  .promo__inner { padding: 0.55rem 2.5rem 0.55rem 1rem; font-size: var(--fs-xs); gap: 0.6rem; flex-wrap: nowrap; }
  .promo__icon,
  .promo__long { display: none; }
  .promo a { white-space: nowrap; }

  /* Le CTA principal vit dans la barre d'action fixe : pas de doublon en tête */
  .header__cta { display: none; }
  .mobile-bar { display: flex; }
  .mobile-bar .mobile-bar__main { white-space: nowrap; font-size: var(--fs-sm); }
  .mobile-bar .mobile-bar__call { flex: 0 0 58px; width: 58px; padding-inline: 0; }
  .callback-fab { display: none; }
  body { padding-bottom: 76px; }

  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }

  /* --- Hero ------------------------------------------------------------- */
  .hero { padding-top: calc(var(--header-h) + 2.25rem); padding-bottom: 3rem; min-height: auto; }
  .hero__media img { object-position: 68% 50%; filter: saturate(1.08) contrast(1.06); }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 52%, rgba(255, 255, 255, 0.32) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24));
  }
  .hero h1 { margin-top: 1.15rem; }
  .hero__lead { margin-top: 1.15rem; }
  .hero .btn-row { margin-top: 1.6rem; }
  .hero__micro { margin-top: 1.25rem; gap: 0.4rem 1.1rem; font-size: var(--fs-xs); }
  .simul__result { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* --- Séquence visuelle ------------------------------------------------ */
  .story-grid { grid-template-columns: 1fr; }

  /* --- E-Radar ---------------------------------------------------------- */
  .radar__stats { grid-template-columns: 1fr; }
  .radar__stats dd { font-size: 1.05rem; }

  /* --- Grilles ---------------------------------------------------------- */
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .stats { row-gap: 1.5rem; }

  /* Grille transformée en carrousel tactile : six cartes secteur empilées
     ajoutaient près de 2 500 px de défilement. Le débord jusqu'aux bords de
     l'écran laisse entrevoir la carte suivante, ce qui signale le geste. */
  .grid--swipe {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1rem;
  }
  .grid--swipe::-webkit-scrollbar { display: none; }
  .grid--swipe > * { scroll-snap-align: center; }
  .grid--swipe .card:hover { transform: none; box-shadow: none; }
  .swipe-hint { display: flex; }

  /* --- Méthode ---------------------------------------------------------- */
  .method { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .step { padding-top: 2rem; display: grid; grid-template-columns: 68px 1fr; column-gap: 1.1rem; }
  .step::before,
  .step::after { grid-column: 1 / -1; }
  .step__art { width: 68px; margin-bottom: 0; grid-row: span 3; }
  .step h3,
  .step p,
  .step .step__meta { grid-column: 2; }
  .step p { margin-top: 0.4rem; }
  .step__meta { margin-top: 0.6rem; }

  /* --- Pourquoi Elly ---------------------------------------------------- */
  .why { padding: 1.25rem 1.35rem 1.4rem; gap: 0.55rem; }
  .why__value { font-size: 2.1rem; }
  .why__art { width: 64px; }
  .why h3 { font-size: 1.05rem; }

  /* --- Témoignages ------------------------------------------------------ */
  .testi-track { grid-auto-columns: 86%; }

  /* --- Divers ----------------------------------------------------------- */
  .split { gap: 2rem; }
  .media-badge { position: static; margin: 0.75rem 0 0; border-radius: var(--r-md); }
  .split__media { box-shadow: var(--sh-md); }
  .faq__q { padding-block: 1.15rem; gap: 1rem; }
  .cta__contact { gap: 1.15rem; flex-direction: column; align-items: flex-start; }

  /* Cibles tactiles : on vise ~44 px de hauteur utile sans allonger la page,
     en convertissant les espacements de grille en padding cliquable. */
  .promo a { padding-block: 0.6rem; }
  .promo__close { width: 40px; height: 40px; right: 0.35rem; }
  input[type="range"] { height: 44px; }
  input[type="range"]::-webkit-slider-thumb { margin-top: -17px; }
  .footer__links { gap: 0; }
  .footer__links a { padding-block: 0.6rem; }
  .footer__bottom nav { gap: 0 1.25rem; }
  .footer__bottom nav a { padding-block: 0.5rem; }
  .footer__contact a { padding-block: 0.25rem; }

  /* Footer : les trois blocs de liens tiennent sur deux colonnes */
  .footer { padding-top: 3rem; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  /* Le bloc contact occupe la dernière rangée seul : on l'étale sur deux
     colonnes plutôt que de laisser une moitié vide. */
  .footer__top > div:last-child { grid-column: 1 / -1; }
  .footer__contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .grid--swipe { grid-auto-columns: 84%; }
  .testi-track { grid-auto-columns: 90%; }
}

@media print {
  .header, .promo, .mobile-bar, .callback-fab, .marquee { display: none !important; }
  body { color: #000; }
}
