/* ==========================================================================
   HakkilSchool — Landing publique statique
   Portage fidèle de lib/features/landing/presentation/landing_tokens.dart
   et des 16 widgets de lib/features/landing/presentation/widgets/.
   Aucune bibliothèque externe, aucun framework CSS.
   ========================================================================== */

:root {
  /* -- Couleurs (landing_tokens.dart) -- */
  --color-orange: #ff5a00;
  --color-orange-deep: #ea5200;
  --color-orange-soft: #fff1e8;
  --color-gold: #f7c900;
  --color-ink: #1e2229;
  --color-muted: #6d7179;
  --color-line: #ece5df;
  --color-paper: #fffaf6;
  --color-green: #25a85a;
  --color-blue: #2c78e8;
  --color-purple: #7557d8;
  --color-dark-panel: #20242b;
  --color-dark-panel-alt: #292e36;
  --color-white: #ffffff;

  /* -- Teintes secondaires reprises telles quelles des widgets Flutter
     (Color(0x...) inline) — regroupées ici pour éviter les valeurs
     magiques dispersées dans les règles ci-dessous. -- */
  --color-ink-soft: #454a52;
  --color-body-soft: #636871;
  --color-border-soft: #eee6df;
  --color-border-soft-2: #eae1da;
  --color-border-soft-3: #e7ded8;
  --color-border-soft-4: #eee4dc;
  --color-border-soft-5: #eee4dd;
  --color-border-soft-6: #eee7e1;
  --color-border-soft-7: #e9e0da;
  --color-border-soft-8: #e4dcd5;
  --color-muted-on-light: #9c9fa5;
  --color-muted-on-light-2: #92969c;
  --color-muted-on-light-3: #a0a4aa;
  --color-on-orange-soft: #8a5a34;
  --color-on-orange-light: #ffe5d4;
  --color-dark-panel-3: #2a2f37;
  --color-dark-panel-4: #2b3037;
  --color-dark-panel-5: #14171c;
  --color-footer-bg: #171a1f;
  --color-muted-on-dark: #b9bdc5;
  --color-muted-on-dark-2: #adb2bb;
  --color-muted-on-dark-3: #8e949e;
  --color-eyebrow-on-dark: #ff9e69;
  --color-error-bg: #fdebea;
  --color-error-text: #b3261e;
  --color-success-bg: #e7f8ee;

  /* -- Rayons -- */
  --radius-lg: 26px;
  --radius-sm: 16px;

  /* -- Layout -- */
  --shell-max-width: 1180px;

  /* -- Ombre (shadowSoft : Color(0x1F2F1F14), blur 70, offset 0 24) -- */
  --shadow-soft: 0 24px 70px rgba(47, 31, 20, 0.12);

  /* -- Rythme vertical des sections (LandingSectionPad) -- */
  --section-pad-mobile: 56px;
  --section-pad-tablet: 72px;
  --section-pad-desktop: 96px;

  color-scheme: light;
}

/* ==========================================================================
   Reset minimal
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.4;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Focus visible clavier — jamais supprimé, seulement affiné */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* Contenu utile aux lecteurs d'écran uniquement (labels de champs déjà
   visuellement portés par le placeholder/contexte). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   Layout partagé (LandingShell / LandingSectionPad)
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 639px) {
  .shell {
    padding: 0 14px;
  }
}

.section {
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

@media (max-width: 979px) {
  .section {
    padding-top: var(--section-pad-tablet);
    padding-bottom: var(--section-pad-tablet);
  }
}

@media (max-width: 639px) {
  .section {
    padding-top: var(--section-pad-mobile);
    padding-bottom: var(--section-pad-mobile);
  }
}

.section--paper {
  background: var(--color-paper);
}

.section--dark {
  background: var(--color-dark-panel);
}

/* En-tête de section : eyebrow + h2 + paragraphe (LandingSectionHead) */
.section-head {
  max-width: 640px;
}

.section-head--centered {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: block;
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.eyebrow--on-dark {
  color: var(--color-eyebrow-on-dark);
}

.section-head h2 {
  margin-top: 12px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.08;
  color: var(--color-ink);
  white-space: pre-line;
}

.section-head--on-dark h2 {
  color: var(--color-white);
}

.section-head mark {
  background: none;
  color: var(--color-orange);
}

.section-head p {
  margin-top: 14px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
}

.section-head--on-dark p {
  color: var(--color-muted-on-dark);
}

.section-head--centered p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 979px) {
  .section-head h2 {
    font-size: 38px;
  }
}

@media (max-width: 639px) {
  .section-head h2 {
    font-size: 30px;
  }
}

/* ==========================================================================
   Boutons (LandingButton)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  border-radius: 14px;
  padding: 16px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-orange-deep);
}

.btn--soft {
  background: #f7f3ef;
  color: var(--color-ink);
}

.btn--soft:hover {
  background: #efe8e1;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  padding: 14px 16px;
}

.btn--ghost:hover {
  background: rgba(30, 34, 41, 0.06);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-dark-panel);
}

.btn--white:hover {
  background: #f2f2f2;
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.33);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--dense {
  padding: 10px 14px;
  font-size: 13px;
}

.btn--expand {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: 74px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex: none;
}

.navbar__brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--color-ink);
}

.navbar__spacer {
  flex: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar__link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 9px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-ink-soft);
}

.navbar__link:hover {
  color: var(--color-ink);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.navbar__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-ink);
  border-radius: 10px;
}

.navbar__menu-btn:hover {
  background: rgba(30, 34, 41, 0.06);
}

/* Seuil "isNavCompact" (< 1600px) */
@media (max-width: 1599px) {
  .navbar__links,
  .navbar__actions {
    display: none;
  }

  .navbar__menu-btn {
    display: inline-flex;
  }
}

/* ---- Panneau mobile ---- */
.mobile-menu {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  border: none;
  padding: 0;
  cursor: pointer;
}

.mobile-menu__panel {
  position: relative;
  margin: 10px 14px 14px;
  padding: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 13px 8px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  border-radius: 12px;
}

.mobile-menu__link:hover {
  background: rgba(30, 34, 41, 0.05);
}

.mobile-menu__divider {
  height: 1px;
  background: var(--color-line);
  margin: 12px 0;
  border: none;
}

.mobile-menu__panel .btn {
  margin-bottom: 12px;
}

.mobile-menu__panel .btn:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(to bottom, var(--color-white), var(--color-paper));
  padding-top: 56px;
  padding-bottom: 8px;
}

@media (max-width: 639px) {
  .hero {
    padding-top: 28px;
  }
}

.hero__grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 979px) {
  .hero__grid {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero__copy {
  flex: 51;
  min-width: 0;
}

.hero__visual {
  flex: 49;
  min-width: 0;
  margin-top: 36px;
}

@media (min-width: 980px) {
  .hero__visual {
    margin-top: 0;
  }
}

@media (max-width: 979px) {
  .hero__copy {
    text-align: center;
  }

  .hero__copy .eyebrow,
  .hero__cta,
  .hero__mini {
    justify-content: center;
  }
}

.hero__title {
  margin-top: 20px;
  max-width: 620px;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--color-ink);
}

@media (max-width: 979px) {
  .hero__copy .hero__title {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 979px) and (min-width: 640px) {
  .hero__title {
    font-size: 52px;
  }
}

@media (max-width: 639px) {
  .hero__title {
    font-size: 38px;
  }
}

.hero__title .highlight {
  color: var(--color-orange);
}

.hero__body {
  margin-top: 22px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-body-soft);
}

@media (max-width: 979px) {
  .hero__body {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__pricing-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-orange-deep);
}

.hero__pricing-link span {
  text-decoration: underline;
}

.hero__mini {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__avatars {
  position: relative;
  width: 80px;
  height: 32px;
  flex: none;
}

.hero__avatar {
  position: absolute;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.hero__avatar:nth-child(1) {
  left: 0;
  background: var(--color-orange);
  color: var(--color-white);
}

.hero__avatar:nth-child(2) {
  left: 24px;
  background: var(--color-gold);
  color: #292500;
}

.hero__avatar:nth-child(3) {
  left: 48px;
  background: var(--color-green);
  color: var(--color-white);
}

.hero__mini-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.hero__mini-text span {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
}

/* ---- Visuel hero : capture + badges flottants ---- */
.hero__frame {
  position: relative;
}

.hero__browser {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
}

.hero__pill {
  position: absolute;
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--color-white);
  border: 1px solid #eee5de;
  border-radius: 999px;
  padding: 9px 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  font-size: 11px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .hero__pill {
    display: inline-flex;
  }
}

.hero__pill--check {
  left: -18px;
  top: 46px;
}

.hero__pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.hero__pill--check .hero__pill-icon {
  background: var(--color-success-bg);
  color: var(--color-green);
}

.hero__pill--count {
  right: -14px;
  top: 0;
}

.hero__pill--count .hero__pill-icon {
  background: #fff6ce;
  color: #6f5e00;
  width: auto;
  padding: 0 7px;
  font-size: 9px;
}

.hero__finance-card {
  display: none;
  position: absolute;
  right: -12px;
  bottom: 6px;
  align-items: center;
  gap: 10px;
  background: var(--color-dark-panel);
  border-radius: 16px;
  padding: 11px 15px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .hero__finance-card {
    display: flex;
  }
}

.hero__finance-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-orange);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.hero__finance-text span {
  display: block;
  font-size: 9px;
  color: #aeb3bc;
}

.hero__finance-text strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-white);
}

/* ---- Bande de capacités ---- */
.capability-strip {
  margin-top: 60px;
  padding: 18px 0;
  border-top: 1px solid #eee6df;
  border-bottom: 1px solid #eee6df;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

@media (max-width: 639px) {
  .capability-strip {
    margin-top: 40px;
    gap: 14px;
  }
}

.capability-strip span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #7b7e84;
  text-transform: uppercase;
}

/* ==========================================================================
   Pricing section
   ========================================================================== */
.pricing__grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 979px) {
  .pricing__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing__copy {
    text-align: center;
  }
}

.pricing__copy {
  flex: 40;
  min-width: 0;
}

.pricing__calculator {
  flex: 60;
  min-width: 0;
}

.pricing-rule {
  padding: 14px 0;
  border-top: 1px solid var(--color-border-soft-6);
  text-align: left;
}

.pricing-rule strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.pricing-rule span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--color-muted);
}

.calculator {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft-2);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.calculator__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator__head-text {
  flex: 1;
  min-width: 0;
}

.calculator__head-text .eyebrow {
  font-size: 9px;
  color: var(--color-orange-deep);
}

.calculator__head-text h3 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
}

.calculator__count-field {
  width: 96px;
  flex: none;
}

.calculator__count-field input {
  width: 100%;
  background: #23272e;
  color: var(--color-white);
  border: none;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.calculator__count-field span {
  display: block;
  margin-top: 3px;
  text-align: center;
  font-size: 8px;
  color: #b7bcc4;
}

.calculator__slider-wrap {
  margin-top: 18px;
}

.calculator input[type="range"] {
  width: 100%;
  height: 24px;
  appearance: none;
  background: transparent;
  cursor: grab;
}

.calculator input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--color-orange) 0%,
    var(--color-orange) var(--range-progress, 50%),
    var(--color-orange-soft) var(--range-progress, 50%),
    var(--color-orange-soft) 100%
  );
}

.calculator input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--color-orange-soft);
}

.calculator input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--color-orange);
}

.calculator input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.calculator input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.calculator__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.calculator__scale span {
  font-size: 10px;
  color: var(--color-muted-on-light);
}

.calculator__submit {
  margin-top: 12px;
}

.calculator__result {
  margin-top: 12px;
}

.calculator__disclaimer {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--color-muted-on-light-2);
}

.calculator__quote-cta {
  margin-top: 14px;
}

.result-placeholder {
  padding: 16px 0;
}

.result-placeholder p {
  font-size: 12.5px;
  color: var(--color-muted);
}

.result-placeholder .btn {
  margin-top: 10px;
}

.result-loading {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.quote-example h4 {
  font-size: 11.5px;
  font-weight: 700;
}

.quote-box {
  margin-top: 10px;
  background: var(--color-orange-soft);
  border: 1px solid #f6d9c4;
  border-radius: 16px;
  padding: 16px;
}

.quote-box .label {
  font-size: 11px;
  color: var(--color-on-orange-soft);
}

.quote-box .amount {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-orange-deep);
}

.quote-box .per-student {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-on-orange-soft);
}

.schedules {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-card {
  flex: 1 1 140px;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft-3);
  border-radius: 14px;
  padding: 12px;
}

.schedule-card .badge {
  font-size: 8px;
  font-weight: 900;
  color: #90949b;
}

.schedule-card .badge--green {
  color: var(--color-green);
}

.schedule-card .title {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.schedule-card .amount {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
}

.setup-fee {
  margin-top: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--color-border-soft);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.setup-fee strong {
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================================================
   Value projection section
   ========================================================================== */
.value-projection__grid {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 26px;
}

@media (max-width: 979px) {
  .value-projection__grid {
    flex-direction: column;
  }
}

.value-projection__grid > * {
  flex: 1;
  min-width: 0;
}

.tuition-input {
  background: var(--color-paper);
  border: 1px solid var(--color-border-soft-2);
  border-radius: 24px;
  padding: 22px;
}

.tuition-input h3 {
  font-size: 13px;
  font-weight: 800;
}

.tuition-input .hint {
  margin-top: 4px;
  font-size: 11px;
  font-style: italic;
  color: var(--color-muted);
}

.tuition-input .field {
  margin-top: 14px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft-3);
  border-radius: 14px;
  padding: 14px;
}

.tuition-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-ink);
}

.tuition-input .suffix {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 700;
}

.share-panel {
  background: linear-gradient(to bottom right, var(--color-orange), var(--color-orange-deep));
  border-radius: 24px;
  padding: 22px;
  color: var(--color-white);
}

.share-panel .share-value {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
}

.share-panel .share-caption {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--color-on-orange-light);
}

.mini-stat {
  margin-top: 18px;
}

.mini-stat + .mini-stat {
  margin-top: 8px;
}

.mini-stat span {
  display: block;
  font-size: 12px;
  color: var(--color-on-orange-light);
}

.mini-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.reference-cards {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.percent-card {
  flex: 1 1 160px;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft-4);
  border-radius: 16px;
  padding: 14px;
}

.percent-card .percent {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-orange-deep);
}

.percent-card .amount {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
}

.coverage-panel {
  margin-top: 20px;
  background: var(--color-paper);
  border-radius: 20px;
  padding: 20px;
}

.coverage-panel p {
  font-size: 13px;
  font-weight: 800;
}

.coverage-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coverage-chips span {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft-4);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.value-projection__note {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ==========================================================================
   Device showcase
   ========================================================================== */
.device-showcase__phones {
  margin: 32px auto 0;
  max-width: 460px;
}

.device-showcase__phones img {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
}

@media (max-width: 639px) {
  .device-showcase__phones {
    max-width: 320px;
  }
}

.platform-chips {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-dark-panel-alt);
  border: 1px solid #383d46;
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--color-white);
  font-size: 12.5px;
  font-weight: 700;
}

.platform-chip svg {
  color: var(--color-orange);
  flex: none;
}

.store-badges {
  margin-top: 28px;
  text-align: center;
}

.store-badges__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8d93a0;
  text-transform: uppercase;
}

.store-badges__row {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-dark-panel-5);
  border: 1px solid #383d46;
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
}

a.store-badge:hover {
  border-color: var(--color-orange);
}

.store-badges__caption {
  margin-top: 10px;
  font-size: 11px;
  color: #767c88;
}

/* ==========================================================================
   Product showcase
   ========================================================================== */
.showcase-tabs {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.showcase-tab {
  background: var(--color-dark-panel-3);
  border: 1px solid #3a3f48;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--color-muted-on-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.showcase-tab[aria-selected="true"] {
  background: var(--color-white);
  border-color: var(--color-white);
  color: #222222;
}

.showcase__body {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 42px;
}

@media (max-width: 979px) {
  .showcase__body {
    flex-direction: column-reverse;
    text-align: center;
  }
}

.showcase__caption {
  flex: 33;
  min-width: 0;
}

.showcase__device {
  flex: 67;
  min-width: 0;
  position: relative;
  aspect-ratio: 1448 / 1086;
  width: 100%;
}

.showcase__caption .kicker {
  color: #ff9252;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.showcase__caption h3 {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
}

.showcase__caption p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted-on-dark-2);
  line-height: 1.5;
}

.showcase__device img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 220ms ease;
}

.showcase__device img.is-active {
  opacity: 1;
  position: relative;
}

/* ==========================================================================
   Problem / solution + Feature grids
   ========================================================================== */
.problem-grid,
.feature-grid,
.step-grid {
  margin-top: 40px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid {
  margin-top: 44px;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.step-grid {
  margin-top: 48px;
  gap: 20px 20px;
}

@media (max-width: 979px) {
  .problem-grid,
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .problem-grid,
  .feature-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  min-height: 230px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.problem-card .number {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-muted-on-light-3);
}

.problem-card h3 {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.problem-card p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
}

.problem-card .outcome {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.problem-card .outcome .arrow {
  color: var(--color-orange);
  font-weight: 800;
}

.feature-card {
  min-height: 220px;
  background: var(--color-dark-panel-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 26px;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-card h3 {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
}

.feature-card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--color-muted-on-dark);
  line-height: 1.5;
}

.feature-card .tag {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--color-muted-on-dark-3);
  text-transform: uppercase;
}

/* ==========================================================================
   Roles section
   ========================================================================== */
.roles__grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

@media (max-width: 979px) {
  .roles__grid {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .roles__head .section-head,
  .role-tabs {
    margin-left: auto;
    margin-right: auto;
  }

  .role-tabs {
    justify-content: center;
  }
}

.roles__head {
  flex: 45;
  min-width: 0;
}

.roles__panel-wrap {
  flex: 55;
  min-width: 0;
  margin-top: 30px;
}

@media (min-width: 980px) {
  .roles__panel-wrap {
    margin-top: 0;
  }
}

.role-tabs {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tab {
  background: var(--color-white);
  border: 1px solid #e5ddd7;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5c6168;
  cursor: pointer;
}

.role-tab[aria-selected="true"] {
  background: #22262d;
  border-color: #22262d;
  color: var(--color-white);
}

.role-panel {
  min-height: 360px;
  background: var(--color-white);
  border: 1px solid #eee4dd;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 30px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.role-panel.is-active {
  opacity: 1;
}

.role-panel__banner {
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(to bottom right, #fff0e6, #fff8f2);
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.role-panel__icon {
  font-size: 44px;
  color: var(--color-orange);
  line-height: 1;
}

.role-panel__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8e6b55;
  text-transform: uppercase;
}

.role-panel h3 {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.role-panel > p {
  margin-top: 10px;
  color: var(--color-muted);
  line-height: 1.5;
  text-align: left;
}

.role-panel ul {
  margin-top: 16px;
}

.role-panel li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #f0ebe7;
  font-size: 13px;
  text-align: left;
}

.role-panel li svg {
  flex: none;
  margin-top: 2px;
  color: var(--color-green);
}

/* ==========================================================================
   How it works
   ========================================================================== */
.step-card {
  text-align: left;
}

.step-card .step-index {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #2b3038;
  border: 1px solid #50565f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
}

.step-card .step-tag {
  display: block;
  margin-top: 22px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ff9c63;
  text-transform: uppercase;
}

.step-card h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.step-card p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-muted-on-dark-2);
  line-height: 1.45;
}

/* ==========================================================================
   Accompaniment
   ========================================================================== */
.accompaniment-panel {
  background: linear-gradient(to bottom right, var(--color-orange), var(--color-orange-deep));
  border-radius: 30px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 50px;
}

@media (max-width: 979px) {
  .accompaniment-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 30px;
  }
}

.accompaniment-panel__copy {
  flex: 40;
  min-width: 0;
  color: var(--color-white);
}

.accompaniment-panel__copy h2 {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.accompaniment-panel__copy p {
  margin-top: 12px;
  color: var(--color-on-orange-light);
  line-height: 1.5;
}

.accompaniment-list {
  flex: 60;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 639px) {
  .accompaniment-list {
    grid-template-columns: 1fr;
  }
}

.accompaniment-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 18px;
  color: var(--color-white);
}

.accompaniment-item .index {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.accompaniment-item h3 {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 800;
}

.accompaniment-item p {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--color-on-orange-light);
}

/* ==========================================================================
   Workflow demo
   ========================================================================== */
.workflow {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

@media (max-width: 639px) {
  .workflow {
    flex-direction: column;
  }
}

.workflow-arrow {
  color: #c1b8b1;
  flex: none;
}

.flow-node {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid #e9e0da;
  border-radius: 18px;
  padding: 16px;
}

.flow-node .flow-index {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--color-orange-soft);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
}

.flow-node .flow-tag {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #979ba1;
  text-transform: uppercase;
}

.flow-node .flow-title {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

@media (max-width: 979px) {
  .faq__grid {
    flex-direction: column;
    text-align: center;
  }

  .faq__head .section-head,
  .faq__head .btn {
    margin-left: auto;
    margin-right: auto;
  }
}

.faq__head {
  flex: 40;
  min-width: 0;
}

.faq__head .btn {
  margin-top: 20px;
}

.faq__accordion {
  flex: 60;
  min-width: 0;
  margin-top: 0;
}

@media (max-width: 979px) {
  .faq__accordion {
    margin-top: 30px;
    width: 100%;
  }
}

.faq-item {
  border-top: 1px solid #e4dcd5;
}

.faq-item:last-child {
  border-bottom: 1px solid #e4dcd5;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  text-align: left;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-ink);
}

.faq-item__icon {
  flex: none;
  color: var(--color-orange);
  transition: transform 200ms ease;
}

.faq-item[data-open="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms ease;
}

.faq-item[data-open="true"] .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding: 0 30px 16px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  background: var(--color-dark-panel);
  border-radius: 32px;
  padding: 70px;
  text-align: center;
}

@media (max-width: 639px) {
  .final-cta {
    padding: 48px 22px;
  }
}

.final-cta h2 {
  margin-top: 16px;
  font-size: 40px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

@media (max-width: 639px) {
  .final-cta h2 {
    font-size: 26px;
  }
}

.final-cta p {
  margin-top: 14px;
  color: var(--color-muted-on-dark);
}

.final-cta__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-footer-bg);
  padding: 50px 0;
  color: var(--color-white);
}

.footer__grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 639px) {
  .footer__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
}

.footer__brand {
  flex: 2;
  min-width: 0;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.footer__brand-row strong {
  font-size: 17px;
  font-weight: 800;
}

.footer__brand p {
  margin-top: 10px;
  font-size: 12.5px;
  color: #aeb3bb;
}

.footer__col {
  flex: 1;
  min-width: 0;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-white);
}

.footer__col ul {
  margin-top: 12px;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col button,
.footer__col a {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  color: #9ca2ab;
  text-align: left;
}

.footer__col button:hover,
.footer__col a:hover {
  color: var(--color-white);
}

.footer__col .footer__static-text {
  font-size: 12px;
  color: #9ca2ab;
  cursor: default;
}

.footer__divider {
  margin-top: 40px;
  border: none;
  border-top: 1px solid #2b3037;
}

.footer__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #727983;
}

/* ==========================================================================
   Modale de demande de démo
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: 24px;
  padding: 28px;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal__head .eyebrow {
  flex: 1;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-ink);
  border-radius: 8px;
  flex: none;
}

.modal__close:hover {
  background: rgba(30, 34, 41, 0.06);
}

.modal h2 {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
}

.modal__intro {
  margin-top: 10px;
  color: var(--color-muted);
  line-height: 1.5;
}

.field {
  margin-top: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border-soft-3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-ink);
  background: var(--color-white);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-orange);
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.field .field-error {
  display: none;
  margin-top: 5px;
  font-size: 12px;
  color: var(--color-error-text);
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: var(--color-error-text);
}

.field[data-invalid="true"] .field-error {
  display: block;
}

.form-error {
  margin-top: 14px;
  background: var(--color-error-bg);
  border-radius: 12px;
  padding: 12px;
}

.form-error[hidden] {
  display: none;
}

.form-error p {
  font-size: 12.5px;
  color: var(--color-error-text);
}

.form-error .contact-line {
  margin-top: 8px;
  font-weight: 700;
}

.modal__consent {
  margin-top: 16px;
  font-size: 11px;
  color: var(--color-muted);
}

.modal__privacy-link {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-orange-deep);
}

.modal__submit-row {
  margin-top: 14px;
}

.modal__spinner {
  margin: 0 auto 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.4px solid rgba(255, 90, 0, 0.2);
  border-top-color: var(--color-orange);
  animation: spin 800ms linear infinite;
}

.modal__spinner[hidden] {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal__success {
  text-align: center;
}

.modal__success[hidden] {
  display: none;
}

.modal__success-icon {
  margin: 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__success h2 {
  margin-top: 18px;
  font-size: 20px;
}

.modal__success p {
  margin-top: 8px;
  color: var(--color-muted);
  line-height: 1.5;
}

.modal__success .btn {
  margin-top: 20px;
}

.modal[data-view="success"] .modal__form,
.modal[data-view="form"] .modal__success {
  display: none;
}

/* ==========================================================================
   Page confidentialité
   ========================================================================== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.legal h1 {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.legal__lead {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

.legal section {
  margin-top: 28px;
}

.legal h2 {
  font-size: 17px;
  font-weight: 800;
}

.legal p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.legal ul {
  margin-top: 8px;
}

.legal li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-orange);
}

.legal__contact {
  margin-top: 8px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 20px;
}

.legal__contact h2 {
  font-size: 14px;
}

.legal__contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.legal__contact-line svg {
  color: var(--color-orange-deep);
  flex: none;
}

/* ==========================================================================
   Accessibilité — mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}
