/* Jurifact — feuille de style principale */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
  --bleu: #14295e;
  --bleu-vif: #1f47a8;
  --bleu-fonce: #0c1a3f;
  --bleu-pale: #eaf0fb;
  --bordeaux: #a3233a;
  --bordeaux-pale: #fbecef;
  --texte: #1b1f29;
  --texte-doux: #4d5566;
  --fond: #ffffff;
  --fond-alt: #f3f5f9;
  --carte: #ffffff;
  --bordure: #dde2ec;
  --focus: #f0a400;
  --lien: #1f47a8;
  --ombre: 0 1px 2px rgba(15, 26, 63, .06), 0 4px 14px rgba(15, 26, 63, .06);
  --rayon: 10px;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --c-loi: #a3233a;       --c-loi-bg: #fbecef;
  --c-ordonnance: #6a3fa0; --c-ordonnance-bg: #f2ecfa;
  --c-decret: #1f47a8;    --c-decret-bg: #eaf0fb;
  --c-cc: #0c6b64;        --c-cc-bg: #e5f5f3;
  --c-arrete: #5a6275;    --c-arrete-bg: #eef0f4;
  --c-autre: #5a6275;     --c-autre-bg: #eef0f4;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --texte: #e6e9f0; --texte-doux: #a8b0c2; --fond: #0e1220; --fond-alt: #151a2b; --carte: #182034;
    --bordure: #2b3450; --lien: #9db8ff; --bleu-pale: #1b2747; --bordeaux-pale: #3a1820;
    --ombre: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    --c-loi: #ff9fb0; --c-loi-bg: #3a1820; --c-ordonnance: #cdb2ff; --c-ordonnance-bg: #2a1f42;
    --c-decret: #a9c0ff; --c-decret-bg: #1b2747; --c-cc: #7fe0d4; --c-cc-bg: #12332f;
    --c-arrete: #c4cad8; --c-arrete-bg: #262d40; --c-autre: #c4cad8; --c-autre-bg: #262d40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --texte: #e6e9f0; --texte-doux: #a8b0c2; --fond: #0e1220; --fond-alt: #151a2b; --carte: #182034;
  --bordure: #2b3450; --lien: #9db8ff; --bleu-pale: #1b2747; --bordeaux-pale: #3a1820;
  --ombre: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  --c-loi: #ff9fb0; --c-loi-bg: #3a1820; --c-ordonnance: #cdb2ff; --c-ordonnance-bg: #2a1f42;
  --c-decret: #a9c0ff; --c-decret-bg: #1b2747; --c-cc: #7fe0d4; --c-cc-bg: #12332f;
  --c-arrete: #c4cad8; --c-arrete-bg: #262d40; --c-autre: #c4cad8; --c-autre-bg: #262d40;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--lien); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--texte); font-weight: 650; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
code { font-size: .9em; background: var(--fond-alt); padding: .05em .35em; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--texte-doux); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--bleu); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 6px 6px; }
.skip-link:focus { top: 0; }

/* ---------- bandeau + en-tête ---------- */
.notice-bar { background: var(--fond-alt); border-bottom: 1px solid var(--bordure); font-size: .8rem; color: var(--texte-doux); padding: .35rem 0; }
.notice-bar a { color: inherit; }
.site-header { background: var(--fond); border-bottom: 1px solid var(--bordure); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--bleu); margin-right: auto; padding: .6rem 0; }
:root[data-theme="dark"] .brand { color: #2c4fa8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: #2c4fa8; } }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; color: var(--texte); letter-spacing: -.01em; }
.brand-tagline { font-size: .78rem; color: var(--texte-doux); margin-top: .2rem; }
.menu-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--bordure); border-radius: 8px; padding: .5rem .8rem; color: var(--texte); font: inherit; font-size: .9rem; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -6px; } .menu-icon::after { position: absolute; top: 6px; }
.main-nav { display: flex; align-items: center; gap: .5rem; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .55rem .8rem; color: var(--texte); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 6px; }
.main-nav a:hover { background: var(--fond-alt); }
.main-nav a[aria-current="page"] { color: var(--bleu-vif); box-shadow: inset 0 -3px 0 var(--bleu-vif); border-radius: 0; }
:root[data-theme="dark"] .main-nav a[aria-current="page"] { color: var(--lien); box-shadow: inset 0 -3px 0 var(--lien); }
.theme-toggle { background: none; border: 1px solid var(--bordure); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--texte-doux); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .main-nav.ouvert { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bleu-vif); }
  .theme-toggle { align-self: flex-start; margin-top: .5rem; }
}

/* ---------- héros ---------- */
.hero { background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu) 60%, #1d3a82 100%); color: #fff; padding: 3.2rem 0 2.6rem; position: relative; overflow: hidden; }
.hero::after { content: "§"; position: absolute; right: -2rem; top: -3.5rem; font-family: var(--serif); font-size: 22rem; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: #ffd1d9; margin: 0; }
.hero-lead { font-size: 1.1rem; max-width: 60ch; color: #dde5f7; margin: 0 0 1.6rem; }
.search-form { display: flex; gap: .5rem; max-width: 760px; flex-wrap: wrap; }
.search-form input, .search-form select { flex: 1 1 260px; min-width: 0; font: inherit; padding: .85rem 1rem; border-radius: 8px; border: 1px solid var(--bordure); background: var(--carte); color: var(--texte); }
.search-form select { flex: 0 1 200px; }
.hero .search-form input { border: 0; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.search-form button, .btn { font: inherit; font-weight: 600; background: var(--bordeaux); color: #fff; border: 0; border-radius: 8px; padding: .8rem 1.3rem; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.search-form button:hover, .btn:hover { filter: brightness(1.08); }
.btn-secondaire { background: transparent; color: var(--texte); border: 1px solid var(--bordure); }
.btn-block { display: block; width: 100%; margin-top: .6rem; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; padding: 0; margin: 1.6rem 0 0; color: #c9d4ee; font-size: .92rem; }
.hero-stats strong { color: #fff; font-size: 1.15rem; margin-right: .25rem; }

/* ---------- sections ---------- */
.section { padding: 2.4rem 0; }
.section-alt { background: var(--fond-alt); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--bordeaux); margin: 0 0 .3rem; }
:root[data-theme="dark"] .kicker { color: var(--c-loi); }
.btn-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.vide { color: var(--texte-doux); background: var(--fond-alt); border: 1px dashed var(--bordure); border-radius: var(--rayon); padding: 1rem 1.2rem; }
.colonnes { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .colonnes { grid-template-columns: 1fr 1fr; } }
.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: e; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.1rem 1.1rem 1.2rem; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700; margin-bottom: .6rem; }
.etapes strong { display: block; margin-bottom: .25rem; font-size: 1.02rem; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 4px; white-space: nowrap; vertical-align: middle; }
.badge-loi { color: var(--c-loi); background: var(--c-loi-bg); }
.badge-ordonnance { color: var(--c-ordonnance); background: var(--c-ordonnance-bg); }
.badge-decret { color: var(--c-decret); background: var(--c-decret-bg); }
.badge-cc { color: var(--c-cc); background: var(--c-cc-bg); }
.badge-arrete { color: var(--c-arrete); background: var(--c-arrete-bg); }
.badge-decision, .badge-autre { color: var(--c-autre); background: var(--c-autre-bg); }
.badge-majeure { color: #fff; background: var(--bordeaux); }
.tag { display: inline-block; font-size: .78rem; padding: .18rem .6rem; border-radius: 99px; border: 1px solid var(--bordure); color: var(--texte-doux); text-decoration: none; }
.tag:hover { border-color: var(--lien); color: var(--lien); }

/* ---------- cartes ---------- */
.grille-cartes { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grille-cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .grille-cartes { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.15rem 1.2rem 1.1rem; box-shadow: var(--ombre); display: flex; flex-direction: column; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.carte:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(15,26,63,.12); }
.carte-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .55rem; }
.carte-date { font-size: .8rem; color: var(--texte-doux); }
.carte-titre { font-size: 1.12rem; margin: 0 0 .5rem; }
.carte-titre a { color: var(--texte); text-decoration: none; }
.carte-titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte-titre a:hover { color: var(--lien); }
.carte-texte { margin: 0 0 .8rem; color: var(--texte-doux); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.carte-ref { margin: auto 0 0; font-size: .8rem; color: var(--texte-doux); border-top: 1px solid var(--bordure); padding-top: .6rem; }

/* ---------- listes ---------- */
.liste-lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bordure); }
.ligne { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--bordure); }
.ligne .badge { margin-top: .2rem; flex: none; width: 7.2rem; text-align: center; white-space: normal; line-height: 1.3; }
.ligne-corps { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ligne-titre { font-weight: 550; color: var(--texte); text-decoration: none; }
.ligne-titre:hover { color: var(--lien); text-decoration: underline; }
.ligne-ref { font-size: .85rem; color: var(--texte-doux); }
.ligne-ref.attente { color: var(--bordeaux); font-style: italic; }
.ext { color: var(--texte-doux); font-size: .85em; }
@media (max-width: 560px) { .ligne { flex-direction: column; gap: .35rem; } .ligne .badge { width: auto; } }

/* ---------- pages ---------- */
.page-header { padding: 2rem 0 .5rem; }
.page-header h1 { margin-top: 0; }
.breadcrumb { padding-top: 1.2rem; font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; color: var(--texte-doux); }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumb a { color: var(--texte-doux); }
.rubrique { margin-bottom: 2rem; }
.rubrique > h2 { border-bottom: 2px solid var(--bleu); padding-bottom: .4rem; }
.rubrique-emetteur { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--texte-doux); margin: 1.3rem 0 .4rem; }
.jo-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; font-size: .92rem; }
.liste-jo { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (min-width: 800px) { .liste-jo { grid-template-columns: repeat(2, 1fr); } }
.liste-jo a { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; background: var(--carte); border: 1px solid var(--bordure); border-radius: 8px; text-decoration: none; color: var(--texte); }
.liste-jo a:hover { border-color: var(--lien); }
.liste-jo-info { color: var(--texte-doux); font-size: .9rem; }
.grille-themes { list-style: none; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grille-themes a { display: flex; flex-direction: column; padding: 1rem 1.1rem; background: var(--carte); border: 1px solid var(--bordure); border-left: 4px solid var(--bleu-vif); border-radius: 8px; text-decoration: none; color: var(--texte); }
.grille-themes a:hover { border-color: var(--lien); }
.theme-nom { font-weight: 600; } .theme-nb { color: var(--texte-doux); font-size: .88rem; }
.page-simple .prose { max-width: 760px; padding-bottom: 3rem; }
.prose .lead { font-size: 1.15rem; }

/* ---------- fiche d'un texte ---------- */
.page-texte { display: grid; gap: 2rem; padding-top: 1rem; padding-bottom: 3rem; }
@media (min-width: 1000px) { .page-texte { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; } }
.fiche { min-width: 0; }
.fiche-header h1 { margin-bottom: .3rem; }
.fiche-officiel { color: var(--texte-doux); font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin: 0 0 1.5rem; }
.bloc-bref { background: var(--bleu-pale); border-left: 5px solid var(--bleu-vif); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1.1rem 1.3rem; font-size: 1.08rem; }
.bloc-bref h2 { margin: 0 0 .4rem; font-size: 1.1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--bleu-vif); }
:root[data-theme="dark"] .bloc-bref h2 { color: var(--lien); }
.bloc-bref p { margin: 0; }
.fiche-section h2 { border-bottom: 1px solid var(--bordure); padding-bottom: .35rem; }
.liste-change { padding-left: 0; list-style: none; counter-reset: c; }
.liste-change li { position: relative; padding: .55rem 0 .55rem 2.4rem; counter-increment: c; }
.liste-change li::before { content: counter(c); position: absolute; left: 0; top: .55rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--bordeaux); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.fiche-duo { display: grid; gap: 0 2rem; }
@media (min-width: 760px) { .fiche-duo { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; }
.table-modifs { border-collapse: collapse; width: 100%; font-size: .93rem; }
.table-modifs th, .table-modifs td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.table-modifs th { background: var(--fond-alt); font-weight: 600; }
.op { font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; background: var(--fond-alt); }
.op-cree, .op-complete { color: #0c6b3a; background: #e3f4ea; }
.op-abroge { color: var(--c-loi); background: var(--c-loi-bg); }
.op-modifie { color: var(--c-decret); background: var(--c-decret-bg); }
.bloc-etudiant { background: var(--fond-alt); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .2rem 1.4rem 1.2rem; margin-top: 2rem; }
.bloc-etudiant h2 { border: 0; }
.bloc-etudiant-kicker { display: block; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bordeaux); font-weight: 700; margin-bottom: .2rem; }
.notions { display: grid; gap: .6rem; margin: 0; }
.notions div { background: var(--carte); border: 1px solid var(--bordure); border-radius: 8px; padding: .7rem .9rem; }
.notions dt { font-weight: 700; }
.notions dd { margin: .15rem 0 0; color: var(--texte-doux); }
.avertissement { margin: 2rem 0; padding: 1rem 1.2rem; border-radius: var(--rayon); background: #fff8e6; border: 1px solid #f0d58a; color: #5c4400; font-size: .92rem; }
:root[data-theme="dark"] .avertissement { background: #2d2614; border-color: #6b5520; color: #f0dca0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avertissement { background: #2d2614; border-color: #6b5520; color: #f0dca0; } }
.avertissement a { color: inherit; font-weight: 600; }
.notice-officielle { font-size: .95rem; color: var(--texte-doux); }
.notice-officielle p { margin: .3rem 0; }
.texte-integral { margin: 2rem 0; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.texte-integral summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; background: var(--fond-alt); border-radius: var(--rayon); }
.texte-integral[open] summary { border-radius: var(--rayon) var(--rayon) 0 0; border-bottom: 1px solid var(--bordure); }
.texte-officiel { padding: .5rem 1.4rem 1.4rem; font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; overflow-x: auto; }
.texte-officiel table { border-collapse: collapse; font-family: var(--sans); font-size: .85rem; margin: 1rem 0; }
.texte-officiel td, .texte-officiel th { border: 1px solid var(--bordure); padding: .35rem .5rem; vertical-align: top; }
.txt-section { font-family: var(--sans); font-size: 1rem; text-transform: none; color: var(--texte-doux); margin: 1.6rem 0 .5rem; }
.txt-article-num { font-family: var(--sans); font-size: .95rem; color: var(--bleu-vif); margin: 1.3rem 0 .3rem; }
.txt-visas, .txt-signataires { color: var(--texte-doux); font-size: .95rem; }
.txt-signataires { margin-top: 1.5rem; border-top: 1px solid var(--bordure); padding-top: 1rem; }
.fiche-aside { min-width: 0; }
.aside-box { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.1rem 1.2rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--ombre); }
@media (min-width: 1000px) { .fiche-aside { position: sticky; top: 1rem; align-self: start; } }
.aside-box h2 { font-size: 1.05rem; margin: 0 0 .8rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
.refs { margin: 0 0 .6rem; font-size: .9rem; }
.refs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--bordure); }
.refs dt { color: var(--texte-doux); }
.refs dd { margin: 0; min-width: 0; }
.refs .eli { word-break: break-all; font-size: .82rem; }
.aside-liste { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.aside-liste li { margin-bottom: .45rem; }

/* ---------- commentaires ---------- */
.commentaires { margin-top: 3rem; border-top: 3px solid var(--bleu); padding-top: .5rem; }
.avis-resume { margin: 0 0 1.2rem; }
.avis-barre { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--fond-alt); margin: .4rem 0; }
.avis-barre span { display: block; height: 100%; }
.avis-pour { background: #2e8b57; } .avis-contre { background: var(--bordeaux); } .avis-mitige { background: #c99a2e; }
.avis-legende { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; color: var(--texte-doux); }
.avis-legende i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.comm-liste { display: grid; gap: .8rem; margin-bottom: 1.5rem; }
.comm { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .9rem 1.1rem; }
.comm-reponses { margin: .8rem 0 0 1.2rem; display: grid; gap: .6rem; border-left: 3px solid var(--bordure); padding-left: .9rem; }
.comm-reponses .comm { background: var(--fond-alt); }
.comm-tete { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .88rem; color: var(--texte-doux); }
.comm-auteur { font-weight: 700; color: var(--texte); }
.comm-pos { font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .1rem .45rem; border-radius: 4px; }
.pos-pour { background: #e3f4ea; color: #1d6b40; } .pos-contre { background: var(--c-loi-bg); color: var(--c-loi); } .pos-mitige { background: #fbf3df; color: #7a5a10; }
.comm-texte { margin: .4rem 0 .3rem; white-space: pre-line; }
.comm-actions-ligne { display: flex; gap: 1rem; font-size: .85rem; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--lien); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.lien-bouton.discret { color: var(--texte-doux); }
.comm-form { display: grid; gap: .9rem; background: var(--fond-alt); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.1rem 1.2rem 1.2rem; }
.comm-form h3 { margin: 0; }
.comm-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.comm-form input:not([type="radio"]), .comm-form textarea, .comm-form select { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid var(--bordure); border-radius: 8px; background: var(--carte); color: var(--texte); width: 100%; }
.comm-champs { display: grid; gap: .9rem; }
@media (min-width: 700px) { .comm-champs { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.comm-position { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.comm-position legend { font-weight: 600; font-size: .92rem; margin-bottom: .3rem; padding: 0; width: 100%; }
.comm-position label { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400; }
.comm-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.comm-statut { margin: 0; font-size: .9rem; }
.comm-statut.erreur { color: var(--bordeaux); } .comm-statut.ok { color: #1d6b40; }
.comm-charte, .comm-reponse-a { margin: 0; font-size: .82rem; color: var(--texte-doux); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { max-width: 640px; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--bleu-fonce); color: #c3cde6; margin-top: 2rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; padding-top: 2.4rem; padding-bottom: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.footer-title { color: #fff; font-weight: 700; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; padding-bottom: 1.6rem; font-size: .82rem; color: #9fadcf; }
.footer-bottom p { margin: .3rem 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .notice-bar, .site-header, .site-footer, .commentaires, .fiche-aside .btn, .theme-toggle { display: none !important; }
  .page-texte { display: block; }
  .texte-integral { border: 0; } .texte-integral summary { display: none; }
}
