/* Mise en page : bandeau fixe en haut, une table de lecture large, citations en serif comme dans un recueil */
:root {
  --papier: #f4f5f7;
  --surface: #ffffff;
  --encre: #1b2130;
  --encre-douce: #5a6275;
  --filet: #d9dce4;
  --accent: #3346c8;
  --accent-doux: #e7eafb;
  --g1: #12808a;
  --g2: #b0582a;
  --g3: #7a4fc2;
  --g4: #5b6b2a;
  --pour: #1f7a52;
  --contre: #b4372f;
  --partage: #8a6d12;
  --f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ref: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --rayon: 12px;
  --ombre: 0 1px 2px color-mix(in srgb, var(--encre) 6%, transparent), 0 4px 16px color-mix(in srgb, var(--encre) 6%, transparent);
  --haut-bandeau: 112px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #12151c; --surface: #1a1f29; --encre: #e7e9ef; --encre-douce: #9ba3b6;
    --filet: #2c3342; --accent: #8c9bff; --accent-doux: #252c4a;
    --g1: #4fc4cc; --g2: #f0985f; --g3: #b896f5; --g4: #b6c76a; --pour: #5cc196; --contre: #f08a80; --partage: #d9b75a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #12151c; --surface: #1a1f29; --encre: #e7e9ef; --encre-douce: #9ba3b6;
  --filet: #2c3342; --accent: #8c9bff; --accent-doux: #252c4a;
  --g1: #4fc4cc; --g2: #f0985f; --g3: #b896f5; --g4: #b6c76a; --pour: #5cc196; --contre: #f08a80; --partage: #d9b75a; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--papier); color: var(--encre); font-family: var(--f-texte); font-size: 17px; line-height: 1.5; }
.page > * { min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 24px 64px; display: grid; gap: 20px; }
body { margin: 0; }
html { scroll-padding-top: calc(var(--haut-bandeau) + 12px); }
.avert { font-family: var(--f-ref); font-size: 12.5px; letter-spacing: .02em; color: var(--encre-douce); border: 1px dashed var(--filet); padding: 8px 12px; border-radius: 6px; }
.avert strong { color: var(--contre); font-weight: 500; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h2 { font-family: var(--f-titre); font-weight: 700; font-size: 22px; margin: 0; text-wrap: balance; }
.aide { color: var(--encre-douce); margin: 0; max-width: 70ch; font-size: 16px; }
.reglages { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-family: var(--f-titre); font-size: 14px; }
.reglages fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reglages legend { float: left; margin-right: 8px; color: var(--encre-douce); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; }
.puce { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--filet); background: var(--surface); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-family: var(--f-titre); font-size: 13.5px; color: var(--encre); }
.puce input { accent-color: var(--accent); margin: 0; }
.puce[data-actif="true"] { background: var(--accent-doux); border-color: var(--accent); }
.sigle { font-family: var(--f-ref); font-size: 11.5px; font-weight: 500; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; letter-spacing: .04em; }
.table-defile { overflow-x: auto; border: 1px solid var(--filet); border-radius: 8px; background: var(--surface); }
table.matrice { border-collapse: collapse; width: 100%; min-width: 640px; }
.matrice th, .matrice td { border-bottom: 1px solid var(--filet); border-right: 1px solid var(--filet); vertical-align: top; padding: 12px; text-align: left; }
.matrice th:last-child, .matrice td:last-child { border-right: 0; }
.matrice thead th { font-family: var(--f-titre); font-weight: 700; font-size: 15px; background: var(--papier); position: sticky; top: 0; }
.matrice tbody th { font-family: var(--f-titre); font-weight: 500; font-size: 15px; width: 150px; background: var(--papier); }
.matrice tr:last-child td, .matrice tr:last-child th { border-bottom: 0; }
.cellule { display: grid; gap: 12px; }
.intitule { font-family: var(--f-titre); font-size: 14px; font-weight: 600; margin: 0; }
.plus { font-family: var(--f-titre); font-size: 13px; background: none; border: 1px solid var(--filet); border-radius: 6px; padding: 4px 8px; color: var(--accent); cursor: pointer; justify-self: start; }
.compte-cellule { font-family: var(--f-ref); font-size: 11.5px; color: var(--encre-douce); }
.lecture { font-family: var(--f-ref); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-douce); }
.reglages input[type="search"], .reglages select { font: inherit; font-family: var(--f-titre); font-size: 14px; color: var(--encre); background: var(--surface); border: 1px solid var(--filet); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
.vide { color: var(--encre-douce); font-style: italic; font-size: 15px; }
blockquote.prop { margin: 0; display: grid; gap: 5px; }
blockquote.prop p { margin: 0; font-size: 16px; }
blockquote.prop p:not(.intitule)::before { content: "« "; color: var(--encre-douce); }
blockquote.prop p:not(.intitule)::after { content: " »"; color: var(--encre-douce); }
.ref { font-family: var(--f-ref); font-size: 11.5px; color: var(--encre-douce); }
.mots { display: flex; flex-wrap: wrap; gap: 4px; }
.mot { font-family: var(--f-titre); font-size: 12px; color: var(--accent); background: var(--accent-doux); border: 0; border-radius: 4px; padding: 1px 7px; cursor: pointer; }
.mot[data-actif="true"] { background: var(--accent); color: var(--surface); }
mark { background: var(--accent-doux); color: inherit; border-radius: 2px; padding: 0 2px; }
.lex { display: grid; grid-template-columns: minmax(170px, 220px) 1fr; gap: 20px; }
.lex-liste { display: flex; flex-direction: column; gap: 2px; }
.lex-liste button { text-align: left; font-family: var(--f-titre); font-size: 15px; background: none; border: 0; border-left: 3px solid transparent; padding: 7px 10px; color: var(--encre); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.lex-liste button[aria-pressed="true"] { border-left-color: var(--accent); background: var(--surface); }
.lex-liste.longue { max-height: 75vh; overflow-y: auto; padding-right: 4px; }
.lex-liste button .sous { display: block; font-family: var(--f-ref); font-size: 11px; color: var(--encre-douce); }
.reglages fieldset { min-width: 0; max-width: 100%; }
.vue > * { min-width: 0; max-width: 100%; }
.reglages > * { min-width: 0; max-width: 100%; }
.reglages select, .reglages input[type="search"] { max-width: min(100%, 300px); }
.reglages select { text-overflow: ellipsis; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.etiquette { font-family: var(--f-ref); font-size: 11px; letter-spacing: .03em; border: 1px solid var(--filet); border-radius: 999px; padding: 1px 8px; color: var(--encre-douce); }
.fiche-notion { display: grid; gap: 12px; min-width: 0; }
.fiche-notion h2 { margin: 0; }
.fiche-notion .def { font-style: normal; }
.reperes { margin: 0; padding-left: 18px; font-size: 14px; }
.non-aborde { color: var(--encre-douce); font-style: italic; margin: 0; }
.glossaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.usage-partis { display: flex; flex-wrap: wrap; gap: 4px; }
.usage-partis span { font-family: var(--f-ref); font-size: 11.5px; border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.usage-partis span.zero { color: var(--encre-douce); opacity: .55; }
.ligne-emploi { font-size: 13.5px; margin: 6px 0; }
.lex-liste .n { font-family: var(--f-ref); font-size: 12px; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.lex-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; min-width: 0; }
.carte { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.carte h3 { font-family: var(--f-titre); font-size: 16px; margin: 0; display: flex; gap: 8px; align-items: center; }
.def { font-style: italic; margin: 0; }
.jauge { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-family: var(--f-ref); font-size: 12px; color: var(--encre-douce); }
.jauge span.barre { height: 6px; border-radius: 3px; background: var(--filet); overflow: hidden; }
.jauge span.barre i { display: block; height: 100%; background: var(--accent); }
.scene { background: var(--surface); border: 1px solid var(--filet); border-radius: 10px; padding: clamp(18px, 4vw, 36px); display: grid; gap: 18px; max-width: 780px; }
.scene .citation { font-size: clamp(21px, 3vw, 27px); line-height: 1.35; margin: 0; text-wrap: pretty; }
.compteur { font-family: var(--f-ref); font-size: 12px; color: var(--encre-douce); letter-spacing: .04em; text-transform: uppercase; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font-family: var(--f-titre); font-weight: 500; font-size: 15px; border-radius: 6px; border: 1px solid var(--filet); background: var(--papier); color: var(--encre); padding: 9px 16px; cursor: pointer; }
.btn:hover { border-color: var(--encre-douce); }
.btn.pour { border-color: var(--pour); color: var(--pour); }
.btn.contre { border-color: var(--contre); color: var(--contre); }
.btn.partage { border-color: var(--partage); color: var(--partage); }
.btn.principal { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.juste { background: var(--pour); border-color: var(--pour); color: var(--surface); }
.btn.faux { background: var(--contre); border-color: var(--contre); color: var(--surface); }
.revelation { border-top: 1px solid var(--filet); padding-top: 14px; display: grid; gap: 8px; }
.revelation p { margin: 0; }
.bilan { display: grid; gap: 8px; max-width: 780px; }
.bilan-ligne { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 12px; align-items: center; font-family: var(--f-titre); font-size: 14px; }
.empile { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--filet); }
.empile i { display: block; height: 100%; }
.legende { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--f-ref); font-size: 12px; color: var(--encre-douce); }
.legende b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.methode { display: grid; gap: 14px; max-width: 70ch; }
.methode h3 { font-family: var(--f-titre); font-size: 17px; margin: 0; }
.methode p, .methode li { margin: 0; }
.methode ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
section.vue { display: grid; gap: 16px; }
.archive { font-family: var(--f-ref); font-size: 11px; color: var(--partage); border: 1px solid var(--partage); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.lien-partage { font-family: var(--f-titre); font-size: 12px; background: none; border: 0; color: var(--encre-douce); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
.lien-partage:hover { color: var(--accent); }
.recherche { display: flex; gap: 10px; align-items: center; font-family: var(--f-titre); }
.recherche input, textarea { font: inherit; font-family: var(--f-texte); font-size: 16px; color: var(--encre); background: var(--surface); border: 1px solid var(--filet); border-radius: 6px; padding: 7px 10px; width: min(360px, 70vw); }
textarea { width: 100%; resize: vertical; }
.contexte { display: grid; gap: 8px; }
.ligne-ctx { display: grid; grid-template-columns: minmax(70px, 90px) 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--filet); border-radius: 6px; padding: 10px 12px; font-size: 16px; }
.matrice.compte td { text-align: right; font-family: var(--f-ref); font-size: 13px; font-variant-numeric: tabular-nums; }
.matrice.compte td.mot-col { text-align: left; font-family: var(--f-titre); font-size: 14px; }
.matrice.compte td span.chaleur { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 3px; }
.matrice.compte button.mot { font-size: 13.5px; }
.partis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.etat { font-family: var(--f-ref); font-size: 11.5px; border-radius: 4px; padding: 1px 6px; }
.etat.publie { color: var(--pour); border: 1px solid var(--pour); }
.etat.partiel, .etat.attendu { color: var(--partage); border: 1px solid var(--partage); }
.docs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.docs li { border-left: 2px solid var(--filet); padding-left: 10px; display: grid; gap: 2px; font-size: 15.5px; }
.docs .justif { font-size: 14px; color: var(--encre-douce); font-style: italic; }
.mini-titre { font-family: var(--f-titre); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-douce); margin: 4px 0 0; }
.voile { position: fixed; inset: 0; background: color-mix(in srgb, var(--encre) 45%, transparent); display: grid; place-items: center; padding: 16px; z-index: 30; }
.panneau { background: var(--surface); border-radius: 10px; border: 1px solid var(--filet); width: min(640px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 20px; display: grid; gap: 12px; }
.panneau-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panneau fieldset { border: 0; padding: 0; margin: 0; }
.apercu { background: var(--papier); border-radius: 8px; padding: 12px; display: grid; place-items: center; }
.apercu img { max-height: 340px; width: auto; border-radius: 4px; box-shadow: 0 1px 6px color-mix(in srgb, var(--encre) 20%, transparent); }
a.btn { text-decoration: none; display: inline-block; }
.champ { font: inherit; font-family: var(--f-texte); font-size: 16px; color: var(--encre); background: var(--papier); border: 1px solid var(--filet); border-radius: 6px; padding: 8px 10px; width: 100%; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 14px; color: var(--encre-douce); align-items: start; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
form.carte .btn { justify-self: start; }
.carto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.nuage { margin: 0; background: var(--surface); border: 1px solid var(--filet); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.nuage svg { width: 100%; height: auto; }
.c-listes { display: grid; gap: 12px; min-width: 0; }
.c-liste { display: grid; gap: 10px; }
.c-item { background: var(--surface); border: 1px solid var(--filet); border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; font-size: 15.5px; }
.c-barres { display: flex; gap: 4px; align-items: center; }
.c-barres span { flex: 1; height: 6px; border-radius: 3px; background: var(--filet); overflow: hidden; }
.c-barres i { display: block; height: 100%; }
@media (max-width: 760px) { .carto { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .lex { grid-template-columns: 1fr; }
  .lex-liste { flex-direction: row; flex-wrap: wrap; }
  .lex-liste.longue { flex-direction: column; flex-wrap: nowrap; max-height: 40vh; }
  .lex-liste button { border-left: 0; border-bottom: 2px solid transparent; }
  .lex-liste button[aria-pressed="true"] { border-bottom-color: var(--accent); }
  .bilan-ligne { grid-template-columns: 1fr auto; }
  .bilan-ligne .empile { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .revelation { animation: apparait .25s ease-out; }
  @keyframes apparait { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Bandeau fixe : marque, devise, recherche, navigation */
.bandeau { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--papier) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--filet); }
.bandeau-int { max-width: 1180px; margin: 0 auto; padding: 10px 20px 0; display: grid; gap: 8px; }
.bandeau-haut { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marque { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--encre); min-width: 0; flex: 0 1 auto; }
.marque b { font-family: var(--f-titre); font-weight: 700; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.marque b em { font-family: var(--f-texte); font-style: italic; font-weight: 400; color: var(--accent); }
.devise { font-family: var(--f-texte); font-style: italic; color: var(--encre-douce); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bandeau-outils { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.retour { font-family: var(--f-titre); font-size: 14px; background: var(--surface); border: 1px solid var(--filet); border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--encre); }
.retour:hover { border-color: var(--accent); color: var(--accent); }
.recherche-globale { position: relative; }
.recherche-globale input { font: inherit; font-family: var(--f-titre); font-size: 14px; width: min(280px, 46vw); background: var(--surface); color: var(--encre); border: 1px solid var(--filet); border-radius: 999px; padding: 6px 14px; }
.resultats { position: absolute; right: 0; top: calc(100% + 6px); width: min(440px, 92vw); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 6px; display: grid; gap: 2px; z-index: 30; }
.resultats a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; color: var(--encre); text-decoration: none; font-family: var(--f-titre); font-size: 14.5px; }
.resultats a:hover, .resultats a:focus-visible, .resultats a[aria-selected="true"] { background: var(--accent-doux); outline: none; }
.resultats a small { font-family: var(--f-ref); font-size: 11px; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .05em; }
nav.onglets { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
nav.onglets::-webkit-scrollbar { display: none; }
nav.onglets a { font-family: var(--f-titre); font-weight: 500; font-size: 15px; color: var(--encre-douce); text-decoration: none; padding: 8px 12px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.onglets a:hover { color: var(--encre); }
nav.onglets a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--accent); }
.bandeau .avert { margin: 0 0 8px; padding: 4px 10px; font-size: 11.5px; }
@media (max-width: 720px) {
  .devise { display: none; }
  .recherche-globale input { width: 40vw; }
  .bandeau-int { padding-inline: 12px; }
  .page { padding-inline: 14px; }
}
a { color: var(--accent); }
.mot.inerte { cursor: default; background: none; border: 1px dashed var(--filet); color: var(--encre-douce); }

/* Accueil */
.heros { display: grid; gap: 14px; padding: clamp(20px, 4vw, 44px); border-radius: calc(var(--rayon) + 6px); background: radial-gradient(120% 140% at 0% 0%, var(--accent-doux), transparent 60%), var(--surface); border: 1px solid var(--filet); box-shadow: var(--ombre); }
.heros h1 { font-family: var(--f-titre); font-weight: 700; font-size: clamp(32px, 5.4vw, 54px); line-height: 1.02; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.heros h1 em { font-family: var(--f-texte); font-style: italic; font-weight: 400; color: var(--accent); }
.heros .chapo { font-size: clamp(17px, 2vw, 19px); max-width: 60ch; margin: 0; color: var(--encre-douce); }
.chiffres { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-ref); font-size: 12.5px; color: var(--encre-douce); }
.chiffres b { color: var(--encre); font-weight: 500; font-size: 15px; }
.encart-boussole { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--rayon); background: #12151c; color: #e7e9ef; text-decoration: none; border-top: 6px solid; border-image: linear-gradient(90deg, #4fc4cc 25%, #f0985f 25% 50%, #b896f5 50% 75%, #b6c76a 75%) 1; }
.encart-boussole strong { font-family: var(--f-titre); font-size: 24px; }
.encart-boussole .surtitre-boussole { font-family: var(--f-ref); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9ba3b6; }
.encart-boussole .lien-fleche { color: #8c9bff; font-family: var(--f-titre); font-weight: 600; }
.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.porte { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--filet); box-shadow: var(--ombre); color: var(--encre); text-decoration: none; transition: transform .15s, border-color .15s; }
.porte:hover { border-color: var(--accent); transform: translateY(-2px); }
.porte h3 { margin: 0; font-family: var(--f-titre); font-size: 19px; }
.porte p { margin: 0; color: var(--encre-douce); font-size: 15.5px; }
.porte .lien-fleche { font-family: var(--f-titre); font-size: 14px; color: var(--accent); }
.grille-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tuile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--filet); text-decoration: none; color: var(--encre); font-family: var(--f-titre); font-size: 15px; }
.tuile:hover { border-color: var(--accent); }
.tuile small { font-family: var(--f-ref); font-size: 11px; color: var(--encre-douce); }
.titre-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Vie privée : choix volontaire, rien n'est retenu sans accord */
.vie-privee { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; width: min(620px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--filet); border-radius: calc(var(--rayon) + 4px); box-shadow: 0 10px 40px color-mix(in srgb, var(--encre) 22%, transparent); padding: 18px 20px; display: grid; gap: 10px; }
.vie-privee h2 { font-size: 18px; }
.vie-privee p { margin: 0; font-size: 15px; }
.vie-privee .choix { margin-top: 4px; }
.pied { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--f-titre); font-size: 13.5px; color: var(--encre-douce); }
.pied a, .pied button { color: var(--encre-douce); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Fiche ouverte dans un panneau (proposition, résultats…) */
.panneau.large { width: min(820px, 100%); }
.actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }

/* Liste des concepts : des liens, pour que chaque fiche ait son adresse */
.lex-liste a { text-align: left; font-family: var(--f-titre); font-size: 15px; border-left: 3px solid transparent; padding: 7px 10px; color: var(--encre); text-decoration: none; display: flex; justify-content: space-between; gap: 8px; border-radius: 0 6px 6px 0; }
.lex-liste a:hover { background: var(--surface); }
.lex-liste a[aria-current] { border-left-color: var(--accent); background: var(--surface); }
.lex-liste a .sous { display: block; font-family: var(--f-ref); font-size: 11px; color: var(--encre-douce); }
a.mot { text-decoration: none; display: inline-block; }
a.etiquette { text-decoration: none; }

/* Matrice : en-têtes de lignes collés à gauche */
.matrice thead th { z-index: 2; }
.matrice tbody th { position: sticky; left: 0; z-index: 1; }
.matrice thead th:first-child { left: 0; z-index: 3; }
.matrice thead a, .matrice tbody th a { color: inherit; text-decoration: none; }
.matrice td { min-width: 260px; }
.defile-barre { display: flex; align-items: center; gap: 10px; }
.defile-barre .btn { padding: 4px 12px; }
.puces-defile { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.puces-defile .puce { white-space: nowrap; }
.carrousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 520px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; overscroll-behavior-x: contain; }
.carte-balayer { scroll-snap-align: start; max-height: 75vh; overflow-y: auto; }
.duel-tete { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-family: var(--f-titre); font-weight: 700; font-size: 18px; position: sticky; top: var(--haut-bandeau); background: var(--papier); padding: 8px 0; z-index: 2; }
.duel-tete .duel-b { text-align: right; }
.duel-ligne { display: grid; gap: 8px; }
.duel-ligne h3 { font-family: var(--f-titre); font-size: 16px; margin: 8px 0 0; }
.duel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duel-cols > div { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 12px; min-width: 0; }
.duel-cols .duel-a { border-top: 4px solid var(--g1); }
.duel-cols .duel-b { border-top: 4px solid var(--g2); }
@media (max-width: 640px) { .duel-cols { grid-template-columns: 1fr; } .duel-tete { font-size: 15px; } }

/* Jouer : sous-onglets des jeux */
.sous-onglets { display: flex; flex-wrap: wrap; gap: 6px; }
.sous-onglets a { font-family: var(--f-titre); font-size: 14px; text-decoration: none; color: var(--encre); background: var(--surface); border: 1px solid var(--filet); border-radius: 999px; padding: 6px 14px; }
.sous-onglets a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.jeu { display: grid; gap: 16px; }

/* Fiche d'une proposition, propositions débattues */
.fiche-prop { display: grid; gap: 10px; }
.citation-seule { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.4; margin: 0; }
ol.debattues { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 15px; }
ol.debattues a { color: var(--encre); }
.lex-liste.longue a { flex: 0 0 auto; }
@media (max-width: 720px) {
  #f-cand .nom-c { display: none; }
  #f-cand .puce { padding: 3px 8px; }
  .reglages { gap: 8px 14px; }
}
@media (max-width: 720px) {
  .marque b { font-size: 17px; }
  .marque b em { display: none; }
  .retour-mot, .avert-long { display: none; }
  .retour { padding: 5px 10px; }
  .recherche-globale input { width: 36vw; }
}
a.retour { text-decoration: none; white-space: nowrap; }
@media (max-width: 720px) { #compte-lien { font-size: 13px; padding: 5px 9px; } }
.a-propos .devise-grande { font-family: var(--f-texte); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: var(--accent); margin: 0; }
/* Matrice : zone d'affichage deux fois plus haute, flèches de défilement collées sous le bandeau */
/* Matrice : en-tête fixe (flèches, ascenseur, noms des partis) collé sous le bandeau ; le tableau
   lui-même ne défile qu'en largeur, la page défile en hauteur. */
.matrice-cadre { max-height: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.matrice-cadre::-webkit-scrollbar { display: none; }
.m-tete { position: sticky; top: var(--bandeau-reel, var(--haut-bandeau)); z-index: 6; background: var(--papier); padding-top: 6px; box-shadow: 0 6px 10px -8px rgba(0,0,0,.25); }
.m-tete .defile-barre { padding: 0 0 4px; }
.m-ascenseur { flex: 1; overflow-x: scroll; overflow-y: hidden; height: 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--filet); }
.m-ascenseur > div { height: 1px; }
.m-ascenseur::-webkit-scrollbar { height: 14px; -webkit-appearance: none; }
@supports (-moz-appearance: none) { .m-ascenseur { scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--filet)) var(--surface); } }
.m-ascenseur::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, var(--filet)); border-radius: 8px; border: 3px solid var(--surface); }
.m-ascenseur::-webkit-scrollbar-track { background: var(--surface); border-radius: 8px; }
.m-tete-tab { overflow: hidden; border: 1px solid var(--filet); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); }
.m-tete-tab table.matrice { min-width: 0; table-layout: fixed; }
.m-tete-tab .matrice thead th { position: static; }
.m-tete-tab .matrice thead th:first-child { position: sticky; left: 0; }
table.matrice.avec-tete-fixe thead tr { visibility: collapse; }
.matrice-cadre:has(.avec-tete-fixe) { border-top-left-radius: 0; border-top-right-radius: 0; }
