/* ==========================================================================
   natinf.fr — système de design « Patrouille » (V1, octobre 2026)
   Identité : bleu nuit + jaune haute visibilité, Barlow / Barlow Condensed.
   Mobile d'abord. Thème jour par défaut, nuit à la demande ou selon l'appareil.
   ========================================================================== */

/* ---------- Polices (auto-hébergées ; repli système tant qu'elles manquent) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }

/* ---------- Jetons : jour */
:root {
    --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-cond: 'Barlow Condensed', 'Barlow', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;

    --bg: #EDF0F4;
    --surface: #FFFFFF;
    --surface-2: #F3F5F8;
    --border: #D6DDE7;
    --border-strong: #B9C4D3;
    --ink: #0A1A30;
    --ink-2: #3F4F66;
    --navy: #0B2A55;
    --navy-2: #123C73;
    --navy-ink: #FFFFFF;
    --navy-ink-2: #C9D6EA;
    --navy-line: #2B5089;
    --signal: #FFC21A;
    --signal-soft: rgba(255, 194, 26, 0.28);
    --on-signal: #0A1A30;
    --link: #0B4BA8;
    --focus: #1D64D8;
    --ok: #15803D;

    --chip-c-bg: #E3EAF4;  --chip-c-ink: #0B2A55;   /* contravention */
    --chip-d-bg: #FBEBC9;  --chip-d-ink: #6A4300;   /* délit */
    --chip-r-bg: #F6D9DC;  --chip-r-ink: #7A1524;   /* crime */
    --chip-n-bg: #F1F3F6;  --chip-n-ink: #3F4F66;   /* neutre */
    --chip-p-bg: #FFEDE3;  --chip-p-ink: #9A3412;   /* points */

    --sanction-bg: #0B2A55;
    --sanction-ink: #FFFFFF;
    --sanction-ink-2: #C9D6EA;
    --sanction-hi: #FFC21A;

    --shadow-1: 0 1px 2px rgba(11, 42, 85, 0.06), 0 2px 8px rgba(11, 42, 85, 0.06);
    --shadow-2: 0 8px 28px rgba(11, 42, 85, 0.18);
    --radius: 14px;
    --radius-sm: 9px;
    --container: 1200px;
    --tabbar-h: 66px;
    color-scheme: light;
}

/* ---------- Jetons : nuit (à la demande, ou selon l'appareil sans choix) */
:root[data-theme="dark"] {
    --bg: #060A10;
    --surface: #0F1724;
    --surface-2: #142033;
    --border: #1E2A3B;
    --border-strong: #33445F;
    --ink: #EAF0F8;
    --ink-2: #A9B6C8;
    --navy: #0A1019;
    --navy-2: #142033;
    --navy-ink: #EAF0F8;
    --navy-ink-2: #A9B6C8;
    --navy-line: #2A3A52;
    --signal: #FFB547;
    --signal-soft: rgba(255, 181, 71, 0.22);
    --on-signal: #1A1206;
    --link: #8DB4FF;
    --focus: #FFB547;
    --ok: #4ADE80;
    --chip-c-bg: #172438;  --chip-c-ink: #C6D3E6;
    --chip-d-bg: #2E2208;  --chip-d-ink: #F5C66B;
    --chip-r-bg: #3A1218;  --chip-r-ink: #F3A6AF;
    --chip-n-bg: #172438;  --chip-n-ink: #A9B6C8;
    --chip-p-bg: #3B1F14;  --chip-p-ink: #FDBA8C;
    --sanction-bg: #142033;
    --sanction-ink: #EAF0F8;
    --sanction-ink-2: #A9B6C8;
    --sanction-hi: #FFB547;
    --shadow-1: none;
    --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --bg: #060A10; --surface: #0F1724; --surface-2: #142033; --border: #1E2A3B; --border-strong: #33445F;
        --ink: #EAF0F8; --ink-2: #A9B6C8; --navy: #0A1019; --navy-2: #142033; --navy-ink: #EAF0F8; --navy-ink-2: #A9B6C8;
        --navy-line: #2A3A52; --signal: #FFB547; --signal-soft: rgba(255, 181, 71, 0.22); --on-signal: #1A1206;
        --link: #8DB4FF; --focus: #FFB547; --ok: #4ADE80;
        --chip-c-bg: #172438; --chip-c-ink: #C6D3E6; --chip-d-bg: #2E2208; --chip-d-ink: #F5C66B;
        --chip-r-bg: #3A1218; --chip-r-ink: #F3A6AF; --chip-n-bg: #172438; --chip-n-ink: #A9B6C8;
        --chip-p-bg: #3B1F14; --chip-p-ink: #FDBA8C;
        --sanction-bg: #142033; --sanction-ink: #EAF0F8; --sanction-ink-2: #A9B6C8; --sanction-hi: #FFB547;
        --shadow-1: none; --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--on-signal); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }
.muted { color: var(--ink-2); }
.cond { font-family: var(--font-cond); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-fill { fill: currentColor; }
[hidden] { display: none !important; }

/* ---------- En-tête */
.site-header { background: var(--navy); color: var(--navy-ink); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--navy-line); }
.header-row { display: flex; align-items: center; gap: 10px 18px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: 0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--signal); color: #0B2A55; display: grid; place-items: center; font-family: var(--font-cond); font-weight: 700; font-size: 21px; }
.header-search { position: relative; flex: 1 1 100%; order: 3; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav { display: none; }
@media (min-width: 960px) {
    .header-search { flex: 1 1 360px; order: 0; max-width: 560px; }
    .header-actions { margin-left: 0; }
    .main-nav { display: flex; align-items: center; gap: 2px; }
}
.main-nav a, .main-nav .nav-drop > button {
    color: var(--navy-ink); text-decoration: none; font-weight: 600; font-size: 15.5px;
    padding: 0 10px; min-height: 40px; display: inline-flex; align-items: center; gap: 4px;
    border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-drop > button:hover, .main-nav a[aria-current="page"] { background: var(--navy-2); }
.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 270px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-2); padding: 8px; display: grid; gap: 2px;
}
.nav-drop-menu a { color: var(--ink) !important; font-weight: 500 !important; min-height: 38px !important; padding: 0 10px !important; }
.nav-drop-menu a:hover { background: var(--surface-2) !important; }
.icon-btn {
    width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px;
    border: 1px solid var(--navy-line); background: transparent; color: var(--navy-ink); cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--navy-2); }
.icon-btn .count {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--signal); color: var(--on-signal); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.icon-btn .ic-moon { display: block; } .icon-btn .ic-sun { display: none; }
:root[data-theme="dark"] .icon-btn .ic-moon { display: none; } :root[data-theme="dark"] .icon-btn .ic-sun { display: block; }
.btn-install { display: none; }
.btn-install.is-ready { display: inline-flex; }

/* Champ de recherche (en-tête, accueil, pages) */
.search-box {
    display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px;
    background: var(--surface); color: var(--ink-2); border: 1px solid var(--border-strong); border-radius: 12px;
}
.search-box:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.search-box input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 16.5px; outline: none; }
.search-box input::placeholder { color: var(--ink-2); opacity: 0.85; }
.search-box kbd { font-family: var(--font-cond); font-weight: 600; font-size: 13px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; display: none; }
@media (min-width: 960px) { .search-box kbd { display: inline-block; } }
.search-box--hero { height: 62px; border-radius: 16px; border: 0; padding-left: 18px; box-shadow: var(--shadow-2); }
.search-box--hero input { font-size: 19px; height: 58px; }
.search-btn { height: 48px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: 17px; cursor: pointer; }
.voice-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }

/* Menu déroulant des résultats instantanés */
.search-pop {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
    background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-2); overflow: hidden; max-height: min(70vh, 560px); overflow-y: auto;
}
.search-pop ul { list-style: none; margin: 0; padding: 6px; }
.pop-item a { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: start; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.pop-item[aria-selected="true"] a, .pop-item a:hover { background: var(--surface-2); }
.pop-code { font-family: var(--font-cond); font-weight: 700; font-size: 17px; color: var(--ink); background: var(--chip-c-bg); border-radius: 7px; padding: 0 7px; line-height: 1.5; }
.pop-text { min-width: 0; }
.pop-nom { font-weight: 600; display: block; }
.pop-qualif { color: var(--ink-2); font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-sanction { font-family: var(--font-cond); font-weight: 700; font-size: 16px; white-space: nowrap; }
.pop-foot { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-2); background: var(--surface-2); }
.pop-empty { padding: 14px; color: var(--ink-2); }

/* ---------- Barre d'onglets (mobile) */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--tabbar-h);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-2); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.tabbar a .pill { width: 54px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .pill { background: var(--signal); color: var(--on-signal); }
body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Pied de page */
.site-footer { background: var(--navy); color: var(--navy-ink-2); margin-top: 56px; }
:root[data-theme="dark"] .site-footer { background: #0A1019; }
.footer-grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { color: var(--navy-ink); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer a { color: var(--navy-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.footer-legal { border-top: 1px solid var(--navy-line); padding-top: 16px; padding-bottom: 22px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* ---------- Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
    border-radius: 11px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
    line-height: 1.1; text-align: center;
}
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { filter: brightness(0.96); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-navy { background: var(--navy); color: var(--navy-ink); }
.btn-ghost-light { background: transparent; color: var(--navy-ink); border-color: var(--navy-line); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[aria-pressed="true"] .ic { fill: currentColor; }
.btn.is-done { background: var(--ok); color: #fff; border-color: transparent; }

/* ---------- Puces */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: var(--chip-n-bg); color: var(--chip-n-ink); line-height: 1.35; white-space: nowrap; }
.chip--c { background: var(--chip-c-bg); color: var(--chip-c-ink); }
.chip--d { background: var(--chip-d-bg); color: var(--chip-d-ink); }
.chip--r { background: var(--chip-r-bg); color: var(--chip-r-ink); }
.chip--p { background: var(--chip-p-bg); color: var(--chip-p-ink); }
.chip--hi { background: var(--signal-soft); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-link {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
    text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); cursor: pointer;
}
.pill-link:hover, .pill-link[aria-pressed="true"], .pill-link[aria-current="true"] { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x .chips { flex-wrap: nowrap; padding-bottom: 4px; }

/* ---------- Mise en page générique */
.page { padding-top: 20px; padding-bottom: 8px; }
@media (min-width: 720px) { .page { padding-top: 28px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-2); }
.page-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--ink-2); margin-top: 10px; max-width: 820px; }
.section { margin-top: 36px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.section-title { font-size: 23px; font-weight: 700; }
.eyebrow { font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 18px; }
.grid { display: grid; gap: 12px; }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 359px) { .grid-tiles { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 720px) { .grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-tiles.grid-tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.prose { max-width: 820px; font-size: 17px; line-height: 1.6; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { display: grid; gap: 6px; margin-top: 8px; }
.prose strong { color: var(--ink); }

/* Carte de code (listes, carnet, accueil) */
.code-card { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.code-card:hover { border-color: var(--border-strong); }
.code-tag { font-family: var(--font-cond); font-weight: 700; font-size: 17.5px; color: #fff; background: var(--navy); border-radius: 7px; padding: 1px 9px; line-height: 1.45; }
:root[data-theme="dark"] .code-tag { background: #24467A; }
.code-card .label { font-weight: 600; font-size: 17px; line-height: 1.28; }
.code-card .qualif { font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.code-card .sanction-line { font-family: var(--font-cond); font-weight: 700; font-size: 20px; margin-top: auto; }
.code-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Tuiles de raccourcis */
.tile { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-1); }
.tile:hover { border-color: var(--border-strong); }
.tile-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--signal-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.tile--stack { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 92px; }

/* ---------- Accueil */
.hero { background: var(--navy); color: var(--navy-ink); padding-top: 28px; padding-bottom: 34px; }
.hero h1 { color: var(--navy-ink); font-size: clamp(30px, 5.2vw, 48px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
.hero .lead { color: var(--navy-ink-2); margin: 10px 0 18px; }
.hero-search { position: relative; max-width: 840px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.hero-row .hint { color: var(--navy-ink-2); font-size: 15px; margin-right: 4px; }
.hero .pill-link { background: var(--navy-2); color: var(--navy-ink); border-color: var(--navy-2); }
.hero .pill-link:hover, .hero .pill-link[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.hero .pill-link.outline { background: transparent; border-color: var(--navy-line); }
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; }
.stat .num { font-family: var(--font-cond); font-weight: 700; font-size: 36px; line-height: 1; }
.stat .lbl { font-weight: 700; font-size: 18px; margin-top: 4px; }
.stat .txt { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.app-band { background: var(--navy); color: var(--navy-ink); border-radius: 20px; padding: 26px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.app-band h2 { color: var(--navy-ink); font-size: 28px; }
.app-band p { color: var(--navy-ink-2); font-size: 17px; margin-top: 8px; }
.app-band ul { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 14px; font-size: 16.5px; }
.app-band li { display: flex; gap: 10px; align-items: center; }
.app-band li .ic { color: var(--signal); }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 500; color: var(--ink-2); }
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 18px 18px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.faq .faq-body ul { margin-top: 6px; display: grid; gap: 4px; }
.dash { margin-top: 24px; }
.dash-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: 1.4fr 1fr; } }

/* Lignes de liste (carnet, historique, résultats) */
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; min-height: 58px; }
.row + .row { border-top: 1px solid var(--border); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.row-text { min-width: 0; display: flex; flex-direction: column; }
.row-text .t { font-weight: 600; }
.row-text .s { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sanction { font-family: var(--font-cond); font-weight: 700; font-size: 18px; white-space: nowrap; }
.row.is-hi { background: var(--signal-soft); }
.empty { padding: 22px 18px; color: var(--ink-2); }

/* ---------- Recherche (page de résultats) */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 0 10px; }
.results-list { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.result:hover { border-color: var(--border-strong); }
.result .code-tag { grid-row: span 2; align-self: start; }
.result .t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.result .q { color: var(--ink-2); font-size: 15px; }
.result .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--signal-soft); color: var(--ink); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
/* max-width : un domaine juridique au long nom ne doit pas élargir la page sur téléphone. */
.select { min-height: 40px; max-width: 100%; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); padding: 0 10px; }

/* ---------- Fiche infraction */
.fiche-head { display: grid; gap: 10px; }
.fiche-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fiche-code .num { font-family: var(--font-cond); font-weight: 700; font-size: 30px; letter-spacing: 0.01em; line-height: 1; }
.fiche-nom { font-size: 20px; font-weight: 700; color: var(--ink); }
.fiche-nom::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--signal); margin-right: 8px; vertical-align: 2px; }
.fiche-h1 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 600; line-height: 1.3; }
.fiche-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fiche-layout { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 1024px) { .fiche-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .fiche-aside { position: sticky; top: 92px; } }
/* minmax(0, 1fr) : sans lui, la colonne s'élargit au contenu le plus large (grille des chiffres
   du bloc sanction) et la fiche déborde de l'écran du téléphone. */
.fiche-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.fiche-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }
.panel h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel p + p { margin-top: 10px; }
.reserve { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin-top: 10px; }

/* Bloc sanction : une forme par régime */
.sanction { background: var(--sanction-bg); color: var(--sanction-ink); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.sanction .k { font-size: 14px; color: var(--sanction-ink-2); }
.sanction .big { font-family: var(--font-cond); font-weight: 700; font-size: 46px; line-height: 1; color: var(--sanction-hi); }
.sanction .big2 { font-family: var(--font-cond); font-weight: 700; font-size: 32px; line-height: 1.05; }
.sanction .line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sanction .unit { font-size: 16px; }
.sanction .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.sanction .kpis .v { font-family: var(--font-cond); font-weight: 700; font-size: 22px; }
.sanction .note { font-size: 14.5px; color: var(--sanction-ink-2); line-height: 1.45; }
.sanction--neutre { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); }
.sanction--neutre .k, .sanction--neutre .note { color: var(--ink-2); }
.sanction--neutre .big2 { font-size: 22px; font-family: var(--font); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv .k { font-size: 14px; color: var(--ink-2); }
.kv .v { font-family: var(--font-cond); font-weight: 700; font-size: 24px; }
.is-derogatoire { background: var(--signal-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.amende-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.amende-table th, .amende-table td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--border); vertical-align: top; }
.amende-table th { font-weight: 600; }
.amende-table td.v { font-family: var(--font-cond); font-weight: 700; font-size: 19px; }
.amende-table td.n { color: var(--ink-2); font-size: 14.5px; }

/* Assistant PV */
.pv { display: grid; gap: 10px; }
.pv label { font-weight: 700; font-size: 15px; }
.pv input[type="text"] { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 16px; }
.pv-preview { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.pv-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 520px) { .pv-actions { grid-template-columns: 1fr auto; } }

/* Textes et articles */
.textes { list-style: none; padding: 0; display: grid; gap: 8px; }
.textes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.textes .ref { font-weight: 600; }
.textes a { font-size: 14.5px; font-weight: 600; }
.loi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.loi + .loi { margin-top: 10px; }
.loi .ref { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; display: block; }
.loi blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; }
.loi blockquote p + p { margin-top: 8px; }

/* Thème */
.theme-hero { background: var(--navy); color: var(--navy-ink); padding-top: 24px; padding-bottom: 28px; }
.theme-hero h1 { color: var(--navy-ink); font-size: clamp(26px, 4.2vw, 40px); }
.theme-hero .lead { color: var(--navy-ink-2); }
.theme-hero .breadcrumb, .theme-hero .breadcrumb a { color: var(--navy-ink-2); }

/* Tableaux de liste */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.data-table th { text-align: left; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; background: var(--surface-2); }
.data-table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.data-table td.code a { font-family: var(--font-cond); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.data-table td.label a { color: var(--ink); text-decoration: none; }
.data-table td.label a:hover { text-decoration: underline; }
.data-table td.label .nom { display: block; font-weight: 700; }
.data-table td.amount { font-family: var(--font-cond); font-weight: 700; font-size: 18px; white-space: nowrap; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination [aria-current="page"] { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.pagination .gap { border: 0; background: none; }

/* Outils, formulaires */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.field-box { display: flex; align-items: center; height: 58px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; }
.field-box:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.field-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--font-cond); font-weight: 700; font-size: 30px; outline: none; }
.field-box .u { color: var(--ink-2); font-size: 15px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.segmented button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: #24324A; }
.bareme { width: 100%; border-collapse: collapse; font-size: 15px; }
.bareme td, .bareme th { padding: 8px 6px; border-top: 1px solid var(--border); text-align: left; }
.bareme tr.is-hi td { background: var(--signal-soft); font-weight: 700; }

/* Notification « Copié » */
.toast {
    position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px); transform: translateX(-50%); z-index: 90;
    background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-2);
}
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* Erreurs */
.error-hero { text-align: center; padding-top: 28px; padding-bottom: 8px; }
.error-hero .code { font-family: var(--font-cond); font-weight: 700; font-size: 72px; line-height: 1; color: var(--ink-2); }

/* ---------- Impression : la fiche et les mémentos, sans l'interface */
@media print {
    :root { --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; --ink: #000; --ink-2: #333; --border: #bbb; --border-strong: #888;
            --sanction-bg: #fff; --sanction-ink: #000; --sanction-ink-2: #333; --sanction-hi: #000; --navy: #000; }
    body { padding: 0 !important; font-size: 11.5pt; background: #fff; }
    .site-header, .site-footer, .tabbar, .no-print, .fiche-tools, .pv-actions, .search-pop, .skip-link, .toast { display: none !important; }
    .fiche-layout { display: block; }
    .panel, .sanction, .card, .rows, .table-wrap { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; margin-bottom: 8pt; }
    .sanction { border: 2px solid #000; }
    a { color: #000; text-decoration: none; }
    .container { max-width: none; padding: 0; }
    .print-only { display: block !important; }
    .data-table { min-width: 0; font-size: 9.5pt; }
    .data-table th, .data-table td { padding: 4pt 5pt; }
}
.print-only { display: none; }

/* ==========================================================================
   Compléments des gabarits (V1)
   ========================================================================== */
.brand-tld { color: var(--signal); }
.v-home .header-search { display: none; }
@media (min-width: 960px) { .v-home .main-nav { margin-left: auto; } }
.nav-drop-menu--cols { min-width: 460px; grid-template-columns: 1fr 1fr; }
.nav-drop-menu a .ic { color: var(--ink-2); }
.footer-indep { margin-top: 12px; font-size: 14.5px; line-height: 1.5; max-width: 360px; }
.site-footer .brand { font-size: 19px; }

/* Recherche dans les pages */
.page-search { position: relative; }
.page-search-wrap { margin: 16px 0 6px; max-width: 760px; }
.page-search .search-box { padding-right: 5px; }
.search-box .ic { color: var(--ink-2); }
.hero .search-box .ic { width: 22px; height: 22px; }
.search-box input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* Accueil */
.eyebrow--hero { color: var(--signal); margin-bottom: 10px; }
.hero .lead { max-width: 760px; }
.stat { display: block; text-decoration: none; color: var(--ink); }
.stat:hover { border-color: var(--border-strong); }
.tile-sub { display: block; font-weight: 500; font-size: 14px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.chips--wrap { flex-wrap: wrap; }
.app-band { margin-top: 40px; }
.app-band-text { flex: 1 1 380px; }
.app-band-cta { flex: 0 1 300px; display: grid; gap: 10px; }
.app-band-hint { font-size: 14.5px; color: var(--navy-ink-2); }
.btn-install.is-visible { display: inline-flex; }
.is-app .btn-install, .is-app .app-band { display: none !important; }
.dash { margin-top: 22px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.dash-col { display: grid; gap: 8px; align-content: start; }
.dash-col .eyebrow { margin-top: 6px; }
.dash-more { font-size: 15px; }

/* Cartes et lignes */
.code-card .label--qualif { font-size: 16px; font-weight: 600; }
.result .t--qualif { font-weight: 600; font-size: 16px; }
.row-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.row-when { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.row.is-absent .t { text-decoration: line-through; color: var(--ink-2); }
a.row { color: var(--ink); text-decoration: none; }
a.row:hover { background: var(--surface-2); }
.icon-btn--plain { border-color: var(--border); color: var(--ink-2); width: 40px; height: 40px; }
.icon-btn--plain:hover { background: var(--surface-2); color: var(--ink); }
.rows .code-tag { flex: none; }
@media (max-width: 560px) {
    .row { flex-wrap: wrap; }
    .row-main { flex-basis: 100%; }
    .row-sanction { margin-left: 52px; font-size: 16px; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.load-more { display: flex; justify-content: center; margin-top: 16px; }
.section-block { margin-top: 8px; }
.section-sub { margin: -6px 0 12px; font-size: 15px; }

/* Fiche */
.fiche-code .chip { font-size: 14px; }
.sanction h2.k { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--sanction-ink-2); margin: 0; }
.sanction--neutre h2.k { color: var(--ink-2); }
.sanction .kpis > div { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 8px; }
.sanction--neutre .kpis > div { border-top-color: var(--border); }
.sanction .kpis .kpi-wide { grid-column: span 2; }
.sanction .kpis .v-text { font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.3; }
.sanction-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sanction .btn-secondary { background: transparent; }
.textes-h { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 6px; }
.textes-h:first-of-type { margin-top: 0; }
.ref-brute { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; word-break: break-word; user-select: all; }
details.loi { margin-top: 12px; }
details.loi summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.loi summary::-webkit-details-marker { display: none; }
details.loi summary::after { content: '+'; font-size: 20px; line-height: 1; }
details.loi[open] summary::after { content: '−'; }
details.loi[open] summary { margin-bottom: 8px; }
.fiche-resume p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.fiche-guide h2, .fiche-guide h3 { margin: 14px 0 6px; font-size: 19px; }
.fiche-guide h2:first-child, .fiche-guide h3:first-child { margin-top: 0; }
.pv h2 .ic { color: var(--ink-2); }
.source h2 { font-size: 16px; }

/* Listes */
.liste-filtres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 18px 0 6px; }
.filtre-groupe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.results-head a { font-weight: 600; }

/* Thèmes */
.theme-layout { display: grid; gap: 18px; }
@media (min-width: 1024px) { .theme-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .theme-aside { position: sticky; top: 92px; } }
.theme-main { display: grid; gap: 8px; min-width: 0; }
.theme-aside { display: grid; gap: 14px; min-width: 0; }
.theme-aside .code-card { box-shadow: none; }
.theme-hero .hero-row .hint, .theme-hero .hint { color: var(--navy-ink-2); font-size: 15px; }
.theme-hero .btn-primary[aria-pressed="true"] { background: var(--ok); color: #fff; }
.theme-texte ul { padding-left: 1.2em; }

/* Mémento */
.memento-tete h1 { font-size: 24px; }
.memento-tete p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.memento-tete { margin: 10px 0 12px; }
.memento-table { min-width: 0; }
.memento-defil { overflow-x: auto; }   /* téléphone : le tableau défile au lieu d'élargir la page */
.memento-pied { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
@media print {
    .memento { padding-top: 0; }
    .memento-defil { overflow: visible; }
    .memento-table { font-size: 8.8pt; }
    .memento-table td.label { line-height: 1.25; }
    @page { size: A4; margin: 12mm; }
}

/* Divers */
.glossaire-filtre { max-width: 520px; margin-top: 16px; }
.glossaire-table td.code code { font-family: var(--font-cond); font-weight: 700; font-size: 16px; }
.ic-xl { width: 64px; height: 64px; margin: 0 auto; stroke-width: 1.5; }
.tile--outil { min-height: 92px; }
.empty.card { padding: 18px; }
.prose .section-title { margin-bottom: 8px; }
.prose h3 { font-size: 18px; margin: 14px 0 6px; }
.btn.btn-install { display: none; }
.btn.btn-install.is-ready, .btn.btn-install.is-visible { display: inline-flex; }
.stat .num, .stat .lbl, .stat .txt { display: block; }
.textes a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.textes .ref { margin-right: 4px; }

/* Formulaire de contact */
.contact-form { display: grid; gap: 16px; margin-top: 18px; }
.contact-form .btn { justify-self: start; }
.contact-duo { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .contact-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.4; }
.input:focus-visible { outline-offset: 1px; border-radius: 11px; }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.5; }
.input--code { max-width: 170px; font-family: var(--font-cond); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--chip-r-ink); box-shadow: inset 0 0 0 1px var(--chip-r-ink); }
.field .facultatif { font-weight: 500; }
.field p + p { margin-top: 0; }
.field-erreur { color: var(--chip-r-ink); font-size: 14.5px; font-weight: 600; }
.alerte { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--chip-r-bg); color: var(--chip-r-ink); font-size: 15px; }
.prose .alerte strong { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-ok { margin-top: 18px; }
.contact-ok h2 .ic { color: var(--ok); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.field .choix-option {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15.5px; cursor: pointer;
}
.choix-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--link); }
.field .choix-option:has(input:checked) { border-color: var(--link); background: var(--chip-c-bg); }
.choix-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix-option input:focus-visible { outline: none; }

/* Invitation à donner son avis (fiches, outils) */
.avis-invite {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    padding: 14px 16px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.avis-invite p { flex: 1 1 280px; font-size: 15.5px; color: var(--ink-2); }
.avis-invite strong { color: var(--ink); }

/* Outils */
.outil-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .outil-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .outil-resultat { position: sticky; top: 92px; } }
.outil-form { display: grid; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 700; font-size: 15px; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.select--lg { min-height: 52px; font-size: 16px; width: 100%; }
.field-box--sm { height: 52px; }
.field-box--sm input { font-size: 22px; }
.field-aide { font-size: 14px; color: var(--ink-2); min-height: 1em; }
.outil-resultat { display: grid; gap: 12px; }
.outil-resultat h2 { margin-bottom: 0; }
.outil-code { box-shadow: none; }
.outil-actions { margin-top: -4px; }
.outil-tranche { font-weight: 600; }
.outil-verdict { font-family: var(--font-cond); font-weight: 700; font-size: 26px; color: var(--ink); }
.outil-verdict--delit { color: var(--chip-r-ink); }
.outil-verdict--ok { color: var(--ok); }
.data-table th[scope="row"] { font-weight: 600; text-align: left; padding: 10px 12px; border-top: 1px solid var(--border); background: transparent; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.data-table tr.is-hi td, .data-table tr.is-hi th { background: var(--signal-soft); }
@media (min-width: 960px) {
    .header-row { flex-wrap: nowrap; }
    .header-search { flex: 1 1 200px; }
    .header-actions { flex: none; }
}
@media (min-width: 960px) and (max-width: 1180px) {
    .main-nav a, .main-nav .nav-drop > button { padding: 0 7px; font-size: 15px; }
    .search-box kbd { display: none; }
}
.offline-head { margin: 4px 0 10px; color: var(--ink-2); }
.hors-ligne-panel h2 .ic { color: var(--ink-2); }

/* Menu des thèmes par familles */
.nav-drop-menu--mega { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 4px 14px; min-width: 760px; padding: 12px; right: auto; }
.nav-groupe { display: grid; gap: 0; align-content: start; }
.nav-groupe-titre { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 6px 10px 4px; }
.nav-drop-menu--mega a { min-height: 34px !important; font-size: 15px !important; }
@media (min-width: 960px) and (max-width: 1180px) { .nav-drop-menu--mega { min-width: 640px; grid-template-columns: repeat(2, minmax(170px, 1fr)); } }
.themes-groupes { display: grid; gap: 16px; }
@media (min-width: 900px) { .themes-groupes { grid-template-columns: 1fr 1fr; } }
.themes-groupe .eyebrow { margin-bottom: 8px; }
.nav-drop-menu--mega {
    position: fixed; top: 62px; left: 50%; transform: translateX(-50%);
    width: min(940px, calc(100vw - 32px)); min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-height: calc(100vh - 80px); overflow-y: auto;
}
@media (min-width: 960px) and (max-width: 1180px) { .nav-drop-menu--mega { min-width: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* Règles de sécurité du code du travail (fiches « dans le cadre du travail ») */
.regles-travail .section-sub { margin: 0 0 10px; }
.regles-travail-liste summary span:first-child { flex: 1; }
.regles-travail-liste .regles-n { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.regles-travail-liste details[open] summary::after { content: '−'; }
.regles-travail-liste .rows { margin: 0 12px 14px; }
.regles-travail-liste .row-text .t { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.regles-travail-liste .row-text .s { white-space: normal; }
