/*
 * Feuille de style du site des habitants (pages publiques de Citéo).
 * Même langage que la vitrine Connectilys : fond blanc froid, encre bleu nuit, Bricolage Grotesque pour les titres,
 * Instrument Sans pour le texte, en-tête translucide, liseré fin, bandeaux bleu nuit à motif discret.
 * La couleur de la commune est le seul accent ; le rouge est réservé aux alertes en cours.
 * Polices auto-hébergées (aucun appel à un tiers : RGPD et politique de contenu). Aucun script.
 */

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/bricolage-grotesque-normal-latin-k0HXNf5.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/instrument-sans-normal-latin-1Ubqs2a.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/instrument-sans-italic-latin-8Ql4F_q.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Jetons (les mêmes que la vitrine, la couleur de la commune en accent) ------------------------------------- */
:root {
    color-scheme: light dark;
    --accent: #23408E;                      /* remplacé par la couleur de la commune quand le portail la pousse */
    --navy: #1C2F5E;
    --navy-2: #14244A;
    --navy-3: #26407A;
    --navy-4: #0F1B3A;
    --ground: #F7F9FC;                      /* blanc froid, à peine bleuté */
    --surface: #FFFFFF;
    --surface-2: #EEF2FA;
    --ink: #16213D;
    --ink-2: #5B6A8A;
    --ink-3: #8A97B4;
    --line: #E3E8F1;
    --line-2: #C9D3E6;
    --accent-soft: color-mix(in oklab, var(--accent) 9%, var(--surface));
    --accent-line: color-mix(in oklab, var(--accent) 32%, var(--surface));
    --accent-ink: color-mix(in oklab, var(--accent) 82%, black);
    --on-accent: #ffffff;
    --alert: #D6383B;
    --alert-soft: #FCEDED;
    --alert-ink: #8E2225;
    --ok: #1F6B3A;
    --focus: var(--accent);
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(22, 33, 61, .06), 0 12px 40px -20px rgba(22, 33, 61, .28);
    --shadow-lg: 0 2px 6px rgba(22, 33, 61, .06), 0 40px 80px -36px rgba(22, 33, 61, .45);
    --font-display: 'Bricolage Grotesque', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Instrument Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ground: #0F1B3A;
        --surface: #16244A;
        --surface-2: #1E2F5C;
        --ink: #EEF2FA;
        --ink-2: #B9C5E6;
        --ink-3: #8A97B4;
        --line: #26407A;
        --line-2: #34518F;
        --accent: #7B98E6;
        --accent-soft: color-mix(in oklab, var(--accent) 16%, var(--surface));
        --accent-line: color-mix(in oklab, var(--accent) 40%, var(--surface));
        --accent-ink: color-mix(in oklab, var(--accent) 85%, white);
        --on-accent: #0F1B3A;
        --alert: #EF5B5E;
        --alert-soft: #3A1D1A;
        --alert-ink: #FFD6D2;
        --ok: #7FD39A;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 40px -20px rgba(0, 0, 0, .6);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 80px -36px rgba(0, 0, 0, .7);
    }
}
:root[data-theme="dark"] {
    --ground: #0F1B3A;
    --surface: #16244A;
    --surface-2: #1E2F5C;
    --ink: #EEF2FA;
    --ink-2: #B9C5E6;
    --ink-3: #8A97B4;
    --line: #26407A;
    --line-2: #34518F;
    --accent: #7B98E6;
    --accent-soft: color-mix(in oklab, var(--accent) 16%, var(--surface));
    --accent-line: color-mix(in oklab, var(--accent) 40%, var(--surface));
    --accent-ink: color-mix(in oklab, var(--accent) 85%, white);
    --on-accent: #0F1B3A;
    --alert: #EF5B5E;
    --alert-soft: #3A1D1A;
    --alert-ink: #FFD6D2;
    --ok: #7FD39A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 40px -20px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 80px -36px rgba(0, 0, 0, .7);
}

/* ---- Base ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; font-optical-sizing: auto; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 46rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: var(--radius); z-index: 50; }
.skip-link:focus { top: 1rem; }
.icon { width: 1em; height: 1em; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- Boutons et champs ----------------------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 600; font-size: .95rem;
    min-height: 2.75rem; padding: .55rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface);
    color: var(--navy); cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform 90ms ease-out, background-color 120ms, border-color 120ms, box-shadow 120ms;
}
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-danger { color: var(--alert); border-color: var(--alert); background: transparent; }
.btn-danger:hover { background: var(--alert-soft); color: var(--alert-ink); }
.btn-block { width: 100%; justify-content: center; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--ink-3); font-size: .85rem; font-weight: 400; }
.input {
    font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); min-height: 2.75rem;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
textarea.input { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; border-radius: var(--radius); font-size: .95rem; background: var(--surface-2); border: 1px solid var(--line); }
.notice-ok { background: color-mix(in oklab, var(--ok) 12%, var(--surface)); border-color: color-mix(in oklab, var(--ok) 35%, var(--surface)); }
.notice-warn { background: var(--alert-soft); border-color: color-mix(in oklab, var(--alert) 40%, var(--surface)); color: var(--alert-ink); }
.flashes { display: grid; gap: .5rem; margin-bottom: 1.25rem; }

/* ---- Bandeau d'alerte ------------------------------------------------------------------------------------------ */
.alert-bar { background: var(--alert); color: #fff; }
.alert-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-block: .6rem; font-size: .98rem; }
.alert-bar strong { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .8rem; display: inline-flex; align-items: center; gap: .35rem; }
.alert-bar a { color: #fff; font-weight: 600; }

/* ---- En-tête --------------------------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
.site-header::after { content: ''; display: block; height: 3px; background: linear-gradient(to right, var(--accent) 0 55%, var(--navy) 55% 100%); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; min-width: 0; }
.brand img, .brand .brand-mark { width: 2.25rem; height: 2.25rem; border-radius: 8px; object-fit: contain; }
.brand .brand-mark { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; gap: .15rem; margin-left: .5rem; }
.site-nav a { padding: .5rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--accent-soft); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.site-account { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.site-account form { display: contents; }
@media (max-width: 47rem) {
    .site-header .wrap { flex-wrap: wrap; min-height: 3.25rem; padding-block: .5rem; row-gap: .25rem; }
    .site-nav { order: 3; width: 100%; margin: 0 -1.25rem; padding-inline: 1rem; overflow-x: auto; scrollbar-width: none; }
    .site-nav a { white-space: nowrap; padding-block: .35rem; }
    .site-account .btn { padding: .45rem .7rem; font-size: .9rem; min-height: 2.5rem; }
}
@media (max-width: 30rem) { .site-account .btn-primary { display: none; } }

/* ---- Accueil --------------------------------------------------------------------------------------------------- */
main { flex: 1; padding-block: 1.5rem 3rem; }
.section { margin-top: 3rem; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.section-head h2 { flex: 1; }
.section-head a { font-size: .95rem; font-weight: 600; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.featured-media { background: var(--surface-2); min-height: 16rem; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.featured-body h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body h2 a:hover { color: var(--accent-ink); text-decoration: underline; }
.featured-body p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.featured.no-media { grid-template-columns: 1fr; }
.featured.no-media .featured-body { padding: 2rem; border-left: 4px solid var(--accent); }
@media (max-width: 47rem) { .featured { grid-template-columns: 1fr; } .featured-media { min-height: 12rem; aspect-ratio: 16 / 9; } .featured-body { padding: 1.25rem; } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .88rem; color: var(--ink-3); }
.meta time { font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.tag .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--dot, var(--ink-3)); }
.tag-kind { padding: .15rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.tag-alert { background: var(--alert-soft); color: var(--alert-ink); }

.events { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; }
.event { display: grid; grid-template-columns: 3.75rem 1fr; gap: .9rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-decoration: none; color: inherit; scroll-snap-align: start; transition: transform 120ms ease-out, border-color 120ms; }
.event:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: .75rem; font-variant-numeric: tabular-nums; }
.event-date .d { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-ink); }
.event-date .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin-top: .25rem; }
.event h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; }
.event .when { color: var(--ink-2); font-size: .9rem; margin-top: .3rem; }

.consult-call { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; padding: 1.75rem 2rem; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(160deg, var(--navy-3), var(--navy) 45%, var(--navy-4)); background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px), linear-gradient(160deg, var(--navy-3), var(--navy) 45%, var(--navy-4)); background-size: 22px 22px, auto; box-shadow: var(--shadow); }
.consult-call h2 { color: #fff; }
.consult-call .btn-primary { background: #fff; border-color: #fff; color: var(--navy); box-shadow: none; }
.consult-call .btn-primary:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--navy); }
.consult-call h2 { font-size: 1.35rem; }
.consult-call p { color: rgba(255, 255, 255, .78); margin-top: .35rem; max-width: 60ch; }
.consult-call ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .4rem; }
.consult-call li a { font-weight: 600; color: #fff; }
.consult-call .meta { color: rgba(255, 255, 255, .7); }
@media (max-width: 47rem) { .consult-call { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.search { margin-left: auto; display: flex; }
.search input { min-height: 2.4rem; padding: .35rem .75rem; width: 13rem; max-width: 100%; }
@media (max-width: 47rem) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }

.stream { list-style: none; margin: 0; padding: 0; display: grid; }
.stream > li { border-top: 1px solid var(--line); }
.stream > li:first-child { border-top: 0; }
.entry { display: grid; grid-template-columns: 1fr; gap: .4rem 1.25rem; padding: 1.15rem 0; }
.entry.has-media { grid-template-columns: 1fr 10.5rem; }
.entry-media { grid-row: 1 / span 4; grid-column: 2; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.entry-media img { width: 100%; height: 100%; object-fit: cover; }
.entry h3 { font-family: var(--font-display); font-size: 1.35rem; }
.entry h3 a { color: inherit; text-decoration: none; }
.entry h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.entry p { color: var(--ink-2); max-width: 65ch; }
.entry .more { font-size: .88rem; color: var(--ink-3); display: flex; gap: 1rem; }
.entry.is-alert { border-left: 4px solid var(--alert); padding-left: 1rem; }
@media (max-width: 47rem) { .entry.has-media { grid-template-columns: 1fr 6.5rem; } .entry h3 { font-size: 1.15rem; } }

.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 1.5rem; }
.pager a { min-width: 2.25rem; padding: .4rem .6rem; text-align: center; border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.pager a[aria-current="page"] { background: var(--navy); color: #fff; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }

.townhall { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.townhall dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .98rem; }
.townhall dt { color: var(--ink-3); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.townhall dd { margin: 0; }
.townhall p { color: var(--ink-2); max-width: 48ch; }
@media (max-width: 47rem) { .townhall { grid-template-columns: 1fr; } }

/* ---- Publication ----------------------------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; color: var(--ink-3); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }
.article-head { display: grid; gap: .9rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
.cover { margin: 1.5rem 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; max-height: 32rem; object-fit: cover; }
.cover figcaption { font-size: .8rem; color: var(--ink-3); padding: .4rem .75rem; }
.event-box { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); }
.event-box .event-date { border-right-color: var(--accent-line); }
.event-box .lines { flex: 1; min-width: 12rem; display: grid; gap: .2rem; }
.event-box .lines strong { font-weight: 600; }
.prose { margin-top: 1.75rem; max-width: 65ch; font-size: 1.1rem; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem; margin-top: 1.5rem; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.docs { margin-top: 2rem; }
.docs ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.docs li { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.docs .file { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.docs .name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs .size { color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .95rem; }
.poll { margin-top: 2rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.poll .lead { color: var(--ink-2); margin-top: .4rem; font-size: .95rem; }
.bars { display: grid; gap: .7rem; margin-top: 1rem; }
.bar { display: grid; gap: .3rem; }
.bar .row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.bar .row .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar .track { height: .6rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bar.mine .row strong { color: var(--accent-ink); }
.choices { display: grid; gap: .5rem; margin-top: 1.25rem; }
.choices label { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choices input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.comments { margin-top: 2.5rem; }
.comment { padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.comment + .comment { margin-top: .75rem; }
.comment .who { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-3); }
.comment .who b { color: var(--ink); }
.comment .who form { margin-left: auto; }
.comment .who button { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: .2rem; display: inline-flex; }
.comment .who button:hover { color: var(--alert); }
.comment .text { margin-top: .4rem; white-space: pre-line; }
.reply { margin-top: .75rem; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }
.reply b { color: var(--accent-ink); }
.comment-form { margin-top: 1.25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: .75rem; }
.comment-form .charter { font-size: .85rem; color: var(--ink-3); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ---- Consultations, compte, pages ------------------------------------------------------------------------------ */
.page-head { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.page-head p { color: var(--ink-2); max-width: 65ch; }
.cards { display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.35rem; margin-top: .3rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--accent-ink); text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; }
.status-open { background: color-mix(in oklab, var(--ok) 15%, var(--surface)); color: var(--ok); }
.status-closed { background: var(--surface-2); color: var(--ink-3); }
.account { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
.account .card + .card { margin-top: 1.25rem; }
.account .card form { display: grid; gap: .8rem; }
.mine { list-style: none; margin: .5rem 0 0; padding: 0; }
.mine li { padding: .9rem 0; border-top: 1px solid var(--line); }
.mine li:first-child { border-top: 0; }
@media (max-width: 47rem) { .account { grid-template-columns: 1fr; } }
.auth { max-width: 26rem; margin-inline: auto; }
.auth .card { padding: 1.75rem; }
.auth h1 { font-size: 1.7rem; }
.auth .sub { color: var(--ink-2); margin: .5rem 0 1.25rem; }
.auth form { display: grid; gap: .9rem; }
.auth .links { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-2); display: grid; gap: .3rem; }
.legal .prose { margin-top: 1.25rem; font-size: 1.02rem; }

/* Mention RGPD du SDK sous les formulaires (le partial porte des classes utilitaires que ce site n'a pas) */
.rgpd p { font-size: .85rem; color: var(--ink-3); line-height: 1.45; }
.rgpd a { text-decoration: underline; }

/* ---- Pied ------------------------------------------------------------------------------------------------------ */
.site-footer { background: var(--navy-2); color: #C3CDE6; font-size: .92rem; border-top: 3px solid var(--accent); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; padding-block: 2.25rem 1.5rem; }
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer address strong { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; }
.site-footer a { color: #C3CDE6; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-content: start; justify-content: flex-end; }
.site-footer nav a { color: #C3CDE6; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .a11y { color: #A9B6D9; font-size: .85rem; grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 47rem) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .alert-bar, .actions, .comments, .skip-link { display: none !important; } body { background: #fff; color: #000; } }

/* Signalement d'un problème : une colonne, lisible sur téléphone, gros bouton. */
.report-form { max-width: 40rem; margin-inline: auto; }
.report-form .card { display: grid; gap: 1rem; }
.report-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .8rem; }
.report-form legend { font-weight: 700; padding-inline: .3rem; }
.report-form .hint { color: var(--ink-3); font-size: .88rem; }
.btn-inline { display: inline-flex; padding: .1rem .5rem; font-size: inherit; vertical-align: baseline; }
.report-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 1rem 0; }
.report-facts dt { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.report-facts dd { margin: 0; }
@media (max-width: 40rem) { .report-facts { grid-template-columns: 1fr; gap: .2rem; } .report-facts dd { margin-bottom: .5rem; } }
