/*
  Site de faim2watts.app : une feuille pour toutes les pages, dans l'esprit
  de l'app (design/theme-sportif.md) : fond carbone, accent « Signal »,
  Barlow pour les phrases, Barlow Condensed italique pour les titres et les
  chiffres, biseau de 7,5° sur ce qui se touche pour agir.

  Règles reprises de l'app :
  - un seul accent (Signal) : liens, boutons, partie remplie des LED ;
  - ambre = donnée ancienne, rien d'autre, toujours avec l'horloge et le mot ;
  - pas de dégradé, de halo ni d'ombre portée ;
  - jamais d'image de voiture, de logo ni de police d'un constructeur.
  Aucun script, aucun cookie, aucune ressource chargée ailleurs que sur ce
  site : les polices sont dans polices/ (SIL OFL, découpées au latin).
*/

@font-face { font-family: "Barlow"; src: url("polices/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/BarlowCondensed-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/BarlowCondensed-BlackItalic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  /* Tokens du thème sombre (design/theme-sportif.md § 2). */
  --fond: #06080D;
  --surface: #0E121B;
  --surface-zebree: #121722;
  --surface-haute: #161B27;
  --piste: #1E2432;
  --trait: #252C3C;
  --contour: #677086;
  --texte: #F3F5FA;
  --texte-2: #B9C0CF;
  --texte-3: #8A92A6;
  --courant: #A8F046;
  --sur-courant: #06080D;
  --courant-doux: #2A3A23;
  --ambre: #FFB547;
  --ambre-doux: #2A2418;
  --large: 1120px;
  --etroit: 46rem;
  --titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Le sergé carbone de l'app (§ 4.3) : 8 × 8 px, blanc à 4 % sur le fond. */
body {
  margin: 0;
  color: var(--texte);
  background-color: var(--fond);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cg fill='%23ffffff' fill-opacity='.04'%3E%3Crect width='4' height='2'/%3E%3Crect x='4' y='4' width='4' height='2'/%3E%3Crect x='4' width='2' height='4'/%3E%3Crect y='4' width='2' height='4'/%3E%3C/g%3E%3C/svg%3E");
  font: 400 17px/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--courant); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--courant); outline-offset: 3px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--texte); }

.enveloppe { max-width: var(--large); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .enveloppe { padding: 0 24px; } }

.aller-au-contenu {
  position: absolute; left: 12px; top: -100px; z-index: 20;
  background: var(--courant); color: var(--sur-courant); padding: 10px 16px; font-weight: 600;
}
.aller-au-contenu:focus { top: 12px; }

/* Étiquette : capitales espacées (« etiquette » de l'app). */
.etiquette {
  font: 600 14px/1.3 var(--titre);
  letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3);
  margin: 0 0 10px;
}
.etiquette.accent { color: var(--courant); }

h1, h2, h3 { font-family: var(--titre); margin: 0; }
h1, h2 { font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 9vw, 76px); }
h2 { font-size: clamp(32px, 6vw, 50px); }
h3 { font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1.15; letter-spacing: .02em; }
.chapeau { font-size: 19px; color: var(--texte-2); max-width: 36em; }

/* En-tête */
.tete {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 8, 13, .92);
  border-bottom: 1px solid var(--trait);
}
@supports (backdrop-filter: blur(1px)) {
  .tete { background: rgba(6, 8, 13, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.tete .enveloppe { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; min-height: 64px; }
.marque { display: block; padding: 10px 0; }
.marque img { height: 30px; width: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 16px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase;
  color: var(--texte-2); text-decoration: none;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--texte); }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--courant); }
/* Sur téléphone, l'en-tête ne colle pas : il prendrait trop de hauteur. */
@media (max-width: 719px) {
  html { scroll-padding-top: 12px; }
  .tete { position: static; }
  .tete .enveloppe { padding-bottom: 2px; }
  .menu { margin: -6px 0 0; width: 100%; gap: 0 14px; }
  .menu a { font-size: 15px; letter-spacing: .05em; }
}

/* Boutons : le biseau de l'app (hauteur 54 → décalage de 7 px). Le fond est
   découpé sur un pseudo-élément, pour que l'anneau de focus reste visible. */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.bouton {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  font: 700 italic 17px/1.1 var(--titre); letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; color: var(--sur-courant);
}
.bouton::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--courant);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.bouton.contour { color: var(--texte); }
.bouton.contour::before { background: var(--contour); }
.bouton.contour::after {
  content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--fond);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.bouton small { display: block; font: 600 13px/1.2 var(--titre); letter-spacing: .12em; color: var(--texte-3); font-style: normal; }
.bouton span { display: block; }
/* Badges officiels des stores, tels quels, à la même hauteur (54 px ; Apple
   en demande 40 au moins), l'App Store en premier et en noir avec son filet
   gris, comme Apple le demande quand un autre store est à côté. */
.badge-app-store, .badge-play { display: inline-flex; align-items: center; border-radius: 8px; }
.badge-app-store img, .badge-play img { display: block; width: auto; height: 54px; }

/* Panneau : surface unie, rayon 10, filet. Jamais de texture dessus. */
.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 20px; }

/* ---------- Accueil ---------- */

.accueil { padding: 56px 0 40px; }
.accueil .enveloppe { display: grid; gap: 44px; align-items: center; }
@media (min-width: 920px) { .accueil .enveloppe { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.accueil h1 { margin: 6px 0 22px; }
.accueil h1 em { font-style: italic; color: var(--courant); }
.accueil .chapeau { margin-bottom: 26px; }
.compatible { color: var(--texte-2); font-size: 16px; margin: 22px 0 0; max-width: 36em; }
.garanties { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.garanties li { font: 600 15px/1.3 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.garanties li::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: 1px;
  background: var(--courant); clip-path: polygon(1.2px 0, 100% 0, calc(100% - 1.2px) 100%, 0 100%);
}

/* Le widget d'illustration (§ 5.14) : données fictives, dit en légende. */
.illustration { margin: 0; }
.illustration figcaption { margin-top: 12px; font-size: 15px; color: var(--texte-3); text-align: center; }
.widget {
  max-width: 400px; margin: 0 auto;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cg fill='%23ffffff' fill-opacity='.04'%3E%3Crect width='4' height='2'/%3E%3Crect x='4' y='4' width='4' height='2'/%3E%3Crect x='4' width='2' height='4'/%3E%3Crect y='4' width='2' height='4'/%3E%3C/g%3E%3C/svg%3E");
  border: 1px solid var(--trait); border-radius: 24px; padding: 20px 22px 18px;
}
.widget .haut-widget { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.widget .nom-voiture { font: 700 15px/1.2 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.widget .mesure { font-size: 15px; color: var(--texte-3); white-space: nowrap; }
.chiffres { display: flex; align-items: baseline; gap: 18px; margin: 10px 0 14px; }
.chiffre-roi { font: 900 italic 72px/.9 var(--titre); letter-spacing: -.01em; }
.chiffre-roi .unite, .chiffre-moyen .unite { color: var(--texte-3); font-size: .42em; margin-left: 3px; font-style: normal; font-weight: 600; letter-spacing: .04em; }
.chiffre-moyen { font: 900 italic 30px/1 var(--titre); }
.chiffre-moyen .unite { font-size: .58em; color: var(--texte-2); }

/* Shift lights (§ 5.2) : 10 LED biseautées. */
.leds { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; height: 18px; }
.leds span { background: var(--piste); clip-path: polygon(2.4px 0, 100% 0, calc(100% - 2.4px) 100%, 0 100%); }
.leds .pleine { background: var(--courant); }
.leds .partielle { background: var(--courant); animation: pulse 1.6s ease-in-out infinite; }
.leds .au-dela { background: var(--contour); position: relative; }
.leds .au-dela::after {
  content: ""; position: absolute; inset: 1.5px; background: var(--surface);
  clip-path: polygon(2.2px 0, 100% 0, calc(100% - 2.2px) 100%, 0 100%);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .leds .partielle { animation: none; opacity: .55; } }
.etat { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 16px; color: var(--texte-2); }
.etat svg { width: 18px; height: 18px; flex: none; color: var(--courant); }

/* Sections */
.section { padding: 64px 0; }
.section.bande { background: rgba(14, 18, 27, .7); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.titre-de-section { max-width: 44em; margin-bottom: 36px; }
.titre-de-section h2 { margin: 0 0 16px; }

/* Grille de cartes : 1, puis 2, puis 3 colonnes (6 cartes : jamais une seule en bout de ligne). */
.cartes { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cartes.trois { grid-template-columns: repeat(3, 1fr); } .cartes.quatre { grid-template-columns: repeat(4, 1fr); } }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 20px; }
.carte h3 { margin: 14px 0 8px; font-size: 21px; }
.carte p { margin: 0; color: var(--texte-2); font-size: 16px; }
.carre {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--surface-haute); color: var(--texte);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.carre svg { width: 20px; height: 20px; }
.carre.accent { background: var(--courant); color: var(--sur-courant); }
.apres-cartes { margin: 22px 0 0; color: var(--texte-2); }

/* Chiffres honnêtes */
.honnete { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .honnete { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.honnete .texte p { color: var(--texte-2); max-width: 34em; }
.exemple { max-width: 400px; width: 100%; margin: 0 auto; }
.exemple .ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait); }
.exemple .ligne:first-of-type { border-top: 0; padding-top: 4px; }
.exemple .libelle { font: 600 15px/1.2 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.exemple .valeur { font: 900 italic 26px/1 var(--titre); }
.exemple .valeur.inconnue { font: 600 17px/1 "Barlow", sans-serif; color: var(--texte-3); }
.badge-ancienne {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  font: 700 14px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--ambre);
}
.badge-ancienne::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ambre); clip-path: polygon(3.2px 0, 100% 0, calc(100% - 3.2px) 100%, 0 100%); }
.badge-ancienne::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--ambre-doux); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.badge-ancienne svg { width: 14px; height: 14px; }
.mesure-ancienne { color: var(--ambre); font-size: 15px; margin: 8px 0 0; }

/* Carnet de bord */
.carnet { display: grid; gap: 36px; }
@media (min-width: 960px) { .carnet { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; } }
.avantages { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.avantages li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.avantages h3 { font: 600 18px/1.3 "Barlow", sans-serif; text-transform: none; letter-spacing: 0; margin: 2px 0 4px; }
.avantages p { margin: 0; color: var(--texte-2); font-size: 16px; }
.formules { display: grid; gap: 10px; margin: 0 0 14px; }
.formule { background: var(--surface); border: 1px solid var(--contour); border-radius: 8px; padding: 14px 18px; }
.formule.choisie { background: var(--courant-doux); border: 2px solid var(--courant); }
.formule .prix { font: 900 italic 34px/1 var(--titre); }
.formule .prix span { font: 600 17px/1 "Barlow", sans-serif; margin-left: 6px; }
.formule p { margin: 6px 0 0; color: var(--texte-2); font-size: 15px; }
.mentions { font-size: 15px; color: var(--texte-2); }
.mentions strong { color: var(--texte); }
.toujours { font-size: 15px; color: var(--texte-3); margin-top: 14px; }

/* Mur des temps (§ 5.6), en illustration */
.mur { border-radius: 10px; overflow: hidden; border: 1px solid var(--trait); margin-top: 28px; }
.mur .entete { display: flex; justify-content: space-between; padding: 9px 14px; background: var(--surface); border-bottom: 1px solid var(--trait); font: 600 14px/1.2 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.mur .rang { display: grid; grid-template-columns: 1fr auto 56px; align-items: baseline; gap: 10px; padding: 9px 14px; }
.mur .rang:nth-child(odd) { background: var(--surface-zebree); }
.mur .rang:nth-child(even) { background: var(--surface); }
.mur .lib { font: 600 14px/1.2 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.mur .val { font: 900 italic 22px/1 var(--titre); text-align: right; font-variant-numeric: tabular-nums; }
.mur .val small { font: 600 14px/1 var(--titre); color: var(--texte-2); margin-left: 3px; font-style: normal; }
.mur .ecart { font: 600 15px/1 var(--titre); color: var(--texte-2); text-align: right; font-variant-numeric: tabular-nums; }
.mur-legende { font-size: 15px; color: var(--texte-3); margin: 10px 0 0; text-align: center; }

/* Indépendance */
.independance { border-left: 0; }
.independance p { margin: 0; color: var(--texte-2); }

/* Fin */
.fin { text-align: center; padding: 72px 0 80px; }
.fin h2 { margin: 0 auto 26px; max-width: 16em; }
.fin .boutons { justify-content: center; }
.fin p { color: var(--texte-2); margin-top: 22px; }

/* ---------- Pages de texte (légales, aide) ---------- */

.page { padding: 40px 0 24px; }
.page .enveloppe { max-width: calc(var(--etroit) + 48px); }
.page h1 { font-size: clamp(36px, 7vw, 52px); margin: 0 0 10px; }
.page h2 { font-size: clamp(26px, 4.6vw, 32px); margin: 44px 0 14px; }
.page h3 { font-size: 20px; margin: 28px 0 10px; }
.page .maj { color: var(--texte-3); font-size: 15px; margin: 0 0 28px; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: .4em 0; }
.page li::marker { color: var(--texte-3); }
.page table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: 16px; }
.page th, .page td { border: 1px solid var(--trait); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.page th { font: 600 14px/1.3 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); background: var(--surface); }
.page td { background: rgba(14, 18, 27, .6); }
.page code { font-size: .92em; color: var(--texte-2); }
.en-bref { margin: 0 0 8px; }
.en-bref ul { margin: 0; padding-left: 1.2em; }
.en-bref .etiquette { margin-bottom: 6px; }
.encart { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 16px 20px; margin: 1.4rem 0; }
.encart p:last-child, .encart ul:last-child { margin-bottom: 0; }
.deux-blocs { display: grid; gap: 12px; margin: 1.2rem 0; }
@media (min-width: 700px) { .deux-blocs { grid-template-columns: 1fr 1fr; } }
.deux-blocs .encart { margin: 0; }
.page .deux-blocs h3 { margin: 0 0 8px; }
.etapes { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 16px 20px 16px 2.6em; margin: 1.2rem 0; }
.chemin { font-weight: 600; color: var(--texte); }
.table-defile { overflow-x: auto; }
@media (max-width: 560px) {
  .page table.empile, .page table.empile tbody, .page table.empile tr, .page table.empile td { display: block; width: 100%; }
  .page table.empile thead { display: none; }
  .page table.empile tr { border: 1px solid var(--trait); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
  .page table.empile td { border: 0; border-top: 1px solid var(--trait); }
  .page table.empile td:first-child { border-top: 0; font-weight: 600; background: var(--surface); }
}

/* Questions de l'aide */
.question { border-top: 1px solid var(--trait); padding: 6px 0; }
.question summary {
  cursor: pointer; list-style: none; padding: 12px 32px 12px 0; position: relative;
  font: 600 18px/1.35 "Barlow", sans-serif; color: var(--texte);
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "+"; position: absolute; right: 4px; top: 8px;
  font: 900 italic 26px/1 var(--titre); color: var(--courant);
}
.question[open] summary::after { content: "−"; }
.question > div { padding: 0 0 10px; color: var(--texte-2); }
.question > div strong { color: var(--texte); }

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

.pied { border-top: 1px solid var(--trait); padding: 40px 0 48px; margin-top: 40px; color: var(--texte-3); font-size: 16px; background: rgba(6, 8, 13, .6); }
.pied .colonnes { display: grid; gap: 26px; }
@media (min-width: 760px) { .pied .colonnes { grid-template-columns: 1.3fr 1fr 1fr; } }
.pied .marque { padding: 0 0 10px; }
.pied .marque img { height: 26px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a { display: inline-block; padding: 6px 0; color: var(--texte-2); text-decoration: none; }
.pied li a:hover { color: var(--texte); text-decoration: underline; }
.pied .etiquette { margin-bottom: 6px; }
.pied .avis { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 15px; line-height: 1.55; }

/* Impression des pages légales : noir sur blanc, sans en-tête collant. */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .tete, .aller-au-contenu, .pied nav, .pied .colonnes { display: none; }
  .tete { position: static; }
  a { color: #000; }
  .page h1, .page h2, .page h3, strong, .chemin { color: #000; }
  .encart, .etapes, .page td, .page th { background: #fff; border-color: #999; color: #000; }
  .question > div { display: block; }
}
