/* Flinpy — site vitrine. Feuille de style unique des pages publiques. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #ffffff;
  --brume: #f3f5f8;
  --encre: #16233a;
  --ardoise: #5a6676;
  --trait: #dde3ec;
  --resolu: #2563eb;
  --resolu-fonce: #1b46b8;
  --resolu-pale: #e7eefd;
  --pixel: #3b82f6;
  --attente: #a86400;
  --attente-pale: #fbefd9;
  --erreur: #b3261e;

  --police: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --largeur: 70rem;
  --gouttiere: 1.25rem;
  --rayon: 14px;
  --rayon-petit: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1 {
  font-size: clamp(2.3rem, 7.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

.passer {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--encre);
  color: var(--papier);
  padding: 0.6rem 1rem;
  border-radius: var(--rayon-petit);
  z-index: 100;
}
.passer:focus { left: 0.5rem; }

.cadre {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.marque svg { width: 1.5rem; height: 1.5rem; flex: none; }

.menu-bouton {
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  color: var(--encre);
  background: none;
  border: 1.5px solid var(--encre);
  border-radius: var(--rayon-petit);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
  padding: 0.5rem var(--gouttiere) 1.25rem;
  box-shadow: 0 18px 30px -18px rgba(16, 32, 28, 0.35);
}
.nav.est-ouverte { display: block; }

.nav__liste a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
}
.nav__liste a[aria-current="page"] { color: var(--resolu); }

.nav__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (min-width: 70rem) {
  .menu-bouton { display: none; }
  .nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .nav__liste { display: flex; gap: 1.6rem; }
  .nav__liste a {
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .nav__actions .bouton { white-space: nowrap; }
  .nav__liste a:hover,
  .nav__liste a[aria-current="page"] { border-bottom-color: var(--resolu); color: var(--encre); }
  .nav__actions { display: flex; margin: 0; }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--rayon-petit);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bouton--plein { background: var(--resolu); color: #fff; }
.bouton--plein:hover { background: var(--resolu-fonce); }

.bouton--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.bouton--contour:hover { background: var(--encre); color: var(--papier); }

.bouton--compact { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.97rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.actions .bouton { flex: 1 1 14rem; }
@media (min-width: 40rem) { .actions .bouton { flex: 0 0 auto; } }

/* ---------- Bandes de contenu ---------- */

.bande { padding-block: 3.75rem; }
.bande--brume { background: var(--brume); }
.bande--encre { background: var(--encre); color: var(--papier); }
@media (min-width: 62rem) { .bande { padding-block: 6rem; } }

.chapo {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.chapo p {
  margin-top: 0.9rem;
  font-size: 1.125rem;
  color: var(--ardoise);
  max-width: 38rem;
}
.bande--encre .chapo p { color: #c5d2cd; }

.texte { color: var(--ardoise); max-width: 40rem; }
.texte + .texte { margin-top: 1rem; }

/* ---------- Accueil : ouverture ---------- */

.ouverture { padding-block: 3rem 3.5rem; }

.ouverture__grille {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.ouverture__accroche {
  margin-top: 1.4rem;
  font-size: 1.1875rem;
  color: var(--ardoise);
  max-width: 34rem;
}

.ouverture__prix {
  margin-top: 1.5rem;
  font-weight: 650;
}
.ouverture__prix strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ouverture .actions { margin-top: 1.75rem; }

@media (min-width: 62rem) {
  .ouverture { padding-block: 5.5rem 6rem; }
  .ouverture__grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4.5rem; }
}

/* Le ticket : l'élément signature de la page */

.ticket {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: 0 30px 60px -32px rgba(16, 32, 28, 0.4), 0 2px 6px rgba(16, 32, 28, 0.05);
  overflow: hidden;
}

.ticket__tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--trait);
}

.ticket__origine { font-size: 0.9rem; color: var(--ardoise); }
.ticket__sujet { margin-top: 0.2rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

.etat {
  position: relative;
  flex: none;
  min-width: 5.6rem;
  height: 1.9rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.etat span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.etat__resolu { background: var(--resolu-pale); color: var(--resolu-fonce); }

.ticket__fil { padding: 0.5rem 1.25rem 1.25rem; }

.etape {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.25rem 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--trait);
}
.etape:last-child { border-bottom: 0; padding-bottom: 0; }

.etape__heure {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--resolu-fonce);
}
.etape__titre { font-weight: 650; line-height: 1.35; }
.etape__detail { grid-column: 2; font-size: 0.95rem; color: var(--ardoise); }

.ticket__pied {
  padding: 0.8rem 1.25rem;
  background: var(--brume);
  font-size: 0.9rem;
  color: var(--ardoise);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Comparateur « Sans Flinpy / Avec Flinpy » */

.compare {
  --bloque: #b3261e;
  --bloque-pale: #fbe9e7;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: 0 30px 60px -32px rgba(16, 32, 28, 0.4), 0 2px 6px rgba(16, 32, 28, 0.05);
  overflow: hidden;
}

.compare__choix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--brume);
  border-bottom: 1px solid var(--trait);
}
.compare__choix button {
  position: relative;
  overflow: hidden;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--ardoise);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.compare__choix button[aria-pressed="true"] { background: var(--papier); color: var(--encre); box-shadow: 0 1px 3px rgba(16, 32, 28, 0.18); }
.compare[data-etat="sans"] .compare__choix button[aria-pressed="true"] { color: var(--bloque); }
.compare[data-etat="avec"] .compare__choix button[aria-pressed="true"] { color: var(--resolu-fonce); }

/* Filet de progression pendant la lecture automatique */
.compare__choix button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.compare.est-auto .compare__choix button[aria-pressed="true"]::after { animation: compare-compte var(--duree-auto, 6s) linear forwards; }
@keyframes compare-compte { to { transform: scaleX(1); } }

.etat__bloque { background: var(--bloque-pale); color: var(--bloque); }
.etat span { transition: opacity 0.3s ease; }
.compare[data-etat="sans"] .etat__resolu,
.compare[data-etat="avec"] .etat__bloque { opacity: 0; }
.compare[data-etat="sans"] .etat__bloque,
.compare[data-etat="avec"] .etat__resolu { opacity: 1; }

.compare__fils { display: grid; }
.compare__fils .ticket__fil { grid-area: 1 / 1; }

.compare .etape { opacity: 0; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.compare .ticket__fil { visibility: hidden; transition: visibility 0s linear 0.2s; }
.compare[data-etat="sans"] [data-fil="sans"],
.compare[data-etat="avec"] [data-fil="avec"] { visibility: visible; transition-delay: 0s; }
.compare[data-etat="sans"] [data-fil="sans"] .etape,
.compare[data-etat="avec"] [data-fil="avec"] .etape { opacity: 1; transform: none; transition-duration: 0.45s; }
.compare[data-etat] .etape:nth-child(1) { transition-delay: 0.15s; }
.compare[data-etat] .etape:nth-child(2) { transition-delay: 0.4s; }
.compare[data-etat] .etape:nth-child(3) { transition-delay: 0.65s; }
.compare[data-etat] .etape:nth-child(4) { transition-delay: 0.9s; }
.compare[data-etat="sans"] [data-fil="avec"] .etape,
.compare[data-etat="avec"] [data-fil="sans"] .etape { transition-delay: 0s; }
.compare[data-etat="sans"] .etape__heure { color: var(--bloque); }

.jauge { padding: 1rem 1.25rem 1.1rem; border-top: 1px solid var(--trait); }
.jauge__titre { font-weight: 650; }
.jauge__titre strong {
  display: inline-block;
  min-width: 4.6ch;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--resolu-fonce);
  transition: color 0.4s ease;
}
.compare[data-etat="sans"] .jauge__titre strong { color: var(--bloque); }

.jauge__piste {
  position: relative;
  height: 0.85rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: var(--resolu-pale);
  overflow: hidden;
}
.jauge__arret {
  position: absolute;
  left: 2.2%;
  top: 0;
  bottom: 0;
  width: 3.5%;
  min-width: 0.6rem;
  border-radius: 999px;
  background: var(--resolu);
  transition: width 0.9s cubic-bezier(0.22, 0.8, 0.2, 1), background-color 0.5s ease;
}
.compare[data-etat="sans"] .jauge__arret { width: 66.3%; background: var(--bloque); }
.compare[data-etat="sans"] .jauge__piste { background: #f1e4e1; }

.jauge__heures {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ardoise);
}

@media (prefers-reduced-motion: reduce) {
  .compare .etape, .compare .ticket__fil, .jauge__arret, .etat span { transition: none; }
  .compare.est-auto .compare__choix button::after { animation: none; }
}

/* Tableau avant / après */

.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.face { width: 100%; border-collapse: collapse; text-align: left; }
.face thead th {
  padding: 0.9rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.face tbody th { font-weight: 700; line-height: 1.3; }
.face td { color: var(--ardoise); }
.face .face__avec { color: var(--encre); }
.face thead .face__avec { color: var(--resolu-fonce); }

@media (max-width: 51.99rem) {
  .face, .face tbody, .face tr, .face th, .face td { display: block; }
  .face thead { display: none; }
  .face tr { padding-block: 1.25rem; border-top: 1px solid var(--trait); }
  .face tbody th { font-size: 1.125rem; margin-bottom: 0.75rem; }
  .face td { padding: 0.7rem 0.9rem; border-radius: var(--rayon-petit); }
  .face td::before {
    content: attr(data-qui);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ardoise);
  }
  .face td.face__avec { margin-top: 0.4rem; background: var(--resolu-pale); }
  .face td.face__avec::before { color: var(--resolu-fonce); }
}

@media (min-width: 52rem) {
  .face tbody th, .face td { padding: 1.15rem 1.25rem; border-top: 1px solid var(--trait); vertical-align: top; }
  .face tbody th { width: 24%; padding-left: 0; }
  .face td { width: 38%; }
  .face .face__avec { background: var(--resolu-pale); border-top-color: #c6e3d8; }
  .face thead .face__avec { border-radius: var(--rayon) var(--rayon) 0 0; }
  .face tbody tr:last-child .face__avec { border-radius: 0 0 var(--rayon) var(--rayon); }
}

/* ---------- Outils (espace client, gestion de parc) ---------- */

.outil { display: grid; gap: 2rem; align-items: center; }
.outil + .outil { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.outil h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.outil__texte { margin: 0.6rem 0 1.4rem; color: #c5d2cd; max-width: 34rem; }
.outil .coches li::before { background-color: #1fa57c; }
.outil__bouton { margin-top: 1.75rem; }
@media (min-width: 62rem) {
  .outil { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; }
  .outil--inverse > figure { order: -1; }
}

.ecran {
  background: var(--papier);
  color: var(--encre);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}
.ecran__barre {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: var(--brume);
  border-bottom: 1px solid var(--trait);
  font-weight: 700;
  font-size: 0.95rem;
}
.ecran__barre span:last-child { color: var(--ardoise); font-weight: 600; }
.ecran__lignes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--trait);
}
.ecran__lignes strong { display: block; font-weight: 650; line-height: 1.3; }
.ecran__lignes small { display: block; margin-top: 0.1rem; font-size: 0.88rem; color: var(--ardoise); }

.pastille {
  flex: none;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}
.pastille--ok { background: var(--resolu-pale); color: var(--resolu-fonce); }
.pastille--cours { background: #e4ecfb; color: #1d4a9c; }
.pastille--attente { background: var(--attente-pale); color: var(--attente); }

.ecran__echange { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; }
.bulle {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px 12px 12px 3px;
  background: var(--brume);
  font-size: 0.95rem;
  line-height: 1.4;
}
.bulle b { display: block; font-size: 0.82rem; color: var(--ardoise); }
.bulle--vous { justify-self: end; border-radius: 12px 12px 3px 12px; background: var(--resolu-pale); }

.ecran figcaption {
  padding: 0.55rem 1.1rem;
  background: var(--brume);
  border-top: 1px solid var(--trait);
  font-size: 0.84rem;
  color: var(--ardoise);
}
.ecran__lignes + figcaption { border-top: 0; }

/* ---------- Simulateur d'économies ---------- */

.simu { display: grid; gap: 2rem; }
@media (min-width: 62rem) {
  .simu { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 3.5rem; align-items: start; }
  .simu__resultat { position: sticky; top: 5.5rem; }
}

.simu__questions { display: grid; gap: 1.75rem; }

/* Sur téléphone, le résultat reste visible en bas pendant qu'on répond */
.simu__resume {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--rayon-petit);
  background: var(--encre);
  color: var(--papier);
  font-weight: 650;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px -12px rgba(16, 32, 28, 0.6);
}
.simu__resume strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 62rem) { .simu__resume { display: none; } }

.question { border: 0; padding: 0; margin: 0; min-width: 0; }
.question__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.question label, .question legend { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; padding: 0; }
.question output {
  flex: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--resolu-fonce);
}
.question__aide { margin-top: 0.35rem; font-size: 0.95rem; color: var(--ardoise); }

.question input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0.15rem 0 0;
  background: transparent;
  cursor: pointer;
  --rempli: 50%;
}
.question input[type="range"]::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--resolu) var(--rempli), #c9d4cf var(--rempli));
}
.question input[type="range"]::-moz-range-track { height: 0.5rem; border-radius: 999px; background: #c9d4cf; }
.question input[type="range"]::-moz-range-progress { height: 0.5rem; border-radius: 999px; background: var(--resolu); }
.question input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.625rem;
  border-radius: 50%;
  background: var(--papier);
  border: 3px solid var(--resolu);
  box-shadow: 0 2px 6px rgba(16, 32, 28, 0.25);
}
.question input[type="range"]::-moz-range-thumb {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--papier);
  border: 3px solid var(--resolu);
  box-shadow: 0 2px 6px rgba(16, 32, 28, 0.25);
}

.choix-pack { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
@media (min-width: 30rem) { .choix-pack { grid-template-columns: 1fr 1fr; } }
.choix-pack label { position: relative; display: block; cursor: pointer; font-weight: 400; font-size: 0.97rem; }
.choix-pack input { position: absolute; opacity: 0; inset: 0; }
.choix-pack span {
  display: block;
  padding: 0.8rem 1rem;
  background: var(--papier);
  border: 2px solid var(--trait);
  border-radius: var(--rayon-petit);
  color: var(--ardoise);
}
.choix-pack strong { display: block; color: var(--encre); font-size: 1.0625rem; }
.choix-pack input:checked + span { border-color: var(--resolu); background: var(--resolu-pale); color: var(--encre); }
.choix-pack input:focus-visible + span { outline: 3px solid var(--resolu); outline-offset: 3px; }

.simu__resultat {
  display: grid;
  gap: 1.25rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 30px 60px -36px rgba(16, 32, 28, 0.4);
}
@media (min-width: 40rem) { .simu__resultat { padding: 2rem; } }

.simu__titre { font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; }

.barre__ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 650; }
.barre__ligne strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.barre__piste { height: 1.1rem; margin-top: 0.4rem; border-radius: 999px; background: var(--brume); overflow: hidden; }
.barre__piste span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.barre--sans .barre__piste span { background: #b3261e; }
.barre--sans .barre__ligne strong { color: #b3261e; }
.barre--avec .barre__piste span { background: var(--resolu); }
.barre--avec .barre__ligne strong { color: var(--resolu-fonce); }
.barre__detail { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ardoise); }

.bilan { padding: 1.1rem 1.2rem; border-radius: var(--rayon-petit); background: var(--resolu-pale); }
.bilan__libelle { font-weight: 700; }
.bilan__chiffre { font-weight: 650; }
.bilan__chiffre strong {
  font-size: clamp(2.2rem, 9vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--resolu-fonce);
}
.bilan__suite { margin-top: 0.35rem; font-size: 0.97rem; }
.bilan.est-neutre { background: var(--brume); }
.bilan.est-neutre .bilan__chiffre strong { color: var(--encre); }

.simu__hypotheses { border-top: 1px solid var(--trait); border-bottom: 0; }
.simu__hypotheses summary { padding: 0.9rem 0 0; font-size: 0.97rem; }
.simu__hypotheses .volet__corps { padding: 0.75rem 0 0; font-size: 0.95rem; }
.simu__hypotheses .volet__corps p + p { margin-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) { .barre__piste span { transition: none; } }

/* ---------- Références ---------- */

.references {
  border-block: 1px solid var(--trait);
  padding-block: 1.25rem;
  color: var(--ardoise);
}
.references__ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  align-items: baseline;
}
.references strong { color: var(--encre); font-weight: 700; }

/* ---------- Chiffres ---------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
.chiffres--trois { grid-template-columns: 1fr; }

.chiffre dt {
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--resolu-fonce);
}
.duo .chiffre dt { font-size: clamp(2rem, 6vw, 2.35rem); }
.chiffre dd {
  margin-top: 0.45rem;
  font-size: 0.97rem;
  line-height: 1.4;
  color: var(--ardoise);
  max-width: 15rem;
}

@media (min-width: 40rem) {
  .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chiffres--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .chiffres--cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chiffres--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Deux colonnes ---------- */

.duo { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
  .duo--etroit-large { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* ---------- Listes ---------- */

.coches { display: grid; gap: 0.7rem; }
.coches li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.45;
}
.coches li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--resolu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
@media (min-width: 40rem) { .coches--deux { grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; } }

.suite { counter-reset: suite; display: grid; gap: 1.25rem; }
.suite li {
  counter-increment: suite;
  position: relative;
  padding-left: 3.25rem;
  min-height: 2.4rem;
}
.suite li::before {
  content: counter(suite);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--encre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.suite h3 { padding-top: 0.35rem; }
.suite p { margin-top: 0.3rem; color: var(--ardoise); }
.suite--simple li { display: flex; align-items: center; font-weight: 650; }

@media (min-width: 62rem) {
  .suite--ligne { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .suite--ligne li { padding-left: 0; padding-top: 3.4rem; }
}

/* ---------- Points (titres + texte, séparés par un filet) ---------- */

.points { display: grid; gap: 0; }
.point {
  padding-block: 1.4rem;
  border-top: 1px solid var(--trait);
}
.point p { margin-top: 0.4rem; color: var(--ardoise); }
.bande--brume .point { border-top-color: #cfd8d4; }

@media (min-width: 40rem) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 62rem) {
  .points--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Packs ---------- */

.packs { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .packs { grid-template-columns: 1fr 1fr; align-items: start; } }

.pack {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 2px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.6rem 1.4rem;
}
.pack--recommande { border-color: var(--resolu); }

.pack__repere {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brume);
  font-size: 0.88rem;
  font-weight: 700;
}
.pack--recommande .pack__repere { background: var(--resolu); color: #fff; }

.pack h3 { margin-top: 1rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.pack__resume { margin-top: 0.5rem; color: var(--ardoise); }

.pack__prix { margin-top: 1.25rem; color: var(--ardoise); }
.pack__prix strong {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--encre);
}

.pack .coches { margin-top: 1.4rem; }
.pack__usage { margin-top: 1.25rem; font-weight: 650; }
.pack .bouton { margin-top: 1.5rem; }

@media (min-width: 62rem) { .pack { padding: 2.1rem 2rem; } }

/* ---------- Volets dépliables ---------- */

.volets { border-top: 1px solid var(--trait); }

.volet { border-bottom: 1px solid var(--trait); }

.volet summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.volet summary::-webkit-details-marker { display: none; }
.volet summary small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--ardoise);
}
.volet summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--encre);
  border-bottom: 2px solid var(--encre);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.volet[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }

.volet__corps { padding: 0 0 1.4rem; color: var(--ardoise); max-width: 44rem; }
.volet__corps h4 { margin: 1rem 0 0.5rem; font-size: 1rem; color: var(--encre); }
.volet__corps h4:first-child { margin-top: 0; }
.volet__corps .coches { color: var(--encre); margin-top: 0.75rem; }

.pack .volets { margin-top: 1.5rem; }
.pack .volet:last-child { border-bottom: 0; }
.pack .volet__corps { padding-bottom: 0.5rem; }

/* ---------- Formulaire ---------- */

.formulaire {
  display: grid;
  gap: 1.1rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 40rem) {
  .formulaire { grid-template-columns: 1fr 1fr; padding: 2rem; }
  .champ--large { grid-column: 1 / -1; }
}

.champ label { display: block; margin-bottom: 0.4rem; font-weight: 650; font-size: 0.97rem; }

.champ input,
.champ textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--papier);
  border: 1.5px solid #b9c5c0;
  border-radius: var(--rayon-petit);
  padding: 0.75rem 0.9rem;
  min-height: 3rem;
}
.champ textarea { min-height: 8.5rem; resize: vertical; }
.champ input:focus,
.champ textarea:focus { outline: 3px solid var(--resolu-pale); border-color: var(--resolu); }

.accord {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
  line-height: 1.45;
}
.accord input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; accent-color: var(--resolu); }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__retour { font-weight: 650; }
.formulaire__retour:empty { display: none; }
.formulaire__retour.est-ok { color: var(--resolu-fonce); }
.formulaire__retour.est-ko { color: var(--erreur); }

/* ---------- Pages intérieures ---------- */

.titre-page { padding-block: 3rem 3.25rem; }
.titre-page p {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--ardoise);
  max-width: 40rem;
}
.titre-page .actions { margin-top: 1.75rem; }
@media (min-width: 62rem) { .titre-page { padding-block: 5rem 5rem; } }

.etiquettes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.etiquettes li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.appel { display: grid; gap: 1.75rem; align-items: center; }
.appel p { margin-top: 0.8rem; color: #c5d2cd; max-width: 34rem; }
.appel .bouton--contour { border-color: #fff; color: #fff; }
.appel .bouton--contour:hover { background: #fff; color: var(--encre); }
@media (min-width: 62rem) { .appel { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- Pied de page ---------- */

.pied {
  border-top: 1px solid var(--trait);
  padding-block: 3rem 2rem;
  font-size: 0.97rem;
}
.pied__grille { display: grid; gap: 2.25rem; }
.pied__resume { margin-top: 0.75rem; color: var(--ardoise); max-width: 22rem; }
.pied h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.75rem; }
.pied li + li { margin-top: 0.45rem; }
.pied a { text-decoration: none; color: var(--ardoise); }
.pied a:hover { color: var(--encre); text-decoration: underline; }
.pied__bas {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
  color: var(--ardoise);
}
@media (min-width: 52rem) {
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Variante : points sur une seule colonne */
.points--une { grid-template-columns: 1fr; }

/* ===================== Agents IA · supervision ===================== */
.ia-logo { display:inline-flex; align-items:center; gap:0.5rem; font-size:0.82rem; font-weight:700; letter-spacing:0.01em;
  padding:0.35rem 0.8rem; border-radius:999px; margin-bottom:1rem;
  background:rgba(255,255,255,0.08); color:#bcd4f5; border:1px solid rgba(255,255,255,0.18); }
.ia-logo--clair { background:var(--resolu-pale); color:var(--resolu-fonce); border:1px solid rgba(10,125,90,0.25); }
.ia-logo svg { flex:0 0 auto; }
.ia-logo__pastille { width:8px; height:8px; border-radius:50%; background:#5b9bff; box-shadow:0 0 0 0 rgba(54,211,154,0.7); animation:iaPulse 1.8s ease-out infinite; }
.ia-logo--clair .ia-logo__pastille { background:var(--resolu); box-shadow:0 0 0 0 rgba(10,125,90,0.5); }
@keyframes iaPulse { 0%{box-shadow:0 0 0 0 rgba(54,211,154,0.6)} 70%{box-shadow:0 0 0 7px rgba(54,211,154,0)} 100%{box-shadow:0 0 0 0 rgba(54,211,154,0)} }

.supervision { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; align-items:center; }
@media (max-width:60rem){ .supervision{ grid-template-columns:1fr; gap:2rem; } }
.supervision__texte h2 { margin:0 0 0.8rem; }
.supervision__texte p { color:#c5d2cd; margin:0 0 0.8rem; }
.supervision__texte .coches li { color:#e7edea; }

/* Ordinateur portable */
.portable { margin:0; }
.portable__cadre { background:#0f1b2e; border:3px solid #2a3a52; border-radius:16px 16px 4px 4px; padding:0.6rem; box-shadow:0 30px 60px -25px rgba(0,0,0,0.8); }
.portable__socle { height:14px; margin:0 auto; width:80%; background:linear-gradient(#cdd8d3,#9fb0a9); border-radius:0 0 12px 12px; box-shadow:0 10px 18px -8px rgba(0,0,0,0.5); }
.portable figcaption { text-align:center; color:#8fa3c0; font-size:0.78rem; margin-top:0.7rem; }

/* Tableau de bord dans l'écran */
.dash { background:var(--papier); color:var(--encre); border-radius:10px; overflow:hidden; }
.dash__barre { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; padding:0.6rem 0.9rem; background:var(--brume); border-bottom:1px solid var(--trait); font-size:0.8rem; }
.dash__marque { display:inline-flex; align-items:center; gap:0.45rem; font-weight:700; }
.dash__point { width:10px; height:10px; border-radius:50%; background:var(--resolu); }
.dash__live { display:inline-flex; align-items:center; gap:0.4rem; font-weight:600; color:var(--resolu-fonce); background:var(--resolu-pale); padding:0.15rem 0.55rem; border-radius:999px; font-size:0.72rem; }
.dash__pulse { width:7px; height:7px; border-radius:50%; background:var(--resolu); animation:iaPulse 1.6s ease-out infinite; }
.dash__tuiles { display:grid; grid-template-columns:repeat(3,1fr); gap:0.6rem; padding:0.9rem; }
.dash__tuile { background:var(--brume); border-radius:10px; padding:0.7rem 0.6rem; text-align:center; }
.dash__tuile--ok { background:var(--resolu-pale); }
.dash__num { display:block; font-size:1.5rem; font-weight:800; line-height:1; }
.dash__tuile--ok .dash__num { color:var(--resolu-fonce); }
.dash__lbl { display:block; font-size:0.72rem; color:var(--ardoise); margin-top:0.25rem; }
.dash__agent { display:flex; align-items:center; gap:0.6rem; margin:0 0.9rem 0.8rem; padding:0.6rem 0.8rem; background:#0f1b2e; color:#dde9fb; border-radius:10px; font-size:0.82rem; }
.dash__agent strong { color:#fff; }
.dash__agent-ic { flex:0 0 auto; width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:var(--resolu); color:#fff; }
.dash__rows { list-style:none; margin:0; padding:0 0.9rem 0.9rem; display:flex; flex-direction:column; gap:0.45rem; }
.dash__rows li { display:flex; align-items:center; justify-content:space-between; gap:0.6rem; padding:0.55rem 0.7rem; border:1px solid var(--trait); border-radius:9px; font-size:0.82rem; }
.dash__rows strong { display:block; }
.dash__rows small { color:var(--ardoise); font-size:0.74rem; }
@media (prefers-reduced-motion: reduce){ .ia-logo__pastille,.dash__pulse{animation:none} }
