/* Site vitrine de Racemeter. Aucune ressource extérieure : polices dans assets/polices, pas de script, pas de traceur.
   Couleurs et polices de l'appli (ui/theme de driftmeter-app). Mise en page pensée d'abord pour le téléphone. */

@font-face { font-family: "Barlow"; src: url("polices/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/barlow-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/barlow-condensed-700.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  --fond: #0F1115;
  --fond-2: #14171C;
  --carte: #181B21;
  --carte-2: #1F232B;
  --ligne: #2A2F38;
  --ligne-forte: #3A404B;
  --texte: #F3F4F6;
  --texte-2: #D5D9E0;
  --doux: #A0A7B4;
  --orange: #FF8A3D;
  --orange-clair: #FFB07A;
  --orange-fond: #3A2414;
  --vert: #43D69B;
  --vert-fond: #13261E;
  --sur-orange: #14161A;
  --noir: #0A0B0D;
  --rayon: 16px;
  --titres: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte-2);
  font: 17px/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-clair); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--texte); font-family: var(--titres); font-weight: 700; line-height: 1.05; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); margin: 0 0 .45em; }
h3 { font-size: 1.45rem; font-weight: 600; margin: 0 0 .3em; line-height: 1.15; }
p { margin: 0 0 1em; }
strong { color: var(--texte); font-weight: 600; }
.orange { color: var(--orange); }

.cadre { width: min(1120px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Lien d'évitement, visible seulement au clavier */
.evitement { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px;
  background: var(--orange); color: var(--sur-orange); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; color: var(--sur-orange); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(15, 17, 21, .92); border-bottom: 1px solid var(--ligne); }
@supports (backdrop-filter: blur(10px)) { .entete { background: rgba(15, 17, 21, .8); backdrop-filter: blur(10px); } }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.marque { font-family: var(--titres); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--texte); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.marque span, .marque:hover span { color: var(--orange); }
.marque:hover { color: var(--texte); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 8px; border-radius: 10px; color: var(--texte-2); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--carte); color: var(--texte); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .bouton { margin-left: 4px; padding: 8px 14px; font-size: .95rem; color: var(--sur-orange); }
.nav .bouton:hover { background: var(--orange-clair); color: var(--sur-orange); }
.nav .bouton[aria-current="page"] { color: var(--sur-orange); box-shadow: inset 0 0 0 2px var(--texte); }
@media (min-width: 480px) { .nav a { padding: 8px 12px; } .nav { gap: 6px; } }
/* Téléphone : la marque sur une ligne, le menu sur la suivante, sans défilement de côté */
@media (max-width: 719px) {
  .entete .cadre { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .entete .marque { padding: 4px 0; }
  .nav { width: 100%; justify-content: space-between; padding-bottom: 8px; gap: 0; }
  .nav a { padding: 8px 6px; font-size: .92rem; }
  .nav a:first-child { padding-left: 0; }
  .nav .bouton { margin-left: 0; padding: 7px 14px; }
}
@media (max-width: 374px) { .marque { font-size: 1.35rem; } .nav a { font-size: .86rem; padding: 8px 4px; } .nav .bouton { padding: 7px 10px; } }

/* Sélecteur de langue, sans script (<details>, écrit par outils/langues.py) : après le menu sur un écran large,
   à droite de la marque sur un téléphone, le menu passant à la ligne. */
.langues { position: relative; order: 3; }
.nav { margin-left: auto; }
.langues summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--texte-2);
  font-size: .9rem; font-weight: 600; letter-spacing: .03em; cursor: pointer; list-style: none; user-select: none; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary:hover, .langues[open] summary { background: var(--carte); color: var(--texte); }
.langues summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.langues summary svg { width: 18px; height: 18px; flex: none; }
.langues ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 11; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--carte); border: 1px solid var(--ligne-forte); border-radius: 12px; box-shadow: 0 14px 32px rgba(0, 0, 0, .5); }
.langues li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--texte-2); text-decoration: none; font-weight: 600; }
.langues li a:hover { background: var(--carte-2); color: var(--texte); }
.langues li a[aria-current] { color: var(--orange); }
@media (max-width: 719px) {
  .langues { order: 0; margin-left: auto; }
  .langues summary { padding: 6px 8px; }
  .nav { order: 1; margin-left: 0; }
}

/* Boutons : texte sombre sur l'orange, comme dans l'appli (contraste 8:1) */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  background: var(--orange); color: var(--sur-orange); font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none; border: 0; text-align: center; }
.bouton:hover { background: var(--orange-clair); color: var(--sur-orange); }
.bouton.second { background: var(--carte-2); color: var(--texte); box-shadow: inset 0 0 0 1px var(--ligne-forte); }
.bouton.second:hover { background: #262A33; color: var(--texte); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Sections */
.section { padding: 64px 0; }
.section.sombre { background: var(--fond-2); border-block: 1px solid var(--ligne); }
.chapeau { font-size: 1.15rem; color: var(--doux); max-width: 44em; }
.surtitre { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.note { font-size: .93rem; color: var(--doux); }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* Accroche */
.accroche { padding: 44px 0 56px; background: radial-gradient(700px 360px at 90% 0%, rgba(255, 138, 61, .09), transparent 70%); }
.accroche .cadre { display: grid; gap: 36px; align-items: center; }
.accroche .note { margin-top: 18px; padding-left: 12px; border-left: 2px solid var(--orange); }
@media (min-width: 960px) {
  .accroche { padding: 88px 0 80px; }
  .accroche .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; }
}

/* Captures de l'appli */
.capture { margin: 0; }
.capture img { display: block; width: 100%; height: auto; }
.capture.telephone { max-width: 290px; margin-inline: auto; padding: 7px; background: var(--noir); border: 1px solid var(--ligne-forte); border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.capture.telephone img { border-radius: 23px; }
.capture.paysage { padding: 7px; background: var(--noir); border: 1px solid var(--ligne-forte); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.capture.paysage img { border-radius: 15px; }
.capture.detail { max-width: 360px; margin-inline: auto; padding: 6px; background: var(--noir); border: 1px solid var(--ligne-forte); border-radius: 20px; }
.capture.detail img { border-radius: 14px; }
.capture figcaption { margin-top: 12px; font-size: .9rem; color: var(--doux); text-align: center; }
.capture video { display: block; width: 100%; height: auto; background: var(--noir); }
.capture.telephone video { border-radius: 23px; }
.capture.paysage video { border-radius: 15px; }
.capture.telephone.petit { max-width: 250px; }
.capture.recadre { max-width: 340px; margin-inline: auto; padding: 6px; background: var(--noir); border: 1px solid var(--ligne-forte); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.capture.recadre img { border-radius: 14px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 520px; margin-inline: auto; }
.duo .capture.telephone { max-width: none; padding: 5px; border-radius: 22px; }
.duo .capture.telephone img, .duo .capture.telephone video { border-radius: 17px; }
.duo figcaption { font-size: .85rem; }
@media (max-width: 479px) { .duo { grid-template-columns: minmax(0, 1fr); max-width: 260px; gap: 24px; } }

/* Chiffres du boîtier */
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.chiffres li { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px; }
.chiffres strong { display: block; font-family: var(--titres); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--orange); margin-bottom: 6px; }
.chiffres span { display: block; font-size: .93rem; color: var(--doux); line-height: 1.4; }
@media (min-width: 820px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .chiffres li { padding: 20px; } }

/* Trois temps */
.etapes { counter-reset: e; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.etapes > li { position: relative; padding: 20px 20px 20px 74px; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.etapes > li::before { counter-increment: e; content: counter(e); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--sur-orange); font-family: var(--titres); font-weight: 700; font-size: 1.4rem; display: grid; place-items: center; }
.etapes p { color: var(--doux); margin: 0; }
@media (min-width: 860px) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* Vitrines : une capture et son texte */
.vitrine { display: grid; gap: 28px; align-items: center; padding: 44px 0; border-top: 1px solid var(--ligne); }
.vitrine:first-of-type { border-top: 0; }
.vitrine p { color: var(--doux); }
.vitrine ul { color: var(--doux); padding-left: 1.2em; margin: 0 0 1em; }
.vitrine li { margin-bottom: .3em; }
@media (min-width: 860px) {
  .vitrine { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 56px 0; }
  .vitrine.inverse > .capture { order: 2; }
}

/* Grilles et cartes */
.grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 24px; }
@media (min-width: 600px) { .grille.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grille + .note, .chiffres + .note { margin-top: 18px; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; }
.carte p { color: var(--doux); margin: 0; font-size: .98rem; }
.carte p + p { margin-top: .6em; }
.pictogramme { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-fond); color: var(--orange); display: grid; place-items: center; margin-bottom: 14px; }
.pictogramme svg { width: 24px; height: 24px; }

.deux { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .deux { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* Téléphone seul ou boîtier */
.comparatif { display: grid; gap: 14px; }
.comparatif .carte h3 { font-size: 1.3rem; }
.comparatif .carte.boitier { border-color: rgba(255, 138, 61, .45); }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.liste-coches li { padding-left: 30px; position: relative; color: var(--doux); }
.liste-coches li::before { content: ""; position: absolute; left: 6px; top: .42em; width: 7px; height: 13px;
  border-right: 3px solid var(--vert); border-bottom: 3px solid var(--vert); transform: rotate(40deg); }
.liste-coches.neutre li::before { border-color: var(--doux); }

/* Encadrés */
.encadre { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 20px; margin: 1.4em 0; }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }
.encadre.prototype { border-left: 4px solid var(--orange); }
.encadre .titre { display: block; font-family: var(--titres); font-weight: 700; font-size: 1.3rem; color: var(--texte); margin-bottom: 4px; }
.puce { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
  background: var(--orange-fond); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }

/* Appel final */
.appel { text-align: center; }
.appel .chapeau { margin-inline: auto; }
.appel .actions { justify-content: center; }
.mail { font-weight: 600; overflow-wrap: anywhere; }

/* Schéma du boîtier (SVG dans la page, couleurs ici) */
.schema-cadre { margin: 0; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 12px; }
.schema { display: block; width: 100%; max-width: 920px; height: auto; margin-inline: auto; }
.schema .sol { stroke: var(--ligne-forte); stroke-width: 3; stroke-linecap: round; }
.schema .caisse { fill: var(--carte-2); stroke: #555D6B; stroke-width: 3; stroke-linejoin: round; }
.schema .vitre { fill: #2B303A; }
.schema .montant { stroke: var(--carte-2); stroke-width: 7; }
.schema .roue { fill: var(--noir); stroke: #555D6B; stroke-width: 3; }
.schema .jante { fill: #2B303A; }
.schema .boitier { fill: var(--orange); }
.schema .antenne { fill: var(--orange-clair); }
.schema .cote { fill: none; stroke: var(--texte-2); stroke-width: 2; }
.schema .satellite { fill: var(--doux); }
.schema .panneau { fill: #4C5566; stroke: var(--doux); stroke-width: 1.5; }
.schema .signal { fill: none; stroke: var(--doux); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.schema .onde { fill: none; stroke: var(--vert); stroke-width: 3.5; stroke-linecap: round; }
.schema .bt { fill: none; stroke: var(--vert); stroke-width: 3.5; stroke-dasharray: 1 10; stroke-linecap: round; }
.schema .reseau { fill: var(--carte-2); stroke: var(--doux); stroke-width: 2.5; }
.schema .lien-4g { fill: none; stroke: var(--orange-clair); stroke-width: 3; stroke-dasharray: 8 8; stroke-linecap: round; }
.schema .tel { fill: var(--carte-2); stroke: var(--texte-2); stroke-width: 2.5; }
.schema .ecran-tel { fill: var(--noir); }
.schema .chiffre-tel { fill: var(--orange); font-family: var(--titres); font-weight: 700; font-size: 34px; }
.schema .petit-tel { fill: var(--texte-2); font-family: var(--titres); font-weight: 600; font-size: 17px; }
.schema .repere circle { fill: var(--fond); stroke: var(--orange); stroke-width: 2.5; }
.schema .repere text { fill: var(--texte); font-family: var(--titres); font-weight: 700; font-size: 25px; }
.schema .trait { stroke: var(--orange); stroke-width: 2; }
.legende { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: l; display: grid; gap: 10px; }
.legende li { position: relative; padding-left: 40px; color: var(--doux); }
.legende li::before { counter-increment: l; content: counter(l); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--texte); font-family: var(--titres); font-weight: 700; font-size: 1rem; display: grid; place-items: center; }
@media (min-width: 860px) { .legende { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } }

/* Sommaire d'une longue page */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.sommaire a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne);
  color: var(--texte-2); font-weight: 600; font-size: .95rem; text-decoration: none; }
.sommaire a:hover { border-color: var(--orange); color: var(--texte); }

/* Feuille de route */
.route { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.route > li { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; border-top: 4px solid var(--ligne-forte); }
.route > li.maintenant { border-top-color: var(--vert); }
.route > li.prepa { border-top-color: var(--orange); }
.route h3 { font-size: 1.35rem; }
.route .etat { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); margin-bottom: 6px; }
.route .maintenant .etat { color: var(--vert); }
.route .prepa .etat { color: var(--orange); }
.route ul { margin: 0; padding-left: 1.1em; color: var(--doux); }
.route li li { margin-bottom: .3em; }
@media (min-width: 860px) { .route { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* Questions fréquentes */
.faq { display: grid; gap: 10px; margin: 18px 0 0; }
.faq details { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; }
.faq details[open] { border-color: var(--ligne-forte); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; color: var(--texte); font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 14px; }
.faq .reponse { padding: 0 18px 16px; color: var(--doux); }
.faq .reponse p:last-child, .faq .reponse ul:last-child { margin-bottom: 0; }
.faq .reponse ul { padding-left: 1.2em; margin: 0 0 1em; }
.page .faq + h2 { margin-top: 1.4em; }

/* Pages de texte */
.page { padding: 48px 0 72px; }
.page h2 { font-size: clamp(1.6rem, 4vw, 2rem); margin-top: 1.6em; }
.page ul, .page ol { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.page .etapes { padding-left: 0; }
.page .etapes > li { margin-bottom: 0; }
.page .liste-coches, .page .sommaire { padding-left: 0; }
.page .sommaire li { margin-bottom: 0; }
.page .liste-coches li { margin-bottom: 0; }

/* Pied de page */
.pied { border-top: 1px solid var(--ligne); padding: 32px 0 40px; color: var(--doux); font-size: .92rem; }
.pied .cadre { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.pied nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.pied a { color: var(--doux); text-decoration: none; display: inline-block; padding: 4px 0; }
.pied a:hover { color: var(--orange); text-decoration: underline; }
.pied a[aria-current="page"] { color: var(--texte); }
.pied .marque { font-size: 1.3rem; }
.pied p { margin: 0; }
.credits { width: 100%; font-size: .85rem; }
