/* =========================================================================
   Stellance consulting — feuille de style unique
   Ordre : polices, thèmes, base, utilitaires, nav, héros, bénéfices,
   diagnostic, services, pourquoi, déroulé, témoignages, contact, pied,
   flottants, animations, mobile (760 px), mouvement réduit.
   Toutes les couleurs passent par une variable de thème.
   ========================================================================= */

/* 1. Polices ------------------------------------------------------------- */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }

/* 2. Thèmes -------------------------------------------------------------- */

:root {
  --indigo: #181D36; --twilight: #253354; --mauve: #5356A2; --jaune: #DFE04C; --jaune-hover: #CFD044; --porcelain: #FFFFFD; --noir: #010202;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px; --gutter: clamp(20px, 4vw, 48px);

  /* Valeurs identiques dans les deux thèmes (blocs toujours sombres :
     témoignages, contact, pied de page, carte de formulaire). */
  --quote-meta: #A9B0C9;
  --quotes-border: rgba(255, 255, 253, 0.3);
  --quotes-btn-hover-bg: rgba(223, 224, 76, 0.08);
  --quote-ring: linear-gradient(135deg, #DFE04C, rgba(223, 224, 76, 0.15));
  --quote-logo-bg: rgba(255, 255, 253, 0.07);
  --quote-logo-border: rgba(255, 255, 253, 0.14);
  --contact-gradient: linear-gradient(to bottom in oklab, #181D36 0%, #1b2140 9%, #232a55 19%, #2f3468 31%, #3d4079 45%, #484a8b 60%, #4f5197 75%, #5254a0 88%, #5356A2 min(420px, 33vw), #5356A2 100%);
  --contact-halo: radial-gradient(circle, rgba(223, 224, 76, 0.1), transparent 68%);
  --contact-fg: var(--porcelain);
  --contact-fg-2: #CDD1EC;
  --contact-label: #C3C8E8;
  --contact-rule: rgba(255, 255, 253, 0.2);
  --footer-rule: #6C6FB5;
  --footer-fg: #C3C8E8;
  --footer-link: #CDD1EC;
  --footer-legal: #ABB0DE;
  --footer-social-border: rgba(255, 255, 253, 0.25);
  --form-bg: var(--porcelain);
  --form-fg: var(--indigo);
  --form-field-bg: #F3F4FA;
  --form-field-border: #E2E5F0;
  --form-field-focus: var(--mauve);
  --form-msg: #4E5570;
  --form-ok: #2F6B45;
  --form-error: #8C2F2F;
  --benefit-num-hover: #b8ca42;
  --compare-dot: #A9B0C9;
  --pack-featured-shadow: 0 16px 40px rgba(84, 86, 162, 0.3);
  --pack-featured-text: #CDD1EC;
  --pack-featured-rule: #6C6FB5;
  --call-bar-shadow: 0 -6px 20px rgba(24, 29, 54, 0.18);
}

:root[data-theme="clair"] {
  --bg: var(--porcelain); --fg: var(--indigo); --fg-2: #4E5570; --fg-3: #8B90C6;
  --bg-tint: #F3F4FA; --border: #E2E5F0; --rule: #DDE0EE;
  --accent: var(--mauve); --accent-hover: #3E4080; --eyebrow: var(--mauve);
  --corner: var(--jaune); --shadow-block: var(--indigo);
  --focus: var(--mauve); --nav-link: #4E5570; --nav-link-hover: var(--indigo);
  --toggle-bg: #F3F4FA; --toggle-border: #E2E5F0; --toggle-knob: var(--porcelain); --toggle-knob-shadow: 0 2px 6px rgba(24, 29, 54, 0.16); --toggle-knob-x: 0px;
  --card-bg: var(--porcelain); --card-border: #E2E5F0;
  --benefit-hover: var(--mauve); --benefit-num: var(--mauve);
  --diag-bg: var(--porcelain); --diag-fg: var(--indigo); --diag-fg-2: #4E5570; --diag-border: #E2E5F0; --diag-badge-bg: var(--jaune); --diag-badge-fg: var(--mauve);
  --pack-tag-bg: #F3F4FA; --pack-tag-fg: var(--mauve); --check: var(--mauve); --mission-tag: #4E5570;
  --compare-bg: var(--indigo); --compare-fg: var(--porcelain);
  --step-line: var(--indigo); --step-num: var(--indigo);
  --quotes-bg: var(--indigo); --quotes-fg: var(--porcelain);
  --outline-btn: var(--indigo); --outline-btn-hover: rgba(7, 22, 56, 0.05);
  --hero-eyebrow-line: var(--jaune);
  /* jetons ajoutés (voir rapport de tâche) */
  --link: var(--mauve); --link-hover: #3E4080;
  --section-rule: transparent; --hero-rule: #E2E5F0;
  --hero-pattern: none; --hero-mask: none;
  --portrait-bg: #F3F4FA;
  --diag-border-width: 1px;
  --pack-rule: #E2E5F0;
  --compare-border: #E2E5F0;
  --step-arrow: var(--indigo); --step-dot-ring: var(--indigo);
  --outline-btn-hover-border: var(--indigo);
  --toggle-hover-border: var(--indigo); --toggle-icon-sun: var(--indigo); --toggle-icon-moon: #8B90C6;
  --skip-bg: var(--indigo); --skip-fg: var(--porcelain);
}

:root[data-theme="sombre"] {
  --bg: var(--indigo); --fg: var(--porcelain); --fg-2: #B7C0DC; --fg-3: #C3C8E8;
  --bg-tint: var(--indigo); --border: rgba(255, 255, 253, 0.12); --rule: rgba(255, 255, 253, 0.16);
  --accent: var(--jaune); --accent-hover: var(--porcelain); --eyebrow: var(--jaune);
  --corner: var(--mauve); --shadow-block: var(--jaune);
  --focus: var(--jaune); --nav-link: #B7C0DC; --nav-link-hover: var(--porcelain);
  --toggle-bg: rgba(255, 255, 253, 0.08); --toggle-border: rgba(255, 255, 253, 0.22); --toggle-knob: var(--jaune); --toggle-knob-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); --toggle-knob-x: 34px;
  --card-bg: rgba(255, 255, 253, 0.05); --card-border: rgba(255, 255, 253, 0.12);
  --benefit-hover: var(--jaune); --benefit-num: #C3C8E8;
  --diag-bg: var(--jaune); --diag-fg: var(--indigo); --diag-fg-2: rgba(7, 22, 56, 0.75); --diag-border: rgba(7, 22, 56, 0.35); --diag-badge-bg: var(--indigo); --diag-badge-fg: var(--jaune);
  --pack-tag-bg: rgba(255, 255, 253, 0.1); --pack-tag-fg: #CDD1EC; --check: var(--jaune); --mission-tag: #B7C0DC;
  --compare-bg: var(--mauve); --compare-fg: var(--porcelain);
  --step-line: rgba(255, 255, 253, 0.35); --step-num: var(--porcelain);
  --quotes-bg: var(--indigo); --quotes-fg: var(--porcelain);
  --outline-btn: rgba(255, 255, 253, 0.4); --outline-btn-hover: transparent;
  --hero-eyebrow-line: var(--jaune);
  /* jetons ajoutés (voir rapport de tâche) */
  --link: #C3C8E8; --link-hover: var(--porcelain);
  --section-rule: rgba(255, 255, 253, 0.1); --hero-rule: transparent;
  --hero-pattern: linear-gradient(rgba(255, 255, 253, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 253, 0.045) 1px, transparent 1px);
  --hero-mask: radial-gradient(ellipse 90% 80% at 60% 20%, black 30%, transparent 75%);
  --portrait-bg: #13204d;
  --diag-border-width: 1.5px;
  --pack-rule: rgba(255, 255, 253, 0.15);
  --compare-border: rgba(255, 255, 253, 0.18);
  --step-arrow: rgba(255, 255, 253, 0.6); --step-dot-ring: var(--indigo);
  --outline-btn-hover-border: var(--porcelain);
  --toggle-hover-border: var(--jaune); --toggle-icon-sun: #A9B0C9; --toggle-icon-moon: var(--indigo);
  --skip-bg: var(--jaune); --skip-fg: var(--indigo);
}

/* 3. Reset et base ------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); }
a:hover { color: var(--link-hover); }

img, svg { max-width: 100%; }

::selection { background: var(--jaune); color: var(--indigo); }

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

section[id], header { scroll-margin-top: 104px; }

/* 4. Utilitaires --------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section > .container { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.container:has(> .benefits) { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }

.section--tint {
  background: var(--bg-tint);
  border-top: 1px solid var(--section-rule);
  border-bottom: 1px solid var(--section-rule);
}

.section--dark {
  background: var(--quotes-bg);
  color: var(--quotes-fg);
  border-top: 1px solid var(--section-rule);
}

/* Section diagnostic : fond porcelaine en clair, jaune plein en sombre. */
.section--diag { background: var(--diag-bg); color: var(--diag-fg); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eyebrow);
  margin: 0 0 20px;
}

.eyebrow--line { display: flex; align-items: center; gap: 12px; }
.eyebrow--line::before {
  content: '';
  flex: none;
  width: 32px;
  height: 3px;
  background: var(--hero-eyebrow-line);
}

.h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  padding: 16px 32px;
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--primary { font-weight: 800; background: var(--jaune); color: var(--indigo); border: none; }
.btn--primary:hover { background: var(--jaune-hover); color: var(--indigo); }

.btn--outline { font-weight: 700; color: var(--fg); border: 1.5px solid var(--outline-btn); background: transparent; }
.btn--outline:hover { background: var(--outline-btn-hover); border-color: var(--outline-btn-hover-border); color: var(--fg); }

/* 5. Navigation ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  padding: 22px max(24px, calc((100% - 1240px) / 2 + 24px));
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav--shadow { box-shadow: 0 8px 30px rgba(7, 22, 56, 0.08); }

.nav__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}
.nav__logo img { display: block; height: 44px; width: 172px; object-fit: contain; object-position: left center; }

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  place-content: center;
}

.nav__menu { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }

.nav__link {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav__link:hover { color: var(--nav-link-hover); }

.nav__cta {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  background: var(--jaune);
  color: var(--indigo);
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav__cta:hover { background: var(--jaune-hover); color: var(--indigo); transform: translateY(-1px); }

.nav__underline {
  position: absolute;
  bottom: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: left 0.3s var(--ease), width 0.3s var(--ease), opacity 0.2s ease;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--toggle-hover-border); }

/* Les icônes seulement : le curseur est aussi un span mais doit rester en
   position absolue au-dessus d'elles, sans occuper de place dans le flux. */
.theme-toggle > .theme-toggle__icon {
  position: relative;
  width: 34px;
  height: 32px;
  display: grid;
  place-content: center;
}
.theme-toggle > span:nth-child(2) { color: var(--toggle-icon-sun); }
.theme-toggle > span:nth-child(3) { color: var(--toggle-icon-moon); }

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 32px;
  border-radius: 999px;
  background: var(--toggle-knob);
  box-shadow: var(--toggle-knob-shadow);
  transform: translateX(var(--toggle-knob-x));
  transition: transform 0.32s var(--ease);
}
.theme-toggle:hover .theme-toggle__knob { transform: translateX(calc(34px - var(--toggle-knob-x))); }

/* 6. Héros, portrait et chiffres ----------------------------------------- */

.hero {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--hero-rule);
}

/* Motif de grille décoratif : visible uniquement en thème sombre. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--hero-pattern);
  background-size: 56px 56px;
  -webkit-mask-image: var(--hero-mask);
  mask-image: var(--hero-mask);
}

.hero > .container {
  position: relative;
  min-height: calc(100svh - 89px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

/* Colonne texte du héros : min-width 0 pour que le titre puisse se réduire. */
.hero__copy { min-width: 0; }

.hero__eyebrow { margin: 0 0 32px; }
.hero__eyebrow::before { animation: lineGrow 0.9s 0.3s var(--ease) both; }

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 16ch;
}

.hero__accent { color: var(--accent); white-space: nowrap; }

.hero__intro {
  font-size: 16.5px;
  line-height: 1.7;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--fg-2);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 44px);
}

.portrait { position: relative; width: min(380px, 100%); justify-self: end; }

.portrait__shadow {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 100%;
  height: 100%;
  background: var(--shadow-block);
  border-radius: 6px;
}

.portrait__frame {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--portrait-bg);
}
.portrait__frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.portrait__placeholder {
  display: grid;
  place-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  color: var(--fg-3);
  font-size: 14px;
  font-weight: 600;
}

.portrait__corner {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 100px;
  height: 100px;
  border-left: 12px solid var(--corner);
  border-top: 12px solid var(--corner);
  border-top-left-radius: 6px;
  z-index: 2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--border);
  padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 72px);
}


.stat { min-width: 0; }

.stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
}
.stat__value span { color: var(--accent); }

.stat__label { font-size: 14.5px; font-weight: 600; margin: 10px 0 0; color: var(--fg-2); }

/* 7. Bénéfices ----------------------------------------------------------- */

.benefits { display: grid; }

.benefit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s var(--ease);
}
.benefit:last-child { border-bottom: none; }
.benefit:hover { padding-left: 16px; color: inherit; }

.benefit__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  transition: color 0.3s ease;
}
.benefit:hover .benefit__title { color: var(--benefit-hover); }

.benefit__num {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--benefit-num);
  vertical-align: super;
  margin-right: 14px;
  transition: color 0.3s ease;
}
.benefit:hover .benefit__num { color: var(--benefit-num-hover); }

.benefit__text { font-size: 16px; line-height: 1.65; margin: 0; color: var(--fg-2); max-width: 44ch; }

.benefit__arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translate(-12px, -50%);
  opacity: 0;
  color: var(--accent);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.benefit:hover .benefit__arrow { opacity: 1; transform: translate(0, -50%); }

/* 8. Diagnostic ---------------------------------------------------------- */

.diag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.diag__sticky { position: sticky; top: 100px; }
.diag__sticky .eyebrow { color: var(--diag-fg); }
.diag__sticky .eyebrow--line::before { background: var(--diag-fg); }
.diag__sticky p:not(.eyebrow) { font-size: 15.5px; line-height: 1.65; margin: 20px 0 0; color: var(--diag-fg-2); max-width: 40ch; }

.diag__list { display: grid; gap: 16px; }

.diag__card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: var(--diag-border-width) solid var(--diag-border);
  padding: 28px 32px;
  border-radius: 6px;
}
.diag__card p { font-size: 17px; font-weight: 600; line-height: 1.5; margin: 6px 0 0; }

.diag__badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--diag-badge-fg);
  background: var(--diag-badge-bg);
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: grid;
  place-content: center;
}

/* 9. Services : packs et missions ---------------------------------------- */

/* En-tête de la section : titre et accroche côte à côte, empilés sous 760 px
   grâce au flex-wrap. */
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.services__lede { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--fg-2); max-width: 46ch; }

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pack {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pack:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(7, 22, 56, 0.08); }

.pack--featured { background: var(--mauve); color: var(--porcelain); border: none; }
.pack--featured:hover { box-shadow: var(--pack-featured-shadow); }

.pack__tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--pack-tag-fg);
  background: var(--pack-tag-bg);
  padding: 6px 12px;
  border-radius: 4px;
  align-self: flex-start;
}
.pack--featured .pack__tag { color: var(--indigo); background: var(--jaune); }

.pack__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.pack__text { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--fg-2); }
.pack--featured .pack__text { color: var(--pack-featured-text); }

.pack__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--pack-rule);
  display: grid;
  gap: 10px;
}
.pack__list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; font-weight: 500; }
.pack__list svg { flex: none; margin-top: 3px; color: var(--check); }
.pack--featured .pack__list { border-top-color: var(--pack-featured-rule); }
.pack--featured .pack__list svg { color: var(--jaune); }

.missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.mission {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: none;
  border-radius: 6px;
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mission:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(7, 22, 56, 0.08); }
.mission h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
}
.mission p { font-size: 14.5px; line-height: 1.65; margin: 12px 0 0; color: var(--fg-2); }

.mission__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--jaune); }

.mission__tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mission-tag);
}

/* 10. Pourquoi Stellance et comparatif ----------------------------------- */

/* Conteneur de la section « Pourquoi Stellance » (grille + comparatif). */
.why { min-width: 0; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.why__grid .portrait { width: min(400px, 100%); justify-self: center; }

.why__accroche { font-size: 18px; line-height: 1.6; margin: 24px 0 0; font-weight: 700; max-width: 46ch; }
.why__body { font-size: 15.5px; line-height: 1.7; margin: 18px 0 0; max-width: 52ch; color: var(--fg-2); }
.why__strong { font-size: 15.5px; line-height: 1.7; margin: 18px 0 0; font-weight: 700; }

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}

.compare__card { border: 1px solid var(--compare-border); border-radius: 6px; padding: clamp(28px, 3vw, 40px); }
.compare__card--dark { background: var(--compare-bg); color: var(--compare-fg); border: none; }

.compare__title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--fg-2);
  margin: 0;
}
.compare__card--dark .compare__title { color: var(--jaune); }

.compare__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.compare__list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.compare__list span { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--compare-dot); margin-top: 8px; }
.compare__card--dark .compare__list li { color: var(--compare-fg); }
.compare__card--dark .compare__list svg { flex: none; margin-top: 3px; color: var(--jaune); }

/* 11. Déroulé ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: 56px;
  overflow: hidden;
}

.step { position: relative; padding-top: 44px; }

.step__line {
  position: absolute;
  top: 7px;
  left: 0;
  right: calc(-1 * clamp(24px, 3vw, 48px));
  height: 3px;
  background: var(--step-line);
}
.step:last-child .step__line { right: 40%; }

.step__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--jaune);
  border: 3px solid var(--step-dot-ring);
}

.step__arrow {
  position: absolute;
  top: 2px;
  right: calc(40% - 6px);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--step-arrow);
}

.step__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--step-num);
}

.step__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}

.step__text { font-size: 14.5px; line-height: 1.65; margin: 10px 0 0; color: var(--fg-2); }

/* 12. Témoignages -------------------------------------------------------- */

.quotes > .container { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }

.quotes__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.quotes__head > svg { flex: none; color: var(--jaune); fill: var(--jaune); }

.quotes__nav { display: flex; align-items: center; gap: 16px; }

.quotes__counter {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--quote-meta);
}
.quotes__counter span { color: var(--quotes-fg); }

.quotes__btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--quotes-border);
  border-radius: 4px;
  background: transparent;
  color: var(--quotes-fg);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quotes__btn:hover { border-color: var(--jaune); background: var(--quotes-btn-hover-bg); }

.quotes__body {
  min-height: clamp(220px, 24vw, 300px);
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.quotes__body--fade { opacity: 0; transform: translateY(10px); }

.quote { display: none; }
.quote--active { display: block; }

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}

.quote__text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 24px 0 0;
  max-width: 34ch;
}

.quote__name { font-size: 15px; font-weight: 700; margin: 28px 0 0; }
.quote__meta { font-size: 14px; font-weight: 600; margin: 3px 0 0; color: var(--quote-meta); }

.quote__media {
  display: grid;
  gap: 20px;
  justify-items: center;
  align-content: center;
  padding-top: 24px;
}

.quote__photo {
  width: clamp(160px, 16vw, 220px);
  height: clamp(160px, 16vw, 220px);
  border-radius: 50%;
  padding: 6px;
  background: var(--quote-ring);
  display: grid;
  min-width: 0;
  overflow: hidden;
}
.quote__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.quote__logo {
  display: grid;
  place-content: center;
  background: var(--quote-logo-bg);
  border: 1px solid var(--quote-logo-border);
  border-radius: 10px;
  padding: 16px 28px;
}
.quote__logo img { width: clamp(160px, 14vw, 210px); height: 64px; object-fit: contain; }

/* 13. Contact et formulaire ---------------------------------------------- */

.contact {
  background: var(--contact-gradient);
  color: var(--contact-fg);
  position: relative;
  overflow: hidden;
}

.contact__halo {
  position: absolute;
  right: -180px;
  top: min(300px, 26vw);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--contact-halo);
  mix-blend-mode: screen;
  pointer-events: none;
}

.contact__grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 200px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.contact .eyebrow { color: var(--jaune); margin: 0 0 24px; }
.contact .eyebrow--line::before { background: var(--jaune); animation: none; }

.contact__logo { display: block; width: min(420px, 100%); height: auto; margin: 0 0 clamp(24px, 3vw, 36px); }

.contact__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15ch;
}
.contact__title span { color: var(--jaune); }

/* Paragraphe d'introduction du contact. Ciblé sur les <p> sans classe pour ne
   pas écraser .contact__signature ni .form__status, qui vivent dans la même
   section avec une spécificité plus faible. */
.contact p:not([class]) { font-size: 16.5px; line-height: 1.7; max-width: 46ch; margin: 24px 0 0; color: var(--contact-fg-2); }

.contact__lines { display: grid; margin-top: 40px; border-top: 1px solid var(--contact-rule); }

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--contact-rule);
  color: var(--contact-fg);
  text-decoration: none;
}
.contact-line:hover { color: var(--contact-fg); }
.contact-line > span { display: grid; gap: 4px; min-width: 0; }

.contact-line__label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--contact-label);
}

.contact-line__value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Ligne e-mail : échelle réduite pour absorber une adresse longue. */
.contact-line:last-child .contact-line__value { font-size: clamp(17px, 2vw, 24px); }

.contact-line__arrow { flex: none; color: var(--jaune); transition: transform 0.3s var(--ease); }
.contact-line:hover .contact-line__arrow { transform: translate(4px, -4px); }

.contact__signature { font-size: 13.5px; line-height: 1.6; margin: 28px 0 0; color: var(--contact-label); max-width: none; }

.form {
  display: grid;
  gap: 18px;
  background: var(--form-bg);
  color: var(--form-fg);
  border-radius: 10px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 80px rgba(7, 22, 56, 0.35);
}

.form__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form__field { display: grid; gap: 8px; }
.form__label { font-size: 13px; font-weight: 700; }

.form__input,
.form__textarea {
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--form-field-border);
  border-radius: 6px;
  background: var(--form-field-bg);
  color: var(--form-fg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form__input { min-height: 52px; padding: 0 18px; }
.form__textarea { min-height: 140px; resize: vertical; padding: 14px 18px; }
.form__input:focus,
.form__textarea:focus { border-color: var(--form-field-focus); background: var(--form-bg); outline: none; }

.form__honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__submit {
  min-height: 54px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  background: var(--jaune);
  color: var(--indigo);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.form__submit:hover { background: var(--jaune-hover); transform: translateY(-1px); }

.form__status { font-size: 13.5px; font-weight: 700; line-height: 1.5; margin: 0; color: var(--form-msg); }
.form__status:empty { display: none; }
.form__status--ok { color: var(--form-ok); }
.form__status--error { color: var(--form-error); }

/* 14. Pied de page ------------------------------------------------------- */

/* Le pied est autonome (posé après .contact) : il porte lui-même le mauve sur
   lequel ses couleurs de texte sont calibrées, dans les deux thèmes. */
.footer { background: var(--mauve); border-top: 1px solid var(--footer-rule); }

.footer > .container {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  gap: 16px 32px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--footer-fg);
}

.footer__logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.footer__logo img { height: 36px; width: auto; display: block; }

.footer__link { color: var(--footer-link); text-decoration: none; font-weight: 600; }
.footer__link:hover { color: var(--jaune); }

.footer__socials { display: inline-flex; gap: 10px; }

.footer__social {
  width: 40px;
  height: 40px;
  border: 1px solid var(--footer-social-border);
  border-radius: 4px;
  display: grid;
  place-content: center;
  color: var(--footer-link);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__social:hover { border-color: var(--jaune); color: var(--jaune); }

.footer__legal { width: 100%; font-size: 12.5px; color: var(--footer-legal); }

/* 15. Éléments flottants ------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  background: var(--skip-bg);
  color: var(--skip-fg);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--skip-fg); }

.call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  background: var(--jaune);
  color: var(--indigo);
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--call-bar-shadow);
}
.call-bar:hover { color: var(--indigo); }

.back-top {
  position: fixed;
  right: 24px;
  bottom: 128px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 4px;
  background: var(--jaune);
  color: var(--indigo);
  cursor: pointer;
  display: grid;
  place-content: center;
  box-shadow: 0 10px 30px rgba(7, 22, 56, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.back-top:hover { background: var(--jaune-hover); }
.back-top--visible { transform: none; pointer-events: auto; }

/* 16. Page d'erreur 404 -------------------------------------------------- */

.error-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(20px, 4vw, 48px);
}

.error-page__logo { display: block; width: min(260px, 60%); margin: 0 0 clamp(32px, 6vw, 64px); }
.error-page__logo img { display: block; width: 100%; height: auto; }

/* 17. Animations --------------------------------------------------------- */

@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 32px; }
}

.hero-in { animation: heroUp 0.8s var(--ease) both; }
.hero-in--d1 { animation-delay: 0.12s; }
.hero-in--d2 { animation-delay: 0.2s; }
.hero-in--d3 { animation-delay: 0.26s; }
.hero-in--d4 { animation-delay: 0.34s; }
.hero-in--d5 { animation-delay: 0.4s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].on { opacity: 1; transform: none; }

/* 18. Mobile : point de rupture unique 760 px ---------------------------- */

@media (max-width: 760px) {
  .nav__menu { display: none; }
  .nav[data-open="true"] .nav__menu { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 2px; padding-top: 10px; }
  .nav[data-open="true"] .nav__link { padding: 12px 2px; font-size: 15.5px; }
  .nav__burger { display: grid; }
  .nav__underline { display: none; }
  .call-bar { display: flex; }
  body { padding-bottom: 72px; }
  .hero__grid, .benefit, .diag, .quote__grid { grid-template-columns: minmax(0, 1fr); }
  .diag__sticky { position: static; }
  .portrait { justify-self: start; }
  .quote__media { justify-items: start; padding-top: 0; }
  .why__grid .portrait { justify-self: start; }
  .benefit__arrow { display: none; }
  .back-top { bottom: 88px; }
}

/* 19. Mouvement réduit --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero-in, [data-reveal] { opacity: 1 !important; transform: none !important; }
}
