/* =====================================================================
   CARONNA Brain — charte graphique « Ardoise et émeraude »
   Voir CHARTE.md. Pour changer l'apparence : modifiez uniquement les variables ci-dessous.
   (Noms de variables historiques conservés : --sapin = ardoise, --mousse et --laiton = émeraude.)
   ===================================================================== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("poppins-700.woff") format("woff"); }
:root {
  /* Couleurs */
  --sauge: #F5F7FA;        /* fond de page */
  --papier: #FFFFFF;       /* panneaux, champs */
  --encre: #0F1B2D;        /* texte principal, ardoise */
  --encre-2: #5B6777;      /* texte secondaire */
  --trait: #E2E7EE;        /* bordures, séparateurs */
  --sapin: #0F1B2D;        /* ardoise profonde : barre latérale, en-tête */
  --sapin-clair: #E8F5EF;  /* survols, fonds d'information (menthe) */
  --mousse: #0E9F6E;       /* émeraude : graphiques, montants positifs */
  --laiton: #10B981;       /* émeraude vive : accent, logo, page active */
  --action: #0C8A60;       /* boutons principaux (contraste AA sur blanc) */
  --brique: #C2413A;       /* alertes, dépassements, dettes */
  --brique-fond: #FCEBEA;
  --sur-sapin: #E6ECF3;    /* texte sur fond ardoise */

  /* Typographie : Poppins (fichiers servis par le site), repli sur les polices système */
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Poppins", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Formes */
  --r-panneau: 16px;
  --r-champ: 10px;
  --ombre: 0 1px 2px rgba(15, 27, 45, .04), 0 4px 16px rgba(15, 27, 45, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sauge: #0A111E; --papier: #111A2B; --encre: #E6EDF5; --encre-2: #93A1B3; --trait: #1E2A3E;
    --sapin: #070D18; --sapin-clair: #12291F; --mousse: #34D399; --laiton: #34D399; --action: #10B981;
    --brique: #F08A82; --brique-fond: #3A2224; --sur-sapin: #DCE4EE;
    --ombre: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.6 var(--sans); background: var(--sauge); color: var(--encre); }
a { color: var(--sapin); text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--mousse); } }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Typographie : titres et chiffres en serif, texte courant en sans */
h1, h2, h3, .t-val, .phrase, .phrase-soc { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
h1 { font-size: 2rem; font-weight: 700; line-height: 1.15; margin: 0 0 .25rem; letter-spacing: -.025em; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .9rem; }
h2.section { font-size: 1.05rem; color: var(--encre-2); margin: 1.6rem 0 .7rem; font-weight: 600; }
h3.petit { font-size: .95rem; margin: 1rem 0 .4rem; }
.muted { color: var(--encre-2); margin: 0; }
.petit { font-size: .85rem; }
.num, td, .b-montant { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- structure */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.app > *, .grille2 > *, .tuiles > * { min-width: 0; }
.cote { background: var(--sapin); color: var(--sur-sapin); padding: 1.4rem .9rem 1.2rem; display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 0; height: 100vh; }
.marque { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; padding: 0 .5rem; color: #fff; }
.marque svg { width: 30px; height: 30px; flex: none; }
#menu { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
#menu a { position: relative; padding: .5rem .7rem .5rem .9rem; border-radius: var(--r-champ); text-decoration: none; color: var(--sur-sapin); opacity: .82; }
#menu a:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
#menu a.actif { opacity: 1; background: rgba(255, 255, 255, .1); font-weight: 600; }
#menu a.actif::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 2px; background: var(--laiton); }
#menu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: .6rem .7rem; }
.cote .btn.lien { color: var(--sur-sapin); opacity: .7; }
.colonne { min-width: 0; }
.contenu { padding: 2rem 2.4rem 4rem; max-width: 1180px; width: 100%; }
.bandeau { background: var(--sapin-clair); color: var(--encre); padding: .55rem 2.4rem; font-size: .88rem; border-bottom: 1px solid var(--trait); }
.entete { margin-bottom: 1.4rem; }
.entete.ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.entete .muted { max-width: 70ch; }

/* ---------------------------------------------------------------- panneaux */
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-panneau); padding: 1.25rem 1.4rem; margin-bottom: 1.1rem; overflow-x: auto; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.grille2 > .carte { margin-bottom: 0; }
.encart { background: var(--sapin-clair); border-radius: var(--r-champ); padding: .85rem 1.1rem; margin: 0 0 1.1rem; }
.encart.alerte { background: var(--brique-fond); border-left: 3px solid var(--brique); }
.encart.alerte div + div { margin-top: .25rem; }
.bandeau + .contenu .encart:first-child { margin-top: 0; }

/* La phrase d'ouverture : l'élément signature de la charte */
.phrase { margin: 0 0 1.6rem; max-width: 46rem; }
.phrase p { margin: 0 0 .35rem; font-size: 1.45rem; line-height: 1.35; }
.phrase strong { font-weight: 600; border-bottom: 2px solid var(--laiton); }
.phrase .muted { font-family: var(--sans); font-size: .92rem; margin-top: .5rem; }
.phrase-net { font-size: 1.9rem !important; font-weight: 600; }

/* Tuiles de chiffres */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.tuile { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-panneau); padding: .95rem 1.05rem; }
.t-label { color: var(--encre-2); font-size: .84rem; }
.t-val { font-size: 1.55rem; font-weight: 600; margin: .1rem 0; }
.t-sous { color: var(--encre-2); font-size: .8rem; }
.tuile.alerte { border-color: var(--brique); background: var(--brique-fond); }
.tuile.alerte .t-val, .txt-alerte { color: var(--brique); }

/* Barres horizontales */
.barres { display: flex; flex-direction: column; gap: 4px; }
.barre-ligne { display: grid; grid-template-columns: 160px 1fr 84px; gap: .7rem; align-items: center; padding: 3px 4px; border-radius: 6px; }
.barre-ligne:hover { background: var(--sapin-clair); }
.b-label { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-piste { height: 10px; }
.b-val { display: block; height: 100%; background: var(--mousse); border-radius: 0 4px 4px 0; min-width: 2px; }
.barre-ligne.dette .b-val { background: var(--brique); }
.b-montant { text-align: right; font-size: .9rem; }

/* Objectifs */
.objectif { padding: .6rem 0; border-bottom: 1px solid var(--trait); }
.objectif:last-child { border-bottom: 0; }
.o-tete { display: flex; justify-content: space-between; gap: .6rem; font-size: .93rem; }
.progress { height: 6px; background: var(--sauge); border-radius: 3px; margin: .4rem 0; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--mousse); border-radius: 3px; }

/* Courbes */
.courbe { position: relative; }
.courbe svg { width: 100%; height: 150px; display: block; }
.courbe .ligne { fill: none; stroke: var(--sapin); stroke-width: 2; vector-effect: non-scaling-stroke; }
@media (prefers-color-scheme: dark) { .courbe .ligne { stroke: var(--mousse); } }
.courbe .zero { stroke: var(--brique); stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.courbe .curseur { stroke: var(--encre-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.courbe .point { fill: var(--laiton); stroke: var(--papier); stroke-width: 2; }
.bulle { position: absolute; top: -8px; background: var(--encre); color: var(--papier); font-size: .8rem; padding: 3px 9px; border-radius: 6px; pointer-events: none; white-space: nowrap; }

/* ---------------------------------------------------------------- tableaux */
.tableau-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .85rem; text-align: left; border-bottom: 1px solid var(--trait); white-space: nowrap; }
th { font-size: .8rem; color: var(--encre-2); font-weight: 600; }
.num { text-align: right; }
.donnees th[data-tri] { cursor: pointer; user-select: none; }
.donnees th[data-tri]:hover { color: var(--encre); }
.donnees tbody tr { cursor: pointer; }
.donnees tbody tr:hover { background: var(--sapin-clair); }
.donnees.fixe tbody tr, .ops tbody tr { cursor: default; }
tr.inactif td { color: var(--encre-2); text-decoration: line-through; }
tfoot td, tr.total td { font-weight: 600; border-bottom: 0; }
tr.total td { border-top: 1px solid var(--encre-2); }
.mini th, .mini td { padding: .45rem .35rem; font-size: .9rem; }
td.lib { white-space: normal; min-width: 220px; }
.ops td { vertical-align: top; }
.positif { color: var(--mousse); }
.vide { padding: 1.6rem; }
.tag { font-size: .78rem; padding: 1px 7px; border-radius: 999px; }
.tag.alerte, .badge.a_verifier { background: var(--brique-fond); color: var(--brique); }
.badge { font-size: .76rem; padding: 2px 9px; border-radius: 999px; background: var(--sauge); color: var(--encre-2); white-space: nowrap; }
.badge.a_payer { background: var(--sapin-clair); color: var(--sapin); }
.badge.payee { background: var(--sauge); color: var(--encre); }
@media (prefers-color-scheme: dark) { .badge.a_payer { color: var(--mousse); } }
code { background: var(--sauge); padding: 1px 6px; border-radius: 4px; font-size: .85em; word-break: break-all; }
.ligne-fac { display: grid; grid-template-columns: 1fr auto 90px; gap: .6rem; font-size: .88rem; padding: .35rem 0; border-top: 1px solid var(--trait); }
details.carte summary { cursor: pointer; font-family: var(--serif); font-weight: 600; }
details.carte[open] summary { margin-bottom: .7rem; }

/* Sociétés */
.soc-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.phrase-soc { font-size: 1.2rem; margin: 0 0 1rem; }
.phrase-soc strong { border-bottom: 2px solid var(--laiton); }
.societe .muted.petit { margin-top: .6rem; max-width: 80ch; }

/* ---------------------------------------------------------------- formulaires */
.btn { font: inherit; font-size: .92rem; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); padding: .5rem 1.05rem; border-radius: var(--r-champ); cursor: pointer; }
.btn:hover { border-color: var(--encre-2); }
.btn.primaire { background: var(--action); border-color: var(--action); color: #fff; font-weight: 600; }
.btn.primaire:hover { filter: brightness(1.15); }
@media (prefers-color-scheme: dark) { .btn.primaire { background: var(--mousse); border-color: var(--mousse); color: #04140D; } }
.btn.danger { color: var(--brique); border-color: var(--brique); background: transparent; }
.btn.lien { border: 0; background: none; color: var(--encre-2); padding: .3rem .5rem; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.btn.petit { padding: .25rem .65rem; font-size: .82rem; }
.btn:disabled { opacity: .6; cursor: wait; }
label.btn { display: inline-block; }
.boutons { display: flex; gap: .5rem; flex-wrap: wrap; }
.champ { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.champ span { font-size: .85rem; color: var(--encre-2); }
input, select, textarea { font: inherit; padding: .5rem .65rem; border: 1px solid var(--trait); border-radius: var(--r-champ); background: var(--papier); color: var(--encre); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sapin); outline-offset: -1px; }
.case { display: flex; gap: .5rem; align-items: center; margin: .6rem 0; }
.case input, .filtres input[type=checkbox] { width: auto; min-width: 0; accent-color: var(--sapin); }
.err { color: var(--brique); min-height: 1.2em; margin: .4rem 0 0; }
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.filtres input, .filtres select { width: auto; min-width: 160px; }
.filtres .case { margin: 0; font-size: .85rem; color: var(--encre-2); }
select.cat { padding: .25rem .45rem; font-size: .85rem; min-width: 155px; }
select.cat.ia { border-style: dashed; border-color: var(--laiton); }
.depot { border: 1.5px dashed var(--trait); border-radius: var(--r-panneau); padding: 1.2rem; text-align: center; color: var(--encre-2); margin-bottom: 1.1rem; background: var(--papier); }
.depot.survol { border-color: var(--sapin); background: var(--sapin-clair); }

dialog { border: 1px solid var(--trait); border-radius: 16px; padding: 1.5rem 1.6rem; width: min(640px, 94vw); background: var(--papier); color: var(--encre); }
dialog::backdrop { background: rgba(8, 14, 26, .5); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; max-height: 62vh; overflow-y: auto; padding-right: 2px; }
.champs .champ:has(textarea), .champs .case { grid-column: 1 / -1; }
.actions { display: flex; gap: .5rem; margin-top: 1.1rem; }
.espace { flex: 1; }
#toast { position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%); background: var(--sapin); color: #fff; padding: .65rem 1.2rem; border-radius: 10px; z-index: 50; max-width: 90vw; font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: ouvrir .16s ease-out; }
  @keyframes ouvrir { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------------------------------------------------------------- connexion */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--sapin); padding: 1rem; }
.login .carte { width: min(380px, 94vw); padding: 2rem 1.8rem; }
.login .marque { color: var(--encre); padding: 0; margin-bottom: 1.4rem; font-size: 1.4rem; }
.login .btn.primaire { width: 100%; padding: .65rem; }

/* ---------------------------------------------------------------- choix de la banque */
.cb-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cb-tete h2 { margin: 0; }
.choix-banque input[type=search] { margin: .9rem 0 .5rem; font-size: 1rem; padding: .7rem .85rem; }
.cb-liste { display: flex; flex-direction: column; gap: 2px; margin-top: .6rem; max-height: 58vh; overflow-y: auto; }
.cb-banque { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .7rem .6rem; border: 0; border-radius: var(--r-champ); background: none; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.cb-banque:hover, .cb-banque:focus-visible { background: var(--sapin-clair); }
.cb-banque:disabled { opacity: .7; cursor: wait; }
.cb-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--trait); display: grid; place-items: center; overflow: hidden; font-size: .8rem; font-weight: 700; color: var(--sapin); }
.cb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cb-nom { flex: 1; font-size: .98rem; }
.cb-fleche { color: var(--encre-2); font-size: 1.4rem; line-height: 1; }
.appel-banque { text-align: center; padding: 2rem 1.4rem; }
.appel-banque .muted { max-width: 46ch; margin: 0 auto 1.2rem; }
.btn.grand { font-size: 1.05rem; padding: .8rem 1.6rem; }
.btn-menu, .barre-bas, .tiroir-tete, .voile { display: none; }
.tiroir { display: contents; }

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .colonne { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* En-tête compact + menu latéral (tiroir) */
  .cote { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: .5rem; padding: .55rem .8rem; padding-top: calc(.55rem + env(safe-area-inset-top)); }
  .cote .marque { font-size: 1.05rem; padding: 0; }
  .cote .marque svg { width: 26px; height: 26px; }
  .btn-menu { display: grid; place-items: center; order: -1; width: 42px; height: 42px; margin-left: -6px; color: var(--sur-sapin); background: none; border: 0; border-radius: 10px; cursor: pointer; }
  .btn-menu svg, .btn-fermer svg { width: 24px; height: 24px; fill: currentColor; }
  .btn-menu:active { background: rgba(255,255,255,.1); }
  .tiroir { display: flex; flex-direction: column; gap: .4rem; position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(84vw, 320px);
    background: var(--sapin); padding: calc(.7rem + env(safe-area-inset-top)) .7rem calc(1rem + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden;
    transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
  .cote.ouvert .tiroir { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  .tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: 0 .3rem .3rem .6rem; color: #fff; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
  .btn-fermer { display: grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; border-radius: 10px; color: var(--sur-sapin); cursor: pointer; }
  #menu { flex: none; gap: 2px; overflow: visible; }
  #menu a { padding: .75rem .9rem; font-size: 1.02rem; }
  #menu hr { margin: .5rem .7rem; }
  .tiroir .qui { padding: .6rem .9rem 0; }
  .tiroir #logout { padding: .7rem .9rem; font-size: .98rem; }
  .voile { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8, 14, 26, .5); opacity: 0; pointer-events: none; transition: opacity .26s; }
  body.menu-ouvert .voile { opacity: 1; pointer-events: auto; }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .cote { z-index: 70; }
  @media (prefers-reduced-motion: reduce) { .tiroir, .cote.ouvert .tiroir, .voile { transition: none; } }

  /* Barre de navigation du bas */
  .barre-bas { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--papier); border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); }
  .barre-bas a, .barre-bas button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; min-height: 56px; font: inherit; font-size: .7rem; color: var(--encre-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .barre-bas svg { width: 24px; height: 24px; fill: currentColor; }
  .barre-bas a.actif { color: var(--sapin); font-weight: 600; }
  body.menu-ouvert .barre-bas #btn-menu-bas { color: var(--sapin); font-weight: 600; }

  /* Contenu */
  .contenu { padding: 1.1rem .85rem 2rem; }
  .bandeau { padding: .5rem .9rem; font-size: .82rem; }
  .carte { padding: 1rem .95rem; border-radius: 12px; }
  .grille2, .champs { grid-template-columns: 1fr; }
  .champs { max-height: none; }
  .tuiles { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tuile { padding: .8rem .85rem; }
  .t-val { font-size: 1.25rem; }
  .phrase p { font-size: 1.2rem; }
  .phrase-net { font-size: 1.5rem !important; }
  .entete.ligne { flex-direction: column; align-items: stretch; }
  .entete.ligne .boutons, .entete.ligne > .btn { width: 100%; }
  .entete.ligne .boutons .btn { flex: 1; }
  .barre-ligne { grid-template-columns: 96px 1fr 70px; gap: .5rem; }
  h1 { font-size: 1.6rem; }
  .soc-tete { flex-direction: column; align-items: flex-start; gap: .3rem; }

  /* Champs : 16 px minimum pour éviter le zoom automatique, cibles tactiles confortables */
  input, select, textarea { font-size: 16px; min-height: 44px; }
  input[type=checkbox], input[type=radio] { min-height: 0; width: 22px; height: 22px; }
  .btn { min-height: 44px; padding: .55rem 1rem; }
  .btn.petit { min-height: 36px; }
  .btn.lien { min-height: 0; }
  .filtres { flex-direction: column; align-items: stretch; }
  .filtres input, .filtres select { width: 100%; min-width: 0; }
  .filtres .case { font-size: .9rem; }
  select.cat { min-width: 0; width: 100%; font-size: 16px; }

  /* Tableaux en fiches */
  .carte.tableau-wrap { padding: .3rem .95rem; overflow: visible; }
  table.fiches thead { display: none; }
  table.fiches, table.fiches tbody, table.fiches tfoot, table.fiches tr, table.fiches td { display: block; width: 100%; }
  table.fiches tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .35rem .8rem; padding: .75rem 0; border-bottom: 1px solid var(--trait); }
  table.fiches tr:last-child { border-bottom: 0; }
  table.fiches td { display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; white-space: normal; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  table.fiches td::before { content: attr(data-l); color: var(--encre-2); font-size: .74rem; font-weight: 400; }
  table.fiches td:not([data-l])::before, table.fiches td[data-l=""]::before { display: none; }
  table.fiches td:first-child { grid-column: 1 / -1; font-weight: 600; font-size: 1rem; }
  table.fiches td:first-child::before { display: none; }
  table.fiches td.lib { grid-column: 1 / -1; min-width: 0; }
  table.fiches td.num { text-align: left; }
  table.fiches td:empty { display: none; }
  table.fiches td select, table.fiches td input:not([type=checkbox]) { width: 100%; }
  table.fiches td input[type=checkbox] { align-self: flex-start; }
  table.fiches tr.total td, table.fiches tfoot td { font-weight: 600; }
  table.fiches tr.total { border-top: 1px solid var(--encre-2); }
  table.sans-tete td { white-space: normal; }
  td.lib { min-width: 0; }

  /* Fenêtres en plein écran */
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; padding: 1rem .95rem calc(1rem + env(safe-area-inset-bottom)); overflow-y: auto; }
  dialog .actions { position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); background: var(--papier); padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom)); margin-bottom: calc(-1rem - env(safe-area-inset-bottom)); flex-wrap: wrap; border-top: 1px solid var(--trait); }
  dialog .actions .btn { flex: 1; }
  .cb-liste { max-height: none; }
  .ligne-fac { grid-template-columns: 1fr auto; }
  .ligne-fac > :last-child { grid-column: 1 / -1; }
  #toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .login .carte { padding: 1.6rem 1.2rem; }
}
/* ---------------------------------------------------------------- alertes du tableau de bord */
.alertes { display: flex; flex-direction: column; gap: 6px; margin: 0 0 1.4rem; }
.alerte-ligne { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--r-champ);
  background: var(--papier); border: 1px solid var(--trait); color: var(--encre); text-decoration: none; }
.alerte-ligne:hover { border-color: var(--encre-2); }
.alerte-ligne .pastille { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--mousse); }
.alerte-ligne.attention .pastille { background: var(--laiton); }
.alerte-ligne.critique { border-color: var(--brique); background: var(--brique-fond); }
.alerte-ligne.critique .pastille { background: var(--brique); }
.al-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.al-txt strong { font-weight: 600; font-size: .95rem; }
.al-plus { margin: .2rem .2rem 0; }

/* ---------------------------------------------------------------- graphiques */
.graphe { position: relative; }
.graphe svg { width: 100%; height: auto; display: block; overflow: visible; }
.graphe .grille { stroke: var(--trait); stroke-width: 1; }
.graphe .axe { font: 11px var(--sans); fill: var(--encre-2); }
.graphe .b-entree { fill: var(--mousse); }
.graphe .b-sortie { fill: var(--brique); opacity: .78; }
.graphe .mois-g { cursor: pointer; }
.graphe .mois-g.actif .b-entree, .graphe .mois-g.actif .b-sortie { opacity: 1; filter: brightness(1.08); }
.graphe .bulle { top: 0; min-width: 160px; line-height: 1.45; white-space: normal; }
.legende { display: flex; gap: 1.2rem; font-size: .82rem; color: var(--encre-2); margin-top: .5rem; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.l-entree { background: var(--mousse); } .l-sortie { background: var(--brique); opacity: .78; }
.mini-barres { width: 96px; height: 26px; display: block; }
.mini-barres rect { fill: var(--sapin-clair); }
.mini-barres rect.dernier { fill: var(--laiton); }
@media (prefers-color-scheme: dark) { .mini-barres rect { fill: #2A3A52; } }
.carte-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.lien-cat { color: var(--encre); text-decoration: none; border-bottom: 1px dotted var(--encre-2); }

/* ---------------------------------------------------------------- puces, classement, assistant */
.puce { font: inherit; font-size: .86rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--trait);
  background: var(--papier); color: var(--encre); cursor: pointer; }
.puce:hover:not(:disabled) { border-color: var(--sapin); background: var(--sapin-clair); }
.puce:disabled { opacity: .5; cursor: not-allowed; }
.cl-liste { display: flex; flex-direction: column; gap: .7rem; }
.cl-groupe { margin: 0; transition: opacity .2s; }
.cl-groupe.en-cours { opacity: .5; pointer-events: none; }
.cl-groupe.fait { background: var(--sapin-clair); border-color: transparent; }
.cl-fait { margin: 0; }
.cl-puces { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; align-items: center; }
.cl-autre { width: auto; min-width: 140px; padding: .35rem .6rem; font-size: .86rem; border-radius: 999px; }
.as-form { display: flex; gap: .5rem; margin: .4rem 0 .6rem; }
.as-form input { flex: 1; }
.as-exemples { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.as-rep:empty { display: none; }
.as-rep { border-left: 3px solid var(--laiton); padding: .3rem 0 .3rem 1rem; margin: .4rem 0 .8rem; }
.as-q { font-weight: 600; margin: 0 0 .4rem; }
.as-texte { line-height: 1.6; }

@media (max-width: 820px) {
  .as-form { flex-direction: column; }
  .graphe .axe { font-size: 13px; }
  .cl-autre { width: 100%; }
  .alerte-ligne { padding: .75rem .8rem; }
}

.qui { font-size: .8rem; color: var(--sur-sapin); opacity: .65; padding: 0 .7rem; word-break: break-all; }
.etapes { padding-left: 1.2rem; margin: .4rem 0 .9rem; } .etapes li { margin-bottom: .35rem; }

/* Connexion en surimpression sur la vitrine */
body.sur-vitrine .login { position: fixed; inset: 0; z-index: 90; background: rgba(8, 14, 26, .6); backdrop-filter: blur(3px); min-height: 0; }
.btn-fermer-login { display: none; }
body.sur-vitrine .btn-fermer-login { display: grid; place-items: center; position: absolute; top: .6rem; right: .6rem; width: 36px; height: 36px;
  border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--encre-2); cursor: pointer; border-radius: 8px; }
.login .carte { position: relative; }
body.connexion-ouverte { overflow: hidden; }

a.btn { display: inline-block; text-decoration: none; text-align: center; }
.legal { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.2rem 4rem; line-height: 1.65; }
.legal h1 { font-size: 2rem; margin-bottom: .3rem; } .legal h2 { margin-top: 2rem; }
.legal-tete { background: var(--sapin); padding: 1rem max(1.2rem, calc((100vw - 46rem) / 2)); }
.legal-tete a { color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.tableau-wrap > h2 { padding: 1.1rem 1.2rem .3rem; margin: 0; }
.tableau-wrap > p.petit { padding: .2rem 1.2rem .9rem; margin: 0; }
@media (min-width: 821px) { #menu a { padding-top: .42rem; padding-bottom: .42rem; } .cote { gap: 1rem; } }
@media (max-width: 820px) { .tableau-wrap > h2, .tableau-wrap > p.petit { padding-left: 0; padding-right: 0; } }

/* Marque CARONNA Brain */
.nom { font-family: var(--serif); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.nom em { font-style: normal; font-weight: 500; letter-spacing: -.01em; color: var(--laiton); margin-left: .2em; }
.cote .marque { font-size: 1.02rem; padding: 0 .3rem; }

#menu .menu-titre { margin: .9rem .7rem .25rem .9rem; font-size: .78rem; color: var(--sur-sapin); opacity: .55; }

/* ---------- Ma vie : Aujourd'hui, tâches, rappels ---------- */
.grille-journee { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.grille-journee .pile { display: grid; gap: 1rem; }
.grille-journee .carte, .groupe-taches { margin-bottom: 0; }
.groupe-taches { margin-top: 1rem; }
.sous-titre { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.liste-taches { list-style: none; margin: .2rem 0 .4rem; padding: 0; }
.tache { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.tache:last-child { border-bottom: 0; }
.tache-titre { font: inherit; text-align: left; background: none; border: 0; padding: 0; color: var(--encre); cursor: pointer; }
.tache-titre:hover { text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: 3px; }
.tache-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .8rem; color: var(--encre-2); }
.tache-meta:empty { display: none; }
.tache-meta .rouge { color: var(--brique); font-weight: 600; }
.badge-prio { color: var(--laiton); font-weight: 600; }
.tache.faite .tache-titre { text-decoration: line-through; color: var(--encre-2); }
.liste-taches.compacte .tache { padding: .4rem 0; }
.coche { position: relative; width: 22px; height: 22px; grid-row: span 2; align-self: start; margin-top: .05rem; }
.coche input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.coche span { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--trait); background: var(--papier); transition: background .15s, border-color .15s; }
.tache.retard .coche span { border-color: var(--brique); }
.coche input:checked + span { background: var(--mousse); border-color: var(--mousse); }
.coche input:checked + span::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.coche input:focus-visible + span { outline: 2px solid var(--laiton); outline-offset: 2px; }
.ajout-rapide { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.ajout-rapide input[name=titre] { flex: 1 1 220px; }
.ajout-rapide input, .ajout-rapide select { font: inherit; padding: .5rem .7rem; border: 1px solid var(--trait); border-radius: var(--r-champ); background: var(--papier); color: var(--encre); }
.filtre-dom { margin-top: .8rem; }
.puce.active { background: var(--sapin); border-color: var(--sapin); color: var(--sur-sapin); }
.vide-etat { text-align: left; margin-top: 1rem; }
.vide-etat h2 { margin-top: 0; }
.liste-rappels { list-style: none; margin: 0; padding: 0; }
.rappel { display: flex; align-items: center; gap: .9rem; padding: .65rem 0; border-bottom: 1px solid var(--trait); cursor: pointer; }
.rappel:last-child { border-bottom: 0; }
.r-compte { flex: none; min-width: 5.6rem; font-size: .8rem; font-weight: 600; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.rappel.proche .r-compte { color: var(--laiton); }
.rappel.depasse .r-compte { color: var(--brique); }
.rappel.traite { opacity: .55; }
.r-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.liste-rappels.compacte .rappel { cursor: default; padding: .45rem 0; }
.liste-rappels.compacte .r-compte { min-width: 4.2rem; }
.tuiles.mini { grid-template-columns: 1fr 1fr; }
.alertes.compactes { margin: .2rem 0 .4rem; }
.j-objectif { padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.j-objectif:last-child { border-bottom: 0; }
.j-obj-tete { display: flex; justify-content: space-between; gap: .6rem; }
.barre-prog { height: 6px; border-radius: 3px; background: var(--sapin-clair); margin: .35rem 0 .2rem; overflow: hidden; }
.barre-prog i { display: block; height: 100%; background: var(--mousse); border-radius: 3px; }
.bandeau-essai { background: var(--sapin-clair); border-radius: var(--r-champ); padding: .6rem .9rem; margin: 0 0 1rem; font-size: .92rem; }
@media (max-width: 820px) {
  .grille-journee { grid-template-columns: 1fr; }
  .ajout-rapide select, .ajout-rapide input[type=date] { flex: 1 1 40%; }
  .ajout-rapide .btn { flex: 1 1 100%; }
}

/* ================================================================ vitrine publique : voir bloc « VITRINE » en fin de fichier */
html.connecte #vitrine { display: none; }
.v-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demande-ok h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 .5rem; }
.titre-form { font-size: 1.35rem; margin: .4rem 0 0; }
.bascule { text-align: center; margin: .2rem 0 0; }
.insc-cgu { font-size: .88rem; line-height: 1.45; }
#inscription-form { width: min(480px, 100%); }

#menu { min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.insc-cgu { display: block; }
.insc-cgu input { margin: 0 .4rem 0 0; vertical-align: -2px; }
.ajout-rapide select { width: auto; flex: 0 1 170px; }
.ajout-rapide input[type=date] { width: auto; flex: 0 1 160px; }

.menu-groupe summary { list-style: none; cursor: pointer; padding: .42rem .7rem .42rem .9rem; border-radius: var(--r-champ); color: var(--sur-sapin); opacity: .82; display: flex; justify-content: space-between; }
.menu-groupe summary::-webkit-details-marker { display: none; }
.menu-groupe summary::after { content: "+"; opacity: .6; }
.menu-groupe[open] summary::after { content: "–"; }
.menu-groupe summary:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
.menu-groupe a { padding-left: 1.6rem !important; font-size: .94rem; }
#menu > a, .menu-groupe a { display: block; }

/* Finitions modernes de l'application */
h2 { font-weight: 700; letter-spacing: -.015em; }
.carte, .tuile { box-shadow: var(--ombre); border-color: var(--trait); }
.btn { border-radius: var(--r-champ); font-weight: 500; transition: background .15s, border-color .15s, filter .15s; }
input, select, textarea { border-radius: var(--r-champ); }
.cote { background: var(--sapin); }
#menu a.actif { background: rgba(16, 185, 129, .14); }

/* ================================================================ VITRINE (page d'accueil publique) */
body.sur-vitrine { background: #fff; }
.vitrine { --v-max: 1180px; --v-pad: max(1.25rem, calc((100vw - var(--v-max)) / 2)); --v-ardoise: #0B1424; --v-em: #10B981; --v-em-f: #0C8A60;
  color: #0F1B2D; background: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.vitrine h1, .vitrine h2, .vitrine h3 { font-family: var(--serif); color: inherit; }
.vitrine section, .v-entete, .v-pied { padding-left: var(--v-pad); padding-right: var(--v-pad); }
.v-evite { position: absolute; left: -9999px; }
.v-evite:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem .8rem; border-radius: 8px; }

/* En-tête */
.v-entete { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 2rem; height: 68px;
  background: rgba(11, 20, 36, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07); color: #E6ECF3; }
.v-marque { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-size: 1.12rem; }
.v-marque svg { width: 30px; height: 30px; flex: none; }
.v-nav { display: flex; gap: 1.7rem; margin-left: auto; }
.v-nav a { color: #B9C4D2; text-decoration: none; font-size: .94rem; font-weight: 500; transition: color .15s; }
.v-nav a:hover { color: #fff; }
.v-actions { display: flex; align-items: center; gap: 1.1rem; }
.v-lien-connexion, .v-lien-clair { color: #E6ECF3; text-decoration: none; font-size: .94rem; font-weight: 500; }
.v-lien-connexion:hover, .v-lien-clair:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.vitrine .btn { border-radius: 10px; font-weight: 600; }
.btn.v-btn { background: var(--v-em); border-color: var(--v-em); color: #04140D; box-shadow: 0 6px 20px -6px rgba(16, 185, 129, .55); }
.btn.v-btn:hover { background: #34D399; border-color: #34D399; }
.v-btn-sec { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.v-btn-sec:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.btn.v-btn-contour { background: #fff; color: #0F1B2D; border-color: #D5DCE5; }
.btn.v-btn-contour:hover { border-color: #0F1B2D; }

/* Héros */
.v-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 3.5rem; align-items: center;
  padding-top: 5rem; padding-bottom: 6rem; background: var(--v-ardoise); color: #C9D3DF;
  background-image: radial-gradient(700px 420px at 85% 30%, rgba(16, 185, 129, .22), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(56, 132, 255, .12), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px; }
.v-pastille { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px;
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); color: #A7F3D0; font-size: .84rem; font-weight: 500; }
.v-pastille span { width: 7px; height: 7px; border-radius: 50%; background: var(--v-em); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.v-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.04; letter-spacing: -.035em; margin: 0 0 1.4rem; }
.v-chapo { font-size: 1.15rem; line-height: 1.6; max-width: 34em; margin: 0 0 2.1rem; color: #B9C4D2; }
.v-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.v-reassure { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.6rem 0 0; padding: 0; font-size: .88rem; color: #93A1B3; }
.v-reassure li { display: flex; align-items: center; gap: .45rem; }
.v-reassure li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: rgba(16, 185, 129, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2334D399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Maquettes du héros */
.v-scene { position: relative; min-height: 430px; }
.v-navigateur { position: relative; background: #fff; border-radius: 14px; overflow: hidden; color: #0F1B2D;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.v-nav-barre { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: #EEF2F6; border-bottom: 1px solid #E2E7EE; }
.v-nav-barre i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE5; }
.v-nav-barre span { margin-left: .8rem; flex: 1; max-width: 240px; background: #fff; border-radius: 6px; padding: .18rem .7rem; font-size: .7rem; color: #5B6777; }
.v-app { display: grid; grid-template-columns: 118px 1fr; min-height: 340px; }
.v-app-cote { background: #0F1B2D; padding: .9rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.v-app-logo { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--v-em); margin: 0 0 .8rem .3rem; }
.v-app-cote b { font-weight: 500; font-size: .7rem; color: #93A1B3; padding: .32rem .45rem; border-radius: 6px; }
.v-app-cote b.actif { background: rgba(16, 185, 129, .16); color: #fff; }
.v-app-corps { padding: 1.1rem 1.2rem; background: #F5F7FA; min-width: 0; }
.v-app-bonjour { margin: 0; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.v-app-phrase { margin: .2rem 0 .9rem; font-size: .8rem; color: #5B6777; }
.v-app-phrase strong { color: var(--v-em-f); }
.v-app-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .6rem; }
.v-app-tuiles div { background: #fff; border: 1px solid #E2E7EE; border-radius: 10px; padding: .55rem .65rem; display: flex; flex-direction: column; min-width: 0; }
.v-app-tuiles small { font-size: .62rem; color: #5B6777; }
.v-app-tuiles b { font-size: 1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.v-app-tuiles em { font-style: normal; font-size: .6rem; color: #5B6777; }
.v-app-tuiles em.haut { color: var(--v-em-f); }
.v-app-bas { display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; }
.v-app-graph, .v-app-taches { background: #fff; border: 1px solid #E2E7EE; border-radius: 10px; padding: .6rem .7rem; min-width: 0; }
.v-app-graph small, .v-app-taches small { font-size: .62rem; color: #5B6777; display: block; margin-bottom: .45rem; }
.v-barres { display: flex; align-items: flex-end; gap: 7%; height: 82px; }
.v-barres span { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.v-barres i { flex: 1; background: var(--v-em); border-radius: 3px 3px 0 0; }
.v-barres i.s { background: #CBD5E1; }
.v-app-taches p { margin: 0; display: flex; align-items: center; gap: .4rem; font-size: .68rem; padding: .28rem 0; border-top: 1px solid #EEF2F6; }
.v-app-taches p i, .v-tel-ligne i, .ve-liste i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #CBD5E1; flex: none; }
.v-app-taches p.ok, .v-tel-ligne.ok, .ve-liste p.ok { color: #93A1B3; text-decoration: line-through; }
.v-app-taches p.ok i, .v-tel-ligne.ok i, .ve-liste p.ok i { background: var(--v-em); border-color: var(--v-em); }
.v-telephone { position: absolute; right: -18px; bottom: -46px; width: 168px; padding: 1.4rem .8rem .9rem; background: #fff; color: #0F1B2D; border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 0 0 6px #1B2638, 0 0 0 7px rgba(255,255,255,.1); }
.v-tel-encoche { position: absolute; top: 7px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 4px; background: #1B2638; }
.v-tel-titre { margin: 0; font-weight: 700; font-size: .85rem; }
.v-tel-phrase { margin: .1rem 0 .55rem; font-size: .62rem; color: #5B6777; }
.v-tel-carte { background: #0F1B2D; color: #fff; border-radius: 10px; padding: .5rem .6rem; margin-bottom: .45rem; display: flex; flex-direction: column; }
.v-tel-carte small { font-size: .58rem; color: #93A1B3; }
.v-tel-carte b { font-size: 1.05rem; color: #34D399; }
.v-tel-ligne { display: flex; align-items: center; gap: .4rem; font-size: .66rem; padding: .3rem 0; border-top: 1px solid #EEF2F6; }
.v-notif { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem .6rem .6rem; background: rgba(255, 255, 255, .97); color: #0F1B2D;
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); font-size: .78rem; }
.v-notif div { display: flex; flex-direction: column; }
.v-notif small { color: #5B6777; font-size: .7rem; }
.v-notif-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: #FEF3C7; color: #B45309; flex: none; }
.v-notif-ic.ok { background: #D1FAE5; color: #047857; }
.v-notif-1 { left: -34px; top: 58%; }
.v-notif-2 { right: 26px; top: -22px; }

/* Bandeau banques */
.v-banques { padding-top: 2.2rem; padding-bottom: 2.2rem; text-align: center; border-bottom: 1px solid #EEF2F6; }
.v-banques p { margin: 0 0 1rem; color: #5B6777; font-size: .86rem; font-weight: 500; }
.v-banques ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; }
.v-banques li { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: #94A3B8; }

/* Chiffres */
.v-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #EEF2F6; border-bottom: 1px solid #EEF2F6; }
.v-chiffres div { background: #fff; padding: 2rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.v-chiffres b { font-family: var(--serif); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #0F1B2D; }
.v-chiffres span { font-size: .9rem; color: #5B6777; line-height: 1.45; }

/* Sections */
.v-section { padding-top: 6rem; padding-bottom: 1rem; }
.v-surtitre { margin: 0 0 .7rem; color: var(--v-em-f); font-weight: 600; font-size: .9rem; }
.v-surtitre.clair { color: #34D399; }
.v-section > h2, .v-faq-sec h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 20em; margin: 0 0 1rem; }
.v-intro { color: #5B6777; font-size: 1.08rem; max-width: 38em; margin: 0 0 2.6rem; line-height: 1.6; }

/* Aperçu à onglets (sans JavaScript) */
.v-onglets { display: flex; flex-wrap: wrap; gap: .4rem; }
.v-onglets input { position: absolute; opacity: 0; pointer-events: none; }
.v-onglets label { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid #E2E7EE; font-weight: 600; font-size: .92rem; color: #5B6777; cursor: pointer; transition: all .15s; }
.v-onglets label:hover { color: #0F1B2D; border-color: #CBD5E1; }
.v-onglets input:checked + label { background: #0F1B2D; border-color: #0F1B2D; color: #fff; }
.v-onglets input:focus-visible + label { outline: 2px solid var(--v-em); outline-offset: 2px; }
.v-panneau { display: none; width: 100%; margin-top: 1.6rem; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center;
  padding: 2.6rem; border-radius: 24px; background: linear-gradient(180deg, #F5F7FA, #EEF5F1); border: 1px solid #E2E7EE; }
#vo1:checked ~ .v-panneau[data-p="1"], #vo2:checked ~ .v-panneau[data-p="2"], #vo3:checked ~ .v-panneau[data-p="3"], #vo4:checked ~ .v-panneau[data-p="4"] { display: grid; }
.v-panneau h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .7rem; }
.v-panneau-texte > p { color: #5B6777; line-height: 1.65; margin: 0 0 1.2rem; }
.v-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.v-coches li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.v-coches li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #D1FAE5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.v-ecran { background: #fff; border-radius: 16px; padding: 1.3rem 1.4rem; box-shadow: 0 30px 60px -30px rgba(15, 27, 45, .35), 0 0 0 1px #E2E7EE; }
.ve-titre { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; color: #5B6777; }
.ve-phrase { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.ve-phrase strong { color: var(--v-em-f); }
.ve-liste p { margin: 0; display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px solid #EEF2F6; font-size: .92rem; }
.ve-liste p span { margin-left: auto; font-size: .75rem; color: #93A1B3; }
.ve-liste p.retard i { border-color: #DC2626; }
.ve-liste p.retard span { color: #DC2626; font-weight: 600; }
.ve-cat { display: grid; grid-template-columns: 100px 1fr 64px; align-items: center; gap: .8rem; padding: .48rem 0; font-size: .9rem; }
.ve-cat i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--v-em) var(--l), #EEF2F6 var(--l)); }
.ve-cat b { text-align: right; font-variant-numeric: tabular-nums; }
.ve-alerte { margin: .8rem 0 0; padding: .55rem .75rem; border-radius: 10px; background: #FEF3C7; color: #92400E; font-size: .82rem; font-weight: 500; }
.ve-facture { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: center; }
.ve-doc { aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid #E2E7EE; padding: .8rem; display: flex; flex-direction: column; gap: .45rem; background: #FAFBFC; transform: rotate(-3deg); }
.ve-doc b { font-size: .8rem; color: #0F1B2D; }
.ve-doc i { height: 6px; border-radius: 3px; background: #E2E7EE; }
.ve-doc i.c { width: 60%; }
.ve-badge { display: inline-block; margin: 0 0 .6rem; padding: .2rem .6rem; border-radius: 999px; background: #D1FAE5; color: #047857; font-size: .75rem; font-weight: 600; }
.ve-lu dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .9rem; }
.ve-lu dt { color: #5B6777; }
.ve-lu dd { margin: 0; font-weight: 600; text-align: right; }
.ve-rappel { display: flex; align-items: center; gap: .9rem; padding: .62rem 0; border-top: 1px solid #EEF2F6; }
.ve-rappel b { min-width: 3.6rem; text-align: center; padding: .3rem 0; border-radius: 8px; background: #EEF2F6; font-size: .82rem; }
.ve-rappel.urgent b { background: #FEF3C7; color: #92400E; }
.ve-rappel.calme b { background: #D1FAE5; color: #047857; }
.ve-rappel div { display: flex; flex-direction: column; }
.ve-rappel span { font-size: .92rem; font-weight: 600; }
.ve-rappel small { font-size: .76rem; color: #93A1B3; }

/* Grille de fonctionnalités */
.v-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.4rem; }
.v-grille article { padding: 1.5rem; border-radius: 16px; border: 1px solid #E2E7EE; background: #fff; transition: border-color .2s, box-shadow .2s; }
.v-grille article:hover { border-color: #A7F3D0; box-shadow: 0 16px 32px -20px rgba(15, 27, 45, .25); }
.v-grille h3 { font-size: 1.02rem; font-weight: 700; margin: .9rem 0 .4rem; letter-spacing: -.01em; }
.v-grille p { margin: 0; color: #5B6777; font-size: .92rem; line-height: 1.55; }
.v-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #ECFDF5; color: var(--v-em-f); }
.v-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-ic.clair { background: rgba(16, 185, 129, .14); color: #34D399; }

/* Comparatif */
.v-tableau-wrap { overflow-x: auto; margin-top: 2.2rem; border: 1px solid #E2E7EE; border-radius: 18px; }
.v-tableau { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 600px; }
.v-tableau th, .v-tableau td { padding: 1rem 1.2rem; text-align: center; border-bottom: 1px solid #EEF2F6; }
.v-tableau th { font-size: .88rem; color: #5B6777; font-weight: 600; background: #FAFBFC; }
.v-tableau td:first-child, .v-tableau th:first-child { text-align: left; font-weight: 500; color: #0F1B2D; }
.v-tableau tr:last-child td { border-bottom: 0; }
.v-tableau .nous { background: #ECFDF5; color: #065F46; font-weight: 700; }
.v-tableau th.nous { background: #0F1B2D; color: #fff; }
.v-tableau .non { color: #94A3B8; }
.v-tableau .mi { color: #B45309; }

/* Étapes */
.v-etapes { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: etape; }
.v-etapes li { counter-increment: etape; padding: 1.6rem; border-radius: 16px; background: #F5F7FA; display: flex; flex-direction: column; gap: .45rem; }
.v-etapes li::before { content: counter(etape); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0F1B2D; color: #fff; font-weight: 700; margin-bottom: .5rem; }
.v-etapes b { font-size: 1.05rem; }
.v-etapes span { color: #5B6777; line-height: 1.55; font-size: .94rem; }

/* Sécurité */
.v-securite { margin-top: 6rem; padding-top: 5rem; padding-bottom: 5rem; background: var(--v-ardoise); color: #B9C4D2;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(16, 185, 129, .16), transparent 60%); }
.v-securite-tete { max-width: 44rem; margin-bottom: 2.8rem; }
.v-securite h2 { color: #fff; font-size: clamp(1.8rem, 3.3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1rem; }
.v-securite-tete p:last-child { font-size: 1.08rem; line-height: 1.6; margin: 0; }
.v-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.v-badges div { padding: 1.5rem; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.v-badges b { display: block; color: #fff; margin: .9rem 0 .4rem; font-size: 1.02rem; }
.v-badges p { margin: 0; font-size: .9rem; line-height: 1.55; }

/* Tarifs */
.v-offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.v-offre { position: relative; display: flex; flex-direction: column; padding: 2rem 1.7rem; border-radius: 20px; border: 1px solid #E2E7EE; background: #fff; }
.v-offre.vedette { background: #0F1B2D; color: #C9D3DF; border-color: #0F1B2D; box-shadow: 0 30px 60px -30px rgba(15, 27, 45, .6); }
.v-offre h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .8rem; }
.v-offre.vedette h3 { color: #fff; }
.v-prix { margin: 0 0 1.4rem; display: flex; flex-direction: column; }
.v-prix b { font-family: var(--serif); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.v-offre.vedette .v-prix b { color: #fff; }
.v-prix span { font-size: .88rem; color: #5B6777; margin-top: .3rem; }
.v-offre.vedette .v-prix span { color: #93A1B3; }
.v-offre ul { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .55rem; flex: 1; }
.v-offre li { display: flex; gap: .55rem; font-size: .93rem; }
.v-offre li::before { content: "✓"; color: var(--v-em-f); font-weight: 700; }
.v-offre.vedette li::before { color: #34D399; }
.v-offre .btn { width: 100%; }
.v-ruban { position: absolute; top: -12px; left: 1.7rem; margin: 0; padding: .25rem .7rem; border-radius: 999px; background: var(--v-em); color: #04140D; font-size: .75rem; font-weight: 700; }
.v-note { margin: 1.4rem 0 0; font-size: .86rem; color: #5B6777; }

/* FAQ */
.v-faq-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.v-faq details { border-bottom: 1px solid #E2E7EE; }
.v-faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; font-weight: 600; font-size: 1.02rem; position: relative; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: #93A1B3; }
.v-faq details[open] summary::after { content: "–"; }
.v-faq p { margin: 0 0 1.2rem; color: #5B6777; line-height: 1.65; }

/* Appel final */
.v-final { margin: 6rem var(--v-pad) 0; padding: 3.6rem 3rem !important; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, #0B1424 0%, #0F2A23 100%); color: #B9C4D2;
  background-image: radial-gradient(500px 260px at 90% 50%, rgba(16, 185, 129, .3), transparent 65%), linear-gradient(120deg, #0B1424 0%, #0F2A23 100%); }
.v-final h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .5rem; }
.v-final p { margin: 0; font-size: 1.05rem; }
.v-final-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* Pied de page */
.v-pied { margin-top: 5rem; padding-top: 3.4rem; padding-bottom: 2.4rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; border-top: 1px solid #EEF2F6; color: #5B6777; }
.v-pied .v-marque { color: #0F1B2D; }
.v-pied-marque p { margin: .8rem 0 0; font-size: .92rem; max-width: 22em; }
.v-pied nav { display: flex; flex-direction: column; gap: .55rem; }
.v-pied nav b { color: #0F1B2D; font-size: .9rem; margin-bottom: .2rem; }
.v-pied nav a { color: #5B6777; text-decoration: none; font-size: .9rem; }
.v-pied nav a:hover { color: #0F1B2D; }
.v-pied-bas { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.4rem; border-top: 1px solid #EEF2F6; font-size: .82rem; }

@media (max-width: 1080px) {
  .v-nav { display: none; }
  .v-actions { margin-left: auto; }
  .v-grille, .v-badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .v-hero { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 5rem; gap: 3rem; }
  .v-scene { min-height: 0; margin-right: 14px; }
  .v-notif-1 { left: -6px; }
  .v-chiffres { grid-template-columns: repeat(2, 1fr); }
  .v-panneau { grid-template-columns: 1fr; padding: 1.4rem; gap: 1.6rem; }
  .v-faq-sec { grid-template-columns: 1fr; gap: 1rem; }
  .v-offres, .v-etapes { grid-template-columns: 1fr; }
  .v-offre.vedette { order: -1; }
  .v-pied { grid-template-columns: 1fr 1fr; }
  .v-pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .v-entete { height: 60px; gap: 1rem; }
  .v-marque { font-size: 1rem; }
  .v-marque svg { width: 26px; height: 26px; }
  .v-actions { gap: .7rem; }
  .v-actions .btn { padding: .45rem .8rem; font-size: .88rem; }
  .v-lien-connexion { font-size: .88rem; }
  .v-cta .btn { flex: 1 1 100%; }
  .v-app { grid-template-columns: 1fr; }
  .v-app-cote { display: none; }
  .v-app-tuiles { grid-template-columns: 1fr 1fr; }
  .v-app-tuiles div:nth-child(3) { display: none; }
  .v-app-bas { grid-template-columns: 1fr; }
  .v-app-taches { display: none; }
  .v-telephone { width: 132px; right: -10px; bottom: -60px; }
  .v-notif-2 { right: 6px; top: -30px; }
  .v-notif-1 { top: auto; bottom: -50px; left: -6px; }
  .v-grille, .v-badges { grid-template-columns: 1fr; }
  .v-section { padding-top: 4rem; }
  .ve-facture { grid-template-columns: 1fr; }
  .ve-doc { display: none; }
  .ve-cat { grid-template-columns: 86px 1fr 56px; gap: .5rem; }
  .v-final { margin-top: 4rem; padding: 2.4rem 1.4rem !important; }
  .v-securite { margin-top: 4rem; padding-top: 3.6rem; padding-bottom: 3.6rem; }
}
@media (max-width: 400px) { .v-lien-connexion { display: none; } }
@media (prefers-reduced-motion: reduce) { .vitrine * { transition: none !important; } }

/* Recherche globale */
.menu-recherche { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 .6rem; padding: .5rem .7rem; border-radius: var(--r-champ);
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--sur-sapin); font: inherit; font-size: .9rem; cursor: pointer; }
.menu-recherche:hover { background: rgba(255, 255, 255, .1); }
.menu-recherche kbd { font: inherit; font-size: .72rem; opacity: .6; border: 1px solid rgba(255, 255, 255, .2); border-radius: 5px; padding: 0 .35rem; }
dialog.dlg-recherche { width: min(640px, 94vw); padding: 0; margin-top: 12vh; }
.recherche input { width: 100%; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0; padding: 1.1rem 1.2rem; font-size: 1.05rem; background: transparent; }
.recherche input:focus { outline: none; }
.rech-res { max-height: 60vh; overflow: auto; padding: .5rem .6rem .9rem; }
.rech-res > p.muted { padding: .4rem .6rem; margin: 0; }
.rech-groupe { margin: .7rem .6rem .25rem; font-size: .76rem; font-weight: 600; color: var(--encre-2); }
.rech-item { display: flex; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; padding: .55rem .6rem; border: 0; background: none; border-radius: 8px;
  color: var(--encre); font: inherit; font-size: .93rem; cursor: pointer; text-decoration: none; }
.rech-item:hover, .rech-item:focus-visible { background: var(--sapin-clair); }
.rech-item .positif { color: var(--mousse); }

/* Habitudes */
.habitude { padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.habitude:last-of-type { border-bottom: 0; }
.hab-tete { display: flex; align-items: center; gap: .8rem; }
.hab-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hab-coche { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--trait); background: var(--papier); cursor: pointer; position: relative; transition: all .15s; }
.hab-coche:hover { border-color: var(--mousse); }
.hab-coche.fait { background: var(--mousse); border-color: var(--mousse); }
.hab-coche.fait::after { content: ""; position: absolute; left: 9px; top: 5px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hab-jours { display: flex; gap: 5px; margin: .6rem 0 0 calc(30px + .8rem); flex-wrap: wrap; }
.hab-j { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--trait); background: var(--sauge); cursor: pointer; padding: 0; font: inherit; font-size: .62rem; color: var(--encre-2); text-transform: uppercase; }
.hab-j.fait { background: var(--mousse); border-color: var(--mousse); color: #fff; }
.hab-j.auj { outline: 2px solid var(--laiton); outline-offset: 1px; }

/* Calendrier */
.cal-grille-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.1rem; align-items: start; }
.cal-nav { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.cal-nav h2 { margin: 0 auto 0 .3rem; order: -1; text-transform: capitalize; flex: 1; }
.cal-entetes, .cal-cases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-entetes span { font-size: .74rem; color: var(--encre-2); text-align: center; padding: .2rem 0; }
.cal-case { min-height: 88px; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); padding: .35rem .4rem; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: .2rem; font: inherit; color: var(--encre); min-width: 0; overflow: hidden; }
.cal-case.vide { border: 0; background: none; cursor: default; }
.cal-case:hover { border-color: var(--mousse); }
.cal-case.auj .cal-num { background: var(--action); color: #fff; }
.cal-case.choisi { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.cal-num { font-size: .8rem; font-weight: 600; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal-points { display: none; gap: 3px; align-items: center; }
.cal-points i, .cal-legende i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.cal-points em { font-style: normal; font-size: .6rem; color: var(--encre-2); }
.cal-apercu { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-apercu span { font-size: .66rem; line-height: 1.3; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-tache, .ca-tache.cal-apercu, .cal-apercu .ca-tache { background: #3B82F6; }
.p-rappel { background: #F59E0B; } .p-facture { background: #8B5CF6; } .p-debit { background: #EF4444; } .p-credit { background: #10B981; } .p-objectif { background: #64748B; }
.cal-apercu .ca-tache { background: #DBEAFE; color: #1E40AF; } .cal-apercu .ca-rappel { background: #FEF3C7; color: #92400E; }
.cal-apercu .ca-facture { background: #EDE9FE; color: #5B21B6; } .cal-apercu .ca-debit { background: #FEE2E2; color: #991B1B; }
.cal-apercu .ca-credit { background: #D1FAE5; color: #065F46; } .cal-apercu .ca-objectif { background: #F1F5F9; color: #334155; }
.cal-legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .9rem 0 0; font-size: .78rem; color: var(--encre-2); }
.cal-legende span { display: flex; align-items: center; gap: .35rem; }
.cal-jour h2 { text-transform: capitalize; }
.cal-liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.cal-liste li { padding: .55rem .7rem; border-radius: 8px; margin-bottom: .4rem; font-size: .92rem; border-left: 3px solid var(--trait); background: var(--sauge); }
.cal-liste li.ca-tache { border-color: #3B82F6; } .cal-liste li.ca-rappel { border-color: #F59E0B; } .cal-liste li.ca-facture { border-color: #8B5CF6; }
.cal-liste li.ca-debit { border-color: #EF4444; } .cal-liste li.ca-credit { border-color: #10B981; } .cal-liste li.ca-objectif { border-color: #64748B; }
.cal-type { display: block; font-size: .7rem; font-weight: 600; color: var(--encre-2); }
@media (max-width: 820px) {
  .cal-grille-page { grid-template-columns: 1fr; }
  .cal-case { min-height: 50px; padding: .25rem; align-items: center; }
  .cal-apercu { display: none; }
  .cal-points { display: flex; }
  .cal-nav { flex-wrap: wrap; }
}

/* =================================================================== FINANCES EN DIRECT, SÉANCE, JUSTIFICATIFS, RÈGLES */
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; flex-wrap: wrap; }
.carte-tete h2 { margin: 0; }
.carte-tete .boutons { display: flex; gap: .6rem; align-items: center; }
.btn.plein { width: 100%; justify-content: center; text-align: center; }
.centre { text-align: center; justify-content: center; }
.fi-hero { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: .8rem; margin-bottom: 1.1rem; }
.fi-hero > div { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-panneau); padding: 1.05rem 1.15rem; }
.fi-solde { background: var(--sapin) !important; color: var(--sur-sapin); border-color: var(--sapin) !important; }
.fi-solde .t-label, .fi-solde .muted { color: var(--sur-sapin); opacity: .75; }
.fi-gros { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; color: #fff; margin: .15rem 0 .5rem; font-variant-numeric: tabular-nums; }
.fi-comptes { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; opacity: .85; margin-bottom: .3rem; }
.fi-comptes b { color: #fff; font-weight: 600; }
.fi-kpi .t-val { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: .2rem 0; }
.fi-kpi .t-sous { font-size: .78rem; color: var(--encre-2); }
.fi-grille { margin-bottom: 1.1rem; }
.courbe .c-prec { fill: none; stroke: var(--encre-2); stroke-width: 2; stroke-dasharray: 4 4; opacity: .55; }
.courbe .c-actuel { fill: none; stroke: var(--mousse); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.courbe .c-point { fill: var(--mousse); stroke: var(--papier); stroke-width: 2; }
.courbe .c-curseur { stroke: var(--encre-2); stroke-width: 1; opacity: .5; }
.courbe .bulle { white-space: normal; line-height: 1.4; }
.legende .l-actuel, .legende .l-prec { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--mousse); }
.legende .l-prec { background: var(--encre-2); opacity: .55; }
.anneau { --p: 0; position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(var(--mousse) calc(var(--p) * 1%), var(--trait) 0); flex: none; }
.anneau::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--papier); }
.anneau b { position: relative; font-size: .85rem; font-variant-numeric: tabular-nums; }
.anneau.grand { width: 96px; height: 96px; }
.anneau.grand::before { inset: 9px; }
.anneau.grand b { font-size: 1.15rem; }
.sante-liste { display: grid; gap: .4rem; margin: .4rem 0 .8rem; }
.sante-l { display: flex; gap: .55rem; align-items: center; padding: .55rem .7rem; border-radius: var(--r-champ); background: var(--sauge); text-decoration: none; color: var(--encre); font-size: .92rem; }
.sante-l::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brique); flex: none; }
.sante-l.ok::before { background: var(--mousse); }
a.sante-l:hover { background: var(--sapin-clair); }
.enveloppes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.env { border: 1px solid var(--trait); border-radius: var(--r-champ); padding: .7rem .8rem; }
.env-tete { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .9rem; }
.env-tete .num { font-variant-numeric: tabular-nums; }
.env-piste { position: relative; height: 8px; border-radius: 4px; background: var(--sauge); margin: .5rem 0 .35rem; }
.env-piste span { display: block; height: 100%; border-radius: 4px; background: var(--mousse); transition: width .4s ease; }
.env-piste i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--encre); opacity: .45; border-radius: 1px; }
.env.vite .env-piste span { background: #D9A400; }
.env.depasse .env-piste span { background: var(--brique); }
.env.depasse .env-txt { color: var(--brique); }
.env-txt { color: var(--encre-2); }
.env.sans { border-style: dashed; }
.budgets-edit { max-height: 56vh; overflow-y: auto; }
.budgets-edit input { width: 7.5rem; text-align: right; }
.ligne-lien { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ligne-lien h2 { margin: 0 0 .2rem; }
.tag.etiq { background: var(--sapin-clair); color: var(--action); margin-left: .25rem; }

/* séance « Faire mes comptes » */
.etapes-seance { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0; margin: 0 0 1.1rem; counter-reset: e; }
.etapes-seance li { counter-increment: e; border: 1px solid var(--trait); border-radius: var(--r-champ); background: var(--papier); }
.etapes-seance li > a, .etapes-seance li { color: inherit; text-decoration: none; }
.etapes-seance li > a, .etapes-seance li:not(:has(a)) { display: flex; flex-direction: column; padding: .6rem .8rem; }
.etapes-seance b::before { content: counter(e) ". "; color: var(--encre-2); font-weight: 600; }
.etapes-seance span { font-size: .8rem; color: var(--encre-2); }
.etapes-seance .en-cours { border-color: var(--mousse); box-shadow: inset 0 0 0 1px var(--mousse); }
.etapes-seance .fait span { color: var(--mousse); }
.seance-progres { display: flex; align-items: center; gap: .8rem; max-width: 620px; margin: 0 auto .6rem; }
.seance-progres .progress { flex: 1; margin: 0; }
.carte-op { max-width: 620px; margin: 0 auto; background: var(--papier); border: 1px solid var(--trait); border-radius: 20px; padding: 1.4rem 1.5rem; box-shadow: var(--ombre); outline: none; transition: transform .14s ease, opacity .14s ease; }
.carte-op.sortie { transform: translateX(-24px); opacity: 0; }
.co-haut { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.co-montant { font-size: 2.3rem; font-weight: 700; letter-spacing: -.02em; margin: .5rem 0 .1rem; font-variant-numeric: tabular-nums; }
.carte-op.credit .co-montant { color: var(--mousse); }
.co-nom { font-size: 1.15rem; font-weight: 600; }
.co-lib { margin-bottom: .7rem; word-break: break-word; }
.co-cat { margin-bottom: .8rem; }
.co-puces { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.co-puces kbd, .puce kbd { font: 600 .7rem var(--sans); background: var(--sauge); border: 1px solid var(--trait); border-radius: 4px; padding: 0 4px; margin-right: 5px; color: var(--encre-2); }
.puce.active kbd { background: transparent; color: inherit; border-color: currentColor; }
.co-autre { font: inherit; font-size: .86rem; border-radius: 999px; padding: .35rem .7rem; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); }
.co-mem { font-size: .85rem; margin-bottom: .6rem; }
.co-note { width: 100%; margin-bottom: .9rem; }
.co-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.fin-seance { text-align: center; max-width: 620px; margin: 0 auto; padding: 2rem 1.4rem; }
.coche-grande { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; background: var(--sapin-clair); position: relative; animation: pop .35s ease-out; }
.coche-grande::after { content: ""; position: absolute; left: 22px; top: 15px; width: 14px; height: 26px; border: solid var(--mousse); border-width: 0 4px 4px 0; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fin-seance .boutons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }

/* justificatifs */
.ra-haut { display: flex; gap: 1.3rem; align-items: center; }
.ra-haut h2 { margin: 0 0 .2rem; }
.ra-reglages { margin-top: .5rem; }
.ra-reglages summary { cursor: pointer; font-size: .88rem; color: var(--action); }
.ra-cats { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .3rem 0 .7rem; font-size: .88rem; }
.onglets-simples { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ra-liste { display: grid; }
.ra-ligne { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.6fr); gap: .6rem 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--trait); transition: opacity .25s; }
.ra-ligne:last-child { border-bottom: 0; }
.ra-ligne.fait { opacity: 0; }
.ra-op { display: flex; flex-direction: column; min-width: 0; }
.ra-op strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-m { font-weight: 600; font-variant-numeric: tabular-nums; }
.ra-act { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }

/* règles */
.regles-liste { display: grid; }
.regle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .5rem 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.regle:last-child { border-bottom: 0; }
.regle.inactive .rg-corps { opacity: .5; }
.rg-corps .petit { margin-top: .15rem; }
.rg-meta { text-align: right; }
.rg-act { display: flex; gap: .3rem; }
.interrupteur { position: relative; width: 38px; height: 22px; flex: none; }
.interrupteur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.interrupteur span { position: absolute; inset: 0; border-radius: 999px; background: var(--trait); transition: background .15s; }
.interrupteur span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.interrupteur input:checked + span { background: var(--mousse); }
.interrupteur input:checked + span::after { transform: translateX(16px); }
.interrupteur input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.sugg-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.sugg { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .15rem; padding: .65rem .8rem; border: 1px dashed var(--trait); border-radius: var(--r-champ); background: var(--papier); color: var(--encre); cursor: pointer; }
.sugg:hover { border-color: var(--mousse); background: var(--sapin-clair); }
.f-regle h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.f-regle .cond { display: grid; grid-template-columns: 9.5rem 10rem 1fr auto; gap: .4rem; margin-bottom: .4rem; }
.f-regle .cond select, .f-regle .cond input, .rg-ligne select { font: inherit; font-size: .9rem; padding: .45rem .55rem; border: 1px solid var(--trait); border-radius: var(--r-champ); background: var(--papier); color: var(--encre); min-width: 0; }
.rg-ligne { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.champs.trois { grid-template-columns: repeat(3, 1fr); max-height: none; }
.rg-cases { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .5rem 0; font-size: .9rem; }
.rg-apercu { background: var(--sauge); border-radius: var(--r-champ); padding: .7rem .85rem; margin: .8rem 0 0; }
.rg-apercu p { margin: 0 0 .4rem; }
.f-regle details summary { cursor: pointer; margin-top: .4rem; }

@media (max-width: 860px) {
  .fi-hero { grid-template-columns: 1fr 1fr; }
  .fi-solde { grid-column: 1 / -1; }
  .etapes-seance { grid-template-columns: 1fr 1fr; }
  .ra-ligne { grid-template-columns: 1fr auto; }
  .ra-act { grid-column: 1 / -1; justify-content: flex-start; }
  .regle { grid-template-columns: auto 1fr; }
  .rg-meta { text-align: left; grid-column: 2; }
  .rg-act { grid-column: 2; }
  .f-regle .cond { grid-template-columns: 1fr 1fr; }
  .f-regle .cond .c-val { grid-column: 1 / -1; }
  .champs.trois { grid-template-columns: 1fr 1fr; }
  .co-montant { font-size: 1.9rem; }
  .carte-op { padding: 1.1rem 1rem; border-radius: 16px; }
  .ra-haut { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .carte-op, .env-piste span, .coche-grande { transition: none; animation: none; } }
@media (hover: none) { .co-puces kbd { display: none; } }

/* =================================================================== DEUXIÈME CERVEAU */
.fab-capture { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--action); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(12, 138, 96, .35); }
.fab-capture svg { width: 26px; height: 26px; fill: currentColor; }
.fab-capture:hover { filter: brightness(1.08); }
.fab-capture:focus-visible { outline: 3px solid var(--laiton); outline-offset: 3px; }
html:not(.connecte) .fab-capture, body:has(#app[hidden]) .fab-capture { display: none; }
@media (max-width: 860px) { .fab-capture { bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; width: 50px; height: 50px; } }
.cap-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.puce-radio { position: relative; }
.puce-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puce-radio span { display: inline-block; font-size: .86rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--trait); }
.puce-radio input:checked + span { background: var(--sapin); color: var(--sur-sapin); border-color: var(--sapin); }
.puce-radio input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.f-capture textarea, .revue textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--trait); border-radius: var(--r-champ); background: var(--papier); color: var(--encre); resize: vertical; }
.encart.rgpd { border-left: 3px solid var(--mousse); font-size: .9rem; }
.encart.rgpd div { margin-top: .5rem; }
.liste-ech { list-style: none; padding: 0; margin: 0; }
.liste-ech li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.liste-ech li:last-child { border-bottom: 0; }
.liste-ech .boutons { display: flex; gap: .3rem; }
.acces-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.acces { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--trait); border-radius: var(--r-champ); text-decoration: none; color: var(--encre); }
.acces:hover { border-color: var(--mousse); background: var(--sapin-clair); }
.revue { list-style: none; padding: 0; margin: 0; counter-reset: rv; display: grid; gap: 0; }
.revue > li { counter-increment: rv; }
.revue > li h2::before { content: counter(rv) ". "; color: var(--encre-2); }
.revue .boutons { margin-top: .6rem; }
.cal-points .p-vehicule, .cal-legende .p-vehicule { background: #2563EB; }
.cal-points .p-contrat, .cal-legende .p-contrat { background: #B45309; }
.cal-points .p-ministere, .cal-legende .p-ministere { background: #7C3AED; }
.cal-points .p-document { background: var(--encre-2); }
.cal-liste .ca-vehicule, .cal-liste .ca-contrat, .cal-liste .ca-ministere, .cal-liste .ca-document { list-style: none; }

@media (prefers-color-scheme: dark) { .barre-bas a.actif { color: var(--laiton); } .fi-solde { background: #0E2A22 !important; border-color: #14532D !important; } }

/* ------------------------------------------------------------------ CARONNA Brain : espaces (vitrine) */
.v-espaces-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; }
.v-espaces-grille article { padding: 1.5rem; border-radius: 16px; background: #F5F7FA; border-top: 3px solid #19C08A; display: flex; flex-direction: column; }
.v-espaces-grille article:nth-child(2) { border-top-color: #3B82F6; }
.v-espaces-grille article:nth-child(3) { border-top-color: #B7791F; }
.v-espaces-grille article:nth-child(4) { border-top-color: #7C5CC4; }
.v-espaces-grille h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.v-espaces-grille p { margin: 0 0 1rem; color: #5B6777; font-size: .93rem; line-height: 1.55; flex: 1; }
.v-inclus { font-size: .8rem; font-weight: 700; color: #0C8A60; }
@media (max-width: 960px) { .v-espaces-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .v-espaces-grille { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ console d'administration et sécurité */
.tag.ok { background: var(--sapin-clair); color: var(--action); }
.tag.eteint { background: transparent; color: var(--doux, #8792A2); border: 1px dashed var(--trait); }
.adm-onglets { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--trait); margin: 0 0 1.2rem; scrollbar-width: none; }
.adm-onglets button { font: inherit; font-size: .92rem; background: none; border: 0; border-bottom: 2px solid transparent; padding: .6rem .9rem; cursor: pointer; color: inherit; opacity: .7; white-space: nowrap; }
.adm-onglets button.actif { border-bottom-color: var(--laiton); opacity: 1; font-weight: 700; }
.adm-onglets button:focus-visible { outline: 2px solid var(--laiton); outline-offset: -2px; }
.jauge { display: grid; grid-template-columns: 80px 1fr 48px; gap: .6rem; align-items: center; margin: .5rem 0; font-size: .9rem; }
.jauge b { text-align: right; font-variant-numeric: tabular-nums; }
.adm-users td { vertical-align: top; }
.adm-users tr.inactif td { opacity: .55; }
.adm-users select { font: inherit; font-size: .88rem; padding: .25rem .4rem; border-radius: 8px; border: 1px solid var(--trait); background: var(--papier); color: inherit; max-width: 190px; }
.u-actions { position: relative; }
.u-actions summary { list-style: none; }
.u-actions summary::-webkit-details-marker { display: none; }
.menu-actions { position: absolute; right: 0; top: 110%; z-index: 20; min-width: 260px; display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(15, 27, 45, .35); padding: .35rem; }
.menu-actions button { font: inherit; font-size: .9rem; text-align: left; background: none; border: 0; padding: .5rem .65rem; border-radius: 8px; cursor: pointer; color: inherit; }
.menu-actions button:hover, .menu-actions button:focus-visible { background: var(--sauge); }
.roles-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.role-carte { border: 1px solid var(--trait); border-radius: 14px; padding: 1rem; }
.role-carte.defaut { border-color: var(--laiton); }
.role-carte h3 { margin: 0; font-size: 1rem; }
.role-esp { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.rg-cases { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: .8rem; }
.adm-barres { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.adm-barres span { flex: 1; background: var(--laiton); border-radius: 3px 3px 0 0; min-width: 4px; opacity: .85; }
.adm-barres span:hover { opacity: 1; }
.champs.trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .champs.trois { grid-template-columns: 1fr; } }
.tfa-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: .8rem 0; }
.tfa-opt { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .3rem; padding: .9rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); color: inherit; cursor: pointer; }
.tfa-opt:hover:not(:disabled) { border-color: var(--laiton); }
.tfa-opt:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 700px) { .tfa-choix { grid-template-columns: 1fr; } }
.tfa-bloc { border-top: 1px solid var(--trait); padding-top: 1rem; max-width: 520px; }
.tfa-etapes { padding-left: 1.2rem; line-height: 1.7; }
.tfa-titre { font-size: 1.15rem; margin: 0 0 .3rem; }
code.cle { font-size: 1rem; letter-spacing: .05em; padding: .15rem .4rem; background: var(--sauge); border-radius: 6px; word-break: break-all; }
.codes-secours { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; margin: 1rem 0; }
.codes-secours code { font-size: 1.05rem; text-align: center; padding: .45rem; background: var(--sauge); border-radius: 8px; letter-spacing: .08em; }
.seo-score { border: 1px solid var(--trait); border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0; }
.seo-tests { list-style: none; padding: 0; margin: .4rem 0 0; columns: 2; font-size: .86rem; }
.seo-tests li { padding: .15rem 0 .15rem 1.3rem; position: relative; color: var(--brique); }
.seo-tests li::before { content: "✕"; position: absolute; left: 0; }
.seo-tests li.ok { color: var(--action); }
.seo-tests li.ok::before { content: "✓"; }
@media (max-width: 700px) { .seo-tests { columns: 1; } }
.f-article { width: min(860px, 94vw); }
.f-article textarea { font: inherit; width: 100%; }
.sugg-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
tr.alerte td { color: var(--brique); }
.carte-tete .boutons input { width: 220px; max-width: 100%; }
.sans-organisation .fab-capture { display: none; }
.barre-bas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.phrase-jour { border-left: 4px solid var(--laiton); }
.phrase-texte { font-size: 1.15rem; font-weight: 700; line-height: 1.45; margin: 0 0 .35rem; letter-spacing: -.01em; }
.phrase-ref { margin: 0; color: var(--encre-2); font-size: .88rem; }
.programme { list-style: none; padding: 0; margin: 0; }
.programme li { display: grid; grid-template-columns: 110px 1fr; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--trait); font-size: .95rem; }
.programme li:last-child { border-bottom: 0; }
.prog-h { font-variant-numeric: tabular-nums; color: var(--encre-2); }
/* ------------------------------------------------------------------ onglets du quotidien */
.q-onglets { display: flex; gap: .35rem; overflow-x: auto; margin: 0 0 1rem; padding: .25rem; background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; position: sticky; top: .5rem; z-index: 5; scrollbar-width: none; }
.q-onglets::-webkit-scrollbar { display: none; }
.q-onglets button { flex: 1 0 auto; font: inherit; font-size: .92rem; padding: .55rem .9rem; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; white-space: nowrap; }
.q-onglets button[aria-selected="true"] { background: var(--sapin); color: var(--sur-sapin); font-weight: 700; }
.q-onglets button:focus-visible { outline: 2px solid var(--laiton); outline-offset: 1px; }
.q-progres { margin-bottom: .8rem; }
.q-progres .progress { margin-top: .35rem; }
.q-liste { list-style: none; padding: 0; margin: 0; }
.q-liste > li { border-bottom: 1px solid var(--trait); }
.q-liste > li:last-child { border-bottom: 0; }
.q-coche { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .75rem .2rem; font: inherit; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; min-height: 52px; }
.q-case { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--trait); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.q-coche.fait .q-case { background: var(--action); border-color: var(--action); }
.q-coche.fait .q-case::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.q-coche.fait .q-txt strong { color: var(--encre-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.q-coche.passe .q-heure { color: var(--brique); }
.q-txt { display: flex; flex-direction: column; min-width: 0; }
.q-heure { flex: none; width: 92px; font-variant-numeric: tabular-nums; color: var(--encre-2); font-size: .9rem; }
.q-obj { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .2rem; }
.q-obj.atteint strong { color: var(--action); }
.q-obj select { font: inherit; font-size: .88rem; padding: .3rem .4rem; border-radius: 8px; border: 1px solid var(--trait); background: var(--papier); color: inherit; }
.q-lecture { list-style: none; padding: 0; margin: 0; }
.q-lecture li { padding: .8rem 0 .8rem 1rem; border-left: 3px solid var(--trait); margin-bottom: .6rem; }
.q-lecture li.phrase-jour { border-left-color: var(--laiton); }
.q-lecture p { margin: 0 0 .2rem; }
.q-note { background: var(--sauge); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; }
.q-note p { margin: .3rem 0 0; }
.q-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.q-chiffres > div { background: var(--sauge); border-radius: 12px; padding: .8rem; display: flex; flex-direction: column; gap: .2rem; }
.q-chiffres strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.q-forme select { font: inherit; padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--trait); background: var(--papier); color: inherit; margin-bottom: .6rem; }
.q-boutons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.q-boutons .btn { min-height: 48px; }
@media (max-width: 600px) { .q-chiffres { grid-template-columns: 1fr; } .q-heure { width: 78px; } }
