/* Site vitrine covoit26.eu — feuille commune (FR à la racine, EN dans en/).
   Identité « route départementale » : le jaune des cartouches et des bornes
   des routes D (la Drôme, c'est le 26), l'asphalte, et le bleu de l'app.
   Mise en page : une colonne sur téléphone ; accroche en deux colonnes
   (texte + écrans de l'app) dès 860 px ; bandes pleine largeur par section. */

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

:root {
  --fond: #f4f5f2;          /* accotement clair */
  --surface: #ffffff;
  --encre: #18202b;         /* asphalte */
  --encre-douce: #566070;
  --trait: #dde1e6;
  --jaune: #ffcf1a;         /* cartouche des routes départementales */
  --jaune-encre: #1b1a12;
  --bleu: #2563eb;          /* bleu de l'app */
  --bleu-fonce: #1d4ed8;
  --bouton: #1d4ed8;        /* fond des boutons : texte blanc lisible dans les deux thèmes */
  --bouton-survol: #2563eb;
  --bande: #18202b;         /* bande « entreprises » */
  --bande-encre: #eef1f5;
  --bande-douce: #aab3c2;
  --ombre: 0 18px 40px -18px rgb(24 32 43 / 0.35);

  --police-titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --police-texte: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-xxl: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem);
  --largeur: 72rem;
  --gouttiere: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #11161d; --surface: #1a212b; --encre: #e9edf2; --encre-douce: #9ea8b8; --trait: #2a3340;
    --jaune: #ffd23a; --jaune-encre: #16150e; --bleu: #6d9bff; --bleu-fonce: #8fb2ff;
    --bouton: #2f5fe0; --bouton-survol: #3d6cf0;
    --bande: #0b0f14; --bande-encre: #e9edf2; --bande-douce: #9ea8b8;
    --ombre: 0 18px 40px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #11161d; --surface: #1a212b; --encre: #e9edf2; --encre-douce: #9ea8b8; --trait: #2a3340;
  --jaune: #ffd23a; --jaune-encre: #16150e; --bleu: #6d9bff; --bleu-fonce: #8fb2ff;
  --bouton: #2f5fe0; --bouton-survol: #3d6cf0;
  --bande: #0b0f14; --bande-encre: #e9edf2; --bande-douce: #9ea8b8;
  --ombre: 0 18px 40px -18px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 var(--t-m) / 1.6 var(--police-texte);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 0.18em; }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 0.5rem; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 700; line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; }

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

/* ─── En-tête ─────────────────────────────────────────────────────────── */
.entete { padding-block: 1rem; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marque { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--encre); text-decoration: none; }
.marque img { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; }
.marque-nom { font: 700 1.6rem/1 var(--police-titre); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 0.3rem; }
/* « 26 » dans un cartouche de route départementale. */
.cartouche {
  display: inline-block;
  background: var(--jaune);
  color: var(--jaune-encre);
  border: 2px solid var(--jaune-encre);
  border-radius: 0.3rem;
  padding: 0.02em 0.28em 0;
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.entete nav { display: flex; align-items: center; gap: 1.1rem; font-size: var(--t-s); }
.entete nav a:not(.bouton) { color: var(--encre-douce); text-decoration: none; }
.entete nav a:not(.bouton):hover { color: var(--encre); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 var(--t-m)/1 var(--police-texte);
  padding: 0.95rem 1.4rem;
  border-radius: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 120ms ease;
}
.bouton-principal { background: var(--bouton); color: #fff; }
.bouton-principal:hover { background: var(--bouton-survol); transform: translateY(-1px); }
.bouton-petit { padding: 0.6rem 1rem; font-size: var(--t-s); }
.pastille {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--t-s); color: var(--encre-douce);
  border: 1px dashed var(--trait); border-radius: 0.75rem; padding: 0.8rem 1.1rem;
}
@media (prefers-reduced-motion: reduce) { .bouton { transition: none; } .bouton-principal:hover { transform: none; } }

/* ─── Accroche ────────────────────────────────────────────────────────── */
.accroche { padding-block: clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.accroche .enveloppe { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .accroche .enveloppe { grid-template-columns: 1.05fr 0.95fr; } }
.accroche-texte { display: grid; gap: 1.4rem; min-width: 0; }
.surtitre { font: 600 var(--t-xs)/1.2 var(--police-texte); letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-douce); }
.accroche h1 { font-size: var(--t-xxl); letter-spacing: -0.01em; }
.accroche h1 em { font-style: normal; box-shadow: inset 0 -0.28em 0 var(--jaune); }
.chapo { font-size: var(--t-l); line-height: 1.45; color: var(--encre-douce); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.rassurance { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: var(--t-s); color: var(--encre-douce); padding: 0; margin: 0; list-style: none; }
.rassurance li::before { content: "✓ "; color: var(--bleu); font-weight: 600; }

/* Deux téléphones décalés, sur une ligne médiane de route. */
.ecrans { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; min-height: 22rem; }
.ecrans::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: 50%; height: 0;
  border-top: 6px dashed var(--jaune); opacity: 0.9; transform: rotate(-8deg);
}
.telephone {
  position: relative;
  width: min(15.5rem, 50%);
  border-radius: 1.6rem;
  border: 0.45rem solid var(--encre);
  background: var(--encre);
  box-shadow: var(--ombre);
  overflow: hidden;
  aspect-ratio: 1 / 2;
  max-width: 100%;
}
.telephone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.telephone + .telephone { margin-left: -2.2rem; margin-top: 3rem; }
@media (min-width: 860px) { .telephone { width: 15.5rem; } }

/* ─── Sections ────────────────────────────────────────────────────────── */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--trait); }
.section-tete { display: grid; gap: 0.8rem; max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-tete h2 { font-size: var(--t-xl); }
.section-tete p { color: var(--encre-douce); }

/* Étapes : des bornes kilométriques de route départementale (tête jaune). */
.etapes { display: grid; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.etape { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.borne {
  width: 3.1rem; height: 3.9rem;
  border-radius: 1.55rem 1.55rem 0.3rem 0.3rem;
  background: linear-gradient(var(--jaune) 0 42%, var(--surface) 42% 100%);
  border: 2px solid var(--encre);
  display: grid; place-items: end center; padding-bottom: 0.35rem;
  font: 700 1.45rem/1 var(--police-titre); color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.etape h3 { font-size: var(--t-l); margin-bottom: 0.35rem; }
.etape p { color: var(--encre-douce); font-size: var(--t-s); }

.fonctions { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.fonctions > * { min-width: 0; }
@media (min-width: 760px) { .fonctions { grid-template-columns: 1fr 1fr; align-items: center; } }
.liste-fonctions { display: grid; gap: 1.4rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 560px) { .liste-fonctions { grid-template-columns: 1fr 1fr; } }
.liste-fonctions li { display: grid; gap: 0.3rem; min-width: 0; }
.liste-fonctions h3 { font-size: 1.3rem; font-weight: 600; }
.liste-fonctions p { color: var(--encre-douce); font-size: var(--t-s); }
.galerie { display: flex; gap: 1rem; justify-content: center; }
.galerie .telephone { width: min(14rem, calc(50% - 0.5rem)); }
.galerie .telephone + .telephone { margin: 2.5rem 0 0; }

/* Montant d'exemple : chiffres alignés. */
.montant { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--encre); white-space: nowrap; }

/* ─── Entreprises : bande asphalte ────────────────────────────────────── */
.bande { background: var(--bande); color: var(--bande-encre); }
.bande .section-tete p, .bande .liste-fonctions p { color: var(--bande-douce); }
.bande .surtitre { color: var(--jaune); }
.bande a:not(.bouton) { color: var(--jaune); }
.bande .liste-fonctions h3 { color: var(--bande-encre); }
.bande .liste-fonctions { margin-bottom: 2.2rem; }
@media (min-width: 900px) { .bande .liste-fonctions { grid-template-columns: repeat(4, 1fr); } }
.bande .bouton-principal { background: var(--jaune); color: var(--jaune-encre); }
.bande .actions span { color: var(--bande-douce); font-size: var(--t-s); }
.bande .selectionnable { color: var(--bande-encre); }
.bande .deja { margin-top: 1.2rem; font-size: var(--t-s); }
.bande .bouton-principal:hover { background: var(--jaune); filter: brightness(1.06); }

/* ─── Nouveautés : carnet de route ────────────────────────────────────── */
.versions { display: grid; gap: 2.5rem; }
.version { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .version { grid-template-columns: 11rem 1fr; gap: 2rem; } }
.version-tete { display: grid; gap: 0.3rem; align-content: start; }
.version-tete .cartouche { justify-self: start; font-size: 1.35rem; }
.version-tete time { font-size: var(--t-s); color: var(--encre-douce); }
.nouveautes { display: grid; gap: 1.1rem; padding: 0; margin: 0; list-style: none; border-left: 3px dashed var(--trait); padding-left: 1.2rem; }
.nouveautes li { display: grid; gap: 0.2rem; min-width: 0; }
.nouveautes h3 { font-family: var(--police-texte); font-size: var(--t-m); font-weight: 600; line-height: 1.35; }
.nouveautes p { color: var(--encre-douce); font-size: var(--t-s); max-width: 44rem; }
.etiquette {
  justify-self: start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bleu); border: 1px solid currentColor; border-radius: 999px; padding: 0.05rem 0.5rem;
}

/* ─── Confidentialité, pied de page ───────────────────────────────────── */
.garanties { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .garanties { grid-template-columns: repeat(4, 1fr); } }
.garanties li { background: var(--surface); border: 1px solid var(--trait); border-radius: 0.9rem; padding: 1.1rem 1.2rem; display: grid; gap: 0.3rem; }
.garanties b { font-family: var(--police-titre); font-size: 1.25rem; font-weight: 600; }
.garanties span { color: var(--encre-douce); font-size: var(--t-s); }

.appel { text-align: center; display: grid; gap: 1.2rem; justify-items: center; }
.appel h2 { font-size: var(--t-xl); }

.pied { border-top: 1px solid var(--trait); padding-block: 2rem 2.5rem; font-size: var(--t-s); color: var(--encre-douce); }
.pied .enveloppe { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.pied a { color: var(--encre-douce); }
.selectionnable { user-select: all; color: var(--encre); }
