/* Cercle Survie — design system V2 (couverture de survie, or et graphite)
   Ancien en-tête V1 :
   Principe : la nuit d'une coupure (bleu nuit) et la lumière qu'on garde (jaune lampe).
   Une seule famille : Atkinson Hyperlegible Next, dessinée pour la lisibilité. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "AHN"; src: url("../fonts/ahn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "AHN"; src: url("../fonts/ahn-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AHN"; src: url("../fonts/ahn-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --nuit: #16120a;
  --nuit-2: #2a241a;
  --nuit-3: #8a5a12;
  --lampe: #e9b74f;
  --lampe-doux: #fbf0d2;
  --papier: #ffffff;
  --brume: #f1f2ef;
  --trait: #ddd8cc;
  --encre: #1a1d21;
  --gris: #4d5560;
  --alerte: #b42318;
  --alerte-fond: #fdeceb;
  --ok: #1e6b45;
  --ok-fond: #e7f4ec;

  --t-0: 0.875rem;
  --t-1: 1.0625rem;
  --t-2: 1.3125rem;
  --t-3: 1.625rem;
  --t-4: 2.0625rem;
  --t-5: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);

  --mesure: 68ch;
  --large: 72rem;
  --r-champ: 6px;
  --r-outil: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "AHN", system-ui, sans-serif;
  font-size: var(--t-1);
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--nuit-3); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--nuit-3); outline-offset: 3px; border-radius: 2px; }
.sur-nuit :focus-visible { outline-color: var(--lampe); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.012em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: var(--t-5); letter-spacing: -0.022em; }
h2 { font-size: var(--t-4); margin-top: 1.6em; }
h3 { font-size: var(--t-2); font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
.chapo { font-size: var(--t-2); line-height: 1.45; color: var(--gris); max-width: 40ch; }
.discret { color: var(--gris); font-size: var(--t-0); }

.saut { position: absolute; left: -999px; top: 0; background: var(--lampe); color: var(--nuit); padding: 0.6rem 1rem; z-index: 10; font-weight: 700; }
.saut:focus { left: 1rem; }

.cadre { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.texte { max-width: var(--mesure); }

/* Bandeau de préversion */
.preversion { background: var(--lampe); color: var(--nuit); font-size: var(--t-0); font-weight: 700; padding: 0.45rem 0; text-align: center; }

/* En-tête */
.entete { background: var(--nuit); color: #fff; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: var(--t-2); letter-spacing: -0.01em; }
.marque svg { width: 1.9rem; height: 1.9rem; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.nav a { color: #dfe6f1; text-decoration: none; font-weight: 700; padding: 0.4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--lampe); }

/* Accueil : la nuit éclairée par une lampe */
.nuit { background: var(--nuit); color: #fff; position: relative; overflow: hidden; }
.nuit::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42rem 30rem at 22% 42%, rgba(244,183,49,0.26), rgba(244,183,49,0.07) 55%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .nuit::before { animation: allumage 1.4s cubic-bezier(.2,.7,.2,1) 0.15s both; }
  @keyframes allumage { 0% { opacity: 0; } 35% { opacity: 0.55; } 45% { opacity: 0.2; } 100% { opacity: 1; } }
}
.nuit .cadre { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.nuit h1 { max-width: 15ch; color: #fff; }
.nuit .chapo { color: #c9d3e3; max-width: 46ch; }
.nuit .garanties { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 1.75rem 0 0; list-style: none; color: #c9d3e3; font-size: var(--t-0); }
.nuit .garanties li::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lampe); margin-right: 0.5rem; vertical-align: 0.05em; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 700; border-radius: var(--r-champ); padding: 0.8rem 1.2rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.bouton-lampe { background: var(--lampe); color: var(--nuit); }
.bouton-lampe:hover { background: #ffc94d; }
.bouton-nuit { background: var(--nuit); color: #fff; }
.bouton-nuit:hover { background: var(--nuit-2); }
.bouton-contour { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.bouton-contour:hover { background: var(--brume); }
.bouton[disabled], .bouton[aria-disabled="true"] { background: var(--brume); color: var(--gris); border-color: var(--trait); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Deux portes d'entrée, volontairement inégales */
.portes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; padding: clamp(2rem, 5vw, 3.5rem) 0; }
@media (min-width: 820px) { .portes { grid-template-columns: 1.35fr 1fr; } }
.porte { border-radius: var(--r-outil); padding: 1.75rem; text-decoration: none; color: inherit; display: block; }
.porte h2 { margin-top: 0; font-size: var(--t-3); }
.porte-sim { background: var(--brume); }
.porte-kit { border: 2px solid var(--nuit); }
.porte .chiffre { font-size: var(--t-5); font-weight: 800; color: var(--nuit); line-height: 1; margin: 0 0 0.25rem; }
.porte:hover h2 { text-decoration: underline; text-underline-offset: 0.15em; }

/* Jauge : l'élément signature */
.jauge { margin: 1.25rem 0 0.5rem; }
.jauge-barre { position: relative; height: 2.25rem; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--trait) 0 1px, transparent 1px 10%), #fff; border: 2px solid var(--nuit); overflow: hidden; }
.jauge-besoin { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(244,183,49,0.55), var(--lampe)); }
.jauge-repere { position: absolute; top: -0.4rem; bottom: -0.4rem; width: 3px; background: var(--nuit); }
.jauge-legende { display: flex; justify-content: space-between; font-size: var(--t-0); color: var(--gris); margin-top: 0.35rem; }

/* Sections de contenu */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-brume { background: var(--brume); }
.fil { font-size: var(--t-0); color: var(--gris); padding-top: 1.25rem; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.fil li + li::before { content: "/"; margin-right: 0.4rem; color: var(--trait); }

/* Outils */
.outil { background: var(--brume); border-radius: var(--r-outil); padding: clamp(1.25rem, 3vw, 2rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 800; font-size: var(--t-2); margin-bottom: 0.75rem; padding: 0; }
label { font-weight: 700; }
input[type="number"], select { font: inherit; padding: 0.55rem 0.65rem; border: 2px solid var(--trait); border-radius: var(--r-champ); background: #fff; color: var(--encre); min-height: 2.75rem; }
input[type="number"] { width: 6.5rem; }
input:focus-visible, select:focus-visible { border-color: var(--nuit-3); }
.duree { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.duree input { position: absolute; opacity: 0; pointer-events: none; }
.duree label { border: 2px solid var(--nuit); border-radius: var(--r-champ); padding: 0.55rem 1rem; cursor: pointer; background: #fff; }
.duree input:checked + label { background: var(--nuit); color: #fff; }
.duree input:focus-visible + label { outline: 3px solid var(--nuit-3); outline-offset: 3px; }
.appareils { display: grid; gap: 0.5rem; }
.appareil { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; background: #fff; border: 1px solid var(--trait); border-radius: var(--r-champ); padding: 0.75rem 0.9rem; }
.appareil .nom { font-weight: 700; }
.appareil .reglages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: var(--t-0); color: var(--gris); }
.appareil .reglages label { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; }
.appareil .reglages input { width: 5.5rem; min-height: 2.5rem; }
.appareil[data-actif="false"] .reglages { display: none; }
.groupe-titre { font-size: var(--t-0); font-weight: 700; color: var(--gris); margin: 1rem 0 0.25rem; }
.qte { display: flex; align-items: center; gap: 0.35rem; }
.qte button { width: 2.5rem; height: 2.5rem; border-radius: var(--r-champ); border: 2px solid var(--nuit); background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--nuit); }
.qte output { min-width: 1.5rem; text-align: center; font-weight: 800; }

.resultat { margin-top: 1.5rem; background: #fff; border-radius: var(--r-outil); border: 2px solid var(--nuit); padding: clamp(1.25rem, 3vw, 2rem); }
.resultat h2 { margin-top: 0; font-size: var(--t-3); }
.verdict { font-size: var(--t-2); font-weight: 800; line-height: 1.3; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.chiffres div { border-top: 3px solid var(--nuit); padding-top: 0.5rem; }
.chiffres strong { display: block; font-size: var(--t-3); line-height: 1.1; }
.chiffres span { color: var(--gris); font-size: var(--t-0); }
.hypotheses { font-size: var(--t-0); color: var(--gris); }
.hypotheses summary { cursor: pointer; font-weight: 700; color: var(--encre); }

/* Alertes de sécurité */
.alerte { border-left: 6px solid var(--alerte); background: var(--alerte-fond); padding: 1rem 1.25rem; border-radius: 0 var(--r-champ) var(--r-champ) 0; margin: 1.25rem 0; }
.alerte strong:first-child { color: var(--alerte); }
.info { border-left: 6px solid var(--nuit-3); background: var(--brume); padding: 1rem 1.25rem; border-radius: 0 var(--r-champ) var(--r-champ) 0; margin: 1.25rem 0; }
.bon { border-left: 6px solid var(--ok); background: var(--ok-fond); padding: 1rem 1.25rem; border-radius: 0 var(--r-champ) var(--r-champ) 0; margin: 1.25rem 0; }

/* Stations recommandées par le simulateur */
.station-ligne { display: grid; grid-template-columns: 1fr; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid var(--trait); }
@media (min-width: 720px) { .station-ligne { grid-template-columns: 1.2fr 1fr auto; align-items: center; } }
.etat { display: inline-block; font-size: var(--t-0); font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 4px; margin-right: 0.35rem; }
.etat-ok { background: var(--ok-fond); color: var(--ok); }
.etat-limite { background: var(--lampe-doux); color: #7a5300; }
.etat-non { background: var(--alerte-fond); color: var(--alerte); }
.etat-inconnu { background: var(--brume); color: var(--gris); }

/* Fiches produit */
.fiche-tete { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .fiche-tete { grid-template-columns: 1fr 1fr; } }
.photo-attente { aspect-ratio: 4 / 3; border-radius: var(--r-outil); background: var(--nuit); color: #c9d3e3; display: grid; place-items: center; text-align: center; padding: 2rem; font-size: var(--t-0); }
.photo-attente svg { width: 40%; margin: 0 auto 1rem; opacity: 0.9; }
.pour-contre { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pour-contre { grid-template-columns: 1fr 1fr; } }
.pour-contre h3 { margin-top: 0; }
.liste-coche, .liste-limite { padding-left: 0; list-style: none; }
.liste-coche li, .liste-limite li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.liste-limite li::before { content: ""; position: absolute; left: 0.1rem; top: 0.7em; width: 0.8rem; height: 3px; background: var(--alerte); }
.marchand { border: 2px dashed var(--trait); border-radius: var(--r-outil); padding: 1.25rem; margin-top: 1.5rem; }

/* Tableaux */
.tableau-defile { overflow-x: auto; }
table { font-variant-numeric: tabular-nums; border-collapse: collapse; width: 100%; font-size: var(--t-0); }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; font-size: var(--t-1); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--trait); }
thead th { border-bottom: 2px solid var(--nuit); }
tbody th { font-weight: 700; width: 34%; }
td.source a { color: var(--gris); }
.non-verifie { color: #7a5300; font-weight: 700; }

/* Kit 72 h */
.kit-total { display: flex; flex-wrap: wrap; gap: 2rem; align-items: baseline; }
.kit-total .eau { font-size: var(--t-5); font-weight: 800; line-height: 1; color: var(--nuit); }
.kit-liste { list-style: none; padding: 0; columns: 1; }
@media (min-width: 760px) { .kit-liste { columns: 2; column-gap: 2rem; } }
.kit-liste li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--trait); }
.kit-liste label { font-weight: 400; display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.kit-liste input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--nuit); flex: none; }
.kit-liste .ajout { display: block; font-size: var(--t-0); color: var(--gris); }

/* Pied de page */
.pied { background: var(--nuit); color: #c9d3e3; margin-top: 4rem; padding: 2.5rem 0; font-size: var(--t-0); }
.pied a { color: #fff; }
.pied ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; }

.sources-liste { font-size: var(--t-0); color: var(--gris); padding-left: 1.2rem; }
.sources-liste li { margin-bottom: 0.4rem; }

@media print {
  .entete, .pied, .preversion, .actions, .nav { display: none; }
  .outil, .resultat { border: 1px solid #999; background: #fff; }
}

/* Barre de résultat sur mobile */
.barre-resultat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--nuit); color: #fff; padding: 0.7rem 1.25rem; display: none; align-items: center; justify-content: space-between; gap: 1rem; font-size: var(--t-0); box-shadow: 0 -6px 18px rgba(18,33,58,0.25); }
.barre-resultat a { color: var(--nuit); background: var(--lampe); padding: 0.5rem 0.8rem; border-radius: var(--r-champ); font-weight: 700; text-decoration: none; white-space: nowrap; }
.barre-resultat[data-visible="true"] { display: flex; }
@media (min-width: 900px) { .barre-resultat[data-visible="true"] { display: none; } }

/* ---- Couche V2 ---- */
h1, h2, h3, .titre-x { font-family: "Archivo", "AHN", system-ui, sans-serif; font-stretch: 125%; }
h1 { font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-weight: 800; letter-spacing: -0.01em; }
.chapo { color: #3a3f46; }
thead th { background: var(--nuit); color: #f6ecd4; border-bottom: 0; }
thead th, tbody th, tbody td { padding: 0.7rem 0.85rem; }
tbody tr:nth-child(even) { background: var(--brume); }
figure { margin: 2rem 0; }
figcaption { font-size: var(--t-0); color: var(--gris); margin-top: 0.6rem; max-width: 60ch; }
.texte h2::before { content: ""; display: block; width: 2.5rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #e9b74f, #a8761f); margin-bottom: 0.9rem; }
/* Ouverture de l'accueil : couverture de survie froissée, dorée */
.nuit { color: #16120a; background-color: #c9923a;
  background-image:
    linear-gradient(135deg, rgba(255,226,150,0.35), rgba(138,90,18,0.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.011' numOctaves='5' seed='11'/%3E%3CfeDiffuseLighting surfaceScale='9' lighting-color='%23ffe3a0' diffuseConstant='1.15'%3E%3CfeDistantLight azimuth='235' elevation='38'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: cover; background-blend-mode: soft-light; }
.nuit::before { background: linear-gradient(105deg, transparent 38%, rgba(255,250,232,0.5) 50%, transparent 62%); inset: 0 -40%; mix-blend-mode: soft-light; animation: reflet 26s ease-in-out infinite alternate; opacity: 1; }
@keyframes reflet { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
@media (prefers-reduced-motion: reduce) { .nuit::before { animation: none; } }
.nuit h1 { color: #16120a; }
.nuit .chapo, .nuit .garanties { color: #2b2112; }
.nuit .garanties li::before { background: #16120a; }
.nuit .bouton-lampe { background: #16120a; color: #fff6dc; }
.nuit .bouton-lampe:hover { background: #2a241a; }
.nuit.sur-nuit :focus-visible { outline-color: #16120a; }
.nuit .bouton-contour { color: #16120a; border-color: #16120a; background: transparent; }
.nuit .bouton-contour:hover { background: rgba(22,18,10,0.08); }

/* ---- Accueil V2 ---- */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bandeau-urgence { background: var(--nuit); color: #cfc3a6; font-size: var(--t-0); border-bottom: 1px solid #2a241a; }
.bandeau-urgence .cadre { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; padding: 0.45rem 0; }
.bandeau-urgence a { color: #f6ecd4; }

.ouverture .cadre.ouverture-grille { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .ouverture .cadre.ouverture-grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.ouverture h1 { max-width: 14ch; font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.1rem); text-wrap: balance; }
.ouverture-promesse { font-size: var(--t-3); font-weight: 700; line-height: 1.3; margin: 1.25rem 0 0.3rem; color: #2b2112; }
.ouverture-signature { margin: 0; color: #3a2a0c; }
.ouverture-liens { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-weight: 700; }
.ouverture-liens a { color: #16120a; text-decoration-thickness: 2px; }

.exemple { background: #fff; color: var(--encre); border-radius: 10px; padding: clamp(1.1rem, 3vw, 1.5rem); box-shadow: 0 30px 60px -22px rgba(40,25,0,.6), 0 0 0 1px rgba(0,0,0,.06); }
.exemple-titre { font-family: "AHN", system-ui, sans-serif; font-stretch: 100%; font-size: var(--t-0); font-weight: 700; letter-spacing: 0; margin: 0 0 0.75rem; }
.exemple-appareils { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.exemple-appareils li { font-size: var(--t-0); font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--lampe-doux); border: 1.5px solid #c9923a; }
.paliers { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.palier { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; }
.palier span { height: 28px; display: flex; align-items: center; padding-left: 0.7rem; clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%); }
.palier-1 span { width: 44%; background: #f4e3b6; } .palier-2 span { width: 53%; background: #ebcd82; } .palier-3 span { width: 62%; background: #d9a849; }
.palier-4 span { width: 71%; background: #a8761f; color: #fff; } .palier-5 span { width: 80%; background: #6b4510; color: #fff; }
.palier em { font-style: normal; background: var(--nuit); color: #fff; height: 28px; display: flex; align-items: center; padding: 0 0.7rem 0 1rem; clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); white-space: nowrap; }
.palier:not([aria-current]) span { opacity: 0.55; }
.exemple-chiffres { border-top: 1px solid #e6e0d2; margin-top: 1rem; padding-top: 0.9rem; }
.exemple-energie { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.exemple-energie strong, .exemple dt { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; }
.exemple-energie strong { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 1.9rem); white-space: nowrap; }
.exemple-energie span, .exemple dd { font-size: var(--t-0); color: #5b5446; }
.exemple dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0.75rem 0 0; border-top: 1px solid #efeadf; }
.exemple dl div { padding: 0.6rem 0.75rem 0 0; } .exemple dl div + div { padding-left: 0.9rem; border-left: 1px solid #efeadf; }
.exemple dt { font-size: 1.3rem; line-height: 1.15; } .exemple dd { margin: 0.15rem 0 0; line-height: 1.35; }
.exemple-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 1rem; }
.exemple-pied p { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: #6b6457; flex: 1 1 14rem; }
.exemple .bouton-nuit { border-radius: 999px; }

.ordre h2 { margin: 0 0 2rem; max-width: 18ch; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.75rem); }
.trois { list-style: none; counter-reset: q; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--encre); }
@media (min-width: 820px) { .trois { grid-template-columns: repeat(3, 1fr); } .trois li + li { border-left: 1px solid #d8d3c8; padding-left: 2rem; } .trois li { padding-right: 2rem; } }
.trois li { counter-increment: q; padding-top: 1.5rem; padding-bottom: 1rem; }
.trois li::before { content: counter(q); font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: 3.5rem; line-height: 1; color: #b9842c; }
.trois h3 { margin: 0.9rem 0 0.5rem; }
.trois p { color: var(--gris); margin: 0; }

.duo { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding: 1rem 0 3rem; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.3fr 1fr; } }
.duo > section { border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.duo h2 { margin-top: 0; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.duo-energie { background: var(--brume); }
.duo-energie > p:first-of-type { color: var(--gris); max-width: 36em; }
.barres { font-size: var(--t-1); margin-top: 1.5rem; }
.barres thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.barres tbody tr, .barres tbody tr:nth-child(even) { background: none; }
.barres th, .barres td { border: 0; padding: 0.4rem 0; vertical-align: middle; }
.barres tbody th { width: 34%; padding-right: 0.75rem; font-weight: 700; line-height: 1.25; }
.barre { display: block; height: 20px; border-radius: 0 6px 6px 0; background:
  linear-gradient(90deg, #a8761f 0 var(--a), #e9b74f var(--a) var(--b), transparent var(--b)); }
.barre-val { display: block; font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: var(--t-0); margin-top: 0.2rem; white-space: nowrap; }
.duo-kit { background: var(--nuit); color: #f6ecd4; display: flex; flex-direction: column; align-items: flex-start; }
.duo-chiffre { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); line-height: 0.9; letter-spacing: -0.04em; color: #fff; margin: 0 0 0.5rem; }
.duo-kit h2 { color: #fff; font-size: var(--t-3); }
.duo-kit p { color: #cfc3a6; }
.duo-kit .bouton { margin-top: auto; border-radius: 999px; }

.danger { background: #ff4f1a; color: #1a0d06; margin: 1rem 0 0; }
.danger .cadre { display: grid; gap: 1rem 4rem; grid-template-columns: 1fr; padding: clamp(2rem, 5vw, 3rem) 0; align-items: center; }
@media (min-width: 900px) { .danger .cadre { grid-template-columns: 1.2fr 1fr; } }
.danger h2 { margin: 0; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
.danger p { margin: 0; font-size: 1.0625rem; }
.danger a { color: #1a0d06; font-weight: 700; }
.danger :focus-visible { outline-color: #1a0d06; }

.vitrine { background: var(--nuit); color: #f6ecd4; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); }
.vitrine h2 { color: #fff; margin: 0; max-width: 15ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.vitrine-chapo { color: #cfc3a6; max-width: 40em; margin: 0.9rem 0 2rem; }
.vitrine a { color: #f6ecd4; }
.niveaux { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .niveaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .niveaux { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.niveaux li > a, .niveaux li > div { display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 0.8rem 0.85rem; border-radius: 14px; border: 1px solid #3a3224; text-decoration: none; color: #f6ecd4; }
.niveaux strong { font-size: 0.9375rem; line-height: 1.25; }
.niveaux span { font-size: 0.8125rem; color: #cfc3a6; line-height: 1.35; }
.niveaux small { font-size: 0.75rem; color: #a89b7e; margin-top: auto; padding-top: 0.4rem; }
.niveaux li > a:hover { border-color: #e9b74f; }
.niveaux li[aria-current] > a { background: #e9b74f; border-color: #e9b74f; color: #16120a; }
.niveaux li[aria-current] span, .niveaux li[aria-current] small { color: #3a2a0c; }
.niveaux li > div { opacity: 0.72; }

.marques { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; }
.marques li { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: #d8cdb3; }

.cartes { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #2a241a, #1e1a13); box-shadow: inset 0 1px 0 rgba(255,236,190,.12); }
.carte-scene { position: relative; height: 15rem; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 40%, rgba(255,226,160,.30), rgba(255,226,160,0) 70%); }
.carte-scene svg { width: 13rem; }
.carte-marque { position: absolute; top: 1rem; left: 1.1rem; background: rgba(255,255,255,.93); color: #1a1d21; font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: 0.875rem; padding: 0.2rem 0.65rem; border-radius: 7px; }
.carte-illus { position: absolute; right: 1rem; bottom: 0.7rem; font-size: 0.75rem; color: #a89b7e; }
.carte-corps { padding: 0.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.carte h3 { margin: 0; color: #fff; font-size: 1.75rem; font-weight: 900; }
.carte-auto { margin: 0; }
.carte-auto strong { display: block; font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: 2rem; line-height: 1.05; color: #e9b74f; }
.carte-auto span { font-size: var(--t-0); color: #cfc3a6; }
.carte-note { margin: 0; padding: 0.7rem 0.85rem; border-radius: 12px; background: rgba(255,255,255,.06); font-size: var(--t-0); line-height: 1.4; }
.carte-note strong { display: block; color: #fff; }
.carte-note span { color: #b9ad92; }
.carte-note-vide strong { color: #d8cdb3; font-weight: 700; }
.carte-specs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.carte-specs li { font-size: 0.8125rem; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid #4a4130; }
.carte-achat { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.75rem; font-size: var(--t-0); border-top: 1px solid #3a3224; padding-top: 0.75rem; }
.carte-achat:empty { display: none; }
.carte-achat dt { color: #a89b7e; } .carte-achat dd { margin: 0; }
.carte .bouton { margin-top: auto; justify-content: center; border-radius: 999px; min-height: 3.1rem; }
.vitrine-pied { margin: 1.75rem 0 0; font-size: var(--t-0); color: #a89b7e; }
.vitrine a.bouton-lampe { color: #16120a; }
.duo-kit .duo-chiffre { color: #fff; }
body[data-page="accueil"] .pied { margin-top: 0; }
@media (max-width: 600px) { .exemple-appareils li { font-size: 0.8125rem; padding: 0.25rem 0.6rem; } .duo-kit .bouton { margin-top: 1rem; } }
.niveaux li > div { opacity: 1; border-style: dashed; }
.niveaux li > div strong { color: #e6dcc4; }
thead th a { color: #f6ecd4; }
.photo-attente figcaption { color: #e6dcc4; }
.carte-alerte { margin: 0; padding: 0.55rem 0.8rem; border-radius: 10px; background: #3a2a0c; border: 1px solid #8a5a12; color: #fbe3ad; font-size: var(--t-0); line-height: 1.4; }
.vitrine .carte-alerte a { color: #fbe3ad; }

/* ---- Prix observés ---- */
.prix-legende { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.5rem 0 0.75rem; font-size: var(--t-0); }
.prix-legende > div { display: flex; align-items: center; gap: 0.6rem; max-width: 28rem; }
.prix-legende svg { width: 44px; height: 14px; flex: none; }
.prix-periode { font-size: var(--t-0); color: var(--gris); max-width: 70ch; }
.prix-grille { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 1.5rem 0 2rem; }
@media (min-width: 720px) { .prix-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .prix-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prix-carte { border: 1px solid var(--trait); border-radius: 14px; padding: 1rem 1.1rem 0.9rem; background: #fff; }
.prix-carte h2 { font-size: 1.25rem; margin: 0 0 0.2rem; }
.texte .prix-carte h2::before { content: none; }
.prix-meta, .prix-meilleur { font-size: var(--t-0); color: var(--gris); margin: 0 0 0.5rem; }
.prix-meilleur { margin: 0.4rem 0 0; color: var(--encre); }
.prix-svg { width: 100%; height: auto; display: block; overflow: visible; }
.prix-svg .grille { stroke: #e6e1d6; stroke-width: 1; }
.prix-svg .axe { font-size: 12px; fill: #5b616a; font-family: "AHN", system-ui, sans-serif; }
.prix-svg .valeur { font-size: 13px; font-weight: 700; fill: var(--encre); font-family: "AHN", system-ui, sans-serif; }
.trait-plein { stroke: #8a5a12; stroke-width: 2; fill: none; }
.trait-pointille { stroke: #8a5a12; stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.point-plein { fill: #8a5a12; stroke: #fff; stroke-width: 2; }
.point-vide { fill: #fff; stroke: #8a5a12; stroke-width: 2; }
.prix-tableau { margin-bottom: 2rem; }
.prix-tableau td, .prix-tableau th { white-space: normal; }
.prix-carte { display: flex; flex-direction: column; }
.prix-carte .prix-svg { margin-top: auto; }
thead .discret { color: #e6dcc4; }
.prix-niveaux { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 1.5rem 0 0.75rem; font-size: var(--t-0); }
.prix-niveaux li { display: flex; align-items: center; gap: 0.5rem; max-width: 30rem; }
.prix-niveaux svg { width: 22px; height: 22px; flex: none; }
.prix-h2 { font-size: var(--t-3); margin: 2rem 0 0.75rem; }
.prix-carte h3 { font-size: 1.2rem; margin: 0 0 0.2rem; }
.prix-vendeurs { list-style: none; padding: 0; margin: 0 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: var(--t-0); }
.prix-vendeurs li { display: flex; align-items: center; gap: 0.4rem; }
.pastille { width: 0.6rem; height: 0.6rem; border-radius: 2px; display: inline-block; flex: none; }
.prix-svg .liaison { stroke-width: 1.25; stroke-dasharray: 2 4; opacity: 0.7; fill: none; }
.prix-tableau td .discret { font-size: 0.8125rem; }
.prix-tableau table { min-width: 60rem; }
.prix-tableau tbody th { width: auto; min-width: 9rem; }

/* ===== Configurateur 72 h et matrice de couverture (lot du 27/11) ===== */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1.5rem; }
.puce { font: inherit; font-size: var(--t-0); font-weight: 700; border: 2px solid var(--nuit); background: #fff; color: var(--nuit); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; }
.puce:hover, .puce[aria-pressed="true"] { background: var(--nuit); color: #fff; }
.config { display: grid; gap: 1rem; }
.etape { border: 0; margin: 0; padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--brume); border-radius: var(--r-outil); min-width: 0; }
.etape legend { float: left; width: 100%; font-weight: 800; font-size: var(--t-2); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.etape legend + * { clear: left; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--nuit); color: var(--lampe); font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1rem; flex: none; }
.champs-foyer, .contexte-champs { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: flex-end; }
.champs-foyer label, .contexte-champs label { display: flex; flex-direction: column; font-weight: 700; font-size: var(--t-0); gap: 0.3rem; }
.champs-foyer input, .contexte-champs input { width: 5.5rem; }
.sous-legende { font-weight: 700; font-size: var(--t-0); margin: 1rem 0 0.5rem; color: var(--encre); }
.choix { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.puce-choix { position: relative; cursor: pointer; }
.puce-choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puce-choix span { display: inline-flex; align-items: center; gap: 0.45rem; border: 2px solid var(--trait); background: #fff; border-radius: 999px; padding: 0.5rem 0.95rem; font-weight: 700; font-size: var(--t-0); line-height: 1.25; }
.puce-choix span::before { content: ""; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid var(--gris); flex: none; }
.puce-choix input[type="checkbox"] + span::before { border-radius: 3px; }
.puce-choix input:checked + span { border-color: var(--nuit); background: var(--nuit); color: #fff; }
.puce-choix input:checked + span::before { background: var(--lampe); border-color: var(--lampe); }
.puce-choix input:focus-visible + span { outline: 3px solid var(--nuit-3); outline-offset: 2px; }
.possede-groupe + .possede-groupe { margin-top: 0.25rem; }

.resultat-kit { margin-top: 2.5rem; }
.bilan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1.75rem; }
.bilan-case { background: var(--nuit); color: #f6ecd4; border-radius: 16px; padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.bilan-case .gros { font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.05; color: var(--lampe); }
.bilan-case span:last-child { font-size: var(--t-0); color: #e2d6b8; }
.plans { display: grid; gap: 1.25rem; }
.plan { border: 2px solid var(--trait); border-radius: var(--r-outil); padding: 1.25rem 1.25rem 0.5rem; }
.plan h3 { margin-top: 0; }
.plans.sac-d-abord #plan-sac { order: -1; border-color: var(--nuit); }
.lignes { list-style: none; padding: 0; margin: 0 0 1rem; }
.lignes li { display: flex; gap: 0.7rem; padding: 0.65rem 0; border-top: 1px solid var(--trait); }
.marque-etat { width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none; margin-top: 0.2rem; border: 2px solid var(--alerte); }
.l-possede .marque-etat { background: var(--ok); border-color: var(--ok); }
.l-perso .marque-etat { border: 2px dashed var(--gris); }
.l-corps { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.l-titre { font-weight: 700; }
.l-possede .l-titre { text-decoration: line-through; text-decoration-color: var(--gris); color: var(--gris); }
.l-statut { font-size: var(--t-0); font-weight: 700; color: var(--alerte); }
.l-possede .l-statut { color: var(--ok); }
.l-perso .l-statut { color: var(--gris); }
.qte { font-size: var(--t-0); font-weight: 700; color: var(--encre); }
.gratuit, .note { font-size: var(--t-0); color: var(--gris); }
.securite { font-size: var(--t-0); color: var(--alerte); font-weight: 700; }
.a-verifier { display: inline-block; font-size: 0.75rem; font-weight: 700; border: 1px dashed var(--gris); color: var(--gris); border-radius: 4px; padding: 0 0.35rem; width: fit-content; }
.conseils { padding-left: 1.2rem; }
.conseils li { margin-bottom: 0.5rem; }
.suite { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.porte-or { background: var(--nuit); color: #f6ecd4; display: flex; flex-direction: column; gap: 0.35rem; }
.porte-or strong { color: var(--lampe); font-size: var(--t-2); }
.porte-or:hover strong { text-decoration: underline; }
.porte-gris { background: var(--brume); display: flex; flex-direction: column; gap: 0.35rem; }
.porte-gris strong { font-size: var(--t-2); }
.encadre { border: 2px solid var(--nuit); border-radius: var(--r-outil); padding: 1rem 1.25rem; margin: 2rem 0 0; }

/* États communs : forme + texte, jamais la couleur seule */
.ec { display: inline-flex; padding: 0; background: none; border-radius: 0; margin: 0; align-items: center; gap: 0.4rem; font-weight: 800; font-size: var(--t-0); white-space: nowrap; color: var(--encre); }
.picto { width: 1rem; height: 1rem; border-radius: 50%; flex: none; position: relative; box-sizing: border-box; }
.ec-couvert .picto { background: var(--ok); }
.ec-partiel .picto { border: 2px solid var(--nuit-3); background: linear-gradient(90deg, var(--nuit-3) 50%, transparent 50%); }
.ec-absent .picto { border: 2.5px solid var(--alerte); }
.ec-inconnu .picto { border: 2px dashed var(--gris); }
.ec-inconnu .picto::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; color: var(--gris); }
.ec-na .picto { border-radius: 2px; height: 3px; background: var(--gris); }
.ec-info .picto { background: var(--lampe); border: 2px solid var(--nuit-3); border-radius: 3px; }
.legende-etats { list-style: none; padding: 1rem 1.25rem; margin: 1.5rem 0; display: grid; gap: 0.45rem 1.5rem; grid-template-columns: 1fr; background: var(--brume); border-radius: var(--r-outil); font-size: var(--t-0); color: var(--gris); }

.contexte { border-left: 6px solid var(--lampe); background: var(--lampe-doux); border-radius: 0 var(--r-outil) var(--r-outil) 0; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.contexte p { margin: 0 0 0.75rem; }

.cartes-kits { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.carte-kit { border: 2px solid var(--trait); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.carte-kit.choisie { border-color: var(--nuit); box-shadow: 0 0 0 2px var(--lampe) inset; }
.ck-tete { background: var(--nuit); color: #f6ecd4; padding: 1.1rem 1.25rem 1rem; }
.ck-marque { margin: 0 0 0.25rem; font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: 0.8125rem; color: var(--lampe); }
.ck-tete h3, .sc-tete h3 { margin: 0; font-size: var(--t-2); color: #fff; }
.ck-meta { margin: 0.35rem 0 0; font-size: var(--t-0); color: #e2d6b8; }
.ck-prix { padding: 1rem 1.25rem 0; display: flex; flex-direction: column; }
.prix-gros { font-family: "Archivo", sans-serif; font-stretch: 105%; font-weight: 800; font-size: var(--t-3); line-height: 1.1; }
.prix-statut { font-size: var(--t-0); color: var(--gris); }
.ck-couverture { padding: 0.9rem 1.25rem 0; }
.barre-etats { display: flex; gap: 3px; height: 0.8rem; border-radius: 4px; overflow: hidden; }
.seg { display: block; min-width: 6px; }
.seg-couvert { background: var(--ok); }
.seg-partiel { background: repeating-linear-gradient(45deg, var(--nuit-3) 0 4px, #c99a4a 4px 8px); }
.seg-absent { background: #fff; border: 2px solid var(--alerte); }
.seg-inconnu { background: repeating-linear-gradient(90deg, var(--gris) 0 3px, #fff 3px 6px); }
.ck-resume { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0.5rem 0 0; font-size: var(--t-0); }
.ck-cout { padding: 0.8rem 1.25rem 0; margin: 0; }
.ck-choix { margin: 0.9rem 1.25rem 0; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; cursor: pointer; width: fit-content; }
.ck-choix input { width: 1.25rem; height: 1.25rem; accent-color: var(--nuit); }
.ck-details { margin: 0.75rem 1.25rem 1.1rem; font-size: var(--t-0); }
.ck-details summary { cursor: pointer; font-weight: 700; color: var(--nuit-3); padding: 0.35rem 0; }
.ck-details h4 { font-size: var(--t-1); margin: 0.9rem 0 0.35rem; }
.ck-details ul { padding-left: 1.1rem; margin-bottom: 0.6rem; }
.limite { display: block; color: var(--gris); }

.barre-vues { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.matrice-cadre { margin-bottom: 1.5rem; }
.matrice { width: 100%; border-collapse: collapse; font-size: var(--t-0); }
.matrice thead th { position: sticky; top: 0; background: var(--nuit); color: #f6ecd4; text-align: left; padding: 0.75rem; vertical-align: bottom; font-size: var(--t-0); }
.matrice thead th:first-child { width: 26%; }
.matrice th[scope="row"] { text-align: left; font-weight: 700; padding: 0.7rem 0.75rem; vertical-align: top; }
.matrice td { padding: 0.7rem 0.75rem; vertical-align: top; border-left: 1px solid var(--trait); }
.matrice tbody tr { border-top: 1px solid var(--trait); }
.m-groupe th { background: var(--brume); font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 800; padding: 0.55rem 0.75rem; text-align: left; }
.m-besoin { display: block; }
.m-tag { display: inline-block; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 800; background: var(--ok-fond); color: var(--ok); border-radius: 4px; padding: 0 0.4rem; }
.m-possede th, .m-possede td { background: #f8faf7; }
.m-secu { display: block; font-weight: 700; color: var(--alerte); margin-top: 0.25rem; font-size: 0.8125rem; }
.m-precision { display: block; margin-top: 0.2rem; color: var(--encre); }
.m-detail { display: block; margin-top: 0.2rem; color: var(--gris); font-size: 0.8125rem; }
.vide { padding: 1.25rem; background: var(--brume); border-radius: var(--r-outil); }
.couts h3 { margin-top: 0; }
.couts-grille { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.cout-carte { border: 2px solid var(--nuit); border-radius: var(--r-outil); padding: 1rem 1.15rem; }
.cout-nom { font-weight: 800; margin: 0 0 0.25rem; }
.cout-total { font-family: "Archivo", sans-serif; font-stretch: 105%; font-weight: 800; font-size: var(--t-3); margin: 0 0 0.25rem; line-height: 1.1; }
.cout-carte ul { font-size: var(--t-0); padding-left: 1.1rem; margin-bottom: 0.4rem; }

.gabarit { margin-top: 2.5rem; }
.station-carte { border: 2px solid var(--nuit); border-radius: 20px; overflow: hidden; max-width: 46rem; }
.sc-tete { background: var(--nuit); color: #f6ecd4; padding: 1.1rem 1.25rem 1rem; }
.sc-choix { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: var(--t-0); padding: 1rem 1.25rem 0; }
.sc-choix select { max-width: 100%; }
.sc-lignes { list-style: none; padding: 0 1.25rem; margin: 0.75rem 0; }
.sc-lignes li { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.7rem 0; border-top: 1px solid var(--trait); }
.sc-label { font-weight: 700; }
.station-carte > .discret { padding: 0 1.25rem 1rem; margin: 0; }

@media (min-width: 40rem) {
  .bilan { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .legende-etats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite { grid-template-columns: 1fr 1fr; }
  .cartes-kits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-lignes li { grid-template-columns: 11rem auto 1fr; align-items: baseline; gap: 0.75rem; }
}
@media (min-width: 64rem) {
  .plans { grid-template-columns: 1fr 1fr; }
  .cartes-kits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .couts-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legende-etats { grid-template-columns: repeat(5, auto); }
}
/* Mobile : la matrice devient une pile de besoins, chaque solution sur sa ligne */
@media (max-width: 47.99rem) {
  .matrice thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrice, .matrice tbody, .matrice tr, .matrice th, .matrice td { display: block; width: 100%; }
  .matrice tbody tr { border: 1px solid var(--trait); border-radius: 12px; margin-bottom: 0.6rem; overflow: hidden; }
  .matrice tr.m-groupe { border: 0; margin: 1.25rem 0 0.4rem; }
  .m-groupe th { background: none; padding: 0; font-size: var(--t-1); }
  .matrice th[scope="row"] { background: var(--brume); }
  .matrice td { border-left: 0; border-top: 1px solid var(--trait); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; }
  .matrice td::before { content: attr(data-kit); font-weight: 700; color: var(--gris); grid-column: 1; }
  .matrice td .ec { grid-column: 2; grid-row: 1; justify-self: end; }
  .matrice td .m-precision, .matrice td .m-detail { grid-column: 1 / -1; }
}
@media print {
  .entete, .preversion, .demo, .config, .suite, .actions, .encadre, .fil, .pied, .sources-liste { display: none !important; }
  .plans { grid-template-columns: 1fr 1fr; }
}

/* ===== V1 : menu mobile, entrées, actions, plan, budget (27/11) ===== */
.preversion { font-size: 0.75rem; padding: 0.2rem 0; font-weight: 700; }
.menu-bouton { display: none; font: inherit; font-weight: 800; color: #fff; background: transparent; border: 2px solid #dfe6f1; border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer; }
.menu-bouton:focus-visible { outline: 3px solid var(--lampe); outline-offset: 2px; }
@media (max-width: 47.99rem) {
  .js .menu-bouton { display: inline-block; }
  .js .nav { display: none; width: 100%; padding-bottom: 0.75rem; }
  .js .nav.ouverte { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a { padding: 0.6rem 0; display: block; }
  .entete .cadre { min-height: 3.25rem; }
  .fil { display: none; }
  h1 { font-size: clamp(1.6rem, 1.2rem + 2.5vw, 2.4rem); }
}
.entrees { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.entrees a { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; background: rgba(255,255,255,0.06); border: 2px solid rgba(244,183,49,0.5); border-radius: 14px; padding: 0.8rem 1rem; color: #f6ecd4; }
.entrees a:hover, .entrees a:focus-visible { border-color: var(--lampe); background: rgba(255,255,255,0.1); }
.entrees strong { color: var(--lampe); font-size: var(--t-2); }
.entrees span { font-size: var(--t-0); color: #e2d6b8; }
.reprendre { margin: 0.9rem 0 0; }
.reprendre a { color: #fff; font-weight: 800; }
.reprendre .discret { color: #cfc3a6; }

.aller-resultat { margin: -0.5rem 0 1rem; font-weight: 700; }
.case-option { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-top: 1rem; cursor: pointer; }
.case-option input, .case input { width: 1.2rem; height: 1.2rem; accent-color: var(--nuit); flex: none; }
.possede-ligne { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--trait); }
.possede-ligne .case { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; cursor: pointer; min-height: 2.25rem; }
.pl-titre { font-weight: 700; width: 100%; }
.pl-choix { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.pl-details { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: var(--t-0); }
.pl-details label { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.pl-details input { width: 5rem; }
.pl-option { font-size: var(--t-0); }

.actions-grille { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
.action-bloc { border: 2px solid var(--trait); border-radius: var(--r-outil); padding: 0.9rem 1.1rem 0.6rem; background: #fff; }
.action-bloc h3 { margin: 0 0 0.5rem; font-size: var(--t-1); display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.action-acheter { border-color: var(--nuit); }
.compte { font-family: "Archivo", sans-serif; font-weight: 800; font-size: var(--t-2); color: var(--nuit-3); }
.lignes-courtes { list-style: none; padding: 0; margin: 0; font-size: var(--t-0); }
.lignes-courtes li { display: flex; flex-direction: column; padding: 0.4rem 0; border-top: 1px solid var(--trait); }
.lignes-courtes li span { color: var(--gris); }
.facultatifs { grid-column: 1 / -1; margin: 0; }
.plans-details > summary, .legende-details > summary, .contexte > summary { cursor: pointer; font-weight: 800; padding: 0.35rem 0; }
.plans-details { margin: 0 0 1.25rem; }
.plans-details > summary { font-size: var(--t-2); }
.l-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; align-items: baseline; }
.lignes .ec { white-space: normal; }
.deja { font-size: var(--t-0); color: var(--ok); font-weight: 700; }
.origine { display: inline-block; width: fit-content; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--trait); border-radius: 4px; padding: 0 0.35rem; color: var(--gris); }
.source-mini { font-size: 0.8125rem; color: var(--gris); }
.contexte summary { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.contexte summary::-webkit-details-marker { display: none; }
.contexte .contexte-champs { margin-top: 0.75rem; }
.lien-faux { color: var(--nuit-3); text-decoration: underline; font-weight: 700; }
.barre-vues { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin: 1rem 0 1.25rem; }
.ck-points { margin: 0.75rem 1.25rem 0; font-size: var(--t-0); }
.ck-points dt { font-weight: 800; margin-top: 0.5rem; }
.ck-points dd { margin: 0.1rem 0 0; }
.badge-alerte { display: inline-block; margin-top: 0.4rem; width: fit-content; font-size: var(--t-0); font-weight: 800; border: 2px solid var(--alerte); color: var(--alerte); border-radius: 6px; padding: 0.1rem 0.5rem; }
.plafond { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 700; margin: 0.5rem 0 1rem; }
.plafond input { width: 7rem; }
.cout-libelle { margin: 0; font-weight: 700; color: var(--gris); font-size: var(--t-0); }
.cout-detail, .cout-detail ul { font-size: var(--t-0); padding-left: 1.1rem; }
.cout-detail .sous { margin: 0.2rem 0 0.5rem; }
.cout-sous { font-size: var(--t-0); margin: 0.4rem 0; }
.arbitrage { border-left: 4px solid var(--lampe); padding: 0.4rem 0.75rem; background: var(--lampe-doux); font-size: var(--t-0); margin: 0.6rem 0 0; }
.plan-zone { margin-top: 2rem; }
.h3 { font-size: var(--t-2); margin-top: 0; }
.h4 { font-size: var(--t-1); margin: 1rem 0 0.25rem; }
.vide-plan { background: var(--brume); border-radius: var(--r-outil); padding: 1.25rem; margin: 1rem 0 2rem; }
.bouton-fichier { position: relative; overflow: hidden; cursor: pointer; }
.bouton-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bouton-fichier:focus-within { outline: 3px solid var(--nuit-3); outline-offset: 2px; }
.bouton-danger { background: #fff; color: var(--alerte); border: 2px solid var(--alerte); }
.conserver .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.limites ul { font-size: var(--t-0); padding-left: 1.1rem; }
@media (min-width: 40rem) { .actions-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .entrees { grid-template-columns: 1fr; } }
@media (min-width: 64rem) { .actions-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media print {
  .menu-bouton, .plafond, .conserver .actions, .aller-resultat, .choix, .barre-vues, #plan-vide, .contexte summary .lien-faux { display: none !important; }
  .plan-page .contexte, details { display: block; }
  details > * { display: block !important; }
  .actions-grille { grid-template-columns: 1fr 1fr; }
  .bilan-case { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .bilan-case .gros { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75rem; word-break: break-all; }
}

/* ===== V1.1 : pictogrammes, matrice signature, cartes compactes, actions cochables ===== */
.ico { width: 1.5rem; height: 1.5rem; flex: none; color: var(--nuit-3); }
.ico-grand { width: 2.75rem; height: 2.75rem; color: var(--nuit); }
.lignes li > .ico, .lignes-courtes li > .ico { margin-top: 0.1rem; }
.lignes-courtes li { flex-direction: row; gap: 0.6rem; align-items: flex-start; }
.lignes-courtes li > span { display: flex; flex-direction: column; }
.lignes-courtes li > span > span { color: var(--gris); }

/* Cartes : défilement horizontal sur mobile, grille sur grand écran */
.sols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16.5rem, 84%); gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0.1rem 0.9rem; margin-bottom: 1rem; }
.sol { scroll-snap-align: start; border: 2px solid var(--trait); border-radius: 18px; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.sol-tete { background: var(--nuit); color: #f6ecd4; padding: 0.9rem 1rem 0.8rem; }
.sol-tete h3 { margin: 0; font-size: var(--t-2); color: #fff; }
.sol-pour { margin: 0.3rem 0 0; font-size: 0.8125rem; color: #e2d6b8; line-height: 1.35; }
.sol-corps { padding: 0.85rem 1rem 0.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.sol-lib { margin: 0; font-size: 0.8125rem; font-weight: 700; color: var(--gris); }
.sol-total { margin: 0; font-family: "Archivo", sans-serif; font-stretch: 105%; font-weight: 800; font-size: var(--t-4); line-height: 1; }
.sol-prixkit { font-size: 0.8125rem; color: var(--gris); }
.decomp { display: flex; height: 0.9rem; border-radius: 5px; overflow: hidden; gap: 2px; margin-top: 0.35rem; background: var(--brume); }
.decomp span { display: block; min-width: 4px; }
.d-kit { background: var(--nuit); }
.d-comp { background: var(--lampe); }
.d-vide { background: var(--brume); }
.d-nc { flex: 0 0 1.4rem; background: repeating-linear-gradient(45deg, var(--gris) 0 2px, #fff 2px 5px); }
.decomp-leg { list-style: none; padding: 0; margin: 0.2rem 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.15rem 0.8rem; font-size: 0.8125rem; }
.decomp-leg li { display: flex; align-items: center; gap: 0.35rem; }
.sw { width: 0.75rem; height: 0.75rem; border-radius: 2px; display: inline-block; flex: none; }
.sw-kit { background: var(--nuit); } .sw-comp { background: var(--lampe); }
.sw-nc { background: repeating-linear-gradient(45deg, var(--gris) 0 2px, #fff 2px 5px); border: 1px solid var(--gris); }
.sw-av { border: 2px dashed var(--gris); } .sw-kit-vide { border: 2px solid var(--trait); }
.cov-leg { margin: 0.3rem 0 0; font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; align-items: center; }
.cov-leg .ec { font-size: 0.8125rem; }
.alertes { list-style: none; padding: 0; margin: 0.35rem 0 0; display: grid; gap: 0.35rem; }
.alertes li { font-size: 0.8125rem; font-weight: 700; border-left: 4px solid var(--alerte); background: var(--alerte-fond); padding: 0.35rem 0.6rem; border-radius: 0 6px 6px 0; }
.sol .ck-details { margin: 0.4rem 0 0.6rem; }

/* Matrice signature */
.legende-ligne { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: var(--t-0); margin: 0 0 0.6rem; }
.sig { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-0); margin-bottom: 1.5rem; }
.sig thead th { position: sticky; top: 0; z-index: 1; background: var(--nuit); color: #f6ecd4; padding: 0.6rem 0.5rem; text-align: center; font-size: 0.8125rem; line-height: 1.2; }
.sig thead th:first-child { text-align: left; border-radius: 10px 0 0 0; }
.sig thead th:last-child { border-radius: 0 10px 0 0; }
.sig-groupe th { text-align: left; padding: 0.9rem 0.5rem 0.3rem; font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 800; font-size: 0.8125rem; color: var(--nuit-3); }
.sig-ligne th, .sig-ligne td { border-top: 1px solid var(--trait); }
.sig-ligne td { text-align: center; vertical-align: middle; width: 4.6rem; padding: 0.35rem 0.25rem; }
.sig-besoin { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 0.55rem; width: 100%; padding: 0.5rem 0.4rem; cursor: pointer; border-radius: 8px; }
.sig-besoin:hover { background: var(--brume); }
.sig-besoin:focus-visible { outline: 3px solid var(--nuit-3); outline-offset: -2px; }
.sig-besoin::after { content: "+"; margin-left: auto; font-weight: 800; color: var(--gris); }
.sig-besoin[aria-expanded="true"]::after { content: "−"; }
.sig-nom { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.sig-qte { font-weight: 400; color: var(--gris); font-size: 0.8125rem; }
.sig-cell { display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.sig-cell .picto { width: 1.35rem; height: 1.35rem; border-radius: 50%; position: relative; box-sizing: border-box; display: block; }
.sig-cell.ec-couvert .picto { background: var(--ok); }
.sig-cell.ec-partiel .picto { border: 2px solid var(--nuit-3); background: linear-gradient(90deg, var(--nuit-3) 50%, transparent 50%); }
.sig-cell.ec-absent .picto { border: 3px solid var(--alerte); }
.sig-cell.ec-inconnu .picto { border: 2px dashed var(--gris); }
.sig-cell.ec-inconnu .picto::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: var(--gris); }
.sig-cell.ec-na .picto { border-radius: 2px; height: 3px; width: 1rem; background: var(--gris); margin: 0.55rem 0; }
.sig-mini { font-size: 0.75rem; font-weight: 700; color: var(--encre); min-height: 0.9rem; }
.sig-option .sig-nom { color: var(--gris); }
.sig-det td { background: var(--brume); padding: 0.6rem 0.75rem; border-radius: 0 0 10px 10px; }
.sig-det ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.sig-det li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: baseline; }
.sig-det .m-detail { flex-basis: 100%; }

/* Achats restants : échelle réutiliser / économique / robuste */
.couts-v2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.cout-bloc { border: 2px solid var(--trait); border-radius: 16px; padding: 1rem 1.1rem; background: #fff; }
.cout-bloc header { border-bottom: 1px solid var(--trait); padding-bottom: 0.6rem; margin-bottom: 0.4rem; }
.achats { list-style: none; padding: 0; margin: 0; }
.ach { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-top: 1px solid var(--trait); }
.ach:first-child { border-top: 0; }
.ach-corps { flex: 1; min-width: 0; }
.ach-tete { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0; }
.ach-prix { font-weight: 800; white-space: nowrap; }
.ach-qte { margin: 0.15rem 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--nuit-3); }
.ach-offre { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--gris); }
.ach-pourquoi summary { cursor: pointer; font-size: 0.8125rem; font-weight: 700; color: var(--nuit-3); padding: 0.3rem 0; }
.echelle { list-style: none; padding: 0; margin: 0.2rem 0 0; display: grid; gap: 0.5rem; font-size: 0.8125rem; }
.echelle li { display: flex; gap: 0.5rem; }
.echelle li > span:last-child { display: flex; flex-direction: column; gap: 0.15rem; }
.ech-n { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--nuit); color: var(--lampe); font-weight: 800; display: grid; place-items: center; font-size: 0.75rem; }
.pourquoi { color: var(--gris); }
.lien-bouton { font: inherit; font-weight: 700; color: var(--nuit-3); background: none; border: 0; padding: 0.2rem 0; text-decoration: underline; cursor: pointer; width: fit-content; }
.lien-bouton:focus-visible { outline: 3px solid var(--nuit-3); outline-offset: 2px; }

/* Première action et actions cochables */
.premiere { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; background: var(--lampe-doux); border: 2px solid var(--lampe); border-radius: 16px; padding: 0.9rem 1.1rem; margin: 0.25rem 0 1rem; }
.premiere > div { flex: 1; min-width: 12rem; }
.premiere p { margin: 0; }
.premiere-lib { font-size: 0.8125rem; font-weight: 800; color: var(--nuit-3); }
.premiere-titre { font-weight: 800; font-size: var(--t-2); line-height: 1.2; }
.premiere-texte { font-size: var(--t-0); color: var(--gris); }
.progres { font-weight: 800; font-size: var(--t-0); flex-basis: 100%; }
.acts { list-style: none; padding: 0; margin: 0; }
.act { border-top: 1px solid var(--trait); }
.act label { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.6rem 0.1rem; cursor: pointer; position: relative; }
.act input { position: absolute; opacity: 0; width: 1.6rem; height: 1.6rem; margin: 0; }
.act-case { flex: none; width: 1.6rem; height: 1.6rem; border: 2px solid var(--nuit); border-radius: 6px; display: grid; place-items: center; background: #fff; }
.act-case .ico { width: 1.1rem; height: 1.1rem; color: #fff; visibility: hidden; }
.act input:checked + .act-case { background: var(--ok); border-color: var(--ok); }
.act input:checked + .act-case .ico { visibility: visible; }
.act input:focus-visible + .act-case { outline: 3px solid var(--nuit-3); outline-offset: 2px; }
.act-corps { display: flex; flex-direction: column; font-size: var(--t-0); min-width: 0; }
.act-texte { color: var(--gris); }
.act-qte { font-weight: 700; color: var(--nuit-3); }
.act-fait .act-corps strong { text-decoration: line-through; color: var(--gris); }
.message-statut { font-weight: 700; color: var(--ok); min-height: 1.4em; margin: 0.5rem 0; }

@media (min-width: 48rem) { .couts-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .sols { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .couts-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sig-ligne td { width: 9rem; }
}
@media print { .sols { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; } .act-case { border-color: #000; } .premiere { background: #fff; } }
.sig { table-layout: fixed; }
.sig thead th:not(:first-child) { width: 4.6rem; }
.sig-nom { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 30rem) {
  .sig thead th:not(:first-child), .sig-ligne td { width: 3.6rem; }
  .sig thead th { font-size: 0.75rem; padding: 0.5rem 0.25rem; }
  .sig-besoin { gap: 0.4rem; padding: 0.45rem 0.2rem; }
  .sig-besoin .ico { width: 1.2rem; height: 1.2rem; }
}
@media (min-width: 64rem) { .sig thead th:not(:first-child) { width: 9rem; } }
.alertes { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.alertes li { border: 2px solid var(--alerte); background: #fff; color: var(--alerte); border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.75rem; }
.alertes-long { padding-left: 1.1rem; color: var(--alerte); font-weight: 700; }
@media (max-width: 47.99rem) {
  .choix-defile { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; }
  .choix-defile .puce-choix span { white-space: nowrap; }
  .barre-vues .choix { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; }
  .barre-vues .puce-choix span { white-space: nowrap; }
  .chapo { font-size: var(--t-1); }
}
.decomp-titre { margin: 0.5rem 0 0; font-size: 0.75rem; font-weight: 800; color: var(--gris); }
.inconnus-cout { margin: 0; font-size: 0.8125rem; border: 2px dashed var(--trait); border-radius: 8px; padding: 0.3rem 0.55rem; }
.apres-achats { margin: 0.2rem 0 0; font-size: 0.8125rem; }
.sol-photo { margin: 0; } .sol-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; } .sol-photo figcaption { font-size: 0.75rem; color: var(--gris); padding: 0 1rem; }
.sig-besoin, .sig-det td { scroll-margin-top: 4.5rem; scroll-margin-bottom: 1rem; }
.act-partiel { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; padding: 0 0 0.6rem 2.2rem; font-size: 0.8125rem; }
.act-partiel label { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.act-partiel input { width: 4.5rem; }
/* Parcours de test */
.test-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--nuit); color: #f6ecd4; border-top: 4px solid var(--lampe); padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; font-size: var(--t-0); }
.test-barre p { margin: 0; flex: 1 1 18rem; }
.test-barre-actions { display: flex; gap: 0.5rem; }
.test-barre .bouton { padding: 0.45rem 0.9rem; }
.test-barre .bouton-contour { color: #fff; border-color: #fff; background: transparent; }
body.avec-test-barre { padding-bottom: 9rem; }
.test-regles { font-size: var(--t-1); max-width: 40rem; }
.test-form { display: grid; gap: 1.1rem; max-width: 40rem; }
.test-texte { display: grid; gap: 0.35rem; font-weight: 700; }
.test-texte textarea { font: inherit; font-weight: 400; padding: 0.6rem; border: 2px solid var(--trait); border-radius: 10px; }
.test-echelle { border: 0; padding: 0; margin: 0; }
.test-echelle legend { font-weight: 700; margin-bottom: 0.4rem; }
.echelle-choix { display: flex; gap: 0.5rem; }
.echelle-choix label { position: relative; }
.echelle-choix input { position: absolute; opacity: 0; inset: 0; }
.echelle-choix span { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--nuit); border-radius: 10px; font-weight: 800; cursor: pointer; }
.echelle-choix input:checked + span { background: var(--nuit); color: var(--lampe); }
.echelle-choix input:focus-visible + span { outline: 3px solid var(--nuit-3); outline-offset: 2px; }
.test-apercu { white-space: pre-wrap; font-size: 0.75rem; max-height: 20rem; overflow: auto; background: var(--brume); padding: 0.75rem; border-radius: 8px; }
.test-table { border-collapse: collapse; width: 100%; font-size: var(--t-0); }
.test-table th, .test-table td { border-top: 1px solid var(--trait); padding: 0.4rem; text-align: left; vertical-align: top; }
.sols-nav { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0 0 0.5rem; }
.sn-btn { font: inherit; font-weight: 800; font-size: 0.8125rem; white-space: nowrap; border: 2px solid var(--nuit); background: #fff; color: var(--nuit); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.sn-btn[aria-pressed="true"] { background: var(--nuit); color: var(--lampe); }
.sn-btn:focus-visible { outline: 3px solid var(--nuit-3); outline-offset: 2px; }
@media (min-width: 64rem) { .sols-nav { display: none; } }
.test-barre .bouton-nuit { background: var(--lampe); color: var(--nuit); border-color: var(--lampe); }
.sols-nav { align-items: center; background: var(--brume); border-radius: 12px; padding: 0.3rem; }
.sn-lib { font-size: 0.75rem; font-weight: 800; color: var(--gris); padding: 0 0.3rem; white-space: nowrap; }
.sn-btn { border: 0; background: transparent; border-radius: 9px; }
.sn-btn[aria-pressed="true"] { background: #fff; color: var(--nuit); box-shadow: 0 0 0 2px var(--nuit); }
/* V1.2 correctif : entrées de l'accueil lisibles sur l'ouverture dorée */
.nuit .entrees a { background: #16120a; border-color: #16120a; color: #f6ecd4; position: relative; }
.nuit .entrees a:hover { background: #2a241a; border-color: #2a241a; }
.nuit .entrees a:focus-visible { outline: 3px solid #16120a; outline-offset: 3px; }
.nuit .entrees strong { color: #f4b731; }
.nuit .entrees span { color: #e9dfc6; }
.nuit .reprendre a { color: #16120a; }
.nuit .reprendre .discret { color: #2b2112; }
