/* =========================================================================
   Point financier construction — design system
   Identité : vert profond (solidité, foncier) + ocre (chantier, matière).
   Mobile d'abord : la saisie se fait au téléphone, la lecture au bureau.
   ========================================================================= */

:root {
    /* Couleurs de marque */
    --vert-900: #0B3B2D;
    --vert-700: #0F4C3A;
    --vert-500: #1C7256;
    --vert-100: #D3E5DD;
    --vert-050: #E9F2EE;

    --ocre-600: #B36A24;
    --ocre-500: #D98A3D;
    --ocre-050: #FBF0E3;

    /* Neutres */
    --ink:      #14181C;
    --slate:    #5A6472;
    --slate-2:  #8A93A0;
    --line:     #E4E8EE;
    --line-2:   #EEF1F5;
    --bg:       #F4F6F7;
    --paper:    #FFFFFF;

    --rouge:     #B3261E;
    --rouge-050: #FDECEA;

    /* Formes */
    --r-s: 8px;
    --r:   12px;
    --r-l: 16px;
    --sh-1: 0 1px 2px rgba(16, 24, 32, .05), 0 1px 3px rgba(16, 24, 32, .04);
    --sh-2: 0 10px 30px rgba(11, 59, 45, .16);

    --nav-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 15px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.015em; }

::selection { background: var(--vert-100); }

:focus-visible {
    outline: 2px solid var(--vert-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--vert-700); color: #fff; padding: 10px 16px; border-radius: var(--r-s);
}
.skip:focus { left: 12px; }

/* ============================================================ EN-TÊTE */

.top {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    min-height: var(--nav-h); padding: 0 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; min-width: 0; }
.brand .logo { flex-shrink: 0; }
.brand-txt { min-width: 0; }
.brand strong {
    display: block; font-size: 14.5px; font-weight: 650; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand small {
    display: block; color: var(--slate-2); font-size: 12px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

nav { display: flex; align-items: center; gap: 2px; }
.nav-titre { display: none; }

nav a {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 13px; border-radius: var(--r-s);
    color: var(--slate); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
nav a:hover { background: var(--bg); color: var(--ink); }
nav a.on { background: var(--vert-050); color: var(--vert-700); font-weight: 650; }
nav a.cta {
    margin-left: 8px; padding: 9px 16px;
    background: var(--vert-700); color: #fff; font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 76, 58, .3);
}
nav a.cta:hover { background: var(--vert-900); color: #fff; }

/* Hamburger + tiroir : uniquement en mobile, sans JavaScript. */
.burger, .voile { display: none; }

/* ============================================================ CONTENU */

main { max-width: 1140px; margin: 0 auto; padding: 26px 22px 70px; }

.page-titre { margin-bottom: 18px; }
.eyebrow {
    margin: 0; color: var(--ocre-600); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
}
.page-titre h1 { margin: 3px 0 0; font-size: 25px; font-weight: 680; }

.flash {
    max-width: 1140px; margin: 16px auto -6px; padding: 12px 16px 12px 15px;
    background: var(--vert-050); border-left: 3px solid var(--vert-500);
    border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 14px; color: var(--vert-900);
}

.foot {
    display: flex; align-items: center; gap: 10px;
    max-width: 1140px; margin: 0 auto; padding: 22px 22px 46px;
    color: var(--slate-2); font-size: 12.5px; border-top: 1px solid var(--line);
}
code {
    background: var(--line-2); padding: 1.5px 6px; border-radius: 5px;
    font-size: .92em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ============================================================== CARTES */

.card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px;
    box-shadow: var(--sh-1);
}
.card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 650; }
.card h2 small { color: var(--slate-2); font-weight: 400; }
.card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 12px;
}
.card-head h2 { margin-bottom: 0; }

.hint { color: var(--slate); font-size: 13px; margin: 12px 0 0; }
.hint em { color: var(--ink); font-style: normal; font-weight: 600; }
.empty {
    margin: 0; padding: 22px; text-align: center;
    color: var(--slate-2); font-size: 13.5px;
    border: 1px dashed var(--line); border-radius: var(--r-s); background: #FCFDFD;
}
.resume { color: var(--slate); font-size: 13.5px; margin: -4px 0 14px; }
.link { color: var(--vert-700); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.link:hover { text-decoration: underline; }
.muted { color: var(--slate-2); font-size: 12px; }

.step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 23px; height: 23px; margin-right: 9px; flex-shrink: 0;
    border-radius: 7px; background: var(--vert-700); color: #fff;
    font-size: 12px; font-weight: 700;
}
.phase .card-head h2 { display: flex; align-items: center; }
.phase-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.phase-total small { display: block; font-weight: 500; color: var(--slate-2); font-size: 12px; }

/* ================================================================ KPI */

.kpis {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 12px; margin-bottom: 18px;
}
.kpi {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 15px 17px; box-shadow: var(--sh-1);
}
.kpi span {
    display: block; color: var(--slate-2); font-size: 11px; font-weight: 650;
    text-transform: uppercase; letter-spacing: .07em;
}
.kpi strong {
    display: block; margin: 7px 0 3px; font-size: 21px; font-weight: 680;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.kpi small { color: var(--slate-2); font-size: 12.5px; }

.kpi.major {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--vert-700) 0%, var(--vert-900) 100%);
    border-color: var(--vert-900); color: #fff;
    box-shadow: 0 4px 16px rgba(11, 59, 45, .22);
}
.kpi.major span { color: var(--vert-100); }
.kpi.major small { color: rgba(211, 229, 221, .82); }
.kpi.major strong { font-size: 27px; }

.kpi.alert { border-color: #F2C9C6; background: linear-gradient(#fff, var(--rouge-050)); }
.kpi.alert strong { color: var(--rouge); }
.kpi.ok strong { color: var(--vert-500); }

/* =========================================================== TABLEAUX */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th {
    font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
    color: var(--slate-2); border-bottom: 1px solid var(--line);
}
tfoot td, tfoot th { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: none; }
td small { display: block; color: var(--slate-2); font-size: 12.5px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #FBFCFD; }

.r { text-align: right; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 700; }
.num { color: var(--slate-2); font-variant-numeric: tabular-nums; }
tr.vide td { opacity: .5; }
.repartition a { color: inherit; text-decoration: none; font-weight: 600; }
.repartition a:hover { color: var(--vert-700); }

.bar-col { width: 24%; padding-top: 15px; }
.bar {
    display: block; height: 7px; border-radius: 4px; min-width: 3px;
    background: linear-gradient(90deg, var(--vert-500), var(--vert-700));
}

.cat { margin-top: 16px; }
.cat-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 7px 11px; background: var(--bg); border-radius: var(--r-s);
    border-left: 3px solid var(--vert-100);
}
.cat-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.cat-head .mono { font-size: 13.5px; font-weight: 650; }
.lignes thead th { font-size: 10.5px; }

.pill {
    display: inline-block; padding: 3px 9px; border-radius: 20px;
    font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.echeance {
    display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 20px;
    background: var(--ocre-050); color: var(--ocre-600); font-size: 11.5px; font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pill.prevu  { background: var(--line-2); color: var(--slate); }
.pill.engage { background: var(--ocre-050); color: var(--ocre-600); }
.pill.paye   { background: var(--vert-050); color: var(--vert-700); }

/* ============================================================ FORMULAIRES */

.grid-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; align-items: end; }
.grid-form label {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 11.5px; font-weight: 650; color: var(--slate);
    text-transform: uppercase; letter-spacing: .05em;
}
.grid-form .w2 { grid-column: span 2; }
.grid-form .w3 { grid-column: span 3; }
.grid-form .w4 { grid-column: span 4; }
.grid-form .w5 { grid-column: span 5; }
.grid-form .w6 { grid-column: span 6; }
.grid-form.inline {
    margin-top: 10px; padding: 14px; background: var(--bg);
    border: 1px solid var(--line-2); border-radius: var(--r-s);
}

input, select, textarea {
    font: inherit; font-weight: 500; color: var(--ink);
    padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-s);
    background: var(--paper); width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--slate-2); font-weight: 400; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--vert-500);
    box-shadow: 0 0 0 3px var(--vert-050);
}
textarea { resize: vertical; line-height: 1.5; }
input[type="file"] { padding: 7px 9px; font-size: 13px; }

button {
    font: inherit; font-size: 14px; font-weight: 650;
    padding: 10px 17px; border-radius: var(--r-s);
    border: 1px solid transparent; cursor: pointer;
    background: var(--line-2); color: var(--ink);
    transition: background .15s, box-shadow .15s, transform .06s;
}
button:hover { background: #E4E8EE; }
button:active { transform: translateY(1px); }
button.primary { background: var(--vert-700); color: #fff; box-shadow: 0 1px 2px rgba(15, 76, 58, .28); }
button.primary:hover { background: var(--vert-900); }
button.ghost {
    background: var(--paper); border-color: var(--line); color: var(--slate);
    font-weight: 600; font-size: 13px; padding: 8px 13px;
}
button.ghost:hover { background: var(--bg); color: var(--ink); }
button.danger { color: var(--rouge); background: var(--paper); border-color: #F2C9C6; }
button.danger:hover { background: var(--rouge-050); }

details { margin-top: 8px; }
details summary {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: 13px; font-weight: 600; color: var(--vert-700);
    padding: 6px 11px; border-radius: 20px; background: var(--vert-050);
    list-style: none; user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "›"; font-size: 15px; line-height: 1; transform: rotate(90deg);
    transition: transform .18s;
}
details[open] summary::after { transform: rotate(-90deg); }
details summary:hover { background: var(--vert-100); }
details.sub { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.actions { width: 104px; }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid var(--line-2);
}
.row-form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.row-form input { flex: 1; }
.row-form .mono { color: var(--slate); font-size: 13px; min-width: 132px; text-align: right; }
.cat-tools { margin-top: 0; }
.cat-tools summary { font-size: 12px; padding: 5px 10px; }

.ordre { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.ordre button { padding: 5px 13px; line-height: 1.1; min-height: 0; }

/* ============================================================== GALERIE */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery.large { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gallery figure {
    margin: 0; border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; background: var(--paper); box-shadow: var(--sh-1);
}
.gallery img { width: 100%; height: 172px; object-fit: cover; display: block; background: var(--line-2); }
.gallery.large img { height: 224px; }
.gallery figcaption { padding: 11px 13px; font-size: 13px; }
.gallery figcaption strong { display: block; font-weight: 650; }
.tag {
    display: inline-block; margin-top: 5px; padding: 2.5px 9px; border-radius: 20px;
    background: var(--ocre-050); color: var(--ocre-600); font-size: 11px; font-weight: 650;
}

/* ================================================= SOLIDITÉ DU DOSSIER */

.qualite h2 small {
    display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 20px;
    background: var(--vert-050); color: var(--vert-700); font-size: 12px; font-weight: 700;
}
.bouton-exemple {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 9px 15px; border-radius: var(--r-s);
    background: var(--ocre-050); color: var(--ocre-600);
    border: 1px solid #EBD3B4; text-decoration: none;
    font-size: 13.5px; font-weight: 650;
}
.bouton-exemple:hover { background: #F6E4CD; }

.jauge {
    height: 7px; border-radius: 4px; background: var(--line-2);
    overflow: hidden; margin-bottom: 4px;
}
.jauge span {
    display: block; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--vert-500), var(--vert-700));
    transition: width .4s;
}

.controles { list-style: none; margin: 14px 0 0; padding: 0; }
.controles li {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.controles li:last-child { border-bottom: none; }
.controles .coche {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 21px; height: 21px; margin-top: 1px; border-radius: 50%;
    font-size: 12px; font-weight: 700;
}
.controles .ok .coche { background: var(--vert-050); color: var(--vert-700); }
.controles .manque .coche { background: #fff; border: 1.5px dashed var(--slate-2); }
.controles .txt { flex: 1; min-width: 0; }
.controles strong { display: block; font-size: 14px; font-weight: 600; }
.controles .manque strong { color: var(--ink); }
.controles .ok strong { color: var(--slate); font-weight: 500; }
.controles small { display: block; color: var(--slate-2); font-size: 12.5px; }
.controles .link { flex-shrink: 0; align-self: center; }

/* =============================================================== NOTICE */

.notice p { max-width: 68em; }
.notice ol.etapes-aide { margin: 0; padding-left: 0; list-style: none; counter-reset: n; }
.notice ol.etapes-aide li {
    position: relative; counter-increment: n;
    padding: 0 0 14px 38px; margin: 0;
}
.notice ol.etapes-aide li::before {
    content: counter(n);
    position: absolute; left: 0; top: 0;
    display: flex; align-items: center; justify-content: center;
    width: 25px; height: 25px; border-radius: 8px;
    background: var(--vert-050); color: var(--vert-700); font-size: 12px; font-weight: 700;
}
.notice ol.etapes-aide li em { color: var(--vert-700); font-style: normal; font-weight: 600; }
.notice .tbl-aide { font-size: 14px; }
.notice .tbl-aide th { width: 30%; color: var(--ink); font-weight: 650; text-transform: none;
    font-size: 14px; letter-spacing: 0; }
.notice .tbl-aide td { color: var(--slate); }
.notice ul.exemples { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; }
.notice ul.exemples li {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    padding: 8px 0; border-bottom: 1px solid var(--line-2);
}
.notice ul.exemples li span:first-child { font-weight: 650; }
.notice ul.exemples em { color: var(--slate-2); font-size: 13px; font-style: normal; }

/* ============================================================ RESPONSIVE */

@media (max-width: 900px) {
    /* Pas de backdrop-filter ici : il ferait de l'en-tête le bloc conteneur des
       éléments en position fixed, et le tiroir resterait enfermé dedans. */
    .top { padding: 0 14px; gap: 12px; background: var(--paper); backdrop-filter: none; }
    .brand strong { font-size: 14px; }

    /* --- Hamburger --- */
    .burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 0 10px; margin-right: -8px;
        border-radius: var(--r-s); cursor: pointer; flex-shrink: 0;
    }
    .burger span {
        display: block; height: 2px; width: 100%; border-radius: 2px;
        background: var(--ink); transition: transform .25s, opacity .18s;
    }
    .burger:active { background: var(--bg); }
    .menu-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* --- Voile --- */
    .voile {
        display: block; position: fixed; inset: 0; z-index: 45;
        background: rgba(11, 30, 24, .5); opacity: 0; pointer-events: none;
        transition: opacity .25s; backdrop-filter: blur(2px);
    }
    .menu-toggle:checked ~ .voile { opacity: 1; pointer-events: auto; }

    /* --- Tiroir de navigation --- */
    nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 46;
        width: min(80vw, 310px);
        display: flex; flex-direction: column; align-items: stretch; gap: 3px;
        padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
        background: var(--paper); box-shadow: var(--sh-2);
        transform: translateX(102%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto; overscroll-behavior: contain;
    }
    .menu-toggle:checked ~ nav { transform: none; }

    .nav-titre {
        display: block; margin: 0 0 12px; padding: 0 12px;
        color: var(--slate-2); font-size: 11px; font-weight: 700;
        text-transform: uppercase; letter-spacing: .14em;
    }
    nav a { padding: 13px 12px; font-size: 15.5px; border-radius: var(--r-s); }
    nav a.on { background: var(--vert-050); }
    nav a.cta { margin: 14px 0 0; justify-content: center; padding: 15px; font-size: 15px; }

    main { padding: 18px 14px 60px; }
    .page-titre h1 { font-size: 21px; }
    .card { padding: 16px 15px; border-radius: var(--r); }

    .kpis { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .kpi { padding: 13px 14px; }
    .kpi strong { font-size: 18px; }
    .kpi.major { grid-column: 1 / -1; }
    .kpi.major strong { font-size: 26px; }

    /* Confort tactile : cibles d'au moins 44 px, pas de zoom iOS à la saisie. */
    input, select, textarea { font-size: 16px; padding: 12px 12px; }
    button { min-height: 46px; padding: 12px 18px; }
    button.ghost { min-height: 42px; }
    details summary { min-height: 40px; padding: 9px 14px; }

    .grid-form { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .grid-form .w2, .grid-form .w3, .grid-form .w4,
    .grid-form .w5, .grid-form .w6, .grid-form button { grid-column: span 2; }

    .row-form { flex-wrap: wrap; }
    .row-form input { flex: 1 1 100%; }
    .row-form .mono { min-width: 0; text-align: left; font-weight: 650; }
    .cat-list li { padding: 12px 0; }

    .card-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .bouton-exemple { width: 100%; justify-content: center; min-height: 46px; }
    .controles li { flex-wrap: wrap; }
    .controles .link { width: 100%; padding-left: 32px; }
    .phase-total { text-align: left; }
    .phase-total small { display: inline; margin-left: 6px; }
    .gallery, .gallery.large { grid-template-columns: 1fr; }
    .notice .tbl-aide th { width: auto; }
}

/* Sous 720 px, les tableaux deviennent des fiches empilées : plus de scroll
   horizontal, chaque valeur porte son libellé. */
@media (max-width: 720px) {
    .repartition, .lignes, .tbl-aide { display: block; }
    .repartition thead, .lignes thead { display: none; }
    /* tbody doit être passé en block lui aussi, sinon le navigateur reconstruit
       une table anonyme et la largeur repart en débordement horizontal. */
    .repartition tbody, .lignes tbody, .tbl-aide tbody,
    .repartition tfoot, .lignes tfoot { display: block; }

    .repartition tr, .lignes tr {
        display: block; padding: 12px 13px; margin-bottom: 9px;
        border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper);
    }
    .lignes tr { background: #FCFDFE; }
    .tbl-aide tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); }

    .repartition td, .lignes td {
        display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
        border: none; padding: 4px 0; text-align: left;
    }
    /* Question / réponse : empilées plutôt que côte à côte, le texte est long. */
    .tbl-aide th, .tbl-aide td { display: block; border: none; padding: 0; }
    .tbl-aide th { margin-bottom: 3px; }
    .repartition td::before, .lignes td::before {
        content: attr(data-label);
        color: var(--slate-2); font-size: 11px; font-weight: 650;
        text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0;
    }
    .repartition td[data-label=""], .lignes td[data-label=""] { display: block; padding-top: 8px; }
    .repartition td small, .lignes td small { text-align: right; }
    .repartition td[data-label="#"] {
        color: var(--vert-700); font-weight: 700; padding-bottom: 6px;
        border-bottom: 1px solid var(--line-2); margin-bottom: 4px;
    }
    .lignes td[data-label="Libellé"] {
        display: block; font-weight: 650; padding-bottom: 8px;
        border-bottom: 1px solid var(--line-2); margin-bottom: 6px;
    }
    .lignes td[data-label="Libellé"]::before { display: none; }
    .lignes td[data-label="Total"] {
        font-size: 16px; padding-top: 8px; margin-top: 4px;
        border-top: 1px solid var(--line-2);
    }
    .bar-col, .actions { width: auto; }
    .repartition tfoot tr { background: var(--vert-050); border-color: var(--vert-100); }
    .tbl-aide th { font-weight: 700; }
}

@media (max-width: 430px) {
    .kpis { grid-template-columns: 1fr; }
    .grid-form { grid-template-columns: 1fr; }
    .grid-form .w2, .grid-form .w3, .grid-form .w4,
    .grid-form .w5, .grid-form .w6, .grid-form button { grid-column: span 1; }
    .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
