/* Itinera — feuille de style du site.
   Mise en page : une bande « nuit » (la couleur de l'icône) porte l'en-tête et le convoi ;
   le reste est clair et aéré. Les chiffres (durées, distances, prix) sont en mono, comme dans l'app.
   Polices : Sora et JetBrains Mono (licence SIL OFL 1.1, voir fonts/LICENCES.txt). */

@font-face { font-family: "Sora"; src: url("fonts/sora-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* bande nuit : identique dans les deux thèmes */
  --nuit: #121826;
  --nuit-2: #1b2334;
  --nuit-trait: #2a3448;
  --nuit-texte: #eef2fa;
  --nuit-doux: #a8b3c8;
  /* page */
  --bg: #f3f5f9;
  --surface: #ffffff;
  --fg: #121826;
  --doux: #566074;
  --trait: #dce2ec;
  --lien: #2457c5;
  /* les trois flèches du logo */
  --bleu: #2b6ce6;
  --bleu-vif: #63a0ff;
  --vert: #0d8a7e;
  --vert-vif: #2fd3bd;
  --rose: #d33a73;
  --rose-vif: #ff6b9e;
  --sur-bleu: #ffffff;
  /* typo */
  --display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --texte: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rayon: 18px;
  --largeur: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1018; --surface: #151b27; --fg: #e9edf5; --doux: #9ba6bb; --trait: #263044;
    --lien: #8db6ff; --vert: #2fd3bd; --rose: #ff6b9e; --bleu: #3b78ec;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1018; --surface: #151b27; --fg: #e9edf5; --doux: #9ba6bb; --trait: #263044;
  --lien: #8db6ff; --vert: #2fd3bd; --rose: #ff6b9e; --bleu: #3b78ec;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16.5px/1.65 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--bleu-vif); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* largeur et gouttières : une seule enveloppe par bande */
.enveloppe {
  max-width: var(--largeur); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- bande nuit + en-tête ---------- */
.nuit { background: var(--nuit); color: var(--nuit-texte); position: relative; overflow: hidden; }
.nuit a { color: var(--nuit-texte); }
/* barre du haut : reste visible pendant le défilement */
.barre {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(18, 24, 38, 0.92); color: var(--nuit-texte);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--nuit-trait);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .barre { background: var(--nuit); } }
.barre a { color: var(--nuit-texte); }
.entete { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-block: 12px; }
.entete .nav { margin-left: auto; }
[id] { scroll-margin-top: 96px; }
.marque { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.marque img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.nav a { text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; color: var(--nuit-doux); }
.nav a:hover { color: var(--nuit-texte); background: var(--nuit-2); }
.nav a[aria-current="page"] { color: var(--nuit-texte); background: var(--nuit-2); }
.barre .nav-cta { text-decoration: none; font-size: 0.95rem; padding: 9px 16px; border-radius: 999px; color: var(--sur-bleu); background: var(--bleu); font-weight: 600; white-space: nowrap; }
.barre .nav-cta:hover { background: #3a7af0; color: var(--sur-bleu); }

/* ---------- accueil : hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding-block: 40px 72px; position: relative; z-index: 1; }
.hero-texte { display: grid; gap: 20px; min-width: 0; }
.surtitre { font: 500 0.82rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--nuit-doux); display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.points { display: inline-flex; gap: 5px; }
.points i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.points i:nth-child(1) { background: var(--bleu-vif); }
.points i:nth-child(2) { background: var(--vert-vif); }
.points i:nth-child(3) { background: var(--rose-vif); }
.hero h1 em { font-style: normal; color: var(--bleu-vif); }
.chapo { font-size: 1.12rem; color: var(--nuit-doux); max-width: 34em; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--texte); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.bouton-plein { background: var(--bleu); color: var(--sur-bleu); }
.bouton-plein:hover { background: #3a7af0; }
.nuit .bouton-plein, .nuit .bouton-plein:hover { color: var(--sur-bleu); }
.bouton-contour { border-color: var(--nuit-trait); color: var(--nuit-texte); }
.bouton-contour:hover { border-color: var(--nuit-doux); }
.dispo { font-size: 0.92rem; color: var(--nuit-doux); }
.dispo strong { color: var(--nuit-texte); font-weight: 600; }

/* le convoi de téléphones, dans la formation du logo */
.convoi { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.02; margin-inline: auto; }
.tel { position: absolute; padding: 2.4%; background: #090c13; border-radius: 13% / 6.4%; box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 30px 60px -24px var(--ombre, rgba(0,0,0,0.6)); }
.tel img { border-radius: 10.5% / 5%; }
.tel-tete { left: 31%; top: 0; width: 38%; z-index: 3; --ombre: rgba(99,160,255,0.55); }
.tel-gauche { left: 1%; top: 17%; width: 33%; z-index: 2; --ombre: rgba(47,211,189,0.45); }
.tel-droite { right: 1%; top: 17%; width: 33%; z-index: 2; --ombre: rgba(255,107,158,0.45); }
/* code du trajet, au-dessus du téléphone de l'accueil */
.code-trajet { position: relative; z-index: 2; width: min(350px, 86vw); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 4px; }
.code-trajet label { font: 600 0.9rem/1.35 var(--texte); color: var(--nuit-doux); text-align: center; }
.code-champ { display: flex; gap: 6px; padding: 5px; background: var(--nuit-2); border: 1px solid var(--nuit-trait); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.code-champ:focus-within { border-color: var(--bleu-vif); box-shadow: 0 0 0 3px rgba(99,160,255,0.25); }
.code-champ input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: var(--nuit-texte); font: 700 1.05rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; padding: 0 6px 0 16px; }
.code-champ input::placeholder { color: var(--nuit-doux); opacity: 0.5; }
.code-champ button { flex: none; font: 700 0.92rem/1 var(--texte); color: var(--sur-bleu); background: var(--bleu); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; }
.code-champ button:hover { filter: brightness(1.08); }
.halo { position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.35; z-index: 0; }
.halo-bleu { width: 46%; height: 30%; left: 27%; top: 58%; background: var(--bleu-vif); }
.halo-vert { width: 30%; height: 24%; left: 0; top: 70%; background: var(--vert-vif); }
.halo-rose { width: 30%; height: 24%; right: 0; top: 70%; background: var(--rose-vif); }
.route { position: absolute; inset: auto 0 0 0; width: 100%; height: 160px; z-index: 0; opacity: 0.55; pointer-events: none; }

/* ---------- sections claires ---------- */
.bande { padding-block: 80px; }
.bande + .bande { padding-top: 0; }
.entete-section { display: grid; gap: 12px; max-width: 46em; margin-bottom: 40px; }
.etiquette { font: 500 0.8rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux); }
.entete-section p { color: var(--doux); font-size: 1.05rem; }

/* trois étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: etape; }
.etapes li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.etapes .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 1rem/1 var(--mono); color: #fff; }
.etapes li:nth-child(1) .num { background: var(--bleu); }
.etapes li:nth-child(2) .num { background: #0d8a7e; }
.etapes li:nth-child(3) .num { background: #d33a73; }
.etapes p { color: var(--doux); }
.code { display: inline-flex; gap: 4px; margin-top: 4px; }
.code span { width: 26px; height: 32px; border-radius: 7px; border: 1.5px solid var(--trait); display: grid; place-items: center; font: 500 0.9rem/1 var(--mono); color: var(--doux); }

/* fonctionnalités : texte + écran en alternance */
.fonction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px 64px; align-items: center; padding-block: 40px; border-top: 1px solid var(--trait); }
.fonction:first-of-type { border-top: 0; padding-top: 0; }
.fonction:nth-of-type(even) { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.fonction:nth-of-type(even) .fonction-ecran { order: -1; }
.fonction-texte { display: grid; gap: 14px; min-width: 0; max-width: 34em; }
.fonction-texte > p { color: var(--doux); }
.fonction-texte h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste li { position: relative; padding-left: 22px; }
.liste li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--puce, var(--bleu)); }
.fonction-ecran { justify-self: center; width: 100%; max-width: 280px; }
.fonction-ecran .tel { position: relative; inset: auto; width: 100%; }
.ecran-bleu { --puce: var(--bleu); }
.ecran-vert { --puce: var(--vert); }
.ecran-rose { --puce: var(--rose); }
.ecran-bleu .tel { --ombre: rgba(43,108,230,0.45); }
.ecran-vert .tel { --ombre: rgba(13,138,126,0.45); }
.ecran-rose .tel { --ombre: rgba(211,58,115,0.45); }
.puce-bleu { --puce: var(--bleu); }
.puce-vert { --puce: var(--vert); }
.puce-rose { --puce: var(--rose); }
.mesure { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font: 500 0.9rem/1.3 var(--mono); color: var(--doux); }
.mesure b { color: #129a57; font-weight: 500; }

/* vie privée */
.vie-privee { background: var(--surface); border: 1px solid var(--trait); border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.vie-privee .trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vie-privee h3 { margin-bottom: 6px; }
.vie-privee p { color: var(--doux); }

/* deux portes : Premium et Pro */
.portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.porte { border-radius: 24px; padding: 32px; display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.porte-premium { background: var(--nuit); color: var(--nuit-texte); border: 1px solid var(--nuit-trait); }
.porte-premium p { color: var(--nuit-doux); }
.porte-pro { background: var(--surface); border: 1px solid var(--trait); }
.porte-pro p { color: var(--doux); }
.prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.prix .mono { font-size: 1.6rem; }
.prix small { font: 400 0.9rem/1.3 var(--texte); color: var(--nuit-doux); }
.lien-fleche { font-weight: 600; text-decoration: none; }
.porte-premium .lien-fleche { color: var(--bleu-vif); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces span { font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--trait); color: var(--doux); }

/* formulaires */
.formulaire-bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px 48px; align-items: start; }
.formulaire-bloc .intro { display: grid; gap: 12px; }
.formulaire-bloc .intro p { color: var(--doux); }
form { display: grid; gap: 16px; min-width: 0; }
.champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label, legend { font-weight: 600; font-size: 0.95rem; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ small { color: var(--doux); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--texte); color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--trait); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; padding: 10px 14px; border: 1.5px solid var(--trait); border-radius: 999px; cursor: pointer; }
.choix input { accent-color: var(--bleu); margin: 0; }
.mention { font-size: 0.85rem; color: var(--doux); }
.retour-formulaire { font-size: 0.95rem; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--trait); }

/* pages intérieures */
.tete-page { padding-block: 40px 64px; display: grid; gap: 16px; max-width: 46em; position: relative; z-index: 1; }
.tete-page .chapo { max-width: 38em; }
.prix-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; max-width: 760px; }
.prix-carte { background: var(--nuit-2); border: 1px solid var(--nuit-trait); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.prix-carte .mono { font-size: 1.5rem; color: var(--nuit-texte); }
.prix-carte span { color: var(--nuit-doux); font-size: 0.9rem; }

.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.carte p { color: var(--doux); }
.carte .marqueur { width: 10px; height: 10px; border-radius: 50%; background: var(--puce, var(--bleu)); }
.bulles { display: grid; gap: 8px; margin-top: 4px; }
.bulle { justify-self: start; font: 500 0.88rem/1.4 var(--mono); padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--bg); border: 1px solid var(--trait); color: var(--fg); }

.tableau { overflow-x: auto; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--trait); vertical-align: top; }
thead th { border-top: 0; font: 500 0.8rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--doux); }
td.oui, td.non { width: 22%; font-weight: 600; }
td.non { color: var(--doux); font-weight: 400; }
td.oui { color: var(--vert); }
td small { display: block; color: var(--doux); font-weight: 400; font-size: 0.85rem; }

.texte-court { display: grid; gap: 14px; max-width: 46em; }
.texte-court p, .texte-court li { color: var(--doux); }
.texte-court ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.deux-listes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.statut { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; justify-self: start; }
.statut-ok { background: rgba(13,138,126,0.12); color: var(--vert); }
.statut-bientot { background: rgba(43,108,230,0.12); color: var(--lien); }

/* FAQ : questions visibles, groupées par thème */
.faq { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px 48px; padding-block: 32px; border-top: 1px solid var(--trait); }
.faq:first-of-type { border-top: 0; padding-top: 0; }
.faq h2 { font-size: 1.3rem; }
.qr { display: grid; gap: 22px; }
.qr h3 { margin-bottom: 4px; }
.qr p { color: var(--doux); }

/* pied de page */
.pied { border-top: 1px solid var(--trait); padding-block: 40px 48px; color: var(--doux); font-size: 0.92rem; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.pied h3 { font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux); margin-bottom: 10px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: var(--fg); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .marque { color: var(--fg); margin-bottom: 10px; }
.pied .legal { margin-top: 28px; font-size: 0.85rem; }

/* ---------- petits écrans ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 24px 56px; }
  .convoi { max-width: 440px; }
  .fonction, .fonction:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .fonction:nth-of-type(even) .fonction-ecran { order: 0; }
  .fonction-ecran { max-width: 240px; }
  .formulaire-bloc { grid-template-columns: minmax(0, 1fr); }
  .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille > :first-child { grid-column: 1 / -1; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 680px) {
  .entete { padding-block: 10px; }
  .entete .nav-cta { margin-left: auto; padding: 8px 14px; }
  .entete .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
  [id] { scroll-margin-top: 120px; }
  .bande { padding-block: 56px; }
  .etapes, .vie-privee .trois, .portes, .grille-2, .deux-listes, .champs-2, .prix-cartes { grid-template-columns: minmax(0, 1fr); }
  .porte { padding: 24px; }
}
@media (max-width: 460px) {
  .grille-4 { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 7px 9px; font-size: 0.88rem; }
}
/* comparatif avec les autres GPS */
.comparatif { background: var(--surface); border: 1px solid var(--trait); border-radius: 24px; padding: clamp(8px, 2vw, 20px) clamp(8px, 3vw, 32px); overflow-x: auto; }
.comp { width: 100%; border-collapse: collapse; min-width: 520px; }
.comp th, .comp td { padding: 13px 10px; border-bottom: 1px solid var(--trait); text-align: center; vertical-align: middle; }
.comp tbody tr:last-child th, .comp tbody tr:last-child td { border-bottom: 0; }
.comp th[scope="row"] { text-align: left; font-weight: 600; font-size: 0.98rem; width: 46%; }
.comp thead th { font: 700 1rem/1.2 var(--display); padding-block: 16px; color: var(--doux); }
.comp thead th.nous span { display: inline-block; color: var(--sur-bleu); background: var(--bleu); padding: 7px 14px; border-radius: 999px; }
.comp td.nous { background: color-mix(in srgb, var(--bleu) 7%, transparent); }
.comp tr.groupe th { text-align: left; font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux); padding-top: 26px; border-bottom: 0; }
.comp .c-oui { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--vert); }
.comp .c-non { color: var(--doux); font-weight: 600; opacity: 0.7; }
.comp .c-part { font-size: 0.82rem; font-weight: 600; color: #b26a00; background: color-mix(in srgb, #f59e0b 16%, transparent); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.comp td small { display: block; font-size: 0.75rem; color: var(--doux); margin-top: 4px; }
.comp .prix-ligne b { font-weight: 700; }
.comp sup { font-size: 0.7em; margin-left: 2px; }
.comp-notes { margin-top: 18px; display: grid; gap: 6px; max-width: 60em; color: var(--doux); font-size: 0.92rem; }
.comp-notes p { margin: 0; }
.comp-notes .petit { font-size: 0.8rem; margin-top: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .comp .c-part { color: #fbbf24; } }
:root[data-theme="dark"] .comp .c-part { color: #fbbf24; }
.comp .c-renvoi { color: var(--doux); }
.comp-2 { min-width: 0; }
.comp-2 th[scope="row"] { width: 56%; }
.comp-2 thead th, .comp-2 td { width: 22%; }
@media (max-width: 560px) {
  .comparatif { padding-inline: 4px; }
  .comp { min-width: 0; }
  .comp th, .comp td { padding: 11px 4px; }
  .comp th[scope="row"] { font-size: 0.86rem; width: 52%; padding-left: 10px; }
  .comp thead th { font-size: 0.78rem; }
  .comp thead th.nous span { padding: 5px 8px; }
  .comp .c-oui { width: 24px; height: 24px; }
  .comp .c-oui svg { width: 16px; height: 16px; }
  .comp .c-part { font-size: 0.7rem; padding: 3px 6px; }
  .comp tr.groupe th { padding-left: 10px; }
}

/* passage d'une page à l'autre (site.js) : le contenu part vers le haut, la page suivante arrive par le bas */
@media (prefers-reduced-motion: no-preference) {
  html.arrivee main, html.arrivee .pied { animation: arrivee .6s cubic-bezier(.2,.75,.25,1) both; }
  html.sortie main, html.sortie .pied { opacity: 0; transform: translateY(-48px); transition: opacity .26s ease, transform .28s cubic-bezier(.4,0,1,1); }
}
@keyframes arrivee { from { opacity: 0; transform: translateY(72px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- finitions « premium » : survol des boutons et des cartes, apparition au défilement ----------
   Tout reste immobile si l'utilisateur limite les animations. Le reflet des cartes suit la souris (site.js). */
.bouton, .barre .nav-cta, .code-champ button, .demo-legende button { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.bouton-plein, .barre .nav-cta, .code-champ button {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 20px -10px rgba(43,108,230,0.8);
}
/* reflet qui traverse le bouton */
.bouton-plein::after, .barre .nav-cta::after, .code-champ button::after, .bouton-contour::after, .demo-legende button::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.38) 48%, rgba(255,255,255,0.08) 54%, transparent 66%);
  transform: translateX(-130%);
}
.bouton-contour::after, .demo-legende button::after { background: linear-gradient(105deg, transparent 30%, rgba(160,195,255,0.22) 48%, transparent 66%); }
/* lumière qui suit la souris dans le bouton */
.bouton::before, .barre .nav-cta::before, .code-champ button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.22), transparent 70%);
}
.bouton-contour::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(99,160,255,0.22), transparent 70%); }
.bouton-contour:hover { background: rgba(99,160,255,0.06); }
.nuit .bouton-contour:hover, .bouton-contour:hover { border-color: var(--bleu-vif); }
.nav a { transition: color .2s, background-color .2s; }
.lien-fleche .fl { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.porte:hover .lien-fleche .fl { transform: translateX(6px); }

/* cartes : légère élévation et halo qui suit la souris */
.etapes li, .carte, .porte, .prix-carte { position: relative; isolation: isolate; }
.etapes li::after, .carte::after, .porte::after, .prix-carte::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(43,108,230,0.09), transparent 65%);
}
.porte-premium::after, .prix-carte::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(99,160,255,0.16), transparent 65%); }

/* téléphones des fonctionnalités : inclinaison (site.js) et reflet */
.fonction-ecran { perspective: 1100px; }
.fonction-ecran .tel { transform-style: preserve-3d; will-change: transform; }
.fonction-ecran .tel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,0.20), transparent 45%);
}

@media (prefers-reduced-motion: no-preference) {
  .bouton, .barre .nav-cta, .code-champ button, .demo-legende button {
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s cubic-bezier(.2,.8,.2,1), background-color .25s, border-color .25s, color .25s, filter .25s;
  }
  .bouton::after, .barre .nav-cta::after, .code-champ button::after, .demo-legende button::after { transition: transform 0s .4s; }
  .bouton::before, .barre .nav-cta::before, .code-champ button::before { transition: opacity .3s; }
  @media (hover: hover) {
    .bouton:hover, .barre .nav-cta:hover, .demo-legende button:hover { transform: translateY(-2px); }
    .bouton-plein:hover, .barre .nav-cta:hover, .code-champ button:hover {
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 16px 32px -12px rgba(43,108,230,0.95), 0 0 0 4px rgba(99,160,255,0.16);
    }
    .bouton-contour:hover { box-shadow: 0 0 0 4px rgba(99,160,255,0.12), 0 14px 28px -16px rgba(99,160,255,0.6); }
    .bouton:hover::after, .barre .nav-cta:hover::after, .code-champ button:hover::after, .demo-legende button:hover::after { transform: translateX(130%); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
    .bouton:hover::before, .barre .nav-cta:hover::before, .code-champ button:hover::before { opacity: 1; }
  }
  .bouton:active, .barre .nav-cta:active, .code-champ button:active, .demo-legende button:active { transform: translateY(0) scale(0.97); transition-duration: .12s; }

  .etapes li, .carte, .porte, .prix-carte { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s; }
  .etapes li::after, .carte::after, .porte::after, .prix-carte::after { transition: opacity .35s; }
  @media (hover: hover) {
    .etapes li:hover, .carte:hover, .porte:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(18,24,38,0.45); border-color: color-mix(in srgb, var(--bleu) 30%, var(--trait)); }
    .porte-premium:hover { border-color: #3a4a6a; box-shadow: 0 26px 50px -24px rgba(43,108,230,0.55); }
    .prix-carte:hover { transform: translateY(-3px); border-color: #3a4a6a; }
    .etapes li:hover::after, .carte:hover::after, .porte:hover::after, .prix-carte:hover::after { opacity: 1; }
    .etapes li:hover .num { transform: scale(1.08) rotate(-6deg); }
  }
  .etapes .num { transition: transform .45s cubic-bezier(.2,.8,.2,1); }

  .fonction-ecran .tel { transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s cubic-bezier(.2,.8,.2,1); }
  .fonction-ecran .tel.incline { transition: transform .12s linear, box-shadow .3s; }
  .fonction-ecran .tel::after { transition: opacity .4s; }
  .fonction-ecran .tel.incline::after { opacity: 1; }

  /* entrée du haut de page, puis apparition des sections au défilement (classes posées par site.js) */
  .hero-texte > * { animation: monte .9s cubic-bezier(.2,.8,.2,1) both; }
  .hero-texte > :nth-child(2) { animation-delay: .08s; }
  .hero-texte > :nth-child(3) { animation-delay: .16s; }
  .hero-texte > :nth-child(4) { animation-delay: .24s; }
  .hero-texte > :nth-child(5) { animation-delay: .32s; }
  html.revele-pret .revele { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delai, 0s); }
  html.revele-pret .revele.vu { opacity: 1; transform: none; }
}
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
