/* ============================================================
   MEDIMAIL INSTANTANÉE — Site produit
   Charte graphique Numih France 2026.

   Medimail Instantanée est un produit de la gamme NUMIH SANTÉ,
   univers chromatique « Coordination ville-hôpital » (p. 24-25
   de la charte) :
     #005055  couleur foncée principale — textes, titres, aplats
     #7ec39b  accent
     #e8f1da  fond clair
     + blanc

   Règles appliquées :
   — La signature Numih France prend la couleur foncée principale
     de l'univers produit (#005055), tout comme la couleur des
     textes. Voir assets/img/logo-numih-france-sante.svg.
   — Les couleurs institutionnelles (bleus #232a55 / #253164) et
     les palettes des autres gammes (IA, Cloud & Cyber,
     Collectivités & Éducation) ne sont PAS utilisées ici.
   — Le rouge institutionnel #df182c est réservé aux états
     d'alerte et d'erreur, où la distinction est fonctionnelle.
   — Typographies : l'IvyPresto Display Thin est strictement
     réservée à la communication institutionnelle Numih France ;
     elle n'est donc pas employée ici. La charte désigne Degular
     comme typographie principale des supports produits, et
     autorise explicitement Neue Haas Grotesk Display Pro « en
     remplacement des deux autres typographies » — c'est le repli
     retenu, Degular n'étant pas servie par le kit Adobe Fonts
     du groupement. Titres en minuscules, conformément à la charte.
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES
   Les noms historiques sont conservés pour ne pas fragmenter la
   feuille de style ; seules les valeurs suivent la charte 2026.
   ------------------------------------------------------------ */
:root {
  --white:        #ffffff;
  --black:        #000000;

  /* Univers Numih Santé — Coordination ville-hôpital */
  --bluedark:     #005055;   /* Couleur foncée principale : textes, titres, boutons */
  --darkblue2:    #004449;   /* Ton profond des aplats et dégradés (couleur du logo produit) */
  --blueelectric: #003b3f;   /* Nuance d'interaction (survol des boutons) */
  --bluesoft:     #7ec39b;   /* Accent */
  --green:        #7ec39b;
  --greenlight:   #91e0b3;   /* Vert clair du logotype Medimail Instantanée */
  --bluelight:    #e8f1da;   /* Fond clair de l'univers */
  --lightgreen:   #daf5e6;
  --lightgreen2:  #e8f1da;
  --firgreen:     #005055;

  /* Tons secondaires — déclinaison « gestion hospitalière » de la
     même gamme Numih Santé, employés pour les textes secondaires
     et un second accent. */
  --blue:         #1f5975;
  --bluemallard:  #1f5975;
  --teal:         #74c6c8;

  /* États — rouge institutionnel de la charte, réservé aux alertes */
  --alert:        #df182c;
  --alert-text:   #b3121f;   /* Assombri pour le contraste sur fond blanc */
  --grey:         #f0f0f0;

  /* Typographies du kit Adobe Fonts du groupement.
     Degular est déclarée en premier : si le kit l'expose un jour,
     elle prend le relais sans modification du code. */
  --font-display: "degular", "neue-haas-grotesk-display", -apple-system,
                  BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "neue-haas-grotesk-display", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Tokens de mise en forme (relevés sur le site : arrondi 10 px dominant) */
  --radius:     10px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 2px 10px rgba(0, 80, 85, .08);
  --shadow-md:  0 12px 40px rgba(0, 80, 85, .14);
  --shadow-lg:  0 24px 70px rgba(0, 68, 73, .25);

  --container:  1200px;
  --header-h:   84px;

  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bluedark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

ul { list-style: none; }

/* Titrages : typographie produit, en minuscules (charte 2026).
   Graisses légères et interlettrage resserré pour retrouver
   l'élégance des titrages de la charte avec une grotesque. */
h1, h2 {
  font-family: var(--font-display);
  color: var(--bluedark);
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.35rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem);  font-weight: 400; }
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.008em;
}

p { max-width: 65ch; }

/* Focus visible — navigation clavier (RGAA) */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--bluedark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Conteneurs */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 780px; }

/* Titres de section */
.section-title { margin-bottom: 20px; }
.section-title--light { color: var(--white); }
.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin-bottom: 48px;
  max-width: 58ch;
}
.section-lead--light { color: var(--bluelight); }

/* ------------------------------------------------------------
   3. BOUTONS & LIENS (style relevé : radius 10 px, bluedark)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.btn--primary {
  background: var(--bluedark);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blueelectric);
  box-shadow: var(--shadow-md);
}
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--full { width: 100%; }

/* Lien souligné animé */
.link-underline {
  position: relative;
  font-weight: 600;
  text-decoration: none;
  color: var(--bluedark);
  padding-bottom: 3px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.link-underline:hover::after {
  transform: scaleX(0);
  transform-origin: right;
  animation: underline-in .35s .35s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes underline-in {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 80, 85, .08);
  transition: box-shadow var(--transition), background var(--transition);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .94); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo { flex-shrink: 0; display: block; }
.header__logo img { width: 180px; height: auto; }

.header__nav { margin-left: auto; }
.header__nav ul { display: flex; gap: 28px; }
.header__nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--bluedark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta { flex-shrink: 0; }

/* Burger mobile */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(0, 80, 85, .2);
  border-radius: var(--radius);
  cursor: pointer;
}
.header__burger span {
  display: block;
  height: 2px;
  background: var(--bluedark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}

/* Fond : visuel officiel « Dégradé Hôpital » + voile pour la lisibilité */
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  width: 100%; height: 115%;
  object-fit: cover;
  will-change: transform;
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.45) 72%, rgba(232,241,218,.25) 100%),
    linear-gradient(180deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 30%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: center;
}

/* Lockup de marque officiel (vert profond #004449 / vert clair #91e0b3).
   Il nomme la page ; le h1 en dessous porte la proposition de valeur. */
.hero__logo {
  display: block;
  width: clamp(212px, 22vw, 296px);
  height: auto;
  margin-bottom: 26px;
}

.hero__title {
  margin-bottom: 24px;
  /* Titre long : corps réduit par rapport au h1 générique (76 px)
     pour garder pitch + CTA visibles dès le premier écran */
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
}
.hero__title em {
  font-style: italic;
  color: var(--blue);
}

.hero__pitch {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  margin-bottom: 36px;
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 40px;
}

/* Badges HDS / RGPD / TLS */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--bluedark);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 80, 85, .14);
  border-radius: 100px;
  padding: 8px 16px;
}
.badge svg { width: 18px; height: 18px; color: var(--firgreen); }

.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--bluedark);
  opacity: .55;
  transition: opacity var(--transition);
}
.hero__scroll-hint:hover { opacity: 1; }
.hero__scroll-hint svg { width: 26px; height: 26px; animation: hint-bounce 2.2s ease-in-out infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ------------------------------------------------------------
   6. ANIMATION SIGNATURE — mockup téléphone / conversation
   ------------------------------------------------------------ */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.phone {
  position: relative;
  width: min(340px, 86vw);
  border-radius: 46px;
  background: var(--darkblue2);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 116px; height: 26px;
  background: var(--darkblue2);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone__screen {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--bluelight) 130%);
  border-radius: 36px;
  overflow: hidden;
  height: 580px;
}

/* Scènes du workflow (annuaire → salon → conversation), empilées et fondues */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.scene__body {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Curseur de saisie clignotant */
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--bluedark);
  vertical-align: text-bottom;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Avatars colorés (initiales), comme dans l'application */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--av, var(--bluedark));
  /* --av-ink permet de repasser les initiales en foncé sur les
     avatars clairs de la palette, pour rester lisible. */
  color: var(--av-ink, var(--white));
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar--xs { width: 17px; height: 17px; font-size: .5rem; }

/* Scène 1 — recherche dans l'annuaire */
.search__field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .2);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--bluedark);
}
.search__field svg { width: 17px; height: 17px; color: var(--bluemallard); flex-shrink: 0; }
.search__hint {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bluemallard);
  margin: 18px 0 10px;
}
.search__results { width: 100%; display: grid; gap: 4px; }
.search__results li {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .25s ease;
}
.search__results li.is-tap,
.search__results li.is-picked { background: var(--bluelight); }
/* Coche de confirmation : le geste de sélection reste lisible après le tap */
.res__check {
  width: 20px; height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--bluedark);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .22s ease, transform .32s cubic-bezier(.34, 1.56, .64, 1);
}
.search__results li.is-picked .res__check { opacity: 1; transform: scale(1); }
.res__id { display: flex; flex-direction: column; line-height: 1.3; }
.res__id strong { font-size: .82rem; }
.res__id small { font-size: .7rem; color: var(--bluemallard); }

/* Scène 2 — création du salon */
.group__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bluemallard);
  margin: 6px 0 8px;
}
.group__label + .group__label,
.group__chips + .group__label { margin-top: 20px; }
.group__field {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .2);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--bluedark);
  min-height: 42px;
  margin-bottom: 14px;
}
.group__chips { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.group__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .16);
  border-radius: 100px;
  padding: 6px 14px 6px 7px;
  font-size: .78rem;
  font-weight: 600;
}
.group__btn {
  display: inline-block;
  margin-top: 22px;
  background: var(--bluedark);
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 22px;
}

.phone__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 16px 12px;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 80, 85, .08);
}
.phone__avatar { border-radius: 10px; }
.phone__peer { display: flex; flex-direction: column; line-height: 1.3; }
.phone__peer strong { font-size: .82rem; }
.phone__status {
  font-size: .7rem;
  color: var(--firgreen);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dot--online {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.phone__lock {
  width: 22px; height: 22px;
  margin-left: auto;
  color: var(--firgreen);
}

.phone__thread {
  flex: 1;
  min-height: 0;             /* contraint le fil à l'espace disponible (flexbox) */
  overflow: hidden;          /* les anciens messages sortent par le haut, comme dans une vraie messagerie */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* conversation ancrée en bas */
  gap: 10px;
  padding: 16px 14px;
}

/* Bulles de message */
/* En attente d'arrivée : la bulle ne réserve pas d'espace (ajouté/retiré par JS) */
html.js .msg--pending { display: none; }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .82rem;
  line-height: 1.45;
  opacity: 0;               /* révélées en séquence par le JS */
  transform: translateY(14px) scale(.96);
  will-change: transform, opacity;
}
.msg--in {
  align-self: flex-start;
  background: var(--grey);
  border-bottom-left-radius: 4px;
}
.msg--out {
  align-self: flex-end;
  background: var(--bluedark);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.msg__author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .66rem;
  font-weight: 700;
  color: var(--bluemallard);
  margin-bottom: 4px;
}
.msg__author--out { color: var(--bluelight); }

/* Pièce jointe */
.msg--file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bluelight);
}
.msg--file svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--bluemallard); }
.msg--file small { color: var(--bluemallard); }

/* Note vocale : égaliseur animé */
.msg--voice { min-width: 190px; }
.msg__voicebar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.msg__voicebar small { color: var(--bluemallard); font-size: .68rem; }
.msg__play { width: 20px; height: 20px; flex-shrink: 0; color: var(--bluemallard); }
.eq { display: flex; align-items: center; gap: 2.5px; height: 22px; flex: 1; }
.eq i {
  width: 3px;
  height: 100%;
  background: rgba(31, 89, 117, .7);
  border-radius: 2px;
  transform: scaleY(.3);
  transform-origin: center;
}
.is-playing .eq i { animation: eq-bounce 1s ease-in-out infinite; }
.eq i:nth-child(2n)  { animation-delay: .12s; }
.eq i:nth-child(3n)  { animation-delay: .24s; }
.eq i:nth-child(4n)  { animation-delay: .36s; }
.eq i:nth-child(5n)  { animation-delay: .05s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(.25); }
  50%      { transform: scaleY(1); }
}

/* Message image (ECG partagé) */
.msg--image {
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .14);
  padding: 6px;
  max-width: 72%;
}
.msg__ecg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(223, 24, 44, .18);
}
.msg--image figcaption {
  font-size: .66rem;
  color: var(--bluemallard);
  padding: 6px 4px 2px;
}

/* Indicateur de saisie */
.msg--typing {
  align-self: flex-start;
  background: var(--grey);
  display: inline-flex;
  gap: 5px;
  padding: 13px 16px;
  border-bottom-left-radius: 4px;
}
.msg--typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bluemallard);
  opacity: .4;
}
.msg--typing.is-on span { animation: typing-blink 1s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: .18s; }
.msg--typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-blink {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}

/* Barre de saisie (décor, comme dans l'application) */
.phone__inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 16px;
  color: var(--bluemallard);
}
.phone__inputbar > svg { width: 20px; height: 20px; flex-shrink: 0; }
.inputbar__field {
  flex: 1;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .18);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: .78rem;
  color: rgba(0, 80, 85, .55);
}
.inputbar__send {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bluedark);
  color: var(--white);
  flex-shrink: 0;
}
.inputbar__send svg { width: 16px; height: 16px; }

/* Cartouche d'étape — chevauche le bas du téléphone pour rester dans le
   champ de vision. Le chiffre reprend le serif du titre du hero ; la piste
   à trois segments donne la position dans le workflow. */
.phone-step {
  position: relative;
  z-index: 4;
  width: min(392px, 92vw);
  max-width: 100%;
  margin: -30px auto 0;
  padding: 17px 22px 15px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num label"
    "track track";
  column-gap: 16px;
  row-gap: 13px;
  align-items: center;
  text-align: left;
}
.phone-step__num {
  grid-area: num;
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 400;
  line-height: .85;
  color: var(--bluesoft);
  min-width: 27px;                /* le « 1 » est étroit : évite que le libellé se décale */
  text-align: center;
  transition: opacity .26s ease, transform .26s ease;
}
.phone-step__label {
  grid-area: label;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bluedark);
  min-height: 2.6em;              /* réserve la place de 2 lignes : pas de saut */
  display: flex;
  align-items: center;
  text-wrap: balance;
  transition: opacity .26s ease, transform .26s ease;
}
.phone-step.is-fading .phone-step__num,
.phone-step.is-fading .phone-step__label {
  opacity: 0;
  transform: translateY(6px);
}

.phone-step__track {
  grid-area: track;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.phone-step__seg {
  height: 3px;
  border-radius: 100px;
  background: rgba(0, 80, 85, .13);
  overflow: hidden;
}
.phone-step__seg b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--bluesoft);
}
.phone-step__seg.is-done b { width: 100%; }
/* --seg-duration est posée en JS : le remplissage dure exactement le temps
   de la scène affichée. */
.phone-step__seg.is-active b {
  width: 100%;
  transition: width var(--seg-duration, 4s) linear;
}

/* Halo protecteur autour du téléphone */
.phone__halo {
  position: absolute;
  inset: -34px;
  z-index: -1;
  border-radius: 70px;
  background: radial-gradient(closest-side, rgba(126, 195, 155, .4), rgba(126, 195, 155, 0));
  opacity: .5;
  will-change: opacity, transform;
}
/* Onde à chaque message reçu. Portée par ::after pour ne pas entrer en
   conflit avec la respiration continue du halo, pilotée par GSAP. */
.phone__halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(126, 195, 155, .55), rgba(126, 195, 155, 0));
  opacity: 0;
}
.phone__halo.is-pulse::after { animation: halo-pulse .85s ease-out; }
@keyframes halo-pulse {
  0%   { opacity: 0;   transform: scale(.94); }
  30%  { opacity: .85; transform: scale(1.06); }
  100% { opacity: 0;   transform: scale(1.14); }
}

/* ------------------------------------------------------------
   7. PILIERS
   ------------------------------------------------------------ */
.pillars {
  background: linear-gradient(160deg, var(--bluedark) 0%, var(--darkblue2) 70%, var(--bluemallard) 130%);
  color: var(--white);
  padding: 110px 0;
}
.pillars .section-lead { color: var(--bluelight); }

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.pillar:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(126, 195, 155, .5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.pillar__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: rgba(126, 195, 155, .16);
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--bluesoft);
}
.pillar__icon svg { width: 28px; height: 28px; }
.pillar h3 { color: var(--white); margin-bottom: 12px; }
.pillar p { font-size: .98rem; color: rgba(255, 255, 255, .85); }
.pillar strong { color: var(--white); }

/* ------------------------------------------------------------
   8. PROBLÈME / COMPARATIF
   ------------------------------------------------------------ */
.problem { padding: 120px 0; }
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.problem__content p { margin-bottom: 20px; }
.problem__content .btn { margin-top: 12px; }

.problem__compare {
  display: grid;
  gap: 20px;
}
.compare {
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
/* Le comparatif n'introduit pas de couleur hors charte : le canal
   à risque est signalé par un neutre et un liseré rouge d'alerte. */
.compare--risk {
  background: var(--grey);
  border: 1px solid rgba(223, 24, 44, .3);
  border-left: 4px solid var(--alert);
}
.compare--safe {
  background: var(--lightgreen);
  border: 1px solid rgba(0, 80, 85, .18);
  transform: translateX(24px);
}
.compare__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  margin-bottom: 14px;
}
.compare--risk .compare__label { color: var(--alert-text); }
.compare--risk .compare__label svg { width: 20px; height: 20px; }
.compare--safe .compare__label { color: var(--firgreen); }
.compare--safe .compare__label img { border-radius: 6px; }
.compare ul { display: grid; gap: 8px; font-size: .95rem; }
.compare li { padding-left: 22px; position: relative; }
.compare--risk li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--alert-text);
  font-weight: 700;
}
.compare--safe li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--firgreen);
  font-weight: 700;
}

/* ------------------------------------------------------------
   9. AVANTAGES
   ------------------------------------------------------------ */
.benefits { padding: 40px 0 120px; }
.benefits .section-title { margin-bottom: 56px; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit {
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transition: box-shadow var(--transition);
}
.benefit:hover { box-shadow: var(--shadow-md); }
.benefit--blue   { background: var(--bluelight); }
.benefit--green  { background: var(--lightgreen); }
.benefit--yellow { background: var(--grey); }
.benefit__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--bluedark);
  box-shadow: var(--shadow-sm);
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { margin-bottom: 12px; }
.benefit p { font-size: .98rem; }

/* ------------------------------------------------------------
   10. RÉSEAU / COORDINATION (flux animé)
   ------------------------------------------------------------ */
.network {
  background: var(--darkblue2);
  color: var(--white);
  padding: 110px 0;
  overflow: hidden;
}
.network__intro { text-align: center; }
.network__intro .section-lead { margin-inline: auto; }

.network__viz { max-width: 940px; margin-inline: auto; }
.network__svg { width: 100%; height: auto; display: block; }

.net-link {
  fill: none;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1.5;
}
.net-flux {
  fill: none;
  stroke: url(#fluxGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 26 320;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(126, 195, 155, .8));
}
.is-inview .net-flux { animation: flux-travel 3.2s linear infinite; }
.net-flux--d2 { animation-delay: .8s !important; }
.net-flux--d3 { animation-delay: 1.6s !important; }
.net-flux--d4 { animation-delay: 2.4s !important; }
@keyframes flux-travel {
  from { stroke-dashoffset: 346; }
  to   { stroke-dashoffset: 0; }
}

.net-node circle {
  fill: rgba(255, 255, 255, .05);
  stroke: rgba(126, 195, 155, .55);
  stroke-width: 1.5;
}
.net-node__icon {
  fill: none;
  stroke: var(--bluesoft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.net-node text {
  fill: rgba(255, 255, 255, .85);
  font-family: var(--font-body);
  font-size: 15px;
  text-anchor: middle;
}
.net-node--center circle:not(.net-node__pulse) {
  fill: rgba(126, 195, 155, .14);
  stroke: var(--bluesoft);
  stroke-width: 2;
}
.net-node--center text { font-weight: 700; fill: var(--white); }
.net-node__pulse {
  fill: none;
  stroke: rgba(126, 195, 155, .4);
  stroke-width: 1.5;
  transform-origin: center;
  transform-box: fill-box;
}
.is-inview .net-node__pulse { animation: node-pulse 2.6s ease-out infinite; }
@keyframes node-pulse {
  0%   { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ------------------------------------------------------------
   11. FONCTIONNALITÉS
   ------------------------------------------------------------ */
.features { padding: 120px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .1);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(126, 195, 155, .6);
}
.feature__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--bluelight);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--bluedark);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature p { font-size: .93rem; }

.feature--cta {
  background: var(--bluedark);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.feature--cta h3 { color: var(--white); font-size: 1.15rem; }
.feature--cta .btn--primary { background: var(--white); color: var(--bluedark); }
.feature--cta .btn--primary:hover { background: var(--bluelight); }

/* ------------------------------------------------------------
   12. APPLICATION MOBILE
   ------------------------------------------------------------ */
.app {
  background: var(--bluelight);
  padding: 110px 0;
  overflow: hidden;
}
.app__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.app__visual img {
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  will-change: transform;
}
.app__content p { margin-bottom: 28px; }
.app__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.app__stores a {
  display: block;
  border-radius: 8px;
  transition: opacity var(--transition);
}
.app__stores a:hover { opacity: .82; }
.app__stores img { height: 56px; width: auto; }

/* ------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------ */
.faq { padding: 120px 0; }
.faq .section-title { margin-bottom: 48px; }

.faq__item {
  border: 1px solid rgba(0, 80, 85, .12);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item:hover { border-color: rgba(126, 195, 155, .7); }
.faq__item[open] { box-shadow: var(--shadow-sm); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding: 0 26px 24px; }
.faq__answer p { color: rgba(0, 80, 85, .88); }

/* ------------------------------------------------------------
   14. CONTACT / DÉMO
   ------------------------------------------------------------ */
.contact {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(126, 195, 155, .25), transparent 60%),
    linear-gradient(150deg, var(--bluedark) 0%, var(--darkblue2) 80%);
  color: var(--white);
  padding: 120px 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}
.contact__reassurance { display: grid; gap: 14px; margin-top: 36px; }
.contact__reassurance li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.contact__reassurance svg {
  width: 22px; height: 22px;
  color: var(--green);
  flex-shrink: 0;
}

/* Formulaire */
.contact__form {
  background: var(--white);
  color: var(--bluedark);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.contact__form-title {
  font-size: 1.35rem;
  margin-bottom: 28px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { margin-bottom: 18px; }
.form__field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 7px;
}
.form__field label span { color: var(--alert-text); }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bluedark);
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .25);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 89, 117, .18);
}
.form__field input[aria-invalid="true"],
.form__field select[aria-invalid="true"] {
  border-color: var(--alert);
  box-shadow: 0 0 0 3px rgba(223, 24, 44, .16);
}
.form__error {
  min-height: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--alert-text);
  margin-top: 5px;
}
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__status {
  margin-top: 16px;
  font-weight: 600;
  min-height: 1.4em;
}
.form__status.is-success { color: var(--firgreen); }
.form__status.is-error { color: var(--alert-text); }

.form__rgpd {
  margin-top: 18px;
  font-size: .8rem;
  color: rgba(0, 80, 85, .75);
}
.form__rgpd a { color: var(--blue); }

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--darkblue2);
  color: rgba(255, 255, 255, .85);
  padding: 72px 0 0;
}
.footer a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover { color: var(--bluesoft); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Lien dont la cible reste à fournir : inerte et signalé visuellement. */
[data-todo] {
  cursor: not-allowed;
  opacity: .6;
  text-decoration: line-through;
}
.footer__logo {
  width: 200px;
  margin-bottom: 20px;
  /* Le logo officiel est sombre : on l'inverse pour le fond foncé du footer */
  filter: brightness(0) invert(1);
}
.footer__brand p { font-size: .93rem; max-width: 40ch; }
.footer__heading {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__nav ul { display: grid; gap: 11px; font-size: .95rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 0;
  font-size: .88rem;
}
.footer__badges { display: flex; gap: 10px; }
.footer__badges li {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ------------------------------------------------------------
   16. ÉTATS D'ANIMATION (pilotés par JS — GSAP)
   Les éléments ne sont masqués que si JS est actif (.js sur <html>),
   afin de ne jamais bloquer le contenu sans JavaScript.
   ------------------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  will-change: transform, opacity;
}
html.js [data-split] .split-line {
  display: block;
  overflow: hidden;
}
html.js [data-split] .split-line > span {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

/* ============================================================
   COMPOSANTS DES PAGES INTÉRIEURES
   (Ressources, Support, Projet Occitanie) et des nouvelles
   sections de l'accueil produit.
   ============================================================ */

/* ------------------------------------------------------------
   A. EN-TÊTE DE PAGE INTÉRIEURE
   ------------------------------------------------------------ */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(126, 195, 155, .28), transparent 62%),
    linear-gradient(170deg, var(--bluelight) 0%, var(--white) 92%);
}
.page-hero__inner { max-width: 780px; }
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bluemallard);
  margin-bottom: 18px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 20px; }
.page-hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 62ch; }
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

/* État « page courante » dans la navigation */
.header__nav a[aria-current="page"] { font-weight: 700; }
.header__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------------------
   B. ACCÈS À L'APPLICATION (web / mobile / plug-in)
   ------------------------------------------------------------ */
.access { padding: 96px 0; }
.access__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.access-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.access-card:hover { box-shadow: var(--shadow-md); border-color: rgba(126, 195, 155, .6); }
.access-card__icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--bluelight);
  border-radius: 13px;
  color: var(--bluedark);
  margin-bottom: 20px;
}
.access-card__icon svg { width: 27px; height: 27px; }
.access-card h3 { margin-bottom: 10px; }
.access-card p { font-size: .95rem; margin-bottom: 22px; }
.access-card__foot { margin-top: auto; }
.access-card__stores { display: flex; flex-wrap: wrap; gap: 12px; }
.access-card__stores img { height: 46px; width: auto; }
.access-card__stores a { border-radius: 8px; transition: opacity var(--transition); }
.access-card__stores a:hover { opacity: .82; }

/* Boutons de téléchargement dans le hero */
.hero__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.hero__stores img { height: 52px; width: auto; }
.hero__stores a { border-radius: 8px; transition: opacity var(--transition), transform var(--transition); }
.hero__stores a:hover { opacity: .85; }

/* ------------------------------------------------------------
   C. DÉMARRAGE RAPIDE — étapes numérotées
   ------------------------------------------------------------ */
.quickstart { background: var(--bluelight); padding: 100px 0; }
.quickstart__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--bluesoft);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .95rem; margin-bottom: 18px; }

/* ------------------------------------------------------------
   D. ÉLIGIBILITÉ — « puis-je utiliser le service ? »
   ------------------------------------------------------------ */
.eligibility { padding: 110px 0; }
.eligibility__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 64px;
  align-items: start;
}
.checks { display: grid; gap: 20px; margin-top: 36px; }
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.check__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lightgreen);
  color: var(--firgreen);
  font-weight: 700;
  font-size: .9rem;
}
.check strong { display: block; margin-bottom: 4px; }
.check p { font-size: .95rem; margin: 0; }

/* Encart des régions ouvertes */
.availability {
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .14);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.availability h3 { margin-bottom: 8px; }
.availability > p { font-size: .95rem; }
.availability__list { display: grid; gap: 10px; margin: 22px 0; }
.availability__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--lightgreen);
  font-weight: 600;
  font-size: .96rem;
}
.availability__list img { width: 34px; height: 26px; object-fit: contain; flex-shrink: 0; }
.availability__note { font-size: .9rem; color: rgba(0, 80, 85, .8); }

/* ------------------------------------------------------------
   E. ENCARTS D'INFORMATION
   ------------------------------------------------------------ */
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}
.notice svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.notice p { font-size: .96rem; margin: 0; max-width: 72ch; }
.notice p + p { margin-top: 10px; }
.notice--info { background: var(--bluelight); border: 1px solid rgba(31, 89, 117, .22); }
.notice--info svg { color: var(--bluemallard); }
/* Alerte : fond blanc et liseré rouge institutionnel — aucune
   couleur empruntée à une autre gamme produit. */
.notice--warn {
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .16);
  border-left: 4px solid var(--alert);
  box-shadow: var(--shadow-sm);
}
.notice--warn svg { color: var(--alert-text); }
.notice__title { font-weight: 700; display: block; margin-bottom: 4px; }

/* Emplacement de contenu à fournir (image, capsule vidéo, document) */
.slot {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 26px;
  text-align: center;
  border: 2px dashed rgba(0, 80, 85, .28);
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, rgba(232, 241, 218, .5) 0 12px, rgba(255, 255, 255, .5) 12px 24px);
  color: var(--bluemallard);
}
.slot svg { width: 34px; height: 34px; opacity: .75; }
.slot strong { font-size: .95rem; color: var(--bluedark); }
.slot small { font-size: .82rem; max-width: 40ch; }

/* ------------------------------------------------------------
   F. RECHERCHE DANS LA FAQ
   ------------------------------------------------------------ */
.faq-tools { margin-bottom: 34px; }
.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .25);
  border-radius: var(--radius);
  padding: 4px 6px 4px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 89, 117, .18);
}
.faq-search > svg { width: 21px; height: 21px; color: var(--bluemallard); flex-shrink: 0; }
.faq-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--bluedark);
  padding: 14px 0;
}
.faq-search input::placeholder { color: rgba(0, 80, 85, .5); }
.faq-search__clear {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--bluemallard);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.faq-search__clear:hover { background: var(--grey); }
.faq-search__clear svg { width: 18px; height: 18px; }
.faq-search.has-value .faq-search__clear { display: grid; }

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.faq-filters button {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--bluedark);
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .2);
  border-radius: 100px;
  padding: 9px 17px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.faq-filters button:hover { border-color: var(--bluemallard); }
.faq-filters button[aria-pressed="true"] {
  background: var(--bluedark);
  border-color: var(--bluedark);
  color: var(--white);
}

.faq-count {
  margin-top: 22px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--bluemallard);
}

.faq-list { display: grid; gap: 14px; }
.faq-list .faq__item { margin-bottom: 0; }
.faq__item summary mark,
.faq__answer mark {
  background: rgba(126, 195, 155, .45);
  color: var(--bluedark);
  padding: 0 2px;
  border-radius: 3px;
}
.faq__cat {
  /* Sur sa propre ligne : sinon l'étiquette se colle à la question. */
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bluemallard);
  margin-bottom: 6px;
}
.faq__q { display: block; }
.faq__answer ul,
.faq__answer ol { display: grid; gap: 8px; margin: 12px 0 0 20px; }
.faq__answer ul { list-style: disc; }
.faq__answer ol { list-style: decimal; }
.faq__answer li { font-size: .96rem; }
.faq__answer p + p { margin-top: 12px; }
.faq__answer a { color: var(--blue); font-weight: 600; }

/* Procédures par plateforme dans une réponse */
.faq__platforms { display: grid; gap: 14px; margin-top: 20px; }
.platform {
  background: var(--bluelight);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.platform h4 { font-size: .98rem; margin-bottom: 6px; }
.platform__note { font-size: .88rem; font-style: italic; color: var(--bluemallard); margin-bottom: 8px; }
.platform ol { list-style: decimal; margin: 0 0 0 20px; display: grid; gap: 6px; }
.platform li { font-size: .93rem; }

/* Lien d'ancre par question (partageable) */
.faq__permalink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--bluemallard);
  text-decoration: none;
}
.faq__permalink svg { width: 15px; height: 15px; }
.faq__permalink:hover { color: var(--blue); }

/* Aucun résultat */
.faq-empty {
  display: none;
  text-align: center;
  padding: 48px 28px;
  border: 1px dashed rgba(0, 80, 85, .25);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.faq-empty.is-visible { display: block; }
.faq-empty h3 { margin-bottom: 10px; }
.faq-empty p { margin-inline: auto; margin-bottom: 22px; }
.faq-empty__term { font-weight: 700; color: var(--bluedark); }

/* ------------------------------------------------------------
   G. PRISE EN MAIN (page Ressources)
   ------------------------------------------------------------ */
.howto { padding: 100px 0; }
.howto__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid rgba(0, 80, 85, .12);
}
.howto__item:first-of-type { border-top: none; padding-top: 32px; }
.howto__item:nth-child(even) .howto__media { order: -1; }
.howto__body h3 { margin-bottom: 14px; }
.howto__body p { margin-bottom: 14px; }
.howto__body ol { list-style: decimal; margin: 0 0 18px 22px; display: grid; gap: 8px; }
.howto__body ul { display: grid; gap: 8px; margin-bottom: 18px; }
.howto__body ul li { padding-left: 22px; position: relative; }
.howto__body ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--firgreen);
  font-weight: 700;
}

/* Téléchargements de documents */
.downloads { display: grid; gap: 12px; margin-top: 36px; }
.download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .14);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.download:hover { border-color: rgba(126, 195, 155, .8); box-shadow: var(--shadow-sm); }
.download > svg:first-child { width: 30px; height: 30px; color: var(--bluemallard); }
.download strong { display: block; font-size: 1rem; }
.download small { color: var(--bluemallard); font-size: .85rem; }
.download__arrow { width: 22px; height: 22px; color: var(--bluedark); }
.download--todo {
  border-style: dashed;
  background: rgba(240, 240, 240, .45);
  cursor: not-allowed;
}
.download--todo strong { color: rgba(0, 80, 85, .75); }

/* ------------------------------------------------------------
   H. VERBATIMS / RETEX
   ------------------------------------------------------------ */
.voices { padding: 110px 0; background: var(--white); }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.quote {
  display: flex;
  flex-direction: column;
  background: var(--bluelight);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: .6;
  color: var(--bluesoft);
  margin-bottom: 18px;
}
.quote blockquote { font-size: 1.04rem; line-height: 1.6; margin-bottom: 24px; }
.quote figcaption { margin-top: auto; font-size: .9rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--bluemallard); }
.quote--todo {
  background: repeating-linear-gradient(135deg, rgba(232, 241, 218, .5) 0 12px, rgba(255, 255, 255, .5) 12px 24px);
  border: 2px dashed rgba(0, 80, 85, .28);
}
.quote--todo blockquote { color: var(--bluemallard); font-style: italic; }

/* ------------------------------------------------------------
   I. SUPPORT — grille des régions
   ------------------------------------------------------------ */
.support { padding: 90px 0 110px; }
.support__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.support__head h2 { margin: 0; }

.region-filter { max-width: 420px; margin: 26px 0 38px; }

.regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}
.region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .14);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.region-card:hover {
  border-color: rgba(126, 195, 155, .8);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.region-card__name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.region-card__logo {
  display: grid;
  place-items: center;
  height: 92px;
  width: 100%;
}
.region-card__logo img { max-height: 92px; width: auto; max-width: 82%; object-fit: contain; }
.region-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 5px 13px;
}
.region-card__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--open { background: var(--lightgreen); color: var(--firgreen); }
.badge--closed { background: var(--grey); color: #5a6172; }
.region-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--bluedark);
}
.region-card__action svg { width: 17px; height: 17px; }
.region-card--closed .region-card__logo img { filter: saturate(.35); opacity: .8; }
.region-card--closed:hover .region-card__logo img { filter: none; opacity: 1; }
.region-card--national { border-style: dashed; }

/* Fiche de contact régionale */
.region-sheet {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 44px 44px 38px;
  text-align: center;
}
.region-sheet__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--bluemallard);
  text-decoration: none;
}
.region-sheet__back svg { width: 17px; height: 17px; }
.region-sheet__back:hover { color: var(--blue); }
.region-sheet__logo { height: 96px; margin: 0 auto 24px; width: auto; max-width: 260px; object-fit: contain; }
.region-sheet h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 6px; }
.region-sheet__porteur { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.region-sheet__address { font-size: .95rem; color: var(--bluemallard); margin-inline: auto; }
.region-sheet__channels { display: grid; gap: 10px; margin: 28px 0; text-align: left; }
.region-sheet__channels li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bluelight);
  border-radius: var(--radius);
}
.region-sheet__channels svg { width: 21px; height: 21px; color: var(--bluemallard); }
.region-sheet__channels a { color: var(--blue); font-weight: 600; word-break: break-word; }
.region-sheet__channels small { display: block; font-size: .8rem; color: var(--bluemallard); font-weight: 600; }
.region-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.region-sheet__foot {
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 80, 85, .12);
  font-size: .9rem;
  color: var(--bluemallard);
}
.region-sheet__foot a { color: var(--blue); font-weight: 600; }

/* Liste « à préciser dans votre demande » */
.checklist { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: .95rem;
}
.checklist svg { width: 19px; height: 19px; color: var(--firgreen); margin-top: 3px; flex-shrink: 0; }

/* ------------------------------------------------------------
   J. CHIFFRES CLÉS (page Occitanie)
   ------------------------------------------------------------ */
.kpis { padding: 96px 0; }
.kpis__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.kpi {
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .12);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.kpi__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--bluedark);
  margin-bottom: 12px;
}
.kpi__label { font-weight: 700; display: block; margin-bottom: 6px; }
.kpi__detail { font-size: .9rem; color: var(--bluemallard); margin: 0; }

/* Bandeau de logos institutionnels */
.partners { padding: 90px 0; background: var(--bluelight); }
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.partners__row img { max-height: 88px; width: auto; object-fit: contain; }
.partner-slot {
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 88px;
  padding: 16px;
  border: 2px dashed rgba(0, 80, 85, .28);
  border-radius: var(--radius);
  font-size: .86rem;
  font-weight: 600;
  color: var(--bluemallard);
  text-align: center;
}

/* Bouquet de services régional */
.bundle { padding: 100px 0; }
.bundle__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid rgba(0, 80, 85, .12);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.service h3 { margin-bottom: 2px; }
.service p { font-size: .96rem; }
.service__foot { margin-top: auto; padding-top: 8px; }

/* Kit et outils de promotion */
.toolkit { padding: 100px 0; background: var(--white); }
.toolkit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.tool {
  border: 1px solid rgba(0, 80, 85, .12);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  background: var(--white);
}
.tool__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--lightgreen);
  border-radius: 12px;
  color: var(--firgreen);
  margin-bottom: 18px;
}
.tool__icon svg { width: 25px; height: 25px; }
.tool h3 { font-size: 1.08rem; margin-bottom: 8px; }
.tool p { font-size: .93rem; }

/* ------------------------------------------------------------
   K. BANDEAU D'AIDE / DE RENVOI
   ------------------------------------------------------------ */
.helpband {
  background:
    radial-gradient(1000px 460px at 82% -15%, rgba(126, 195, 155, .26), transparent 60%),
    linear-gradient(150deg, var(--bluedark) 0%, var(--darkblue2) 82%);
  color: var(--white);
  padding: 96px 0;
}
.helpband__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.helpband h2 { color: var(--white); margin-bottom: 18px; }
.helpband p { color: var(--bluelight); }
.helpband__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}
.helpband .btn--primary { background: var(--white); color: var(--bluedark); }
.helpband .helpband__btn--primary:hover { background: var(--bluelight); }
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.helpband__panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.helpband__panel h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; }
.helpband__panel ul { display: grid; gap: 12px; }
.helpband__panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: .95rem;
  color: rgba(255, 255, 255, .9);
}
.helpband__panel svg { width: 19px; height: 19px; color: var(--green); margin-top: 3px; flex-shrink: 0; }
.helpband__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.helpband__phone svg { width: 21px; height: 21px; color: var(--bluesoft); }

/* Lien externe : marqueur discret */
.ext::after {
  content: "";
  display: inline-block;
  width: .62em; height: .62em;
  margin-left: .4em;
  background: currentColor;
  clip-path: polygon(38% 0, 100% 0, 100% 62%, 84% 62%, 84% 27%, 27% 84%, 16% 73%, 73% 16%, 38% 16%);
  opacity: .75;
}

/* ------------------------------------------------------------
   17. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .access__grid,
  .quickstart__grid,
  .voices__grid,
  .toolkit__grid,
  .kpis__grid { grid-template-columns: repeat(2, 1fr); }
  .eligibility__grid,
  .helpband__grid { grid-template-columns: 1fr; gap: 40px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .header__nav ul { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 80, 85, .1);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    margin-left: 0;
  }
  .header__nav.is-open { transform: translateY(0); }
  .header__nav ul { flex-direction: column; gap: 4px; }
  .header__nav a { display: block; padding: 12px 8px; font-size: 1.05rem; }
  .header__burger { display: flex; margin-left: auto; }
  .header__cta { display: none; }

  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__bg-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 55%, rgba(232,241,218,.55) 100%);
  }
  .hero__scroll-hint { display: none; }

  .pillars__grid,
  .benefits__grid { grid-template-columns: 1fr; }

  .problem__grid,
  .app__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .compare--safe { transform: none; }

  .app__visual { order: 2; }

  .contact__form { padding: 32px 24px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  /* Pages intérieures */
  .page-hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 48px; }
  .access__grid,
  .quickstart__grid,
  .voices__grid,
  .toolkit__grid,
  .kpis__grid,
  .bundle__grid { grid-template-columns: 1fr; }

  .howto__item { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  /* Sur une colonne, le média passe toujours après le texte */
  .howto__item:nth-child(even) .howto__media { order: 0; }

  .region-sheet { padding: 32px 24px 28px; }
  .region-sheet__actions .btn { width: 100%; }

  /* La grille de régions devient une liste : lisible même à 18 entrées */
  .regions { grid-template-columns: 1fr; gap: 12px; }
  .region-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "logo name badge"
      "logo action action";
    align-items: center;
    text-align: left;
    gap: 6px 16px;
    padding: 16px 18px;
  }
  .region-card__logo { grid-area: logo; height: 52px; }
  .region-card__logo img { max-height: 52px; max-width: 100%; }
  .region-card__name { grid-area: name; font-size: 1rem; }
  .region-card__badge { grid-area: badge; justify-self: end; }
  .region-card__action { grid-area: action; padding-top: 0; font-size: .88rem; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .phone__screen { height: 530px; }
  .phone-step { padding: 15px 18px 14px; column-gap: 13px; }
  .phone-step__num { font-size: 2.2rem; }
  .phone-step__label { font-size: .95rem; }
  .features__grid { grid-template-columns: 1fr; }
  .pillars, .problem, .benefits, .network, .features, .app, .faq, .contact { padding-top: 72px; padding-bottom: 72px; }

  .access, .quickstart, .eligibility, .voices, .support, .kpis,
  .partners, .bundle, .toolkit, .howto, .helpband { padding-top: 68px; padding-bottom: 68px; }
  .hero__stores img, .access-card__stores img { height: 46px; }
  .faq-search input { font-size: 1rem; padding: 12px 0; }
  .notice { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
  .partners__row { gap: 26px; }
}

/* ------------------------------------------------------------
   18. ACCESSIBILITÉ — prefers-reduced-motion
   Toutes les animations non essentielles sont neutralisées.
   Le contenu reste intégralement visible et lisible.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Contenu immédiatement visible, sans états masqués */
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js [data-split] .split-line > span { transform: none; }

  /* Conversation affichée en statique (fallback propre) :
     seule la scène conversation (is-active par défaut) est visible */
  .msg { opacity: 1; transform: none; }
  .msg--typing { display: none; }
  .type-caret { animation: none; opacity: 0; }

  .hero__scroll-hint svg { animation: none; }
  .net-flux { animation: none !important; stroke-dasharray: none; opacity: .5; }
  .net-node__pulse { animation: none !important; opacity: 0; }
  .eq i { transform: scaleY(.6); }
}
