/* Feuille de style unique de « Fibre ici » (chantier C7, refonte UX pass 1, direction v2).
   Mobile-first, sans cadriciel, sans police externe, sans image distante :
   la CSP est default-src 'self' et style-src 'self' (aucun style en ligne dans les gabarits).
   Contraste minimal vise : 4,5:1 sur tout texte, 3:1 sur les limites de composants ;
   focus toujours visible ; aucune information portee par la seule couleur (chaque badge
   et chaque etat portent aussi un texte).
   Direction visuelle v2 : titres tres grands a graisse forte, halos bleus discrets en haut
   de page, cartes blanches profondes, boutons en degrade a ombre coloree, pied bleu nuit.
   Deux couleurs (bleu, indigo — l'indigo ne sert que dans les degrades) plus les neutres. */

:root {
  /* Neutres */
  --fond-page: #f6f7f9;
  --fond: #ffffff;
  --fond-doux: #eef1f5;
  --fond-encart: #f7f9fc;
  --texte: #101418;          /* 17,4:1 sur blanc */
  --texte-doux: #525c69;     /* 6,4:1 sur blanc */
  --trait: #d7dde5;          /* lisere des cartes, jamais porteur de texte */
  --trait-fort: #69737f;     /* limites de composants : >= 3:1 sur tous les fonds clairs */
  /* Accent bleu (interactions) et indigo (degrades uniquement) */
  --accent: #0a58d0;         /* 6,3:1 sur blanc */
  --accent-fonce: #0642a0;
  --accent-clair: #e8f0fd;
  --accent-voile: color-mix(in srgb, var(--accent) 16%, transparent);
  --indigo: #4d34d8;
  --degrade-bouton: linear-gradient(180deg, #1668e3, #0a53c4);
  --degrade-bouton-survol: linear-gradient(180deg, #2a76ec, #0b5cd8);
  /* Pied sombre */
  --nuit: #0d1726;
  --nuit-texte: #a9b4c2;     /* 8,3:1 sur --nuit */
  --nuit-lien: #cdd7e4;      /* 11,8:1 sur --nuit */
  --nuit-trait: rgba(255, 255, 255, 0.12);
  /* Etats */
  --alerte: #8f4700;         /* 6,1:1 sur blanc */
  --alerte-fond: #fdf2e6;
  --succes: #146c3c;         /* 6,5:1 sur blanc */
  --succes-fond: #e7f3ec;
  /* Geometrie */
  --rayon: 10px;
  --rayon-grand: 20px;
  --rayon-pilule: 999px;
  --gouttiere: 1.1rem;
  --largeur: 66rem;
  --espace-section: clamp(2.6rem, 1.6rem + 2.5vw, 4rem);
  /* Marges internes horizontales calees sur la largeur du site (entete et pied pleine largeur) */
  --cale-inline: max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
  /* Ombres : diffusion large et faible opacite, jamais de gris dur */
  --ombre-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px -12px rgba(16, 24, 40, 0.10);
  --ombre-2: 0 1px 3px rgba(16, 24, 40, 0.06), 0 16px 40px -16px rgba(16, 24, 40, 0.18);
  --ombre-3: 0 4px 8px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  --ombre-bouton: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(6, 40, 90, 0.30), 0 6px 16px -6px rgba(10, 88, 208, 0.45);
}

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

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

body {
  margin: 0;
  background-color: var(--fond-page);
  /* Voile et halos bleutes en haut de chaque page : posent la lumiere sans image,
     sur toute la largeur pour eviter toute couture */
  background-image:
    radial-gradient(60rem 30rem at 22% -8rem, rgba(10, 88, 208, 0.09), transparent 70%),
    radial-gradient(50rem 26rem at 80% -6rem, rgba(77, 52, 216, 0.07), transparent 70%),
    linear-gradient(180deg, #ecf2fb 0, var(--fond-page) 30rem);
  background-repeat: no-repeat;
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  accent-color: var(--accent);
}

::selection { background: var(--accent-voile); }

/* --- Rythme typographique ------------------------------------------------ */

h1, h2, h3, h4 { line-height: 1.12; margin: 2rem 0 0.8rem; font-weight: 750; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); letter-spacing: -0.024em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }
p, ul, ol, dl, table { margin: 0 0 0.95rem; }
small, .petit { font-size: 0.875rem; color: var(--texte-doux); }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-fonce); }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--fond-doux);
  border: 1px solid var(--trait);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Sur les fonds bleu nuit, l'anneau accent tombe sous 3:1 : il passe en blanc */
.verdict :focus-visible, .pied :focus-visible { outline-color: #ffffff; }

/* Masquage visuel accessible : utilitaire et label du formulaire du hero */
.hors-ecran,
.hero .formulaire-adresse > label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.saut-contenu {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fond);
  color: var(--accent);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--rayon) 0;
  box-shadow: var(--ombre-2);
  z-index: 30;
}
.saut-contenu:focus { left: 0; }

/* --- Gabarit general ----------------------------------------------------- */

main {
  display: block;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
  padding-block: 2rem 5rem;
}

/* Largeur de lecture : les paragraphes et listes poses directement sur la page
   restent sous 75ch ; le contenu des cartes et encarts garde sa largeur propre. */
main > p, main > ul, main > ol, main > dl,
main > section > p, main > section > ul, main > section > ol, main > section > dl { max-width: 75ch; }
main > h1:first-child { margin-top: 0.6rem; }
main > h2 { margin-top: var(--espace-section); }

/* --- En-tete ------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
  padding-inline: var(--cale-inline);
  background: var(--fond);
  border-bottom: 1px solid rgba(16, 24, 40, 0.07);
  box-shadow: 0 10px 24px -20px rgba(16, 24, 40, 0.45);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .entete {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}
@media (max-width: 39.999rem) {
  /* Sur petit ecran la nav passe sur plusieurs lignes : l'en-tete ne reste pas colle */
  .entete {
    position: static;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--fond);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .entete {
    background: var(--fond);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.marque { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.025em; }
.marque a { color: var(--texte); text-decoration: none; }
.marque a:hover { color: var(--texte); }
.marque a::after {
  content: "";
  display: inline-block;
  width: 0.42em; height: 0.42em;
  margin-left: 0.14em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
}

.entete nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}
.entete nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 550;
}
.entete nav a:hover { color: var(--texte); }

/* --- Pied bleu nuit ------------------------------------------------------ */

.pied {
  margin-top: 4rem;
  background: var(--nuit);
  color: var(--nuit-texte);
  padding-block: 2.6rem 3rem;
  padding-inline: var(--cale-inline);
  font-size: 0.8125rem;
}
.pied p { max-width: 75ch; }
.pied a { color: var(--nuit-lien); }
.pied a:hover { color: #ffffff; }
.pied .attribution { margin-bottom: 0.8rem; }
.pied .marques { margin-bottom: 1rem; }
.pied nav ul {
  list-style: none;
  margin: 0; padding: 1.1rem 0;
  border-top: 1px solid var(--nuit-trait);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.pied nav a { font-weight: 600; text-decoration: none; }
.pied .editeur { margin-bottom: 0; }

.fil-ariane { font-size: 0.875rem; color: var(--texte-doux); margin: 0.9rem 0 0; }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fil-ariane li + li::before { content: "> "; color: var(--trait-fort); }
.fil-ariane a { color: var(--texte-doux); }
.fil-ariane a:hover { color: var(--texte); }

/* --- Encarts et bandeaux ------------------------------------------------- */

.encart {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 1.5rem 1.7rem;
  margin-block: 1.6rem;
  box-shadow: var(--ombre-1);
}
.encart--alerte { background: var(--alerte-fond); border-color: var(--alerte); }
.encart > h2:first-child, .encart > h3:first-child { margin-top: 0.2rem; }
.encart > :last-child { margin-bottom: 0; }

/* Information obligatoire du comparateur (classement, referencement, liens commerciaux) */
.bandeau-resultats {
  margin-block: 1rem 1.4rem;
  padding: 1rem 1.2rem;
  background: #f0f5fd;
  border: 1px solid #d9e5f8;
  border-left: 4px solid var(--accent);
  border-radius: var(--rayon);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.bandeau-resultats p { margin: 0 0 0.5rem; max-width: 78ch; }
.bandeau-resultats p:last-child { margin-bottom: 0; }

/* Identification de la publicite (L.121-4) */
.mention-commerciale {
  font-size: 0.9375rem;
  background: var(--fond-encart);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 0.7rem clamp(0.95rem, 18%, 12rem) 0.7rem 0.95rem;
  margin-block: 1.6rem 1.2rem;
}

/* --- Verdict d'eligibilite (tete de la page resultat) --------------------- */

.verdict {
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(1.2rem, 4vw, 2.5rem);
  margin-block: 0.6rem 1rem;
  box-shadow: 0 2px 4px rgba(6, 16, 32, 0.3), 0 28px 60px -20px rgba(6, 16, 32, 0.55);
  color: var(--nuit-texte);
}
.verdict::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34rem 18rem at 18% -20%, rgba(22, 104, 227, 0.35), transparent 65%),
    radial-gradient(28rem 16rem at 85% -10%, rgba(77, 52, 216, 0.28), transparent 65%);
}
.verdict > * { position: relative; }
.verdict-sur {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nuit-texte);
  margin: 0;
}
.verdict-adresse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 0.45rem 0 0;
  font-size: 1rem;
  color: #ffffff;
}
.copier {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.38rem 0.9rem;
  border-radius: var(--rayon-pilule);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.copier:hover { background: rgba(255, 255, 255, 0.18); transform: none; box-shadow: none; }
.copier--ok { color: var(--nuit); background: #dff5e8; border-color: #dff5e8; }
.copier--ko { color: #ffd9ae; border-color: #ffd9ae; }
.copier--ok:hover { background: #dff5e8; }
.verdict-repli {
  margin: 0.8rem 0 0;
  padding: 0.6rem 1rem;
  background: rgba(253, 242, 230, 0.12);
  border: 1px solid rgba(253, 242, 230, 0.25);
  border-radius: 12px;
  font-size: 0.875rem;
  color: #ffd9ae;
}
.verdict h1 {
  color: #ffffff;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem);
  margin: 0.3rem 0 0;
}
.verdict-chiffres {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
@media (min-width: 48rem) {
  .verdict-chiffres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0 2.2rem;
  }
  .verdict-stat + .verdict-stat { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 2.2rem; }
}
.verdict-valeur {
  display: block;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.verdict-valeur--accent {
  background: linear-gradient(100deg, #6ea8ff, #a390ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.verdict-unite { font-size: 0.5em; font-weight: 650; color: var(--nuit-texte); }
.verdict-legende { display: block; font-size: 0.875rem; margin-top: 0.25rem; }
.verdict-legende a { color: var(--nuit-lien); }
.verdict-legende a:hover { color: #ffffff; }
.verdict-adsl {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: 0.6rem 1rem;
  background: rgba(253, 242, 230, 0.12);
  border: 1px solid rgba(253, 242, 230, 0.25);
  border-radius: 12px;
  font-size: 0.875rem;
  color: #ffd9ae;
}
.verdict-adsl a { color: #ffd9ae; }
.verdict-adsl a:hover { color: #ffffff; }

.compteur-offres { font-size: 0.9375rem; font-weight: 550; color: var(--texte-doux); letter-spacing: 0; }

/* Accueil : les quatre promesses en deux colonnes sur grand ecran */
@media (min-width: 48rem) {
  .encart[aria-labelledby="promesse-titre"] ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
    margin-bottom: 0.9rem;
  }
  .encart[aria-labelledby="promesse-titre"] li { margin-bottom: 0; }
}

/* --- Accueil : mise en scene de la recherche ----------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 3rem) clamp(1.6rem, 4vw, 2.6rem);
  margin-block: 0.6rem 1.6rem;
  text-align: center;
  color: var(--nuit-texte);
  box-shadow: 0 2px 4px rgba(6, 16, 32, 0.3), 0 28px 60px -20px rgba(6, 16, 32, 0.55);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34rem 18rem at 18% -20%, rgba(22, 104, 227, 0.35), transparent 65%),
    radial-gradient(28rem 16rem at 85% -10%, rgba(77, 52, 216, 0.28), transparent 65%);
}
.hero > * { position: relative; }
.hero :focus-visible { outline-color: #ffffff; }
.hero h1 { margin-top: 0; max-width: 21ch; margin-inline: auto; color: #ffffff; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
.hero .aide-champ { color: var(--nuit-texte); }
.hero .formulaire-adresse { max-width: 46rem; margin-inline: auto; margin-top: 2rem; text-align: left; }
.hero .formulaire-adresse input[type="text"] {
  font-size: 1.12rem;
  padding: 1.05rem 1.3rem;
  border-radius: 14px;
  border-color: var(--trait);
  box-shadow: var(--ombre-2);
}
.hero .formulaire-adresse input[type="text"]:focus { border-color: var(--accent); }
.hero .formulaire-adresse button { font-size: 1.12rem; padding: 1.05rem 1.6rem; border-radius: 14px; }
.hero + .petit { text-align: center; max-width: 46rem; margin-inline: auto; }

.recherche-commune {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 1.5rem 1.7rem;
  margin-block: 1.6rem;
  box-shadow: var(--ombre-1);
}
.recherche-commune h2:first-child { margin-top: 0.2rem; }

/* --- Formulaire d'adresse et autocompletion ------------------------------ */

.formulaire-adresse { margin-block: 1.2rem; }
.formulaire-adresse label, .recherche-commune label, .recherche-commune-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.champ-groupe { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.champ-groupe > .champ-boite { flex: 1 1 16rem; position: relative; }

input[type="text"], input[type="search"], select {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--trait-fort);
  border-radius: var(--rayon);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
/* Le halo est decoratif ; l'outline global :focus-visible reste actif au clavier */
input[type="text"]:focus, input[type="search"]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-voile);
}

::placeholder { color: var(--texte-doux); opacity: 1; }

button, .bouton {
  display: inline-block;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--degrade-bouton);
  border: 1.5px solid #0a53c4;
  border-radius: var(--rayon);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  box-shadow: var(--ombre-bouton);
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
button:hover, .bouton:hover {
  background: var(--degrade-bouton-survol);
  border-color: #0b5cd8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px rgba(6, 40, 90, 0.28), 0 10px 24px -8px rgba(10, 88, 208, 0.5);
}
button:active, .bouton:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(6, 40, 90, 0.3); }

.bouton--secondaire {
  color: var(--accent);
  background: var(--fond);
  border-color: var(--accent);
  box-shadow: none;
}
.bouton--secondaire:hover { color: var(--accent-fonce); background: var(--accent-clair); transform: none; box-shadow: none; }

.suggestions {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.3rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--fond);
  box-shadow: var(--ombre-3);
  max-height: 17rem;
  overflow-y: auto;
  position: absolute;
  inset-inline: 0;
  z-index: 5;
}
.suggestions[hidden] { display: none; }
.suggestions li {
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--rayon) - 4px);
  cursor: pointer;
}
.suggestions li:hover { background: var(--fond-doux); }
.suggestions li[aria-selected="true"] {
  background: var(--accent-clair);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 600;
}
.suggestions li .type-suggestion { display: block; font-size: 0.8125rem; color: var(--texte-doux); font-weight: 400; }

@media (max-width: 39.999rem) {
  /* En colonne, la liste absolue recouvrirait le bouton passe sous le champ :
     elle reprend sa place dans le flux et pousse le bouton. */
  .champ-groupe > .champ-boite { position: static; }
  .suggestions { position: static; margin: 0.5rem 0 0.2rem; }
}

.aide-champ { font-size: 0.875rem; color: var(--texte-doux); margin-top: 0.5rem; }

/* --- Filtres ------------------------------------------------------------- */

.filtres { margin-block: 0.9rem 1.4rem; }
.filtres .grille-filtres { display: grid; gap: 0.85rem; grid-template-columns: 1fr; }
.filtres label { font-weight: 600; display: block; font-size: 0.875rem; color: var(--texte-doux); margin-bottom: 0.3rem; }
.filtres select { padding: 0.55rem 0.65rem; }
.filtres .filtre-action { align-self: end; }
.filtres button {
  color: var(--accent);
  background: var(--fond);
  border-color: var(--trait-fort);
  font-size: 0.9375rem;
  padding: 0.55rem 1rem;
  box-shadow: none;
}
.filtres button:hover { color: var(--accent-fonce); background: var(--accent-clair); border-color: var(--accent); transform: none; box-shadow: none; }

/* --- Cartes d'offre : rangees de comparateur --------------------------- */

.liste-offres { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; gap: 1rem; }

.offre {
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 1.2rem clamp(1.1rem, 2.5vw, 1.6rem);
  background: var(--fond);
  box-shadow: var(--ombre-1);
  transition: box-shadow 150ms ease;
}
.offre:hover { box-shadow: var(--ombre-2); }
.offre--a_verifier { border-left: 4px solid var(--alerte); }

/* La premiere rangee du classement porte un lisere en degrade */
.liste-offres > .offre:first-child {
  background: linear-gradient(var(--fond), var(--fond)) padding-box, linear-gradient(120deg, #1668e3, var(--indigo)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 40px -14px rgba(10, 88, 208, 0.30);
}
.liste-offres > .offre--a_verifier:first-child {
  background: linear-gradient(90deg, var(--alerte) 0 4px, var(--fond) 4px) padding-box,
              linear-gradient(120deg, #1668e3, var(--indigo)) border-box;
}

.offre-ligne { display: flex; flex-direction: column; gap: 0.8rem; }
@media (min-width: 48rem) {
  .offre-ligne {
    display: grid;
    grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) minmax(9.5rem, 12.5rem) minmax(13rem, 15rem);
    gap: 1.6rem;
    align-items: center;
  }
}

.offre-id h3 { margin: 0; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }
.offre-marque { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.offre-nom { display: block; font-size: 0.8125rem; font-weight: 550; color: var(--texte-doux); margin-top: 0.1rem; }

.offre-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; align-content: center; }
.offre-badges li {
  white-space: nowrap;
  padding: 0.24rem 0.65rem;
  background: var(--fond-doux);
  border-radius: var(--rayon-pilule);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--succes);
  border-radius: var(--rayon-pilule);
  padding: 0.16rem 0.6rem;
  vertical-align: 0.08em;
}

.offre-prix { text-align: left; }
@media (min-width: 48rem) { .offre-prix { text-align: right; } }
.offre-prix .prix { font-size: 0.875rem; line-height: 1.35; margin: 0; color: var(--texte-doux); }
.offre-prix .prix strong {
  font-size: 1.35em;              /* meme taille pour le prix promotionnel et le prix normal */
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--texte);
}
/* Sans promotion, un seul montant : il devient le grand chiffre de la rangee */
.offre-prix .prix:not(:has(strong ~ strong)) strong { font-size: 2em; }
.cout-24-court { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.prix-detail { display: block; font-size: 0.8125rem; font-weight: 550; }
.releve-court { display: block; font-size: 0.75rem; }

.offre-cta { display: flex; flex-direction: column; gap: 0.4rem; }
.offre-cta .nature-lien { font-size: 0.8125rem; line-height: 1.45; margin: 0; border: 0; padding: 0; }
.offre-cta .liens-offre { display: flex; flex-direction: column; gap: 0.45rem; margin: 0; }
.offre-cta .cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;              /* meme hauteur de bouton sur une ou deux lignes */
  padding: 0.6rem 1.2rem;
  border-radius: var(--rayon-pilule);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  text-wrap: balance;
}

.offre-mention { margin: 0.7rem 0 0; font-size: 0.8125rem; }
.offre-mention.promo-validite { color: var(--texte-doux); }
.offre .a-verifier { background: var(--alerte-fond); border-radius: var(--rayon); padding: 0.55rem 0.8rem; color: var(--alerte); font-size: 0.875rem; }

.offre-plus { margin-top: 0.8rem; border-top: 1px solid var(--trait); padding-top: 0.7rem; }
.offre-plus summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--accent);
  list-style-position: inside;
}
.offre-plus summary:hover { color: var(--accent-fonce); }
.offre-plus[open] summary { margin-bottom: 0.7rem; }
.offre-plus .conditions { list-style: none; margin: 0 0 0.9rem; padding: 0; font-size: 0.9375rem; line-height: 1.5; }
.offre-plus .conditions li { padding-left: 1.05rem; position: relative; margin-bottom: 0.15rem; }
.offre-plus .conditions li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.32em; height: 0.32em;
  border-radius: 50%;
  background: var(--trait-fort);
}
@media (min-width: 48rem) {
  .offre-plus .conditions { columns: 2; column-gap: 2.2rem; }
  .offre-plus .conditions li { break-inside: avoid; }
}
.offre-plus .cout-24 {
  background: #eef4fe;
  border: 1px solid #d5e4fb;
  border-radius: var(--rayon);
  padding: 0.7rem 0.95rem;
  font-size: 0.9375rem;
}
.offre-plus .cout-24 strong { font-variant-numeric: tabular-nums; }
.offre .odr, .offre .remise-conditionnelle, .offre .prix-conditionnel, .offre .promo-validite { font-size: 0.875rem; }
.offre .releve, .offre .fraicheur, .offre .eligibilite, .offre .petit { font-size: 0.8125rem; }
.offre .releve, .offre .fraicheur { color: var(--texte-doux); }
.offre .eligibilite { color: var(--texte); }
.offre-plus > :last-child { margin-bottom: 0; }

.etat-liste { font-size: 0.875rem; color: var(--texte-doux); margin: 0.9rem 0 0; }

/* Bouton d'affichage de toutes les offres */
.voir-tout { text-align: center; margin: 1.6rem 0 0.6rem; }
.voir-tout button {
  color: var(--accent);
  background: var(--fond);
  border: 1.5px solid var(--accent);
  border-radius: var(--rayon-pilule);
  padding: 0.8rem 1.9rem;
  font-weight: 700;
  box-shadow: none;
}
.voir-tout button:hover { color: var(--accent-fonce); background: var(--accent-clair); transform: none; box-shadow: none; }
.voir-tout .petit { margin-top: 0.7rem; }

.nature-lien {
  font-size: 0.875rem;
  color: var(--texte);           /* jamais en gris clair : mention lisible sans survol */
}

.liens-offre { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-block: 0.6rem; }
.cta { display: block; padding: 0.8rem 1.6rem; border-radius: var(--rayon-pilule); font-weight: 700; }

.oc-sans-offre {
  border: 1px dashed var(--trait-fort);
  border-radius: var(--rayon-grand);
  padding: 0.9rem 1.1rem;
  background: var(--fond-encart);
}

/* --- Tableaux, listes et chiffres ---------------------------------------- */

table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
caption { text-align: left; font-weight: 650; padding-bottom: 0.5rem; }
th, td { border: 0; border-bottom: 1px solid var(--trait); padding: 0.6rem 0.7rem; text-align: left; }
th {
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--texte-doux);
  border-bottom-width: 2px;
}
td { font-variant-numeric: tabular-nums; }
.table-defilante { overflow-x: auto; }

.liste-liens { list-style: none; margin: 0.4rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.liste-liens li { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.liste-liens a {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-pilule);
  background: var(--fond);
  color: var(--texte);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.liste-liens a:hover { border-color: var(--accent); background: var(--accent-clair); color: var(--accent-fonce); }
.liste-liens .detail { font-size: 0.8125rem; color: var(--texte-doux); }

.chiffres { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.chiffres li {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--ombre-1);
  font-size: 0.9375rem;
  color: var(--texte-doux);
}
.chiffres .valeur {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-fonce);
  background: linear-gradient(100deg, var(--accent), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Repartition : simple liste de valeurs — pas de barre proportionnelle
   (les largeurs ne peuvent pas suivre les donnees sans style en ligne, interdit par la CSP) */
.barre-repartition { list-style: none; margin: 0.8rem 0 1.2rem; padding: 0; }
.barre-repartition li {
  display: grid;
  grid-template-columns: 8.5rem max-content;
  gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 0.3rem;
  font-size: 0.9375rem;
}
.barre-repartition .part { font-variant-numeric: tabular-nums; }

.faq dt { font-weight: 700; margin-top: 1.4rem; font-size: 1.05rem; }
.faq dd { margin: 0.3rem 0 0; }

/* Technologies declarees : tuiles */
.techno-liste { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.6rem; }
.techno-liste li {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 0.7rem 0.95rem;
  font-size: 0.9375rem;
}
.techno-liste .etiquette { font-weight: 700; }
@media (min-width: 40rem) {
  .techno-liste { grid-template-columns: repeat(2, 1fr); }
}

/* --- Bloc commune, pages editoriales, consentement ----------------------- */

.bloc-commune { border-top: 1px solid var(--trait); padding-top: 1.2rem; margin-block: 2rem 1.2rem; }
.bloc-commune p { max-width: 75ch; }

.legal, .guide, .contact, .erreur { max-width: 75ch; }
.legal h2, .guide h2, .contact h2 { margin-top: var(--espace-section); }
.version { font-size: 0.875rem; color: var(--texte-doux); }
.formule {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--fond-encart);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  font-size: 0.9375rem;
}

.err-id { color: var(--texte-doux); font-size: 0.9375rem; }

.consentement { max-width: 42rem; }
.choix { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.7rem; max-width: 34rem; }
/* Les deux choix ont exactement le meme rendu : aucun n'est mis en avant */
.choix__lien {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  color: var(--accent);
  background: var(--fond);
  border: 1.5px solid var(--accent);
  border-radius: var(--rayon);
  padding: 0.8rem 1.2rem;
}
.choix__lien:hover { color: var(--accent-fonce); background: var(--accent-clair); }

/* --- Etats et messages --------------------------------------------------- */

.message-erreur { background: var(--alerte-fond); border-left: 4px solid var(--alerte); border-radius: var(--rayon); padding: 0.95rem 1.1rem; }

/* --- Ecrans larges ------------------------------------------------------- */

@media (min-width: 40rem) {
  .filtres .grille-filtres { grid-template-columns: repeat(2, 1fr); }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 60rem) {
  .filtres .grille-filtres { grid-template-columns: repeat(4, 1fr); }
  .chiffres { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .verdict-valeur--accent, .chiffres .valeur { background: none; -webkit-text-fill-color: currentColor; }
}

@media print {
  .formulaire-adresse, .filtres, .suggestions, .entete nav, .saut-contenu, .voir-tout { display: none; }
  .entete { position: static; box-shadow: none; }
  .hero { padding-block: 0; background: none; box-shadow: none; color: #000000; }
  .hero h1, .hero .aide-champ { color: #000000; }
  .hero::before { display: none; }
  .pied { background: transparent; color: #000000; }
  .pied a { color: #000000; }
  .offre { break-inside: avoid; }
  button, .bouton, .cta { color: #000000; background: transparent; border: 1px solid #000000; box-shadow: none; }
  .badge { color: #000000; background: transparent; border: 1px solid #000000; }
  .chiffres .valeur { background: none; -webkit-text-fill-color: initial; color: #000000; }
  .verdict { background: transparent; box-shadow: none; border: 1px solid #000000; color: #000000; }
  .verdict::before { display: none; }
  .verdict h1, .verdict-sur, .verdict-valeur, .verdict-legende, .verdict-unite,
  .verdict-adsl, .verdict-adsl a, .verdict-repli { color: #000000; }
  .verdict-valeur--accent { background: none; -webkit-text-fill-color: initial; color: #000000; }
  .verdict-adsl, .verdict-repli { background: transparent; border-color: #000000; }
  .offre-plus::details-content { content-visibility: visible; }
}
