

:root {
    --font: 'Geist', 'Helvetica Neue', Arial, sans-serif;
    --paper:      #F5F4EF;
    --sheet:      #FFFFFF;
    --ink:        #17181A;
    --ink-2:      rgba(23, 24, 26, 0.68);
    --ink-3:      rgba(23, 24, 26, 0.48);
    --rule:       rgba(23, 24, 26, 0.12);
    --rule-firm:  rgba(23, 24, 26, 0.28);
    --marker:     #D8F24A;
    --annot:      #C42B18;
    --offert:     #2E6E4E;

    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast:  0.18s;
    --dur-med:   0.3s;

    --gouttiere: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }

::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
* { caret-color: var(--annot); }

a { color: inherit; text-underline-offset: 0.2em; }

@supports (scrollbar-color: auto) {
    html { scrollbar-color: var(--rule-firm) var(--paper); scrollbar-width: thin; }
}

.saut-contenu {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    z-index: 50;
    font-weight: 500;
}
.saut-contenu:focus { left: 0; }

.entete {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-firm);
}

.entete__barre {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0.9rem var(--gouttiere);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entete__marque {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}
.entete__marque img { height: 22px; width: auto; display: block; }

.entete__separateur {
    color: var(--ink-3);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.entete__client {
    font-size: 0.8125rem;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.entete__sortie {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--rule-firm);
    border-radius: 2px;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--ink-2);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
    font-weight: 500;
}
.entete__sortie:hover { color: var(--ink); border-color: var(--ink); }

.onglets {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 var(--gouttiere);
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }

.onglet {
    position: relative;
    padding: 0.7rem 0.9rem;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--ink-3);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out);
    font-weight: 500;
}
.onglet:hover { color: var(--ink-2); }
.onglet[aria-selected="true"] { color: var(--ink); }

.onglet[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.35rem;
    height: 0.45em;
    background: var(--marker);
    z-index: -1;
}

.onglet__pastille {
    display: inline-block;
    min-width: 1.15em;
    margin-left: 0.35em;
    padding: 0 0.3em;
    border-radius: 999px;
    background: var(--annot);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.page {
    max-width: 68rem;
    margin: 0 auto;
    padding: clamp(1.75rem, 5vw, 3rem) var(--gouttiere) 5rem;
}

.panneau[hidden] { display: none; }

.titre-page {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.sous-titre-page {
    margin-top: 0.5rem;
    color: var(--ink-2);
    font-size: 1.0625rem;
}

.mention-maj {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}

.avis-nouveau {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--marker);
    border-radius: 2px;
    font-size: 0.9375rem;
}
.avis-nouveau strong { font-weight: 700; }

.chiffres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1px;
    margin-top: 2rem;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 2px;
    overflow: hidden;
}

.chiffre {
    background: var(--sheet);
    padding: 1rem 1.1rem;
}
.chiffre__libelle {
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}
.chiffre__valeur {
    margin-top: 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.chiffre__note {
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    color: var(--ink-2);
}

.enveloppe { margin-top: 2rem; }

.enveloppe__ligne {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9375rem;
    color: var(--ink-2);
}
.enveloppe__ligne strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.enveloppe__piste {
    height: 10px;
    margin-top: 0.6rem;
    background: rgba(23, 24, 26, 0.1);
    border-radius: 5px;
    overflow: hidden;
}
.enveloppe__jauge {
    height: 100%;

    background: var(--marker);
    box-shadow: inset 0 0 0 1px rgba(23, 24, 26, 0.18);
    border-radius: 5px;

    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.enveloppe__jauge--depasse { background: var(--annot); }

.tableau-enveloppe {
    margin-top: 2.5rem;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: var(--sheet);
}

table.prestations {
    width: 100%;
    min-width: 40rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

table.prestations th {
    position: sticky;
    top: 0;
    background: var(--sheet);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rule-firm);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ink-3);
    white-space: nowrap;
}

table.prestations td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
table.prestations tbody tr:last-child td { border-bottom: none; }

.col-nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-date   { white-space: nowrap; font-size: 0.75rem; color: var(--ink-2);
    font-variant-numeric: tabular-nums; }

.presta__titre { font-weight: 600; }
.presta__desc  { margin-top: 0.35rem; color: var(--ink-2); font-size: 0.875rem; }

.texte-riche > p {
    margin: 0 0 0.6em;
    line-height: 1.5;
}
.texte-riche > p:last-child { margin-bottom: 0; }

.texte-riche__liste {
    margin: 0 0 0.6em;
    padding-left: 1.15em;
    list-style: none;
}
.texte-riche__liste:last-child { margin-bottom: 0; }

.texte-riche__liste li {
    position: relative;
    margin-bottom: 0.3em;
    line-height: 1.45;
}
.texte-riche__liste li:last-child { margin-bottom: 0; }

.texte-riche__liste li::before {
    content: "";
    position: absolute;
    left: -1.15em;
    top: 0.55em;
    width: 0.5em;
    height: 2px;
    background: var(--marker);
}

tr.est-offert td { background: rgba(46, 110, 78, 0.05); }
.montant-barre { text-decoration: line-through; color: var(--ink-3); }

.etiquette {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 500;
}
.etiquette--offert  { background: var(--offert); color: #fff; }
.etiquette--paye    { background: var(--ink); color: var(--paper); }
.etiquette--nouveau { background: var(--marker); color: var(--ink); }

table.prestations tfoot td {

    padding: 1.25rem 1rem 1.1rem;
    border-top: 2px solid var(--ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
table.prestations tbody tr:last-child td { padding-bottom: 1.1rem; }
table.prestations tfoot .mention-hors {
    font-weight: 400;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.encadre {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--ink);
    background: var(--sheet);
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.journal { margin-top: 2rem; border-left: 1px solid var(--rule-firm); }

.journal__entree {
    position: relative;
    padding: 0 0 2rem 1.5rem;
}
.journal__entree::before {
    content: "";
    position: absolute;
    left: -4.5px;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
}
.journal__entree--nouveau::before { background: var(--annot); }

.journal__date {
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}
.journal__note { margin-top: 0.4rem; font-size: 1rem; }
.journal__meta { margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-2); }

.documents { margin-top: 2rem; border-top: 1px solid var(--rule); }

.document {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}
.document__nom { font-weight: 600; }
.document__meta {
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}
.document__action { margin-left: auto; }
.document__actions { margin-left: auto; display: flex; gap: 0.5rem; flex-shrink: 0; }
.document__actions .document__action { margin-left: 0; }

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.7rem 1.25rem;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.8125rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-med) var(--ease-out);
    font-weight: 500;
}
.bouton:hover { box-shadow: 0 6px 16px rgba(23, 24, 26, 0.18); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: 0.5; cursor: progress; }

.bouton--discret {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-firm);
}
.bouton--discret:hover { border-color: var(--ink); box-shadow: none; }

.bouton--petit { padding: 0.45rem 0.85rem; font-size: 0.625rem; }

.formulaire { max-width: 34rem; margin-top: 2rem; }

.champs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.5rem 1.25rem;
}
.champ--large { grid-column: 1 / -1; }

.champ { display: flex; flex-direction: column; gap: 0.3rem; }

.champ label {
    font-size: 0.8125rem;
    color: var(--ink-2);
    font-weight: 500;
}

.champ input,
.champ select {
    width: 100%;
    padding: 0.55rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule-firm);
    border-radius: 0;
    font-size: 1.0625rem;
    color: var(--ink);
    transition: border-color var(--dur-fast) var(--ease-out);
}
.champ input::placeholder { color: var(--ink-3); }
.champ input:focus,
.champ select:focus { outline: none; border-bottom-color: var(--ink); }
.champ input:disabled { color: var(--ink-3); }

.champ__aide { font-size: 0.8125rem; color: var(--ink-3); }

.legende {
    margin-top: 2.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule-firm);
    font-size: 0.8125rem;
    color: var(--ink-2);
    font-weight: 500;
}
.legende:first-of-type { margin-top: 0; }

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin-top: 1.25rem;
    padding: 0.7rem 0.9rem;
    border-radius: 2px;
    font-size: 0.9375rem;
}
.message--erreur  { background: rgba(196, 43, 24, 0.08); color: var(--annot); }
.message--succes  { background: rgba(46, 110, 78, 0.1);  color: var(--offert); }

.vide {
    margin-top: 2rem;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--rule-firm);
    border-radius: 2px;
    text-align: center;
    color: var(--ink-2);
}
.vide__titre {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}
.vide p { margin-top: 0.4rem; font-size: 0.9375rem; }

.barre-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01s !important;
        transition-duration: 0.01s !important;
    }
}

@media print {
    .entete, .onglets, .barre-actions, .actions-hautes, .saut-contenu,
    .avis-nouveau, .projets, .avis-flottant, .visite { display: none !important; }

    body { background: #fff; font-size: 11pt; }
    .page { max-width: none; padding: 0; }

    .panneau[hidden] { display: none !important; }

    .tableau-enveloppe { border: none; overflow: visible; }
    table.prestations { min-width: 0; font-size: 10pt; }
    table.prestations th { position: static; }
    table.prestations tr { break-inside: avoid; }

    .chiffres { break-inside: avoid; }
    .enveloppe__jauge, tr.est-offert td, .etiquette {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a[href]::after { content: ""; }

    @page { size: A4; margin: 16mm 14mm 20mm; }
}

.case-notif {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    cursor: pointer;
}
.case-notif input {
    width: auto;
    padding: 0;
    accent-color: var(--ink);
}

.avis-flottant {

    position: fixed;
    left: 50%;

    top: 4.25rem;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(26rem, calc(100vw - 2rem));
    padding: 0.8rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(23, 24, 26, 0.3);
    font-size: 0.9375rem;
    line-height: 1.4;
}
.avis-flottant--succes { border-left: 3px solid var(--marker); }
.avis-flottant--erreur { border-left: 3px solid var(--annot); }

@media (prefers-reduced-motion: no-preference) {
    .avis-flottant { animation: avis-entre 0.35s var(--ease-out); }
    @keyframes avis-entre {
        from { transform: translate(-50%, -0.75rem); opacity: 0; }
        to   { transform: translate(-50%, 0);        opacity: 1; }
    }
}

.avis-flottant__fermer {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--paper);
    opacity: 0.7;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem;
}
.avis-flottant__fermer:hover { opacity: 1; }

@media print { .avis-flottant, .visite { display: none !important; } }

@media (prefers-reduced-motion: no-preference) {
    .visite__carte { animation: avis-entre 0.35s var(--ease-out); }
}

.paiement {
    margin-top: 1.5rem;
    border: 1px solid var(--rule-firm);
    border-radius: 3px;
    background: var(--sheet);
    padding: 1.25rem 1.4rem 1.4rem;
}
.paiement[hidden] { display: none; }

.paiement__entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.paiement__titre {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.paiement__fermer { color: var(--ink-3); }
.paiement__fermer:hover { color: var(--ink); }

.paiement__aide {
    margin-top: 0.4rem;
    font-size: 0.9375rem;
    color: var(--ink-2);
    max-width: 34rem;
}

.paiement__corps {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-top: 1.25rem;
    align-items: start;
}
@media (max-width: 40rem) {
    .paiement__corps { grid-template-columns: 1fr; }
}

.paiement__gauche .champ { max-width: 14rem; margin-bottom: 1rem; }
.paiement__gauche input { font-variant-numeric: tabular-nums; }

.paiement__details {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}
.paiement__details dt {
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-top: 0.75rem;
    font-weight: 500;
}
.paiement__details dd { margin: 0.15rem 0 0; color: var(--ink-2); }

.qr-cadre {
    position: relative;
    width: min(15rem, 70vw);
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 0.9rem;
    margin: 0 auto;
}
.qr-cadre svg:first-child { shape-rendering: crispEdges; }

.qr-croix {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}
.qr-croix svg { display: block; width: 100%; height: 100%; }

.page-paiement { display: none; }

@media print {
    .paiement { display: none !important; }

    .page-paiement {
        display: flex;
        flex-direction: column;
        break-before: page;
        height: 100%;
    }

    .page-paiement__marque {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        border-bottom: 2pt solid var(--ink);
        padding-bottom: 4mm;
    }
    .page-paiement__nom {
        font-size: 16pt;
        font-weight: 800;
        letter-spacing: -0.02em;
    }
    .page-paiement__sous {
        font-size: 6.5pt;
        color: var(--ink-2);
        margin-top: 1.5mm;
    font-weight: 500;
    }
    .page-paiement__doc {
        text-align: right;
        font-size: 8.5pt;
        color: var(--ink-2);
    }

    .page-paiement__note {
        margin-top: 6mm;
        font-size: 9.5pt;
        color: var(--ink-2);
        max-width: 120mm;
    }

    .zone-paiement {
        margin-top: auto;
        display: flex;
        border-top: 0.3pt dashed #000;
        color: #000;
        background: #fff;
        height: 105mm;
    }

    .recepisse {
        width: 62mm;
        flex-shrink: 0;
        border-right: 0.3pt dashed #000;
        padding: 5mm;
        display: flex;
        flex-direction: column;
    }
    .zahlteil { flex: 1; padding: 5mm; }

    .qr-sect  { font-size: 11pt; font-weight: 700; margin-bottom: 3mm; }
    .qr-label { font-size: 6pt;  font-weight: 700; margin-top: 2.6mm; }
    .zahlteil .qr-label { font-size: 8pt; }
    .qr-val   { font-size: 8pt;  line-height: 1.25; }
    .zahlteil .qr-val { font-size: 10pt; }

    .recepisse__bas {
        display: flex;
        gap: 8mm;
        margin-top: auto;
    }

    .zahlteil__colonnes { display: flex; gap: 5mm; }
    .zahlteil__qr { width: 51mm; flex-shrink: 0; }
    #qr-imprime {
        position: relative;
        width: 46mm;
        height: 46mm;
        margin: 2mm 0;
    }
    #qr-imprime svg:first-child { width: 100%; height: 100%; shape-rendering: crispEdges; }
    .zahlteil__bas { display: flex; gap: 6mm; }
    .zahlteil__infos { flex: 1; }

    .cadre-montant {
        width: 22mm;
        height: 8mm;
        margin-top: 1mm;
        background:
            linear-gradient(#000, #000) top left    / 2.5mm 0.3pt,
            linear-gradient(#000, #000) top left    / 0.3pt 2.5mm,
            linear-gradient(#000, #000) top right   / 2.5mm 0.3pt,
            linear-gradient(#000, #000) top right   / 0.3pt 2.5mm,
            linear-gradient(#000, #000) bottom left / 2.5mm 0.3pt,
            linear-gradient(#000, #000) bottom left / 0.3pt 2.5mm,
            linear-gradient(#000, #000) bottom right/ 2.5mm 0.3pt,
            linear-gradient(#000, #000) bottom right/ 0.3pt 2.5mm;
        background-repeat: no-repeat;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .cadre-montant--petit { width: 16mm; height: 7mm; }

    .zone-paiement, .qr-croix svg, #qr-imprime svg {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.projets {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.6rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.projet {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--rule-firm);
    border-radius: 2px;
    background: var(--sheet);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-out);
}
.projet:hover { border-color: var(--ink); }
.projet__nom {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projets-plus {
    margin: -0.75rem 0 clamp(1.5rem, 4vw, 2.25rem);
}
.projets-plus > summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: rgba(23, 24, 26, 0.55);
    padding: 0.35rem 0;
    font-weight: 500;
}
.projets-plus > summary:hover { color: var(--ink); }
.projets-plus > summary::marker { color: rgba(23, 24, 26, 0.35); }
.projets-plus[open] > summary { margin-bottom: 0.6rem; }
.projets-plus .projets { margin-bottom: 0; }

.projet--actif {
    border-color: var(--ink);
    box-shadow: inset 0 3px 0 var(--marker);
}

.projet__nom {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.projet__solde {
    font-size: 0.8125rem;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

@media print { .projets { display: none !important; } }

.chiffre__action { margin-top: 0.6rem; }

.paiements-recus {
    margin-top: 1.25rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: var(--sheet);
    padding: 0.75rem 1.1rem;
}
.paiements-recus__titre {
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-bottom: 0.35rem;
    font-weight: 500;
}
.paiements-recus__ligne {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}
.paiements-recus__ligne + .paiements-recus__ligne { border-top: 1px solid var(--rule); }
.paiements-recus__ligne span:last-child { font-weight: 600; }

.actions-hautes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.entete__session {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}
.entete__session .entete__sortie { margin-left: 0; }
.entete__email {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.avis-nouveau {
    align-items: center;
    justify-content: space-between;
}
.avis-nouveau__voir {
    flex-shrink: 0;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-out);
    font-weight: 500;
}
.avis-nouveau__voir:active { transform: translateY(1px); }

@keyframes ligne-eclair {
    0%, 45% { background: var(--marker); }
    100%    { background: transparent; }
}
.ligne-eclair td { animation: ligne-eclair 2.2s var(--ease-out); }

.qr-cadre { overflow: hidden; }

.qr-cadre::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28%;
    top: -30%;
    background: linear-gradient(
        to bottom,
        rgba(216, 242, 74, 0) 0%,
        rgba(216, 242, 74, 0.85) 45%,
        rgba(216, 242, 74, 0.85) 55%,
        rgba(216, 242, 74, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
}

.qr-cadre.qr-battement { animation: qr-cadre-eveil 0.9s var(--ease-out); }
.qr-cadre.qr-battement svg:first-child { animation: qr-dessin 0.9s var(--ease-out); }
.qr-cadre.qr-battement::after { animation: qr-balayage 0.9s var(--ease-out); }

@keyframes qr-balayage {
    0%   { top: -30%; opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes qr-dessin {
    0%   { clip-path: inset(0 0 100% 0); opacity: 0.25; }
    85%  { clip-path: inset(0 0 0 0);    opacity: 1; }
    100% { clip-path: inset(0 0 0 0);    opacity: 1; }
}

@keyframes qr-cadre-eveil {
    0%   { border-color: var(--marker); box-shadow: 0 0 0 4px rgba(216, 242, 74, 0.5); }
    80%  { border-color: var(--marker); box-shadow: 0 0 0 4px rgba(216, 242, 74, 0.5); }
    100% { border-color: var(--rule);   box-shadow: 0 0 0 0 rgba(216, 242, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {

    .qr-cadre.qr-battement::after { animation: none; opacity: 0; }
    .qr-cadre.qr-battement svg:first-child { animation: qr-fondu-simple 0.9s ease-out; }
    @keyframes qr-fondu-simple {
        from { opacity: 0.2; }
        to   { opacity: 1; }
    }
}

.qr-montant-actif {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ink-2);
    font-weight: 500;
}
.qr-montant-actif strong {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.qr-montant-actif.est-neuf strong { animation: montant-neuf 1.6s var(--ease-out); }
@keyframes montant-neuf {
    0%, 55% { background: var(--marker); }
    100%    { background: transparent; }
}

.carte {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 1.4rem 1.5rem 1.5rem;
    margin-top: 1.5rem;
}

.carte__titre {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.carte__corps { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-2); }
.carte__note  { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--ink-3); }
.carte__action { margin-top: 1.25rem; }

.carte .champ { margin-top: 1rem; }

.compte-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.compte-grille .carte { margin-top: 1.5rem; }
@media (max-width: 46rem) {
    .compte-grille { grid-template-columns: 1fr; gap: 0; }
}

.etiquette--inactive {
    background: transparent;
    border: 1px dashed var(--rule-firm);
    color: var(--ink-3);
}

.deuxfa {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}
@media (max-width: 40rem) {
    .deuxfa { flex-direction: column; gap: 1rem; }
}

.deuxfa__sceau {
    display: grid;
    grid-template-columns: repeat(3, 1.4rem);
    gap: 0.35rem;
    flex-shrink: 0;
    padding-top: 0.3rem;
}
.deuxfa__sceau span {
    height: 1.8rem;
    border: 1px dashed var(--rule-firm);
    border-radius: 2px;
    background: transparent;
}

.deuxfa__sceau--actif span {
    border-style: solid;
    border-color: var(--ink);
    background: var(--marker);
    animation: sceau-pose 0.35s var(--ease-out) backwards;
}
.deuxfa__sceau--actif span:nth-child(1) { animation-delay: 0.05s; }
.deuxfa__sceau--actif span:nth-child(2) { animation-delay: 0.12s; }
.deuxfa__sceau--actif span:nth-child(3) { animation-delay: 0.19s; }
.deuxfa__sceau--actif span:nth-child(4) { animation-delay: 0.26s; }
.deuxfa__sceau--actif span:nth-child(5) { animation-delay: 0.33s; }
.deuxfa__sceau--actif span:nth-child(6) { animation-delay: 0.40s; }
@keyframes sceau-pose {
    from { transform: scale(0.6); opacity: 0; background: var(--sheet); }
    to   { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .deuxfa__sceau--actif span { animation: none; }
}

.deuxfa__texte { flex: 1; min-width: 0; }

.deuxfa__form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;

    margin-top: 2.75rem;
}

.deuxfa__champ { max-width: 15rem; flex: 1; margin-top: 0 !important; }

@media (prefers-reduced-motion: no-preference) {
    .visite__carte--entre { animation: visite-entre 0.3s var(--ease-out); }
    @keyframes visite-entre {
        from { opacity: 0; transform: translateY(0.5rem); }
        to   { opacity: 1; transform: none; }
    }
}

.avis-flottant {

    top: 4.25rem;
    bottom: auto;
    max-width: min(30rem, calc(100vw - 2rem));
    padding: 1rem 1.25rem;
    font-size: 1rem;
    box-shadow: 0 14px 44px rgba(23, 24, 26, 0.4);
    border-left-width: 5px;
}
@media (prefers-reduced-motion: no-preference) {
    .avis-flottant { animation: avis-entre 0.4s var(--ease-out); }
}

.avis-nouveau {
    transition: opacity 0.35s var(--ease-out),
                transform 0.35s var(--ease-out),
                margin-top 0.35s var(--ease-out),
                max-height 0.4s var(--ease-out),
                padding 0.35s var(--ease-out);
    max-height: 12rem;
    overflow: hidden;
}
.avis-nouveau--parti {
    opacity: 0;
    transform: translateY(-0.4rem);
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.devis-entete {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--ink);
}

.devis-numero {
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.devis-meta { text-align: left; }
.devis-meta .devis-etat { margin-left: -0.7rem; }
.devis-meta__ligne {
    font-size: 0.8125rem;
    color: var(--ink-2);
    margin-top: 0.3rem;
    font-weight: 500;
}

.devis-etat {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}
.devis-etat--envoye  { background: var(--marker); color: var(--ink); }
.devis-etat--accepte { background: var(--offert); color: #fff; }
.devis-etat--refuse  { background: rgba(23, 24, 26, 0.1); color: var(--ink-2); }
.devis-etat--expire  { background: var(--annot); color: #fff; }
.devis-etat--brouillon { border: 1px dashed var(--rule-firm); color: var(--ink-3); }

.devis-pour {
    margin-top: 1.5rem;
    font-size: 1.0625rem;
}
.devis-pour__libelle {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-bottom: 0.2rem;
    font-weight: 500;
}
.devis-pour__nom { display: block; font-weight: 600; }
.devis-pour__personne { display: block; color: var(--ink-2); }
.devis-pour__adresse { display: block; color: var(--ink-2); font-size: 0.9375rem; }

.devis-expediteur,
.devis-pied { display: none; }

.encadre__libelle {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}

.barre-actions--devis {
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(23, 24, 26, 0.12);
}
.barre-actions__aide {
    font-size: 0.85rem;
    color: rgba(23, 24, 26, 0.55);
}
.bouton--pdf {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.bouton--pdf:hover { box-shadow: 0 6px 18px rgba(23, 24, 26, 0.28); }

.devis-intro {
    margin-top: 1.75rem;
    max-width: 44rem;
    font-size: 1.0625rem;
    color: var(--ink-2);
}

table.postes {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
table.postes th:first-child,
table.postes td:first-child { width: 100%; }
table.postes th:not(:first-child),
table.postes td:not(:first-child) { width: 1%; white-space: nowrap; }
table.postes th.col-nombre { text-align: right; }

.impression-seule { display: none; }

table.postes th abbr {
    text-decoration: none;
    border: none;
    cursor: inherit;
}

table.postes th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rule-firm);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ink-3);
    white-space: nowrap;
}
table.postes td {
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
table.postes tbody tr:last-child td { border-bottom: none; padding-bottom: 1.1rem; }
table.postes tfoot td {
    padding: 1.25rem 1rem 1.1rem;
    border-top: 2px solid var(--ink);
    font-size: 1.0625rem;
    font-variant-numeric: tabular-nums;
}

.tableau-enveloppe:has(table.postes) { margin-top: 2.5rem; }

.devis-decision {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border: 2px solid var(--ink);
    border-radius: 3px;
    background: var(--sheet);
}
.devis-decision--close {
    border-width: 1px;
    border-color: var(--rule-firm);
    background: transparent;
}

.devis-decision__titre {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.devis-decision__texte {
    margin-top: 0.5rem;
    max-width: 40rem;
    color: var(--ink-2);
    font-size: 0.9375rem;
}
.devis-decision__note {
    margin-top: 0.75rem;
    font-style: italic;
    color: var(--ink-2);
}
.devis-decision .champ { margin-top: 1.25rem; max-width: 28rem; }

.devis-decision__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.bouton--accepter {
    background: var(--marker);
    color: var(--ink);
    border-color: var(--ink);
    font-weight: 700;
}
.bouton--accepter:hover { box-shadow: 0 6px 18px rgba(216, 242, 74, 0.5); }

.devis-supplement { margin-top: 2.5rem; }
.devis-supplement__titre {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.devis-supplement__aide {
    margin-top: 0.35rem;
    max-width: 40rem;
    font-size: 0.875rem;
    color: var(--ink-2);
}
.devis-supplement__liste {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    border-top: 1px solid var(--rule-firm);
}
.devis-supplement__ligne {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}
.devis-supplement__case {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    accent-color: var(--ink);
    cursor: pointer;
}

.devis-supplement__corps {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
label.devis-supplement__corps { cursor: pointer; }
.devis-supplement__nom { font-weight: 600; }
.devis-supplement__desc { font-size: 0.875rem; color: var(--ink-2); }
.devis-supplement__prix {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
}
.devis-supplement--tiers .devis-supplement__prix { font-weight: 400; color: var(--ink-2); }
.devis-supplement__retenue {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.8125rem;
    vertical-align: 0.1em;
    font-weight: 500;
}
@media (max-width: 600px) {
    .devis-supplement__ligne { flex-wrap: wrap; }
    .devis-supplement__prix { flex-basis: 100%; padding-left: 2rem; }
    .devis-supplement--tiers .devis-supplement__prix { padding-left: 0; }
}

.devis-accord {
    margin: 1.5rem 0 0;
    padding: 1.1rem 1.25rem 1.2rem;
    border: 1px solid var(--rule-firm);
    border-radius: 3px;
    min-width: 0;
}
.devis-accord__titre {
    padding: 0 0.35rem;
    font-weight: 800;
    font-size: 1rem;
}
.devis-accord .champ { margin-top: 0.25rem; }
.devis-accord__case {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    max-width: 40rem;
    font-size: 0.9375rem;
    cursor: pointer;
}
.devis-accord__case input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    accent-color: var(--ink);
}
.devis-accord__aide {
    margin-top: 0.6rem;
    max-width: 40rem;
    font-size: 0.8125rem;
    color: var(--ink-3);
}
.devis-accord__aide--alerte { color: var(--annot); font-weight: 600; }

@media print {
    .page-devis .devis-decision,
    .page-devis .devis-espace,
    .page-devis .avis-flottant,
    .page-devis .barre-actions { display: none !important; }

    .page-devis .devis-expediteur {
        display: block;
        margin-bottom: 6mm;
        font-size: 9pt;
        line-height: 1.35;
        color: #000;
    }
    .page-devis .devis-expediteur__nom {
        font-size: 12pt;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .page-devis .page { padding-top: 0; }

    .page-devis .titre-page { font-size: 17pt; line-height: 1.1; }
    .page-devis .devis-numero { font-size: 7pt; margin-bottom: 1mm; }
    .page-devis .devis-meta__ligne { font-size: 7.5pt; margin-top: 0.6mm; }
    .page-devis .devis-etat { font-size: 7pt; padding: 0.6mm 2mm; }

    .page-devis .devis-entete {
        break-inside: avoid;
        padding-bottom: 3mm;
        margin-bottom: 0;
        gap: 6mm;
    }
    .page-devis .devis-pour { margin-top: 3mm; font-size: 10pt; }
    .page-devis .devis-pour__adresse { font-size: 9.5pt; }
    .page-devis .devis-intro {
        margin-top: 3mm;
        max-width: none;
        font-size: 10pt;
        line-height: 1.4;
    }

    .page-devis .tableau-enveloppe { margin-top: 3mm; }
    table.postes { min-width: 0; font-size: 10pt; }
    table.postes th { font-size: 7.5pt; }
    table.postes td { padding-top: 1.2mm; padding-bottom: 1.2mm; }
    table.postes th:not(:first-child),
    table.postes td:not(:first-child) { padding-left: 3mm; padding-right: 0; }
    table.postes th:not(:first-child) { white-space: normal; }
    .hors-impression { display: none; }
    .impression-seule { display: inline; }
    table.postes tfoot td {
        padding-top: 2.5mm;
        padding-bottom: 2mm;
        font-size: 11pt;
    }
    table.postes tfoot,
    table.prestations tfoot { display: table-row-group; }
    table.postes tr { break-inside: avoid; }
    .page-devis .presta__desc { font-size: 9pt; line-height: 1.35; }

    .page-devis .devis-meta .devis-etat { margin-left: -2mm; }

    .page-devis .texte-riche > p,
    .page-devis .texte-riche__liste { margin-bottom: 1.5mm; }
    .page-devis .texte-riche__liste li { margin-bottom: 0.8mm; }
    .page-devis .texte-riche__liste li::before {
        top: 0.5em;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .page-devis .encadre {
        margin-top: 4mm;
        padding: 2.5mm 4mm;
        font-size: 9pt;
        line-height: 1.4;
        break-inside: avoid;
    }
    .page-devis .encadre__libelle { font-size: 7pt; margin-bottom: 1mm; }

    .page-devis--close .devis-entete,
    .page-devis--close .devis-pour,
    .page-devis--close .devis-intro,
    .page-devis--close .tableau-enveloppe,
    .page-devis--close .encadre { opacity: 1; }

    .page-devis .devis-pied {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 1mm 6mm;
        padding-top: 2mm;
        border-top: 1px solid rgba(23, 24, 26, 0.25);
        font-size: 7pt;
        color: var(--ink-3);
        break-inside: avoid;
    font-weight: 500;
    }
    .page-devis .devis-pied__marque { color: var(--ink); }
    .page-devis .devis-pied__contact { margin-left: auto; }

    .page-devis .groupe__bascule { font-size: 7.5pt; }
    .page-devis .groupe__chevron { display: none; }
    .page-devis .devis-etat,
    .page-devis .groupe__compte {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.page-devis--close .devis-entete,
.page-devis--close .devis-pour,
.page-devis--close .devis-intro,
.page-devis--close .tableau-enveloppe,
.page-devis--close .encadre {
    opacity: 0.62;
}

.page-devis--close .tableau-enveloppe { position: relative; }

.page-devis--close table.postes tfoot td { opacity: 1; }

.bouton--refus {
    background: transparent;
    color: var(--annot);
    border-color: rgba(196, 43, 24, 0.35);
}
.bouton--refus:hover {
    border-color: var(--annot);
    box-shadow: none;
}

.page-devis .page { padding-top: clamp(2rem, 5vw, 3rem); }
.devis-entete { margin-bottom: 0; }
.devis-decision + .barre-actions { margin-top: 1.5rem; }
.devis-decision__actions .bouton { margin: 0; }

@media (max-width: 34rem) {
    .devis-decision { padding: 1.25rem; }
    .devis-decision__actions { flex-direction: column; }
    .devis-decision__actions .bouton { width: 100%; }
    .devis-entete { flex-direction: column; gap: 0.75rem; }
}

.rapport {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
@media (max-width: 40rem) {
    .rapport { flex-direction: column; gap: 1rem; }
}

.rapport__icone {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-firm);
    border-radius: 2px;
    background: var(--marker);
    color: var(--ink);
}
.rapport__icone svg { width: 1.6rem; height: 1.6rem; }

.rapport__texte { flex: 1; min-width: 0; }
.rapport__texte .barre-actions { margin-top: 1.25rem; }

.devis-refus {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--annot);
    border-left-width: 3px;
    border-radius: 0 6px 6px 0;
    background: rgba(196, 43, 24, 0.04);
}
.devis-refus[hidden] { display: none; }
.devis-refus__texte {
    margin: 0 0 0.9rem;
    line-height: 1.5;
}
.devis-refus__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.devis-decision__actions[hidden] { display: none; }

.devis-espace {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1rem);
    margin-top: 2.5rem;
    padding: 0.65rem clamp(0.9rem, 3vw, 1.4rem);
    background: var(--ink);
    color: var(--paper);
}

.devis-espace__signe {
    flex: none;
    width: 1.1rem;
    height: 1rem;
    color: var(--marker);
}

.devis-espace__texte {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--paper);
}

.devis-espace__texte mark {
    padding: 0 0.2em;
    background: var(--marker);
    color: var(--ink);
    font-weight: 600;
}

.devis-espace .bouton {
    flex: none;
    margin-left: auto;
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}
.devis-espace .bouton::after { color: var(--ink); }

@media (max-width: 34rem) {
    .devis-espace { flex-wrap: wrap; }
    .devis-espace__texte { flex: 1 1 100%; order: 2; }
    .devis-espace .bouton { order: 3; margin-left: 0; width: 100%; }
}

.page-legale__corps {
    max-width: 68ch;
    margin-top: 2rem;
}
.page-legale__corps p {
    margin: 0 0 1.1rem;
    line-height: 1.65;
}
.page-legale__titre {
    font-family: var(--titre, inherit);
    font-size: 1.15rem;
    margin: 2.25rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(23, 24, 26, 0.12);
}
.page-legale__corps > .page-legale__titre:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.page-legale__liste {
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
}
.page-legale__liste li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.page-legale__date {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: rgba(23, 24, 26, 0.55);
}

.pied-client {
    margin-top: 5rem;
    border-top: 1px solid var(--rule-firm, rgba(23, 24, 26, 0.14));
}
.pied-client__interieur {
    max-width: 68rem;
    margin: 0 auto;
    padding: 1.4rem var(--gouttiere) 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem 2.5rem;
}
.pied-client__mention {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(23, 24, 26, 0.5);
    max-width: 46ch;
}
.pied-client__liens {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.pied-client__liens a {
    font-size: 0.8125rem;
    color: rgba(23, 24, 26, 0.55);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(23, 24, 26, 0.18);
    font-weight: 500;
}
.pied-client__liens a:hover,
.pied-client__liens a:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

@media (max-width: 640px) {
    .pied-client__interieur { flex-direction: column; align-items: flex-start; }
}

@media print { .pied-client { display: none; } }

a.entete__client {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
a.entete__client:hover,
a.entete__client:focus-visible { border-bottom-color: currentColor; }

.bouton--vif {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0;
    padding-left: 2.1rem;
}

.bouton--vif.bouton--petit { padding-left: 1.7rem; }

.bouton--vif > .bouton__mot {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.22s ease-out;
}

.bouton--vif::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.85rem;
    z-index: 1;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.225rem;
    border-radius: 999px;
    background: var(--marker);
    transition: all 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.bouton--vif.bouton--petit::before { left: 0.7rem; }

.bouton--vif::after {
    content: attr(data-vif) "  \2192";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre;
    color: var(--ink);
    opacity: 0;
    transform: translateX(2.5rem);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.22s ease-out;
}

.bouton--vif:hover > .bouton__mot,
.bouton--vif:focus-visible > .bouton__mot {
    transform: translateX(2.5rem);
    opacity: 0;
}

.bouton--vif:hover::after,
.bouton--vif:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.bouton--vif:hover::before,
.bouton--vif:focus-visible::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
    border-radius: 0;
}

.bouton--vif.bouton--accepter::before { background: var(--ink); }
.bouton--vif.bouton--accepter::after  { color: var(--paper); }

.bouton--vif.bouton--refus::before { background: var(--ink); }
.bouton--vif.bouton--refus::after  { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
    .bouton--vif > .bouton__mot,
    .bouton--vif::before,
    .bouton--vif::after { transition-duration: 0.01ms; }
}

.ls,
.ls__liste {
    --ls-fond:   var(--dash-accent-soft, var(--surface-1, #efeee9));
    --ls-carte:  var(--dash-card-bg-solid, var(--paper, #f5f4ef));
    --ls-encre:  var(--dash-text, var(--ink, #17181a));
    --ls-pale:   var(--dash-text-muted, var(--ink-2, rgba(23, 24, 26, 0.62)));
    --ls-bord:   var(--dash-border, var(--rule, rgba(23, 24, 26, 0.14)));
    --ls-actif:  var(--dash-marker, var(--marker, #d8f24a));
    --ls-rayon:  var(--dash-radius, 10px);
}

.ls {
    position: relative;
    display: block;
}

.ls > select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ls__bouton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--ls-fond);
    border: 1px solid var(--ls-bord);
    border-radius: var(--ls-rayon);
    color: var(--ls-encre);
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ls__bouton:hover { border-color: var(--ls-encre); }

.ls__bouton:focus-visible {
    outline: 2px solid var(--ls-encre);
    outline-offset: 2px;
}

.ls--ouverte .ls__bouton { border-color: var(--ls-encre); }

.ls__valeur {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls__valeur--vide { color: var(--ls-pale); }

.ls__chevron {
    flex: none;
    width: 0.75rem;
    height: 0.5rem;
    color: var(--ls-pale);
    transition: transform 0.2s;
}

.ls--ouverte .ls__chevron { transform: rotate(180deg); }

.ls--inactif .ls__bouton {
    opacity: 0.55;
    cursor: not-allowed;
}

.ls__liste {
    position: fixed;
    z-index: 9500;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: var(--ls-carte);
    border: 1px solid var(--ls-bord);
    border-radius: var(--ls-rayon);
    box-shadow: 0 12px 32px rgba(23, 24, 26, 0.18);
}

.ls__liste:focus { outline: none; }

.ls__opt {
    padding: 0.55rem 0.7rem;
    border-radius: calc(var(--ls-rayon) - 4px);
    color: var(--ls-encre);
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
}

.ls__opt.est-actif { background: var(--ls-actif); }

.ls__opt[aria-selected="true"] { font-weight: 600; }

.ls__opt[aria-selected="true"]::after {
    content: "  \2713";
    color: var(--ls-pale);
}

.ls__opt.est-actif[aria-selected="true"]::after { color: var(--ls-encre); }

.ls__opt[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.ls__groupe {
    padding: 0.6rem 0.7rem 0.3rem;
    color: var(--ls-pale);
    font-size: 0.8125rem;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .ls__bouton,
    .ls__chevron { transition: none; }
}

.visite {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2rem);
    background: rgba(23, 24, 26, 0.42);
    backdrop-filter: blur(3px);
}

.visite__carte {
    display: flex;
    flex-direction: column;
    width: min(30rem, 100%);
    max-height: 92vh;
    max-height: 92dvh;
    overflow: hidden;
    background: var(--sheet);
    border: 1px solid var(--rule-firm);
    border-radius: 3px;
    box-shadow: 0 18px 44px rgba(23, 24, 26, 0.28);
}

.visite__carte:focus { outline: none; }

.visite__vue {
    flex: none;
    padding: clamp(1rem, 4vw, 1.5rem);
    background:
        linear-gradient(rgba(23, 24, 26, 0.035), rgba(23, 24, 26, 0.035)),
        var(--paper);
    border-bottom: 1px solid var(--rule);
    transition: filter 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.24s ease-out;
}

.visite__dire {
    padding: clamp(1rem, 4vw, 1.4rem);
    overflow-y: auto;
    transition: filter 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.24s ease-out;
}

.visite--sort .visite__vue,
.visite--sort .visite__dire {
    filter: blur(9px);
    opacity: 0;
    transform: translateY(6px) scale(0.985);
}

.visite--entre .visite__vue {
    animation: visiteEntre 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.visite--entre .visite__dire {
    animation: visiteEntre 0.46s cubic-bezier(0.16, 1, 0.3, 1) 0.07s both;
}

@keyframes visiteEntre {
    from { filter: blur(12px); opacity: 0; transform: translateY(12px) scale(0.99); }
    to   { filter: blur(0);    opacity: 1; transform: none; }
}

.visite__titre {
    margin: 0;
    font-size: clamp(1.15rem, 4.5vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.visite__texte {
    margin: 0.5rem 0 0;
    max-width: 42ch;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.visite__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.15rem;
}

.visite__puces {
    display: flex;
    gap: 0.35rem;
}

.visite__puce {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--rule-firm);
    transition: background 0.3s ease-out, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.visite__puce.est-faite {
    background: var(--ink);
    transform: scale(1.15);
}

.visite__passer {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--ink-3);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    font-weight: 500;
}

.visite__passer:hover,
.visite__passer:focus-visible { color: var(--ink); }

.visite__compte {
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}

.sc {
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--ink-2);
}

.sc-entete,
.sc-ligne,
.sc-total {
    display: grid;
    grid-template-columns: 2.6rem 1fr 3.2rem;
    gap: 0.6rem;
    align-items: baseline;
    padding: 0.42rem 0;
}

.sc-entete {
    padding-top: 0;
    border-bottom: 1px solid var(--rule-firm);
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}

.sc-ligne + .sc-ligne,
.sc-total { border-top: 1px solid var(--rule); }

.sc-total {
    margin-top: 0.15rem;
    border-top-color: var(--ink);
    font-weight: 700;
    color: var(--ink);
}

.sc-date,
.sc-montant {
    font-size: 0.625rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.sc-montant { text-align: right; }

.sc-total-lib { grid-column: 1 / 3; }

.sc-total .sc-montant,
.sc-total .sc-total-lib { color: var(--ink); }

.sc--suivi .sc-note { margin: 0.45rem 0 0.55rem; }
.sc--suivi .sc-note + .sc-ligne { border-top: 0; }

.sc-titre {
    color: var(--ink);
    font-weight: 500;
}

.sc-chip {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.3rem;
    background: var(--marker);
    border-radius: 2px;
    font-size: 0.8125rem;
    font-style: normal;
    color: var(--ink);
    vertical-align: 0.08em;
    font-weight: 500;
}

.sc--qr {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 4vw, 1.4rem);
}

.sc-qr {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    flex: none;
    width: 5.4rem;
    height: 5.4rem;
    padding: 0.3rem;
    background: var(--sheet);
    border: 1px solid var(--rule-firm);
}

.sc-qr i { background: transparent; }
.sc-qr i.on { background: var(--ink); }

.sc-qr-infos {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.sc-etiq {
    font-size: 0.8125rem;
    color: var(--ink-3);
    font-weight: 500;
}

.sc-somme {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.sc-somme em {
    font-size: 0.6rem;
    font-style: normal;
    color: var(--ink-3);
}

.sc-jauge {
    height: 0.3rem;
    margin: 0.15rem 0 0.25rem;
    background: var(--rule);
    border-radius: 999px;
    overflow: hidden;
}

.sc-jauge span {
    display: block;
    height: 100%;
    background: var(--marker);
}

.sc--docs {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sc-journal,
.sc-doc {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    background: var(--sheet);
    border: 1px solid var(--rule);
}

.sc-journal .sc-date { margin-left: auto; }

.sc-puce {
    flex: none;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--marker);
    box-shadow: 0 0 0 3px rgba(216, 242, 74, 0.3);
}

.sc-doc svg {
    flex: none;
    width: 0.8rem;
    height: 1rem;
    color: var(--ink-3);
}

.sc-tele {
    margin-left: auto;
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--rule-firm);
    font-size: 0.5rem;
    letter-spacing: 0.07em;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.sc--compte {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sc-rang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    color: var(--ink);
}

.sc-rang + .sc-rang { border-top: 1px solid var(--rule); }

.sc-bascule {
    flex: none;
    width: 1.65rem;
    height: 0.9rem;
    padding: 0.12rem;
    background: var(--rule);
    border-radius: 999px;
}

.sc-bascule i {
    display: block;
    width: 0.66rem;
    height: 0.66rem;
    border-radius: 999px;
    background: var(--sheet);
    box-shadow: 0 1px 2px rgba(23, 24, 26, 0.3);
    transition: transform 0.2s ease-out;
}

.sc-bascule.on { background: var(--ink); }
.sc-bascule.on i { transform: translateX(0.75rem); }

@media (orientation: landscape) and (max-height: 30rem) {
    .visite__carte {
        flex-direction: row;
        width: min(44rem, 100%);
        max-height: 94dvh;
    }

    .visite__vue {
        display: flex;
        align-items: center;
        width: 45%;
        border-bottom: 0;
        border-right: 1px solid var(--rule);
    }

    .visite__vue > .sc { width: 100%; }

    .visite__dire {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .visite__texte { font-size: 0.875rem; }
    .visite__actions { margin-top: 0.9rem; }
    .visite__compte { margin-top: 0.6rem; }

    .sc--qr { flex-direction: row; }
    .sc-qr { width: 4.2rem; height: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .visite,
    .visite__vue,
    .visite__dire,
    .visite__puce,
    .sc-bascule i { transition: none; animation: none; }
    .visite { backdrop-filter: none; }
}

.sc-note {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.7rem 0 0;
    font-size: 0.5625rem;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: var(--annot);
    font-variant-numeric: tabular-nums;
}

.sc-note svg {
    flex: none;
    width: 1.05rem;
    height: 0.95rem;
    margin-top: -0.1rem;
}

.sc-note--gauche { justify-content: flex-start; }

.sc-note--droite {
    justify-content: flex-start;
    margin-top: 0.85rem;
}

.sc-note--haut svg { transform: none; }

.sc--qr-bloc {
    display: flex;
    flex-direction: column;
}

@media (orientation: landscape) and (max-height: 30rem) {
    .sc-note { margin-top: 0.5rem; font-size: 0.5rem; }
    .sc--suivi .sc-note,
    .sc--compte .sc-note { display: none; }
}

.suggestion {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1rem);
    padding: 0.5rem clamp(1rem, 5vw, 2.5rem);
    background: var(--ink);
    color: var(--paper);
}

.suggestion__signe {
    flex: none;
    width: 0.85rem;
    height: 1rem;
    color: var(--marker);
}

.suggestion__texte {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--paper);
}

.suggestion__texte mark {
    padding: 0 0.2em;
    background: var(--marker);
    color: var(--ink);
    font-weight: 600;
}

.suggestion .bouton {
    flex: none;
    margin-left: auto;
    padding: 0.35rem 0.8rem;
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
    font-size: 0.8125rem;
}

.suggestion .bouton::after { color: var(--ink); }

.suggestion__fermer {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(245, 244, 239, 0.55);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.suggestion__fermer:hover,
.suggestion__fermer:focus-visible { color: var(--paper); }

@media (max-width: 46rem) {

    .suggestion {
        position: relative;
        flex-wrap: wrap;
        row-gap: 0.45rem;
        padding-block: 0.55rem;
        padding-right: 2.4rem;
    }

    .suggestion__signe {
        order: 1;
        align-self: flex-start;
        margin-top: 0.1rem;
    }

    .suggestion__texte {
        flex: 1 1 0;
        order: 2;
        font-size: 0.78125rem;
    }

    .suggestion .bouton {
        order: 3;
        flex: 0 0 auto;
        margin-left: 1.45rem;
    }

    .suggestion__fermer {
        position: absolute;
        top: 0.3rem;
        right: 0.5rem;
    }
}

.prestations .groupe td,
.postes .groupe td {
    padding-top: 1.1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ink);
    vertical-align: bottom;
}

.prestations .groupe:first-child td,
.postes .groupe:first-child td { padding-top: 0.2rem; }

.groupe__bascule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 0.8125rem;
    cursor: pointer;
    font-weight: 500;
}

.groupe__chevron {
    width: 0.6rem;
    height: 0.4rem;
    color: var(--ink-3);
    transition: transform 0.22s var(--ease-out);
}

.groupe__bascule[aria-expanded="false"] .groupe__chevron { transform: rotate(-90deg); }

.groupe__compte {
    padding: 0 0.35rem;
    background: var(--marker);
    color: var(--ink);
    font-size: 0.75rem;
}

.prestations .groupe .col-nombre,
.postes .groupe .col-nombre {
    font-size: 0.75rem;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .groupe__chevron { transition: none; }
}

.lien-nu {
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.lien-nu:hover,
.lien-nu:focus-visible { color: var(--ink); }

.mention-maj__sep { margin: 0 0.35rem; opacity: 0.5; }

.est-designe {
    outline: 1px solid var(--ink);
    outline-offset: 6px;
    animation: designeCadre 2.6s var(--ease-out) forwards;
}

.est-designe .carte__titre {

    width: fit-content;
    max-width: 100%;
    background-image: linear-gradient(var(--marker), var(--marker));
    background-repeat: no-repeat;
    background-position: 0 0.15em;
    background-size: 0 1.05em;
    animation: designeTrait 2.6s var(--ease-out) forwards;
}

@keyframes designeTrait {
    0%   { background-size: 0 1.05em; }
    18%  { background-size: 100% 1.05em; }
    72%  { background-size: 100% 1.05em; }
    100% { background-size: 100% 1.05em; opacity: 1; }
}

@keyframes designeCadre {
    0%   { outline-color: var(--ink); }
    72%  { outline-color: var(--ink); }
    100% { outline-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .est-designe,
    .est-designe .carte__titre { animation: none; }
    .est-designe .carte__titre { background-size: 100% 1.05em; }
}

.sc--notifs {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sc-mail {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    margin-bottom: 0.6rem;
    padding: 0.6rem 0.7rem;
    background: var(--sheet);
    border: 1px solid var(--rule);
}

.sc-objet {
    flex: 1 1 100%;
    color: var(--ink-2);
}

.sc-rang .sc-tele { margin-left: 0; }

.technos { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.techno {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem 0.15rem 0.35rem;
    border: 1px solid var(--rule, rgba(23,24,26,0.18));
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--ink-2);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}
.techno__logo { width: 12px; height: 12px; object-fit: contain; }
@media print {
    .techno { border-color: #999; color: #333; }
}

.devis-etat--clos { background: rgba(23, 24, 26, 0.08); color: var(--ink-3); }
.document--annule { opacity: 0.55; }

@media screen and (max-width: 600px) {
    .tableau-enveloppe:has(table.postes) { overflow: visible; }
    table.postes { min-width: 0; }
    table.postes caption, table.postes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    table.postes, table.postes tbody, table.postes tfoot, table.postes tr, table.postes td { display: block; width: auto; }
    table.postes tr[hidden] { display: none; }
    table.postes tbody tr { padding: 0.9rem 1rem; border-bottom: 1px solid var(--rule); }
    table.postes tbody tr:last-child { border-bottom: none; }
    table.postes td,
    table.postes tbody tr:last-child td { padding: 0; border: none; }
    table.postes td:first-child { width: auto; margin-bottom: 0.55rem; }
    table.postes td:not(:first-child) {
        width: auto;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.15rem 0;
        white-space: normal;
        font-variant-numeric: tabular-nums;
    }
    table.postes td[data-libelle]::before {
        content: attr(data-libelle);
        font-size: 0.8125rem;
        color: var(--ink-3);
        align-self: center;
    font-weight: 500;
    }
    table.postes td[data-libelle="Total"] { font-weight: 600; }
    table.postes tr.groupe { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--sheet); }
    table.postes tr.groupe { border-bottom: 1px solid var(--ink); padding-bottom: 0.5rem; }
    table.postes tr.groupe td { border-bottom: none; padding-top: 0; padding-bottom: 0; }
    table.postes tr.groupe td:first-child { margin-bottom: 0; }
    table.postes tr.groupe td:not(:first-child) { padding: 0; }
    table.postes tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem; border-top: 2px solid var(--ink); }
    table.postes tfoot td { padding: 0; border: none; }
}

:root {
    --dur-appui: 120ms;
    --dur-entree: 240ms;
    --dur-sortie: 150ms;
    --courbe: cubic-bezier(0.2, 0, 0, 1);
}

.bouton { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.005em; }
.bouton--petit { font-size: 0.8125rem; }
.bouton {
    transition-property: scale, box-shadow, background-color, border-color, color, opacity;
    transition-duration: var(--dur-appui), var(--dur-sortie), var(--dur-sortie), var(--dur-sortie), var(--dur-sortie), var(--dur-entree);
    transition-timing-function: var(--courbe);
}
.bouton:hover { transition-duration: var(--dur-appui), var(--dur-entree), var(--dur-entree), var(--dur-entree), var(--dur-entree), var(--dur-entree); }
.bouton:active:not(:disabled) { transform: none; scale: 0.96; }

.bouton--vif::before,
.bouton--vif.bouton--petit::before,
.bouton--vif:hover::before,
.bouton--vif:focus-visible::before {
    top: 0; left: 0; width: 100%; height: 100%; margin-top: 0; border-radius: 0;
}
.bouton--vif::before { clip-path: circle(0.225rem at 1.075rem 50%); transition: clip-path 180ms var(--courbe); }
.bouton--vif.bouton--petit::before { clip-path: circle(0.225rem at 0.925rem 50%); }
.bouton--vif:hover::before,
.bouton--vif:focus-visible::before { clip-path: circle(150% at 1.075rem 50%); transition-duration: 420ms; }
.bouton--vif.bouton--petit:hover::before,
.bouton--vif.bouton--petit:focus-visible::before { clip-path: circle(150% at 0.925rem 50%); }
.bouton--vif > .bouton__mot,
.bouton--vif::after { transition: transform 160ms var(--courbe), opacity 120ms var(--courbe); }
.bouton--vif:hover > .bouton__mot,
.bouton--vif:hover::after,
.bouton--vif:focus-visible > .bouton__mot,
.bouton--vif:focus-visible::after { transition-duration: 280ms, 200ms; }

.devis-supplement__case,
.devis-accord__case input,
.case-notif input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.1rem 0 0;
    border-radius: 5px;
    background: var(--sheet);
    box-shadow: inset 0 0 0 1.5px var(--rule-firm);
    cursor: pointer;

    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    transition: background-color var(--dur-sortie) var(--courbe),
                box-shadow var(--dur-sortie) var(--courbe),
                scale var(--dur-appui) var(--courbe);
}
.devis-supplement__case::after,
.devis-accord__case input::after,
.case-notif input::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23D8F24A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 120ms var(--courbe);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.devis-supplement__case:hover,
.devis-accord__case input:hover,
.case-notif input:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.devis-supplement__case:checked,
.devis-accord__case input:checked,
.case-notif input:checked { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.devis-supplement__case:checked::after,
.devis-accord__case input:checked::after,
.case-notif input:checked::after { clip-path: inset(0 0 0 0); transition-duration: 220ms; transition-delay: 40ms; }
.devis-supplement__case:active,
.devis-accord__case input:active,
.case-notif input:active { scale: 0.96; }
.devis-supplement__case:focus-visible,
.devis-accord__case input:focus-visible,
.case-notif input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.devis-supplement__case:disabled,
.case-notif input:disabled { cursor: default; opacity: 0.6; }

.devis-supplement__ligne {
    margin-inline: -0.6rem;
    padding-inline: 0.6rem;
    border-radius: 8px;
    transition: background-color var(--dur-sortie) var(--courbe);
}
.devis-supplement__ligne:has(.devis-supplement__case:checked) {
    background: rgba(216, 242, 74, 0.28);
    transition-duration: var(--dur-entree);
}

.devis-accord { transition: border-color var(--dur-entree) var(--courbe); }
.devis-accord:has(.devis-accord__case input:checked) { border-color: var(--ink); }
.devis-accord__aide { transition: color var(--dur-entree) var(--courbe); }
.bouton--accepter.est-incomplet { opacity: 0.55; }
.champ input { transition: border-color var(--dur-sortie) var(--courbe); }
.champ input:focus { transition-duration: var(--dur-entree); }

@media print {
    .devis-supplement__ligne:has(.devis-supplement__case:checked) { background: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bouton--vif::before,
    .bouton--vif > .bouton__mot,
    .bouton--vif::after,
    .devis-supplement__case::after,
    .devis-accord__case input::after,
    .case-notif input::after { transition-duration: 0.01ms; transition-delay: 0s; }
}

code, kbd, samp, pre { font-family: inherit; }
