/* Kuittly Comparateur — design à lui, mêmes couleurs, police et barre du haut que kuittly.com.
   Couleurs reprises de factur_ai-site-seo/website-seo/_build/site.css (sans modifier le site). */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-600.woff2") format("woff2"); }

:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --surface2: #EEEEF2; --divider: #E5E4EA;
  --text: #15141A; --text2: #5E5C67; --text3: #8C8A96; --placeholder: #6E6C77;
  --accent: #6C5CE7; --accent-text: #5546D6; --on-accent: #FFFFFF; --tonal: #EFEDFD;
  --late: #C62828; --paid: #0F7B5F; --paid-bg: #E6F4EF; --due: #A75A00;
  --r: 12px; --r-sm: 8px;
  --font: "Outfit", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Fond des cartes avec 0 d'opacité : pour les dégradés (Safari passe par du gris avec « transparent »). */
  --surface-0: rgba(255, 255, 255, 0);
  color-scheme: light dark;
}
/* Sombre : réglage de l'appareil (sauf si le visiteur a choisi « Clair »), ou choix « Sombre » avec le bouton ☀ / ☾.
   Mêmes règles que le site (site.css) : data-theme sur <html>, posé par le petit script de <head> (clé « kuittly-theme »). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E12; --surface: #18181F; --surface2: #22222B; --divider: #2A2A33;
    --text: #F3F3F6; --text2: #A6A5B1; --text3: #75737F; --placeholder: #86848F;
    --accent-text: #8F84F0; --tonal: #26233F;
    --late: #FF6B6B; --paid: #2FBF8F; --paid-bg: #14271F; --due: #F5A524;
    --surface-0: rgba(24, 24, 31, 0);
  }
}
:root[data-theme="dark"] {
    --bg: #0E0E12; --surface: #18181F; --surface2: #22222B; --divider: #2A2A33;
    --text: #F3F3F6; --text2: #A6A5B1; --text3: #75737F; --placeholder: #86848F;
    --accent-text: #8F84F0; --tonal: #26233F;
    --late: #FF6B6B; --paid: #2FBF8F; --paid-bg: #14271F; --due: #F5A524;
    --surface-0: rgba(24, 24, 31, 0);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.45; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); color: var(--accent-text); padding: 12px 16px; min-height: 44px; z-index: 10; border-radius: var(--r-sm); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Barre du haut : la même que kuittly.com (logo + liens app et comparateur) */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--divider); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.25rem; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--accent-text); }
@media (max-width: 400px) { .top .wrap { gap: 8px; } .top nav { gap: 10px; } .top nav a { font-size: 0.875rem; } .brand { font-size: 1.0625rem; gap: 8px; } .brand img { width: 28px; height: 28px; } .langs summary { padding: 0 6px; } }
/* Choix de la langue (seulement s'il y a plus d'une langue) */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); font-size: 0.875rem; font-weight: 500; }
.langs summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.langs-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 6px; width: 220px; max-height: 70vh; overflow-y: auto; }
.langs ul { list-style: none; }
.langs li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.langs li a:hover { background: var(--surface2); }
.langs li a[aria-current] { color: var(--accent-text); font-weight: 600; background: var(--tonal); }
/* Texte lu par les lecteurs d'écran seulement */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Clair / sombre (comme le site) : ordinateur dans la barre, téléphone dans le menu des langues ; rien sans JavaScript.
   Pas de transition (aucun mouvement sur les boutons). Boutons de 38 px dans une pastille de 44 px (cible au doigt). */
.theme-pick, .menu-theme { display: none; }
.theme-pick button, .mt-seg button { border: 0; cursor: pointer; font: inherit; color: var(--text2); background: transparent; }
.theme-pick svg, .mt-seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.theme-pick svg.moon, .mt-seg svg.moon { fill: currentColor; }
@media (min-width: 900px) {
  .js .theme-pick { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface2); }
  .theme-pick button { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; }
  .theme-pick button:hover { color: var(--text); }
  .theme-pick button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
}
@media (max-width: 899px) {
  .js .menu-theme { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 2px; padding: 8px 6px 2px; border-top: 1px solid var(--divider); }
  .mt-l { color: var(--text2); font-size: 0.875rem; }
  .mt-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--surface2); }
  .mt-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; }
  .mt-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
  .langs-menu { width: 250px; }
}

/* Contenu */
main { padding: 32px 0 48px; }
h1 { font-size: 1.875rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 720px) { h1 { font-size: 2.5rem; } }
h2 { font-size: 1.375rem; font-weight: 600; margin: 40px 0 12px; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 20px 0 6px; }
p { margin: 8px 0; }
.lead { color: var(--text2); font-size: 1.125rem; max-width: 720px; margin-top: 12px; }
.muted { color: var(--text2); }
.small { font-size: 0.875rem; }
.card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 20px; }
/* Encadré « Kuittly ne vous appellera jamais » */
.alerte { margin-top: 20px; max-width: 720px; background: var(--tonal); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 12px 16px; font-size: 0.9375rem; }
.alerte p { margin: 4px 0; }
.alerte a { font-weight: 600; overflow-wrap: anywhere; }
/* Encadré « Et maintenant ? » (délai de résiliation), juste sous les trois chiffres de la caisse maladie */
.alerte.delai { margin: 0 0 14px; max-width: none; }
/* Date des données, sous le titre (caisse maladie, électricité) */
.date-donnees { margin: 8px 0 0; }
/* Page de texte (Comment on classe) */
.texte { max-width: 760px; }
.texte h2 { margin-top: 32px; }

/* Mise en page B : les choix à gauche, les résultats à droite */
.grille { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .grille { grid-template-columns: 290px 1fr; align-items: start; } }
.panneau { display: grid; gap: 16px; padding: 18px; }
/* Ordinateur : le panneau reste visible ; s'il est plus haut que l'écran, il défile à l'intérieur de lui-même
   (sinon le bas du formulaire et le bouton ne sont plus atteignables après le calcul). */
@media (min-width: 900px) { .panneau { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; } }
/* Tablette (720-899 px) : le formulaire sur 2 colonnes, le bouton sur toute la largeur. */
@media (min-width: 720px) and (max-width: 899px) {
  .panneau { grid-template-columns: 1fr 1fr; align-items: start; }
  .panneau > .btn, .panneau > button, .panneau > h2, .panneau > h3, .panneau > .titre-champ, .panneau > details { grid-column: 1 / -1; }
}
.field label:not(.case), .field legend { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.field .help { font-size: 0.8125rem; color: var(--text2); margin-top: 6px; }
fieldset { border: 0; }
/* Bord des champs en --text3 : contraste 3.4:1 (clair) et 3.8:1 (sombre), au moins 3:1 (WCAG 1.4.11). */
input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--text3);
  border-radius: var(--r-sm); padding: 11px 12px; min-height: 46px; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; cursor: pointer; }
.case input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.places { display: grid; gap: 4px; margin-top: 8px; }
.places .case { font-size: 0.875rem; min-height: 44px; }
.btn { font: inherit; font-weight: 600; background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--r-sm);
  padding: 12px 22px; min-height: 48px; cursor: pointer; width: 100%; }
/* Bouton secondaire : fond doux, pas sur toute la largeur. Aucun mouvement. */
.btn.btn-sec { background: var(--tonal); color: var(--accent-text); width: auto; }
/* B7 « Copier le lien » (revue 20.11) : un lien souligné avec une icône, pour ne pas ressembler à « Voir les N autres offres ».
   Zone de clic de 44 px de haut. Aucun mouvement. */
.btn-lien { font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--accent-text); background: none; border: 0; padding: 0;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-lien svg { flex: none; }
.btn-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* B7 : bloc « Copier le lien » sous les résultats */
.partage { margin: 0 0 14px; display: grid; gap: 8px; justify-items: start; }
.partage .help { font-size: 0.8125rem; color: var(--text2); margin: 0; }
/* B6 : accueil, champ « code postal ou commune » et deux boutons */
.cherche { max-width: 560px; margin-top: 20px; display: grid; gap: 12px; }
.cherche .help { font-size: 0.8125rem; color: var(--text2); margin: 0; }
.deux-boutons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.deux-boutons .btn { padding: 12px 14px; }
/* Revue 20.11 : les deux boutons de l'accueil sont des liens (<a class="btn">, règle « a.btn » plus bas) : même aspect qu'un bouton. */
/* B9 : variation de prix (électricité) : vert = baisse, orange = hausse (couleurs du thème, contraste AA ; le signe reste écrit) */
.baisse, .stat b.baisse, .liste td.baisse, .liste .c small.baisse { color: var(--paid); }
.hausse, .stat b.hausse, .liste td.hausse, .liste .c small.hausse { color: var(--due); }
/* Revue 20.11 (A9) : l'exemple dans un champ ne doit pas ressembler à une valeur remplie : en italique, un peu plus clair.
   --placeholder : contraste 4.7:1 sur le fond du champ (clair) et 5.2:1 (sombre), au-dessus de 4.5:1 (AA). */
::placeholder { color: var(--placeholder); opacity: 1; font-style: italic; }
/* Contrôle final 20.11 : la barre du haut est collante (60 px). Quand le navigateur fait défiler vers un champ (curseur mis dans
   un champ en erreur, lien vers un titre), il laisse cette place en haut. Sans cela, Safari (iPhone) cachait le champ en erreur
   et son titre sous la barre. scroll-padding (sur la page) marche aussi dans Safari, pas scroll-margin (sur le champ). */
html { scroll-padding-top: 6.5rem; }
.lien-bloc { display: inline-flex; align-items: center; min-height: 44px; }
.err { color: var(--late); font-size: 0.875rem; margin-top: 6px; }
.err:empty { display: none; }
/* Champ faux (cartes de crédit, revue 20.11) : bord rouge en plus du message dessous. */
input[aria-invalid="true"] { border-color: var(--late); }

/* Résultats */
.vide { padding: 28px 20px; color: var(--text2); text-align: center; }
.resume { color: var(--text2); margin-bottom: 6px; }
.complet { font-size: 0.875rem; color: var(--paid); margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 12px 14px; }
.stat small { display: block; color: var(--text2); font-size: 0.8125rem; }
.stat b { font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat.vert b { color: var(--paid); }
@media (max-width: 480px) { .stat b { font-size: 1.125rem; } .stat { padding: 10px; } }
.liste { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); overflow: hidden; }
.liste table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.liste th, .liste td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.liste th { font-size: 0.8125rem; font-weight: 600; color: var(--text2); background: var(--surface2); }
.liste tr:last-child td { border-bottom: 0; }
.liste .n { color: var(--text2); font-size: 0.875rem; width: 1%; }
.liste .c b { font-weight: 600; }
.liste .c small { display: block; color: var(--text2); font-size: 0.875rem; }
.liste .p { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Petite ligne sous le prix (« 7'240 / an », « sur 24 mois ») : sur une seule ligne. */
.liste .p small { display: block; font-weight: 400; color: var(--text2); font-size: 0.8125rem; white-space: nowrap; }
/* Les titres des colonnes et les textes longs (taux par palier…) vont à la ligne : le tableau ne dépasse pas de sa boîte.
   Titre court (« CHF / mois ») : classe nw, sur une seule ligne. */
.liste th.p { white-space: normal; }
.liste th.p.nw { white-space: nowrap; }
.liste .p.texte small { white-space: normal; }
.liste .p.texte { white-space: normal; font-weight: 500; min-width: 8em; }
/* Au téléphone, les colonnes secondaires sont cachées (le chiffre principal reste visible). */
@media (max-width: 640px) { .liste .cache-mobile { display: none; } }
.liste .j { width: 32%; }
.jauge { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.liste tr.premier .jauge i { background: var(--paid); }
.liste tr.premier .p { color: var(--paid); }
@media (max-width: 640px) { .liste .j { display: none; } .liste th, .liste td { padding: 10px; } }
/* Petit téléphone (360 px) : cellules un peu plus serrées, pour que 4 colonnes tiennent sans défiler. */
@media (max-width: 400px) { .liste th, .liste td { padding: 9px 7px; } }
.info { margin-top: 12px; }
.source { margin-top: 20px; font-size: 0.875rem; color: var(--text2); }

.cats { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .cats { grid-template-columns: 1fr 1fr; } }
.cats a.card { text-decoration: none; color: var(--text); display: block; }
.cats a.card:hover { border-color: var(--accent); }
.cats .card h2 { margin: 0 0 6px; font-size: 1.25rem; }

footer { border-top: 1px solid var(--divider); padding: 24px 0 40px; color: var(--text2); font-size: 0.875rem; }
footer a { color: var(--text2); display: inline-flex; align-items: center; min-height: 44px; }
/* Revue 20.11 (P10) : liens du pied séparés par un espace, sans « · » (le point restait seul en fin de ligne au téléphone). */
footer .liens-pied { display: flex; flex-wrap: wrap; column-gap: 20px; }

/* Page électricité : gestionnaires, constats, parts du prix, conseils */
.gestionnaires { margin: 4px 0 14px; padding: 12px 16px; }
.gestionnaires legend { float: left; width: 100%; font-weight: 600; font-size: 0.9375rem; }
.gestionnaires .help { clear: both; font-size: 0.8125rem; color: var(--text2); margin: 4px 0; }
.gestionnaires .case { font-size: 0.875rem; }
.stat b + small { margin-top: 2px; font-size: 0.75rem; }
.constats { margin: 0 0 6px; }
.constats p { margin: 4px 0; }
#resultats h3 { margin: 22px 0 8px; }
.barre { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface2); margin-bottom: 10px; }
.barre i { display: block; height: 100%; min-width: 2px; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.p1 { background: var(--c1); } .p2 { background: var(--c2); } .p3 { background: var(--c3); } .p4 { background: var(--c4); } .p5 { background: var(--c5); }
/* Couleurs des parts : seulement les couleurs du site (--due vient aussi de site.css). */
:root { --c1: var(--accent); --c2: var(--paid); --c3: var(--due); --c4: var(--text3); --c5: var(--text); }
.liste td.p { font-weight: 500; }
.liste tr.total td { font-weight: 600; background: var(--surface2); }
.liste tr.groupe th { font-size: 0.8125rem; text-transform: none; color: var(--text2); background: var(--bg); }
.liste tr.moi td { background: var(--tonal); }
.liste tr.moi .c small { color: var(--accent-text); }
.conseils { list-style: none; display: grid; gap: 10px; max-width: 760px; }
.conseils li { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 14px 16px; }
.profils .case { display: flex; color: var(--text); font-size: 0.9375rem; margin: 0; align-items: flex-start; padding: 11px 0; min-height: 44px; line-height: 1.3; }
.profils .case input { margin-top: 1px; }
.profils .case small { color: var(--text2); font-size: 0.8125rem; white-space: nowrap; }
.profils #aide-profil { margin: 0 0 4px; }

/* Pages par commune et par canton (texte écrit dans le HTML, pas de JavaScript) */
.fil { font-size: 0.875rem; color: var(--text2); margin: -8px 0 8px; }
.fil a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text2); }
.fil a:hover { color: var(--text); }
a.btn { display: inline-flex; align-items: center; justify-content: center; width: auto; text-decoration: none; }
/* Listes de liens (communes, cantons) : 2 colonnes au téléphone (300 communes d'un canton : moitié moins long à faire défiler). */
.liens { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 16px; margin: 8px 0; }
.liens li > a { overflow-wrap: anywhere; }
.liens li { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.liens li > a { display: inline-flex; align-items: center; min-height: 44px; }
.liens small { color: var(--text2); font-size: 0.8125rem; white-space: nowrap; }
/* Page de texte : listes à puces (Confidentialité) */
.texte ul { padding-left: 22px; margin: 8px 0; }
.texte li { margin: 4px 0; }

/* ---------- Graphiques (site-src/graphiques.mjs) : seulement les couleurs ci-dessus ----------
   Une échelle séquentielle ajoutée (carte des cantons) : la teinte violette du site, du clair au foncé.
   --s1…--s5 = fond des carrés, --t1…--t5 = texte posé dessus (contraste vérifié en clair et en sombre). */
:root { --s1: #ADA3F2; --s2: #8F82EE; --s3: #6C5CE7; --s4: #5244C9; --s5: #3A2C9E; --t1: #15141A; --t2: #15141A; --t3: #FFFFFF; --t4: #FFFFFF; --t5: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --s1: #5248A6; --s2: #6A5BD0; --s3: #8579EA; --s4: #A79EF3; --s5: #CDC8FA; --t1: #FFFFFF; --t2: #FFFFFF; --t3: #15141A; --t4: #15141A; --t5: #15141A; }
}
:root[data-theme="dark"] { --s1: #5248A6; --s2: #6A5BD0; --s3: #8579EA; --s4: #A79EF3; --s5: #CDC8FA; --t1: #FFFFFF; --t2: #FFFFFF; --t3: #15141A; --t4: #15141A; --t5: #15141A; }
/* Les trois chiffres : plus grands (proposition A) */
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 1.875rem; line-height: 1.15; margin: 2px 0; }
@media (max-width: 480px) { .stat b { font-size: 1.25rem; } .stat { padding: 10px; } }
/* Un mot à la place d'un chiffre (hypothèques : « Das Einkommen ») : plus petit au téléphone, sinon 3 px de trop à 360 px. */
@media (max-width: 480px) { .stat b.mot { font-size: 1rem; line-height: 1.25; hyphens: auto; } }
.chart { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 16px 16px 12px; margin: 0 0 14px; }
.chart .titre-graphique { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.chart .sous { color: var(--text2); font-size: 0.8125rem; margin: 2px 0 10px; }
.chart svg { display: block; overflow: visible; }
/* B8 : les tailles de texte sont en rem (1rem = 16 px, suit la taille choisie dans le navigateur). Exceptions, en px :
   le texte DANS les dessins SVG (positions fixes du dessin : il déborderait) et l'icône « + » de « Plus de choix ». */
.chart svg text { font-family: var(--font); fill: var(--text2); font-size: 12px; font-variant-numeric: tabular-nums; }
.g-b { fill: var(--accent); } .g-v { fill: var(--paid); }
.g-mk { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; fill: none; }
.g-mk.g-vous { stroke: var(--text); stroke-width: 2.5; stroke-dasharray: none; }
.g-h { position: relative; }
.g-h svg { width: 100%; height: 110px; }
.g-mini { width: 100%; height: 34px; display: block; margin-top: 8px; }
.g-ml, .g-x { position: relative; height: 18px; font-size: 0.75rem; color: var(--text2); font-variant-numeric: tabular-nums; }
.g-ml span, .g-x span, .g-y span { position: absolute; white-space: nowrap; }
.g-ml span { color: var(--text); font-weight: 500; }
.g-ml .g-tv { font-weight: 600; }
.g-x { border-top: 1px solid var(--divider); padding-top: 2px; height: 20px; }
.g-esc { padding-left: 46px; }
.g-esc .g-ml, .g-esc .g-x { margin-left: 0; }
.g-ligne { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.g-y { position: absolute; left: 0; top: 18px; width: 42px; height: 110px; font-size: 0.75rem; color: var(--text2); }
.g-y span { right: 0; transform: translateY(-50%); }
/* Barres horizontales « CHF de plus que la moins chère » */
.g-hb { list-style: none; margin-top: 6px; }
.g-hb li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--divider); }
.g-hb li:first-child { border-top: 0; }
.g-hl { min-width: 0; } .g-hl b { font-weight: 600; } .g-hl small { display: block; color: var(--text2); font-size: 0.8125rem; }
.g-hp { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-hs { align-self: center; height: 14px; }
.g-hs i { display: block; height: 14px; border-radius: 4px; background: var(--accent); }
.g-hs i.g-pt { width: 10px; height: 10px; margin-top: 2px; border-radius: 99px; background: var(--paid); }
.g-he { font-size: 0.8125rem; color: var(--text2); text-align: right; min-width: 96px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-hb li.med, .g-hb li.vous { background: var(--surface2); margin: 0 -16px; padding: 9px 16px; }
.g-hb li.med .g-hs i { background: var(--text3); }
.g-hb li.vous .g-hs i { background: var(--text); }
.g-hb li.premier .g-hp { color: var(--paid); }
/* Barre en parts et légendes */
.g-p { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; background: var(--surface2); }
.g-p i { display: block; height: 100%; min-width: 2px; }
.leg { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--text2); margin: 10px 0 2px; }
.leg li { display: flex; align-items: center; gap: 6px; }
.leg b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.ligne { height: 3px; width: 14px; border-radius: 2px; background: var(--accent); }
.sw.ligne.g-gris { background: var(--text3); }
.sw.g-cadre { border: 2px solid var(--text); background: transparent; }
/* Pente 2026 → 2027 */
.g-pente line { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.g-pente circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.g-pente .g-gris line { stroke: var(--text3); } .g-pente .g-gris circle { fill: var(--text3); }
.g-pente line.g-axe { stroke: var(--divider); stroke-width: 1; }
.chart .g-pente text { fill: var(--text); font-size: 13px; font-weight: 600; }
.chart .g-pente text.g-an { fill: var(--text2); font-weight: 400; font-size: 12px; }
/* Carte simplifiée des cantons (schéma, pas une vraie carte) */
.g-carte { max-width: 420px; margin: 4px auto 0; }
.s1 { fill: var(--s1); background: var(--s1); } .s2 { fill: var(--s2); background: var(--s2); } .s3 { fill: var(--s3); background: var(--s3); } .s4 { fill: var(--s4); background: var(--s4); } .s5 { fill: var(--s5); background: var(--s5); }
.g-carte .g-ici { stroke: var(--text); stroke-width: 3; }
.chart .g-carte .tu { font-size: 14px; font-weight: 600; } .chart .g-carte .tu2 { font-size: 11px; }
/* Petit téléphone : le prix dans chaque carré serait trop petit (8 px). On montre seulement le sigle, au milieu du carré
   (la légende des couleurs donne les prix ; le prix exact reste dans la bulle du carré et dans le tableau lu par les lecteurs d'écran). */
@media (max-width: 400px) { .chart .g-carte .tu2 { display: none; } .chart .g-carte .tu { font-size: 17px; transform: translateY(9px); } }
.chart .g-carte .t1 { fill: var(--t1); } .chart .g-carte .t2 { fill: var(--t2); } .chart .g-carte .t3 { fill: var(--t3); } .chart .g-carte .t4 { fill: var(--t4); } .chart .g-carte .t5 { fill: var(--t5); }
/* Le grand chiffre « Vous pouvez économiser » (seulement avec votre prix actuel) */
.g-eco { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 20px; margin: 6px 0 14px; }
.g-et { color: var(--text2); margin: 0; }
.g-eg { font-size: 2.75rem; font-weight: 600; line-height: 1.05; margin: 4px 0; color: var(--paid); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .g-eg { font-size: 2.125rem; } }
.g-es { color: var(--text2); margin: 0 0 12px; }
.g-d { list-style: none; display: grid; gap: 10px; }
.g-dl { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--text2); margin-bottom: 4px; }
.g-dl b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-db i { display: block; height: 22px; border-radius: 4px; }
.g-db .g-gris { background: var(--text3); } .g-db .g-vert { background: var(--paid); }
.g-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; border-top: 1px solid var(--divider); padding-top: 14px; }
.g-trois small { display: block; color: var(--text2); font-size: 0.8125rem; }
.g-trois b { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .g-trois b { font-size: 0.9375rem; } }
.g-info { margin: 6px 0 14px; padding: 12px 16px; }
/* Accueil : icônes des catégories (proposition B) et petite distribution (A) */
.ic-cat { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tonal); color: var(--accent-text); margin-bottom: 10px; }
.cats .note { font-size: 0.8125rem; color: var(--text2); margin: 4px 0 0; }
.deux { display: grid; gap: 14px; }
@media (min-width: 860px) { .deux { grid-template-columns: 1fr 1fr; } }
.g-eg.neutre { color: var(--text); }
/* Pages loyer, allocations, poursuites */
.lettre { width: 100%; font: inherit; font-size: 0.875rem; line-height: 1.5; color: var(--text); background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-sm); padding: 12px; resize: vertical; }
.btn.btn-2 { width: auto; background: var(--tonal); color: var(--accent-text); }
.enfant { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: end; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--divider); }
.enfant .case { grid-column: 1 / -1; }
.enfant .case { font-size: 0.875rem; min-height: 46px; }
.enfant button { font: inherit; font-size: 0.875rem; background: none; border: 0; color: var(--accent-text); min-height: 46px; min-width: 44px; cursor: pointer; }
.etapes { padding-left: 22px; display: grid; gap: 8px; max-width: 760px; }
a.btn.aide { font-size: 1.125rem; padding: 14px 24px; margin: 8px 0; }
.range { display: flex; align-items: center; gap: 12px; } .range input { flex: 1; accent-color: var(--accent); min-height: 44px; } .range output { font-weight: 600; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
details.options { border: 1px solid var(--divider); border-radius: var(--r-sm); padding: 0 12px; }
details.options summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--text2); }
details.options[open] { padding-bottom: 12px; } details.options .field { margin-top: 10px; }
/* O1 « Plus de choix » : au téléphone et sur tablette (< 900 px), les choix secondaires sont repliés (fermé au départ, pas d'animation).
   Sur ordinateur, le JavaScript l'ouvre et le titre est caché : le formulaire reste tel quel, tout visible. */
details.plus-choix { border: 1px solid var(--divider); border-radius: var(--r-sm); padding: 0 12px; }
details.plus-choix > summary { cursor: pointer; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--text); list-style: none; }
details.plus-choix > summary::-webkit-details-marker { display: none; }
details.plus-choix > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text2); }
details.plus-choix[open] > summary::after { content: "–"; }
details.plus-choix[open] { padding-bottom: 14px; }
.plus-choix-in { display: grid; gap: 16px; }
@media (min-width: 720px) and (max-width: 899px) { .plus-choix-in { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 900px) {
  details.plus-choix { border: 0; padding: 0; border-radius: 0; }
  details.plus-choix > summary { display: none; }
  details.plus-choix[open] { padding-bottom: 0; }
}
/* L'encadré « Kuittly ne vous appellera jamais » sous le formulaire (O1). */
.alerte.sous-outil { margin-top: 20px; }
.titre-champ { font-size: 0.875rem; font-weight: 500; color: var(--text2); margin: 0 0 6px; }
.g-ml span.m, .g-x span.m { transform: translateX(-50%); }
.enfant > div { grid-column: 1; grid-row: 1; } .enfant > button { grid-column: 2; grid-row: 1; } .enfant .case { grid-row: 2; }
/* Une colonne de la grille ne dépasse jamais l'écran (ex. allemand à 360 px : titres longs) */
.grille > * { min-width: 0; }
.stat small { overflow-wrap: anywhere; }
.liste { overflow-x: auto; }
/* Si un tableau est quand même plus large que l'écran : une ombre fixe sur le bord montre qu'on peut le faire défiler (sans mouvement).
   Technique « background-attachment: local » : le cache suit le contenu, l'ombre reste au bord. */
.liste {
  background:
    linear-gradient(to right, var(--surface) 30%, var(--surface-0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, var(--surface-0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)) right center / 14px 100% no-repeat scroll,
    var(--surface);
}
/* Liste courte : 20 lignes, puis le bouton « Voir les N autres offres » (site-src/tri.mjs). Le reste est un <tbody hidden>. */
.voir-tout { margin: 12px 0 0; }
.liste tbody + tbody { border-top: 1px solid var(--divider); }
/* Électricité, page d'une commune avec plusieurs gestionnaires : « dès » devant le prix le plus bas. */
.stat b .des { font-size: 0.9375rem; font-weight: 500; }
.stat b .des:empty { display: none; }
/* O10 accueil : au téléphone, cartes plus basses (icône à gauche du titre, badge « Aperçu » à droite). Seulement ajouté ici. */
@media (max-width: 599px) {
  .cats.accueil { gap: 10px; }
  .cats.accueil a.card { display: grid; grid-template-columns: 36px 1fr auto; column-gap: 12px; align-items: center; padding: 14px 16px; }
  .cats.accueil a.card > * { grid-column: 1 / -1; }
  .cats.accueil a.card > .ic-cat { grid-column: 1; grid-row: 1; width: 36px; height: 36px; border-radius: 10px; margin: 0; }
  .cats.accueil a.card > .ic-cat svg { width: 22px; height: 22px; }
  .cats.accueil a.card > h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.0625rem; line-height: 1.25; }
  .cats.accueil a.card > p:last-child:not(.muted):not(.note) { grid-column: 3; grid-row: 1; margin: 0; }
  .cats.accueil a.card > p.muted { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.4; }
  .cats.accueil a.card > .g-mini { height: 24px; margin-top: 6px; }
}
/* O6 TVA (20.11.2026) : électricité, prix avec TVA (grand) et sans TVA (petit). */
.tva-note { margin: 0 0 12px; }
/* Communes proches : le prix (2 lignes) passe sous le nom quand la place manque, le nom ne se coupe plus. */
.liens.o6-tva li { flex-wrap: wrap; column-gap: 8px; padding: 4px 0; }
.liens.o6-tva li > a { overflow-wrap: normal; min-width: 0; }
/* ---------- Verts caisse maladie (20.11.2026) : B1 plusieurs personnes, B2 franchise, B3 liens, B5 subsides, B10 rappel, B11 graphique ---------- */
.panneau > .foyer { grid-column: 1 / -1; }
.foyer .btn.btn-2 { width: auto; margin-top: 0.5rem; }
.personne { border: 1px solid var(--divider); border-radius: var(--r-sm); padding: 0.75rem; margin-bottom: 0.75rem; }
.p-tete { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.p-retirer { font: inherit; font-size: 0.875rem; background: none; border: 0; color: var(--accent-text); text-decoration: underline; min-height: 2.75rem; padding: 0 0.25rem; cursor: pointer; }
.p-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.5rem; }
.p-champs label { display: block; font-size: 0.8125rem; color: var(--text2); margin-bottom: 0.25rem; }
.p-champs input, .p-champs select { width: 100%; min-width: 0; }
.p-classe:empty { display: none; }
/* B3 : même lien, même texte, même taille, même couleur pour chaque caisse (aucune mise en avant). */
/* Contrôle final 20.11 : zone à toucher de 40 px de haut (avant : 26 px au téléphone), sans déplacer la ligne (marges négatives). */
a.site-caisse { display: inline-block; font-size: 0.8125rem; margin: -0.3125rem 0 -0.4375rem; padding: 0.6875rem 0; }
.mention-liens { font-size: 0.8125rem; color: var(--text2); margin: 0.5rem 0 0; }
.liste .c small + a.site-caisse { display: inline-block; }
.franchise-aide, .officiel { margin-top: 1.25rem; }
#resultats .franchise-aide h3, #resultats .officiel h3 { margin: 0 0 0.5rem; }
.franchise-aide ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.officiel ul { list-style: none; margin: 0.25rem 0; padding: 0; }
.franchise-aide li, .officiel li { margin: 0.25rem 0; }
.officiel a { display: inline-block; padding: 0.5625rem 0; } /* 40 px de haut au moins (contrôle final 20.11) */
.subsides { border-top: 1px solid var(--divider); margin-top: 0.75rem; padding-top: 0.5rem; }
.subsides p { margin: 0.25rem 0; }
.detail-1 { margin-top: 1.5rem; }
/* B10 : au téléphone, ligne collée sous la barre Kuittly (jamais par-dessus), sans animation. Cachée sur ordinateur. */
.rappel { display: none; }
@media (max-width: 899px) {
  .rappel { display: flex; position: sticky; top: calc(3.75rem + 1px); z-index: 4; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin: 0 0 0.75rem; padding: 0.25rem 0.75rem; background: var(--bg); border-bottom: 1px solid var(--divider); font-size: 0.875rem; }
  .rappel span { min-width: 0; color: var(--text2); line-height: 1.3; }
  .rappel a { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
  #titre-resultats { scroll-margin-top: 1rem; } /* + 6.5rem de la page : sous la ligne « Modifier » (B10) */
}
/* B11 : graphique de répartition replié au téléphone (« Voir le graphique »), toujours ouvert sur ordinateur. */
details.graphe-plie { border: 1px solid var(--divider); border-radius: var(--r-sm); padding: 0 0.75rem; margin: 0.75rem 0; }
details.graphe-plie > summary { cursor: pointer; min-height: 2.875rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.9375rem; font-weight: 500; list-style: none; }
details.graphe-plie > summary::-webkit-details-marker { display: none; }
details.graphe-plie > summary::after { content: "+"; font-size: 1.375rem; line-height: 1; color: var(--text2); }
details.graphe-plie[open] > summary::after { content: "–"; }
@media (min-width: 900px) {
  details.graphe-plie { border: 0; padding: 0; margin: 0; border-radius: 0; }
  details.graphe-plie > summary { display: none; }
}
/* Revue 20.11 : texte agrandi (police du navigateur à 20 px) sur un écran de 360 px. Rien ne change au zoom normal.
   - Un mot trop long (« Krankenkassenprämien », « Datenschutzerklärung ») passe à la ligne au lieu de sortir de l'écran.
   - 22.4em = 358 px avec une police de 16 px (aucun téléphone courant à 360 px n'est touché), 448 px avec une police de 20 px :
     la barre du haut peut passer sur deux lignes, et les en-têtes des tableaux se coupent, avec des cellules un peu moins larges. */
body { overflow-wrap: break-word; }
a.card { overflow-wrap: anywhere; }
@media (max-width: 22.4em) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; }
  .liste th { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .liste th, .liste td { padding: 8px 5px; }
}
