/* ══════════════════════════════════════════════════════════════════════════
   Dashboard Préau v4.2 — feuille de style unique (règles : DESIGN.md)
   Palette + composants partagés. Les pages ne redéfinissent rien : elles montent.
   Polices auto-hébergées dans fonts/ : Public Sans et Nunito, licence SIL Open Font License 1.1,
   fichiers woff2 du sous-ensemble latin distribués par Fontsource.
   ══════════════════════════════════════════════════════════════════════════ */
@font-face{font-family:'Public Sans';src:url('../fonts/public-sans.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap;}
@font-face{font-family:'Nunito';src:url('../fonts/nunito-800.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:'Nunito';src:url('../fonts/nunito-900.woff2') format('woff2');font-weight:900;font-style:normal;font-display:swap;}
:root{
  /* Marque */
  --navy:#12103F;--navy-2:#221F5E;--navy-texte:#C9CCF0;
  --bleu:#353FF2;--bleu-fonce:#2830C4;--bleu-pale:#EEF0FE;
  --rouge:#C2544C;                                          /* filet tricolore et logo seulement */
  /* Neutres : texte teinté navy, fonds et filets lavande */
  --texte:#262944;--texte-2:#4A5070;--texte-3:#5F6684;      /* texte-3 : le plus clair autorisé pour du texte */
  --bord-champ:#8A91AD;--filet-fort:#C9C6DC;--filet:#E4E2EF;
  --gris-regle:#7F86A3;                                     /* pointillé « hors historique » : 3:1 sur blanc et sur bleu pâle */
  --page:#F6F5FA;--surface:#FFFFFF;--surface-2:#F4F3F9;--lavande:#ECEAF6;--ambre-fond:#FFFBF2;
  /* Sémantique : toujours avec un signal et un mot */
  --ok:#17703F;--ok-fond:#E6F4EC;--ok-filet:#A7D5BA;
  --danger:#B0352D;--danger-fond:#FBECEA;--danger-filet:#EDB5AF;
  --alerte:#8A5A00;--alerte-fond:#FFF4D9;--alerte-filet:#E9C46A;
  --info:#2830C4;--info-fond:#EEF0FE;--info-filet:#BFC3FA;
  /* Sources de la Billetterie (séries de données, jamais du texte) + teinte « autres mois » */
  --src-og:#5A3FC8;--src-bb:#13A08A;--src-cce:#D46A1A;--src-pi:#1F80C8;--src-mey:#B23A7E;
  --src-og-pale:#BDB2E9;--src-bb-pale:#A1D9D0;--src-cce-pale:#EEC3A3;--src-pi-pale:#A5CCE9;--src-mey-pale:#E3B3CE;
  /* Catégories de partenaires (pastilles) */
  --cat-culture:#7C4DDB;--cat-sport:#1F9D55;--cat-tourisme:#1B8FC6;
  --cat-quotidien:#E8742A;--cat-cartes:#D23F7F;--cat-billetterie:#E5A812;
  /* Typographie : Nunito pour les titres seulement, Public Sans pour tout le reste (chiffres compris) */
  --police:'Public Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --titre:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
  --r-s:6px;--r-m:10px;--r-l:14px;--r-rond:999px;
  --ombre-bulle:0 8px 24px rgba(18,16,63,.22);            /* seule ombre : bulles et fenêtres */
  --largeur:1360px;--haut-bandeau:101px;--haut-th:47px;            /* haut-th : ligne d'en-tête de tableau (tête figée) */
  --grille-graph:#E6E9F1;                                   /* grille horizontale des graphiques */
  /* Adhérents : une seule couleur (navy), « autres mois » en pâle ; carte en cinq classes d'une teinte */
  --adh:#12103F;--adh-pale:#B9B7DB;
  --carte-1:#E3E5F8;--carte-2:#B4B9EE;--carte-3:#8189DE;--carte-4:#4E55C4;--carte-5:#221F78;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
/* Le bandeau collant ne cache jamais l'élément qui a le focus */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--haut-bandeau) + 12px);}
body{font-family:var(--police);font-size:.875rem;line-height:1.5;background:var(--page);color:var(--texte);min-height:100vh;}
button,input,select,textarea{font:inherit;color:inherit;}
button{background:none;border:0;cursor:pointer;}
:focus-visible{outline:2px solid var(--bleu);outline-offset:2px;}
.hidden,.role-hidden,[hidden]{display:none!important;}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.evitement{position:absolute;left:8px;top:-60px;background:#fff;color:var(--navy);padding:8px 12px;border-radius:var(--r-m);z-index:300;font-weight:700;}
.evitement:focus{top:8px;}
h1,h2,h3,legend{font-family:var(--titre);color:var(--navy);font-weight:800;}
h1{font-size:2.125rem;font-weight:900;letter-spacing:-.01em;line-height:1.1;}
h2{font-size:1.375rem;line-height:1.25;}
h3{font-size:1.0625rem;line-height:1.35;}

/* ── Bandeau : filet tricolore, logo, compte, onglets (un seul bloc collant) ── */
.bandeau{background:var(--navy);color:#fff;position:sticky;top:0;z-index:200;}
.drapeau{display:flex;height:4px;}
.drapeau i{flex:1;}
.drapeau i:nth-child(1){background:var(--navy);border-bottom:1px solid var(--navy-2);}
.drapeau i:nth-child(2){background:#fff;}
.drapeau i:nth-child(3){background:var(--rouge);}
.bandeau-haut{display:flex;align-items:center;gap:16px;height:56px;padding:0 24px;max-width:var(--largeur);margin:0 auto;}
.logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font:900 1.375rem/1 var(--titre);flex:none;}
.logo img{display:block;width:30px;height:30px;flex:none;}   /* img/logo-preau.svg : pictogramme maison, en attendant le logo officiel */
.outil{font-weight:600;color:var(--navy-texte);padding-left:16px;border-left:1px solid rgba(255,255,255,.2);white-space:nowrap;}
.bandeau-droite{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0;}
.etat-base{display:flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--navy-texte);white-space:nowrap;margin-right:4px;}
.db-dot{width:8px;height:8px;border-radius:50%;background:var(--bord-champ);flex:none;}
.db-dot.ok{background:#3DDC97;}
.db-dot.err{background:#FF8A80;}
.db-dot.load{background:#F2C14E;animation:blink 1s infinite;}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}
.compte{position:relative;}
.moi{display:flex;align-items:center;gap:8px;min-height:36px;padding:3px 10px 3px 3px;border-radius:var(--r-rond);border:1px solid rgba(255,255,255,.22);color:#fff;font-weight:600;font-size:.8125rem;white-space:nowrap;}
.moi:hover,.moi[aria-expanded="true"]{background:var(--navy-2);border-color:rgba(255,255,255,.5);}
.avatar{width:28px;height:28px;border-radius:50%;background:#fff;color:var(--navy);display:grid;place-items:center;flex:none;}
.avatar .ic{width:17px;height:17px;}
.moi .role{color:var(--navy-texte);}
.moi .chev{width:16px;height:16px;color:var(--navy-texte);transition:transform .15s;}
.moi[aria-expanded="true"] .chev{transform:rotate(180deg);}
.bandeau :focus-visible{outline-color:#fff;}
/* Menu du compte : simple liste de boutons sous le bouton du compte (Échap ou un clic ailleurs le referme) */
.menu{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;max-width:calc(100vw - 32px);background:var(--surface);color:var(--texte);border-radius:var(--r-m);box-shadow:var(--ombre-bulle);padding:6px;z-index:250;display:flex;flex-direction:column;}
.menu-tete{padding:8px 12px 10px;border-bottom:1px solid var(--filet);margin-bottom:4px;font-size:.8125rem;color:var(--texte-2);overflow-wrap:anywhere;}
.menu-tete b{display:block;color:var(--navy);font-size:.875rem;}
.menu-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r-s);font-weight:600;color:var(--navy);text-align:left;min-height:40px;}
.menu-item:hover{background:var(--surface-2);}
.menu-item .ic{width:18px;height:18px;color:var(--texte-2);}
.bandeau .menu :focus-visible{outline-color:var(--bleu);}

/* ── Onglets principaux : l'actif est un intercalaire couleur de page ─────── */
.tabs-bar{display:flex;gap:4px;padding:0 24px;max-width:var(--largeur);margin:0 auto;overflow-x:auto;scrollbar-width:none;}
.tabs-bar::-webkit-scrollbar{display:none;}
.tab-btn{flex:none;display:flex;align-items:center;gap:8px;padding:10px 18px 12px;border-radius:12px 12px 0 0;color:var(--navy-texte);font:800 .9375rem/1.2 var(--titre);white-space:nowrap;}
.tab-btn .ic{width:19px;height:19px;}
.tab-btn:hover{background:var(--navy-2);color:#fff;}
.tab-btn.active{background:var(--page);color:var(--navy);}
.tab-btn[aria-disabled="true"]{color:#9A9DCB;cursor:not-allowed;background:none;}
.tab-btn:focus-visible{outline:2px solid #fff;outline-offset:-4px;}
.tab-btn.active:focus-visible{outline-color:var(--bleu);}

/* ── Mise en page ────────────────────────────────────────────────────── */
.container{max-width:var(--largeur);margin:0 auto;padding:20px 24px 48px;}
.tab-content{display:none;}
.tab-content.active{display:block;}
.tete{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 32px;margin-bottom:16px;}
.chapo{color:var(--texte-2);margin-top:6px;max-width:64ch;}   /* page de connexion */
.sauts{display:flex;flex-wrap:wrap;gap:8px;}
.saut{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:var(--r-rond);border:1px solid var(--filet-fort);background:var(--surface);color:var(--navy);font-weight:700;text-decoration:none;font-size:.8125rem;}
.saut:hover{border-color:var(--navy);}
.saut .ic{width:17px;height:17px;}
.section{margin-top:32px;}
.section,.panneau{scroll-margin-top:calc(var(--haut-bandeau) + 12px);}
.section-tete{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:12px;}
.meta{font-size:.8125rem;color:var(--texte-3);}
.point{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--c);flex:none;}
.point.vide{background:transparent;border:2px dotted var(--c);}
.src{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;}

/* ── Panneaux ────────────────────────────────────────────────────────── */
.panneau{background:var(--surface);border:1px solid var(--filet);border-radius:var(--r-l);min-width:0;}
.panneau-tete{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;padding:16px 20px 12px;}
.panneau-corps{padding:0 20px 20px;}
.panneau-sous{font-size:.8125rem;color:var(--texte-3);}

/* ── Boutons, badges, alertes ────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 16px;border-radius:var(--r-rond);font-weight:700;font-size:.8125rem;border:1px solid var(--bord-champ);background:var(--surface);color:var(--navy);white-space:nowrap;text-decoration:none;}
.btn .ic{width:17px;height:17px;}
.btn:hover{border-color:var(--navy);}
.btn-p{background:var(--bleu);border-color:var(--bleu);color:#fff;}
.btn-p:hover{background:var(--bleu-fonce);border-color:var(--bleu-fonce);}
.btn:disabled{opacity:.45;cursor:not-allowed;}
.btn-p:disabled{opacity:1;background:var(--filet-fort);border-color:var(--filet-fort);color:var(--texte-2);}
.btn-d{background:var(--surface);color:var(--danger);border-color:var(--danger-filet);}
.btn-d:hover{background:var(--danger-fond);border-color:var(--danger);}
.btn-danger-p{background:var(--danger);border-color:var(--danger);color:#fff;}
.btn-danger-p:disabled{opacity:1;background:var(--filet-fort);border-color:var(--filet-fort);color:var(--texte-2);}
.btn-lien.danger{color:var(--danger);}
.btn-lien{color:var(--bleu-fonce);font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:30px;padding:0 4px;border-radius:var(--r-s);}
.btn.btn-lien{border:0;background:none;}
.btn-lien:hover{color:var(--navy);}
.btn-petit{min-height:30px;padding:0 12px;font-size:.75rem;}
.btn-petit .ic{width:15px;height:15px;}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:.75rem;font-weight:600;line-height:1.5;color:var(--texte-2);background:var(--surface);border:1px solid var(--filet-fort);border-radius:var(--r-rond);padding:1px 9px;white-space:nowrap;}
.badge .ic{width:14px;height:14px;}
.badge-neutre{background:var(--surface-2);}
.badge-type{color:var(--navy);background:var(--bleu-pale);border-color:var(--info-filet);}
.badge-ok{color:var(--ok);background:var(--ok-fond);border-color:var(--ok-filet);}
.badge-alerte{color:var(--alerte);background:var(--alerte-fond);border-color:var(--alerte-filet);}
.badge-danger{color:var(--danger);background:var(--danger-fond);border-color:var(--danger-filet);}
.alerte{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:center;padding:12px 16px;border:1px solid var(--alerte-filet);border-left-width:4px;background:var(--alerte-fond);border-radius:var(--r-m);margin-top:16px;}
.alerte-titre{font-weight:700;color:var(--alerte);}
.alerte-texte{grid-column:1;font-size:.8125rem;color:var(--texte-2);max-width:82ch;}
.alerte.info{border-color:var(--info-filet);background:var(--info-fond);}
.alerte.info .alerte-titre{color:var(--info);}
.alerte.ok{border-color:var(--ok-filet);background:var(--ok-fond);}
.alerte.ok .alerte-titre{color:var(--ok);}
.alerte.danger{border-color:var(--danger-filet);background:var(--danger-fond);}
.alerte.danger .alerte-titre{color:var(--danger);}
.alerte-actions{grid-row:1 / span 2;grid-column:2;display:flex;flex-wrap:wrap;gap:8px;}
.alerte code{font-family:ui-monospace,Menlo,monospace;background:var(--surface);border:1px solid var(--filet);padding:0 4px;border-radius:4px;font-size:.75rem;color:var(--navy);}
.tab-alerte>.alerte{margin:0 0 16px;}

/* ── Bulle de définition (.terme pointillé, .ib ⓘ) : rattachée à body ───── */
.terme{display:inline;padding:0;text-align:left;cursor:help;font-weight:inherit;color:inherit;text-decoration:underline dotted;text-decoration-color:var(--texte-3);text-decoration-thickness:1px;text-underline-offset:3px;}
.terme:hover{color:var(--navy);}
.ib{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;cursor:help;color:var(--texte-3);flex:none;vertical-align:middle;}
.ib:hover{color:var(--navy);background:var(--lavande);}
.ico-i{width:15px;height:15px;}
.bulle{display:none;position:fixed;left:0;top:0;z-index:1000;width:max-content;max-width:min(320px,calc(100vw - 16px));background:var(--navy);color:#fff;border:1px solid rgba(255,255,255,.22);font:400 .8125rem/1.45 var(--police);padding:10px 12px;border-radius:var(--r-m);box-shadow:var(--ombre-bulle);text-align:left;white-space:pre-line;}
.bulle.visible{display:block;}
.bulle strong{display:block;font-weight:700;margin-bottom:2px;}
.bulle .calc{display:block;margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.2);color:var(--navy-texte);}

/* ── Billetterie : filtres de source (mot d'état sous chaque puce), période, mois importés repliés ── */
.filtres{padding:16px 20px 14px;display:flex;flex-direction:column;gap:12px;}
/* Adhérents : même panneau (période d'inscription, type d'adhérent), libellés alignés */
.filtres-adh{margin-bottom:16px;}
.filtres-adh .filtre-lbl{min-width:120px;}
.filtre{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 14px;}
.filtre-lbl{font:700 .875rem/1 var(--police);color:var(--navy);min-width:74px;padding-top:11px;}
.puces{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;flex:1;}
.puce-bloc{display:flex;flex-direction:column;align-items:center;gap:3px;}
.puce-etat{font-size:.75rem;color:var(--texte-3);white-space:nowrap;}
.badge-attente{margin-left:auto;align-self:center;cursor:help;}
.puce{--c:var(--texte-3);display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px 0 12px;border-radius:var(--r-rond);border:1px solid var(--bord-champ);background:var(--surface);font-weight:600;color:var(--texte-2);white-space:nowrap;}
.puce .point{background:transparent;border:2px solid var(--c);}
.puce .coche{width:15px;height:15px;display:none;stroke-width:2.6;}
.puce:hover{border-color:var(--navy);color:var(--navy);}
.puce[aria-pressed="true"]{border:2px solid var(--navy);padding:0 13px 0 11px;color:var(--navy);font-weight:700;}
.puce[aria-pressed="true"] .point{background:var(--c);}
.puce[aria-pressed="true"] .coche{display:block;}
.src-msg,.per-msg{font-size:.8125rem;color:var(--alerte);font-weight:600;flex-basis:100%;}
.src-msg:empty,.per-msg:empty{display:none;}
.periode{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
.seg{position:relative;display:inline-flex;background:var(--surface-2);border:1px solid var(--filet-fort);border-radius:var(--r-rond);padding:3px;}
.seg input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
.seg label{padding:6px 14px;border-radius:var(--r-rond);font-weight:700;font-size:.8125rem;color:var(--texte-2);cursor:pointer;text-align:center;white-space:nowrap;}
.seg label:hover{color:var(--navy);}
.seg input:checked+label{background:var(--navy);color:#fff;}
.seg input:focus-visible+label{outline:2px solid var(--bleu);outline-offset:1px;}
.pas{display:inline-flex;align-items:center;background:var(--surface);border:1px solid var(--bord-champ);border-radius:var(--r-rond);}
.pas button{width:36px;height:34px;display:grid;place-items:center;color:var(--navy);border-radius:50%;}
.pas button:hover:not(:disabled){background:var(--surface-2);}
.pas button:disabled{color:var(--filet-fort);cursor:not-allowed;}
.pas output{min-width:13ch;text-align:center;font-weight:800;color:var(--navy);padding:0 4px;white-space:nowrap;}
.dates{font-size:.8125rem;color:var(--texte-3);}
.periode .champ-date{height:36px;width:auto;border:1px solid var(--bord-champ);border-radius:var(--r-rond);padding:0 12px;background:var(--surface);color:var(--navy);font-weight:600;}
.libre{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 10px;}
.libre label{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.8125rem;color:var(--navy);}
.couverture{border-top:1px solid var(--filet);margin:2px -20px 0;padding:0 20px;}
.couverture>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:12px 0 4px;font-size:.8125rem;font-weight:700;color:var(--texte-2);}
.couverture>summary::-webkit-details-marker{display:none;}
.couverture>summary:hover{color:var(--navy);}
.couverture>summary .ic{width:16px;height:16px;transition:transform .15s;margin-left:auto;flex:none;}
.couverture[open]>summary .ic{transform:rotate(180deg);}
.couverture-corps{padding:8px 0 10px;display:flex;flex-direction:column;gap:10px;}
.ignorees{list-style:none;display:flex;flex-direction:column;font-size:.8125rem;color:var(--texte-2);}
.ignorees li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;border-bottom:1px dotted var(--filet-fort);}
.ignorees li>span:first-child{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;overflow-wrap:anywhere;}
.ignorees .n{font-variant-numeric:tabular-nums;white-space:nowrap;}
.regle{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;}
.regle-an{font:700 .875rem/1 var(--police);color:var(--navy);align-self:center;padding-bottom:16px;min-width:74px;}
.regle-mois{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));position:relative;border-bottom:1px solid var(--bord-champ);}
.regle-mois::after{content:"";position:absolute;right:0;bottom:0;width:1px;height:14px;background:var(--texte-2);}
.rm{position:relative;display:flex;flex-direction:column;gap:6px;padding:9px 0;min-width:0;font-size:.75rem;font-weight:600;color:var(--texte-2);border-radius:8px 8px 0 0;text-align:center;}
.rm::before{content:"";position:absolute;left:0;bottom:0;width:1px;height:6px;background:var(--bord-champ);}
.rm.q::before{height:14px;background:var(--texte-2);}
.rm:hover:not(:disabled){background:var(--surface-2);color:var(--navy);}
.rm:disabled{cursor:default;color:var(--texte-3);}
.rm .court{display:none;}
.rm .long{white-space:nowrap;}
.couv{display:flex;flex-direction:column;gap:3px;padding:0 6px;margin-top:auto;}
.couv i{display:block;height:3px;border-radius:2px;background:var(--c);}
.couv i.manque{height:0;background:none;border-top:3px dotted var(--c);border-radius:0;}
.couv i.hors{height:0;background:none;border-top:3px dotted var(--gris-regle);border-radius:0;}
.rm.sel{background:var(--bleu-pale);color:var(--navy);font-weight:800;}
.rm.sel::after{content:"";position:absolute;left:0;right:0;top:0;height:9px;border-top:2px solid var(--navy);}
.rm.sel-a::after{border-left:2px solid var(--navy);border-top-left-radius:4px;}
.rm.sel-z::after{border-right:2px solid var(--navy);border-top-right-radius:4px;}
.regle-t{grid-column:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));font-size:.75rem;color:var(--texte-3);padding-top:4px;}
.regle-t span{padding-left:4px;}
.regle-t .on{color:var(--navy);font-weight:700;}
.cle-regle{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:.75rem;color:var(--texte-3);padding-left:88px;}
.cle-regle span{display:inline-flex;align-items:center;gap:6px;}
.trait{display:inline-block;width:16px;height:3px;border-radius:2px;background:var(--c,var(--texte-2));}
.trait.pointille{height:0;border-top:3px dotted var(--c,var(--texte-2));border-radius:0;background:none;}
.trait.gris{height:0;border-top:3px dotted var(--gris-regle);border-radius:0;background:none;}
.regle-t.douze{grid-template-columns:repeat(12,minmax(0,1fr));}   /* règle glissante : T1 à T4 sous le mois qui ouvre le trimestre */

/* ── Relevé : quatre tuiles séparées, opérateurs, tuile héros ─────────── */
.zone-chiffres{position:relative;}
.barre-maj{position:absolute;left:0;top:-10px;height:3px;width:100%;overflow:hidden;border-radius:2px;}
.zone-chiffres.en-cours .barre-maj::after{content:"";position:absolute;left:0;top:0;height:100%;width:30%;background:var(--bleu);animation:charge 1s linear infinite;}
@keyframes charge{from{transform:translateX(-100%)}to{transform:translateX(340%)}}
.zone-chiffres.en-cours .tuile-val,.zone-chiffres.en-cours td.n{opacity:.35;}
.releve{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1.9fr);gap:16px;}
.tuile{position:relative;background:var(--surface);border:1px solid var(--filet);border-radius:var(--r-l);padding:16px;display:flex;flex-direction:column;gap:3px;min-width:0;}
.tuile-tete{display:flex;align-items:center;gap:9px;}
.tuile-ic{width:34px;height:34px;border-radius:50%;background:var(--lavande);color:var(--navy);display:grid;place-items:center;flex:none;}
.tuile-ic .ic{width:18px;height:18px;}
.tuile-lbl{font-size:.8125rem;font-weight:600;color:var(--texte-2);}
.tuile-val{font-size:1.5rem;font-weight:700;color:var(--navy);line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.01em;margin-top:8px;}
.tuile-sous{font-size:.8125rem;color:var(--texte-3);}
.tuile-sous:empty{display:none;}
.tuile-evo{font-size:.8125rem;color:var(--texte-2);}
.tuile-evo:empty{display:none;}
.evo{font-size:.8125rem;text-align:left;cursor:help;color:var(--texte-2);text-decoration:underline dotted;text-decoration-color:var(--texte-3);text-underline-offset:3px;}
.evo b{color:var(--navy);font-weight:700;}
.op{position:absolute;left:-23px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:var(--surface);border:1px solid var(--filet-fort);display:grid;place-items:center;font-weight:800;font-size:1.0625rem;color:var(--navy);z-index:2;line-height:1;}
.heros{background:var(--navy);border-color:var(--navy);display:grid;grid-template-columns:auto minmax(0,1fr);grid-auto-rows:min-content;column-gap:14px;align-content:center;}
.badge-eur{grid-row:1 / span 4;align-self:center;width:58px;height:58px;border-radius:50%;background:var(--bleu);border:3px solid rgba(255,255,255,.3);color:#fff;display:grid;place-items:center;}
.badge-eur .ic{width:30px;height:30px;stroke-width:2.2;}
.heros .tuile-lbl{color:var(--navy-texte);}
.heros .terme{text-decoration-color:var(--navy-texte);}
.heros .terme:hover{color:#fff;}
.heros .tuile-val{color:#fff;font-size:2.5rem;font-weight:800;margin-top:2px;line-height:1.05;}
.heros .tuile-sous,.heros .tuile-evo,.heros .evo{color:var(--navy-texte);}
.heros .evo{text-decoration-color:var(--navy-texte);}
.heros .evo b{color:#fff;}
.heros :focus-visible{outline-color:#fff;}

/* ── Tableaux ────────────────────────────────────────────────────────── */
.tbl-wrap{overflow-x:auto;position:relative;}   /* relative : les textes .sr (absolus) des cellules restent dans le défilement du tableau */
.tbl-wrap.scroll{max-height:480px;overflow-y:auto;}
table{width:100%;border-collapse:collapse;font-size:.875rem;}
caption{text-align:left;}
thead th{font-size:.8125rem;font-weight:600;color:var(--texte-2);padding:9px 12px;text-align:left;vertical-align:middle;background:var(--surface-2);border-top:1px solid var(--filet);border-bottom:1px solid var(--filet-fort);white-space:nowrap;position:sticky;top:0;z-index:2;}
tbody tr{border-bottom:1px solid var(--filet);}
tbody tr:hover{background:var(--surface-2);}
tbody tr.bad{background:var(--danger-fond);}
td,tbody th,tfoot th{padding:9px 12px;vertical-align:middle;text-align:left;}
.tsub{font-size:.8125rem;color:var(--texte-3);}
.tbl-state{text-align:center;padding:24px;color:var(--texte-3);font-size:.8125rem;font-weight:600;}
.tbl-state.err{color:var(--danger);}
.tbl-state .btn{margin-left:8px;vertical-align:middle;}
.tbl-state .chargement{padding:0;max-width:340px;margin:0 auto;}
.pag{display:flex;align-items:center;justify-content:center;gap:4px;padding:10px 16px;border-top:1px solid var(--filet);background:var(--surface);flex-wrap:wrap;}
.pag-info{font-size:.8125rem;color:var(--texte-2);margin-right:auto;font-variant-numeric:tabular-nums;}
.pag-gap{padding:0 3px;color:var(--texte-3);}
.pg{min-width:32px;height:32px;padding:0 8px;border-radius:var(--r-rond);background:var(--surface);border:1px solid var(--filet-fort);color:var(--texte-2);font-size:.8125rem;font-weight:700;display:inline-grid;place-items:center;font-variant-numeric:tabular-nums;}
.pg:hover{border-color:var(--navy);color:var(--navy);}
.pg.on{background:var(--navy);color:#fff;border-color:var(--navy);}
.pg:disabled{opacity:.4;cursor:not-allowed;}
/* Tableaux de la Billetterie (maquette) */
.tableau thead th{white-space:nowrap;}
.tableau tbody th{font-weight:600;color:var(--navy);}
.tableau .n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.tableau .n.danger{color:var(--danger);}
.tableau tbody tr:hover>*{background:var(--surface-2);}
.tableau tfoot tr{border-bottom:0;}
.tableau tfoot tr:first-child>*{border-top:1px solid var(--filet-fort);}
.tableau tr.total>*{font-weight:700;color:var(--navy);background:var(--surface-2);border-top:1px solid var(--filet-fort);}
.tableau tr.total.sel>*{background:var(--bleu-pale);}
.tableau tr.exclu>*{color:var(--texte-2);}
.exclu-txt{font-size:.8125rem;white-space:normal;}
.th-in{display:inline-flex;align-items:center;gap:2px;}
.tri{display:inline-flex;align-items:center;gap:4px;font-weight:inherit;color:inherit;padding:2px 0;min-height:28px;white-space:nowrap;border-radius:var(--r-s);}
.tri:hover{color:var(--navy);}
.fleche{font-size:.75rem;color:var(--texte-3);width:.8em;text-align:center;}
.fleche::before{content:"↕";}
th[aria-sort] .tri{color:var(--navy);font-weight:700;}
th[aria-sort] .fleche{color:var(--navy);}
th[aria-sort="descending"] .fleche::before{content:"↓";}
th[aria-sort="ascending"] .fleche::before{content:"↑";}
.c-case{width:40px;min-width:40px;padding-right:0!important;}
.c-case input{width:18px;height:18px;accent-color:var(--navy);cursor:pointer;vertical-align:middle;}
.c-nom label{cursor:pointer;}
.c-nom .tsub{display:block;font-weight:400;}
.loupe{margin-left:4px;}
.nw{white-space:nowrap;}
tr.choisie>*{background:var(--bleu-pale)!important;}
.jauge{width:52px;height:7px;background:var(--lavande);border-radius:4px;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:8px;}
.jauge i{display:block;height:100%;background:var(--navy);border-radius:0 4px 4px 0;}
.nc{font-weight:700;}
/* Par source : sources cochées hors relevé, grisées, la raison sous le nom */
.ps-hors>*{background:var(--surface-2);color:var(--texte-3);}
.tableau .ps-hors th{color:var(--texte-2);}
.ps-hors .hors-lbl{font-size:.75rem;font-weight:600;color:var(--texte-3);margin-left:8px;}
.raison-m{display:block;font-size:.75rem;font-weight:400;color:var(--texte-3);white-space:normal;max-width:34ch;}
.raison-m .btn{margin-top:4px;}
.tableau tr.ps-sep>*{border-top:1px solid var(--filet-fort);}
/* Tableau des enseignes : ligne de total répétée en tête quand une recherche ou une sélection est active */
thead tr.total-fige th{background:var(--bleu-pale);color:var(--navy);font-weight:700;font-size:.875rem;top:var(--haut-th);border-top:0;border-bottom:1px solid var(--info-filet);}
thead tr.total-fige.resultats th{background:var(--surface-2);border-bottom-color:var(--filet-fort);}

/* ── Graphique : clé, segment des fraudes, annotations manuelles, changements de taux ── */
.cle{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.8125rem;color:var(--texte-2);margin-bottom:10px;}
.cle-item{display:inline-flex;align-items:center;gap:7px;}
.cle-item.nc{color:var(--texte-3);font-weight:400;}
.sw{display:inline-flex;gap:2px;}
.sw i{width:9px;height:12px;border-radius:2px 2px 0 0;display:block;}
.sw-fr{width:9px;height:12px;border-radius:2px 2px 0 0;background:linear-gradient(var(--danger) 0 4px, var(--filet-fort) 4px);display:inline-block;}
.graph{position:relative;height:300px;}
.graph-repli{display:grid;place-items:center;height:100%;color:var(--texte-3);font-size:.8125rem;text-align:center;border:1px dashed var(--filet-fort);border-radius:var(--r-m);padding:16px;}
.annots{list-style:none;display:flex;flex-direction:column;gap:4px;margin-top:8px;font-size:.8125rem;color:var(--texte-2);}
.annots li{display:flex;align-items:flex-start;gap:8px;}
.annots li>span:last-child{min-width:0;overflow-wrap:anywhere;}
.pastille-i{width:18px;height:18px;border-radius:50%;background:var(--navy);color:#fff;display:inline-grid;place-items:center;font:700 .6875rem/1 var(--police);flex:none;margin-top:1px;}
.ruptures{list-style:none;display:flex;flex-direction:column;gap:3px;font-size:.8125rem;color:var(--texte-2);font-variant-numeric:tabular-nums;}
.donnees{margin-top:12px;border-top:1px solid var(--filet);padding-top:10px;}
.donnees summary{cursor:pointer;font-weight:700;color:var(--bleu-fonce);font-size:.8125rem;width:max-content;max-width:100%;}
.donnees[open] summary{margin-bottom:8px;}

/* ── Recherche et sélection ──────────────────────────────────────────── */
.outils{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-left:auto;}
.recherche{position:relative;width:340px;max-width:100%;}
.recherche>.ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--texte-3);pointer-events:none;}
.recherche input{height:38px;width:100%;border:1px solid var(--bord-champ);border-radius:var(--r-rond);padding:0 14px 0 38px;background:var(--surface);}
.recherche input:not(:placeholder-shown){padding-right:38px;}
.recherche input::-webkit-search-cancel-button{display:none;}
.recherche input::placeholder{color:var(--texte-3);opacity:1;}
.recherche input:focus{outline:2px solid var(--bleu);outline-offset:0;border-color:var(--bleu);}
.rech-x{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--texte-2);}
.rech-x:hover{background:var(--surface-2);color:var(--navy);}
.rech-x .ic{width:15px;height:15px;}
.barre-sel{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 20px 12px;padding:6px 8px 6px 16px;border-radius:var(--r-rond);background:var(--bleu-pale);border:1px solid var(--info-filet);color:var(--navy);font-size:.8125rem;}
.barre-sel b{font-weight:700;}
.barre-sel .sep{color:var(--texte-3);}
.barre-sel [aria-pressed="true"]{background:var(--navy);color:#fff;text-decoration:none;padding:0 12px;border-radius:var(--r-rond);}
.barre-sel [aria-pressed="true"]::before{content:"✓ ";}
.barre-sel.collante{position:sticky;top:calc(var(--haut-bandeau) + 8px);z-index:20;box-shadow:0 0 0 6px var(--surface);}

/* ── États : chargement, vide ────────────────────────────────────────── */
.chargement{display:flex;flex-direction:column;gap:10px;padding:20px;color:var(--texte-2);font-size:.8125rem;}
.chargement::after{content:"";height:6px;border-radius:3px;background:linear-gradient(90deg,var(--lavande) 25%,var(--surface-2) 50%,var(--lavande) 75%);background-size:200% 100%;animation:reflet 1.4s linear infinite;}
@keyframes reflet{from{background-position:100% 0}to{background-position:-100% 0}}
#bil-charge{display:none;}
.initial #bil-charge{display:flex;}
.chargement.echec::after{display:none;}
.initial .filtre-periode,.initial #bil-couverture,.initial #commandes,
.initial .zone-chiffres>:not(.section-tete):not(.barre-maj):not(#bil-charge){display:none;}

/* ── Commandes : statuts ─────────────────────────────────────────────── */
.cmd td{white-space:nowrap;}
.cmd td.exclu-txt{white-space:normal;}
.cmd.vide thead{display:none;}
.statut{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--navy);white-space:nowrap;}
.statut .point{width:9px;height:9px;}
.cmd-cle{margin:0 20px 14px;padding:12px 16px;border-radius:var(--r-m);background:var(--ok-fond);border:1px solid var(--ok-filet);font-size:.875rem;color:var(--texte);display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px;row-gap:3px;align-items:baseline;}
.cmd-cle .sig{color:var(--ok);font-weight:800;text-align:center;width:1.2em;}
.cmd-cle .n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.cmd-cle .l1{font-weight:700;color:var(--ok);}
.cmd-cle .l3{font-weight:700;color:var(--navy);border-top:1px solid var(--ok-filet);padding-top:4px;}
.cmd-partiel{margin:-6px 20px 14px;font-size:.8125rem;font-weight:600;color:var(--alerte);}
.remb{padding:10px 20px 16px;font-size:.8125rem;color:var(--texte-2);}

/* ── Billetterie, ajouts (docs/spec-ameliorations.md § 2) ────────────── */
.initial #bil-comp{display:none;}
.case-part{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;color:var(--texte-2);}
.case-part input{width:18px;height:18px;margin:0;accent-color:var(--navy);cursor:pointer;}
.case-part input:disabled,.case-part input:disabled+label{cursor:not-allowed;color:var(--texte-3);}
.ps-moy{padding:10px 20px 16px;font-size:.8125rem;color:var(--texte-2);font-variant-numeric:tabular-nums;}
.cmdg-note{margin:-4px 0 8px;}
.cmd-evo{display:block;}
/* Panneau replié, chargé à son ouverture (hausses et baisses, « Quand achète-t-on ? ») : le résumé sert d'en-tête */
.repli{position:relative;}
.repli>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:16px 52px 16px 20px;border-radius:var(--r-l);}
.repli>summary::-webkit-details-marker{display:none;}
.repli>summary .ic{position:absolute;right:20px;top:19px;width:18px;height:18px;color:var(--texte-2);transition:transform .15s;}
.repli>summary:hover h3{color:var(--bleu-fonce);}
.repli>summary:focus-visible{outline:2px solid var(--bleu);outline-offset:-2px;}
.repli[open]>summary{padding-bottom:12px;}
.repli[open]>summary .ic{transform:rotate(180deg);}
.hb-tete{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;}
.hb-tete .meta{flex:1 1 360px;}
.hb-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;align-items:start;}
.hb-nd{margin-top:18px;}
.hb-pied{margin-top:14px;font-size:.8125rem;color:var(--texte-2);font-variant-numeric:tabular-nums;}
.tableau.hb .c-nom{white-space:normal;min-width:16ch;}
.tableau.hb .btn-lien{text-align:left;}
.tableau.hb thead th:first-child{width:34%;}
.tableau.hb thead th:nth-child(2){width:15%;}
.top-jours{list-style:none;display:flex;flex-direction:column;gap:6px;font-size:.875rem;}
.top-jours li{display:flex;justify-content:space-between;gap:12px;padding-bottom:6px;border-bottom:1px solid var(--filet);}
.top-jours b{font-variant-numeric:tabular-nums;color:var(--navy);white-space:nowrap;}
.barres.quand-barres{padding:0;}
.barres.quand-barres>.barre{grid-template-columns:76px minmax(0,1fr) auto;}
/* Calendrier : une colonne par semaine (lundi en haut), cinq classes --carte-1 à --carte-5, défile dans son panneau */
.cal-defile{overflow-x:auto;padding-bottom:6px;}
.cal{display:flex;gap:6px;width:max-content;}
.cal-jours{display:grid;grid-template-rows:repeat(7,var(--cal,13px));gap:3px;margin-top:19px;font-size:.75rem;line-height:var(--cal,13px);color:var(--texte-3);}
.cal-mois{display:grid;grid-auto-flow:column;grid-auto-columns:var(--cal,13px);gap:3px;height:16px;margin-bottom:3px;font-size:.75rem;color:var(--texte-3);white-space:nowrap;}
.cal-grille{display:grid;grid-template-rows:repeat(7,var(--cal,13px));grid-auto-flow:column;grid-auto-columns:var(--cal,13px);gap:3px;}
.cal-grille i{border-radius:3px;background:var(--surface-2);}
.cal-grille .c0{background:var(--carte-1);}.cal-grille .c1{background:var(--carte-2);}.cal-grille .c2{background:var(--carte-3);}.cal-grille .c3{background:var(--carte-4);}.cal-grille .c4{background:var(--carte-5);}
.cal-grille .hors{background:none;}
.legende.ligne{flex-direction:row;flex-wrap:wrap;gap:4px 16px;margin-top:8px;}
@media (max-width:1040px){ .hb-cols{grid-template-columns:minmax(0,1fr);} }
@media (max-width:760px){ .repli>summary{padding:14px 44px 14px 16px;} .repli>summary .ic{right:16px;top:17px;} .ps-moy{padding:8px 16px 14px;} }

/* ── Fenêtres : fenêtre .box (confirmer, saisir peu) et tiroir .drw (consulter, gérer) ; tête / corps / pied ── */
.ov{display:none;position:fixed;inset:0;background:rgba(18,16,63,.45);z-index:400;align-items:center;justify-content:center;padding:16px;}
.ov.open{display:flex;}
.ov.drw-ov{align-items:flex-start;justify-content:flex-end;padding:0;background:rgba(18,16,63,.32);z-index:300;}
.box{background:var(--surface);border-radius:var(--r-l);width:860px;max-width:96vw;max-height:92vh;display:flex;flex-direction:column;box-shadow:var(--ombre-bulle);}
.box.sm{width:460px;}
.box-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--filet);gap:10px;}
.box-title{font:800 1.0625rem/1.35 var(--titre);color:var(--navy);}
.box-body{flex:1;overflow-y:auto;padding:16px 20px;}
.box-foot{padding:12px 20px;border-top:1px solid var(--filet);display:flex;gap:8px;justify-content:flex-end;align-items:center;flex-wrap:wrap;}
.box-close{width:32px;height:32px;border-radius:50%;background:var(--surface-2);color:var(--texte-2);font-size:15px;display:grid;place-items:center;flex-shrink:0;}
.box-close .ic{width:17px;height:17px;}
.box-close:hover{background:var(--lavande);color:var(--navy);}
.drw{background:var(--surface);width:600px;max-width:96vw;height:100vh;height:100dvh;box-shadow:var(--ombre-bulle);display:flex;flex-direction:column;animation:sld .2s ease;}
.drw.wide{width:680px;}
.drw.large{width:860px;}
@keyframes sld{from{transform:translateX(100%)}to{transform:translateX(0)}}
.drw .box-body{padding:20px;}
/* .pile : contenu empilé à intervalle régulier (encarts, champs, sections du tiroir) */
.pile{display:flex;flex-direction:column;gap:14px;min-width:0;}
.pile>*{flex:none;}   /* jamais écrasés par la hauteur du corps : c'est le corps qui défile */
.pile .alerte{margin-top:0;}
.pile fieldset{border:0;min-width:0;display:flex;flex-direction:column;gap:8px;}
.pile legend{font-size:1rem;margin-bottom:6px;}
.diag-meta{list-style:none;font-size:.8125rem;color:var(--texte-2);margin-bottom:12px;display:flex;flex-direction:column;gap:2px;}

/* ── Formulaires ─────────────────────────────────────────────────────── */
.form-row{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.form-lbl{font-size:.8125rem;font-weight:600;color:var(--texte);}
.form-inp,input[type="text"],input[type="date"],input[type="email"],input[type="password"],select{font-size:.875rem;height:40px;border:1px solid var(--bord-champ);border-radius:var(--r-m);background:var(--surface);color:var(--texte);padding:0 12px;width:100%;}
.form-inp:hover,input[type="text"]:hover,input[type="date"]:hover,input[type="email"]:hover,input[type="password"]:hover,select:hover{border-color:var(--texte-2);}
.form-inp:focus,input:focus,select:focus{outline:2px solid var(--bleu);outline-offset:0;border-color:var(--bleu);}
input::placeholder{color:var(--texte-3);opacity:1;}
input[aria-invalid="true"]{border:2px solid var(--danger);}
.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
.grille-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;}
.form-box{background:var(--page);border:1px solid var(--filet);border-radius:var(--r-m);padding:16px;margin-bottom:16px;}
.form-box-title{font:800 1rem/1.3 var(--titre);color:var(--navy);margin-bottom:12px;}
.champ .obl{font-weight:400;color:var(--texte-3);}
.champ .err{font-size:.75rem;color:var(--danger);font-weight:600;}
.champ .err:empty{display:none;}
legend.champ-lbl{font-family:var(--police);font-size:.8125rem;font-weight:600;color:var(--texte);margin-bottom:0;}
/* Cartes de choix (radio ou case) : le libellé et son aide ; choisie = filet navy 2 px, fond bleu pâle */
.choix{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 10px;align-items:start;padding:10px 12px;border:1px solid var(--bord-champ);border-radius:var(--r-m);cursor:pointer;}
.choix:has(input:checked){border:2px solid var(--navy);padding:9px 11px;background:var(--bleu-pale);}
.choix input{width:18px;height:18px;margin-top:2px;accent-color:var(--navy);}
.choix b{color:var(--navy);}
.choix .aide{grid-column:2;}
.roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.actions-fin{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;}
.imp-ft{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;}   /* boutons sous un petit formulaire (rubriques) */

/* ── Tiroir d'import : onglets, zone de dépôt, récapitulatif, progression, zone sensible ── */
.onglets-tiroir{display:flex;flex-wrap:wrap;align-self:flex-start;max-width:100%;}
#src-bil{flex-wrap:wrap;align-self:flex-start;max-width:100%;border-radius:var(--r-m);}   /* 7 sources : à la ligne dès qu'elles ne tiennent plus */
.seg button[aria-selected="true"]{background:var(--navy);color:#fff;}
.seg button:focus-visible{outline:2px solid var(--bleu);outline-offset:1px;}
.imp-src{display:flex;flex-direction:column;gap:14px;}
.dz{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:22px 16px;border:2px dashed var(--bord-champ);border-radius:var(--r-m);background:var(--surface-2);color:var(--navy);text-align:center;cursor:pointer;}
.dz:hover,.dz.ov-drag{border-color:var(--navy);background:var(--bleu-pale);}
.dz:disabled{cursor:progress;opacity:.6;}
.dz .ic{width:26px;height:26px;color:var(--texte-2);}
.dz-txt{font-weight:700;}
.dz-sub{font-size:.75rem;color:var(--texte-3);}
input[type="file"]{display:none;}
.recap{border:1px solid var(--filet-fort);border-radius:var(--r-m);padding:14px 16px;display:flex;flex-direction:column;gap:12px;}
.recap-titre{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--navy);overflow-wrap:anywhere;}
.recap-titre .ic{width:18px;height:18px;color:var(--texte-2);}
.recap .lignes dd{white-space:normal;}
.recap-note{font-size:.8125rem;color:var(--texte-2);}
.recap .alerte{margin-top:0;}
.progression{display:flex;flex-direction:column;gap:6px;}
.prog-ligne{display:flex;justify-content:space-between;gap:12px;font-size:.8125rem;color:var(--navy);font-weight:700;font-variant-numeric:tabular-nums;}
.prog-ligne span{font-weight:400;color:var(--texte-2);white-space:nowrap;}
.prog{height:6px;border-radius:3px;background:var(--lavande);overflow:hidden;}
.prog i{display:block;height:100%;background:var(--bleu);width:0;transition:width .2s linear;}
.prog-detail{font-size:.75rem;color:var(--texte-3);}
.prog-detail:empty{display:none;}
.sensible{border-top:1px solid var(--filet);padding-top:12px;}
.sensible summary{cursor:pointer;font-weight:700;color:var(--texte-2);font-size:.8125rem;width:max-content;max-width:100%;}
.sensible p{font-size:.8125rem;color:var(--texte-2);margin:8px 0 10px;}

/* ── Annotations (sous le graphique de la Billetterie) ───────────────── */
.annots-liste .sous{display:block;font-size:.75rem;font-weight:400;color:var(--texte-3);white-space:normal;}
.annots-liste td .btn-lien{margin-left:6px;}
.annots-pied{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px;font-size:.8125rem;color:var(--texte-2);}

/* ── Utilisateurs : tableau des comptes (état = point + mot) ─────────── */
.etat-pt{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;}
.etat-pt i{width:9px;height:9px;border-radius:50%;background:var(--ok);display:inline-block;}
.etat-pt.off i{background:var(--bord-champ);}
.users td,.users th{white-space:nowrap;}
.users .mail{white-space:normal;overflow-wrap:anywhere;min-width:200px;}

/* ── Notifications : succès courts (fond vert clair) ; les erreurs restent dans un encart .alerte ── */
.toasts{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;z-index:900;pointer-events:none;max-width:380px;}
.toast{background:var(--ok-fond);color:var(--ok);border:1px solid var(--ok-filet);font-size:.8125rem;font-weight:700;padding:10px 14px;border-radius:var(--r-m);box-shadow:var(--ombre-bulle);animation:toast-in .2s ease;pointer-events:auto;}
.toast.info{background:var(--info-fond);color:var(--info);border-color:var(--info-filet);}   /* rappel court (« Rien à exporter ») ; jamais une erreur */
@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}

footer{max-width:var(--largeur);margin:0 auto;padding:16px 24px 32px;font-size:.8125rem;color:var(--texte-3);border-top:1px solid var(--filet);}
footer strong{color:var(--texte-2);}

/* ── Partenaires (maquette docs/maquette-partenaires.html) : rubriques, relevé, Comparer, tableau, fiche, formulaire ── */
.part-actions{display:flex;flex-wrap:wrap;gap:8px;}
.alerte ul{grid-column:1;font-size:.8125rem;color:var(--texte-2);margin-left:18px;}
.puce .ic:not(.coche){width:16px;height:16px;}
.part-grille{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start;margin-top:24px;}
.cats{padding:12px;}
.cat-liste{list-style:none;display:grid;gap:2px;}
.cat{--c:var(--bleu);display:flex;align-items:center;gap:12px;width:100%;padding:7px 8px;border:2px solid transparent;border-radius:12px;text-align:left;font-weight:700;color:var(--navy);}
.cat:hover{background:var(--surface-2);}
.cat[aria-current="true"]{background:color-mix(in srgb,var(--c) 12%,#fff);border-color:var(--c);}
.cat-n{margin-left:auto;font-weight:600;font-size:.8125rem;color:var(--texte-3);font-variant-numeric:tabular-nums;}
.pastille{--c:var(--bleu);width:36px;height:36px;border-radius:50%;background:var(--c);color:#fff;display:grid;place-items:center;flex:none;}
.pastille.fonce{color:var(--navy);}
.pastille .ic{width:19px;height:19px;}
.pastille.grande{width:46px;height:46px;}
.pastille.grande .ic{width:24px;height:24px;}
.pastille.mini{width:20px;height:20px;}
.pastille.mini .ic{width:12px;height:12px;stroke-width:2.4;}
.tous{width:36px;height:36px;border-radius:50%;background:var(--lavande);color:var(--navy);display:grid;place-items:center;flex:none;}
.arbre{border-top:1px solid var(--filet);margin-top:10px;padding:6px 2px 2px;}
.groupe-titre{font-size:.75rem;font-weight:700;color:var(--texte-3);margin:10px 8px 4px;}
.sous-cats{list-style:none;display:grid;gap:1px;}
.sous-cat{display:flex;width:100%;justify-content:space-between;gap:8px;padding:5px 10px;border-radius:var(--r-s);color:var(--texte);text-align:left;}
.sous-cat:hover{background:var(--surface-2);color:var(--navy);}
.sous-cat[aria-current="true"]{background:var(--bleu-pale);color:var(--navy);font-weight:700;box-shadow:inset 3px 0 0 var(--navy);}
.sous-cat span:last-child{font-variant-numeric:tabular-nums;color:var(--texte-3);}
.sous-cat.zero{color:var(--texte-3);}
.cats-pied{border-top:1px solid var(--filet);margin-top:10px;padding:10px 8px 2px;font-size:.75rem;color:var(--texte-3);display:flex;flex-direction:column;gap:6px;align-items:flex-start;}
.chemin{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:.8125rem;color:var(--texte-3);margin-bottom:8px;}
.chemin:empty{display:none;}
/* Relevé à côté de la colonne des rubriques : la tuile héros sur toute la largeur, les montants au centime tiennent */
@media (min-width:1041px){ .releve.part-rel{grid-template-columns:repeat(3,minmax(0,1fr));} .part-rel .heros{grid-column:1 / -1;} }
/* Comparer : barres horizontales triées, une seule couleur */
.comp-cmd{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;padding:0 20px 14px;}
.comp-cmd .filtre{align-items:center;}
.comp-cmd .filtre-lbl{min-width:0;font-size:.8125rem;padding-top:0;}
.barres{list-style:none;display:grid;gap:6px;padding:0 20px;}
.barres>.barre{display:grid;grid-template-columns:minmax(120px,240px) minmax(0,1fr) auto;gap:12px;align-items:center;}
.b-lbl{font-size:.8125rem;color:var(--texte);overflow-wrap:anywhere;}
.b-piste{height:20px;background:var(--surface-2);border-radius:0 4px 4px 0;}
.b-piste i{display:block;height:100%;background:var(--navy);border-radius:0 4px 4px 0;min-width:2px;}
.b-val{font-variant-numeric:tabular-nums;font-weight:700;color:var(--navy);white-space:nowrap;min-width:13ch;text-align:right;}
.comp-pied{padding:12px 20px 18px;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:.8125rem;color:var(--texte-3);}
/* Tableau des partenaires : défile dans son panneau (en-tête et total figés), comme dans la maquette */
.tbl-wrap.part-tab-wrap{max-height:560px;}
.part-tab-wrap tfoot tr>*{position:sticky;bottom:0;z-index:2;}
.part-tab-wrap th,.part-tab-wrap td{padding-left:8px;padding-right:8px;}
.part-tab-wrap thead th,.part-tab-wrap .tri{white-space:normal;}
.nom-btn{font-weight:700;color:var(--navy);text-align:left;text-decoration:underline;text-decoration-color:var(--filet-fort);text-underline-offset:3px;}
.nom-btn:hover{text-decoration-color:var(--navy);}
.sous-ligne{display:block;font-size:.75rem;font-weight:400;color:var(--texte-3);}
/* Fiche */
.retour{display:inline-flex;align-items:center;gap:6px;min-height:30px;font-weight:700;color:var(--bleu-fonce);margin-bottom:12px;}
.fiche{--c:var(--bleu);border-left:4px solid var(--c);padding:18px 20px;display:flex;flex-direction:column;gap:16px;}
.fiche-tete{display:flex;align-items:flex-start;gap:14px;}
.fiche-tete h2{font-size:1.1875rem;line-height:1.25;}
.fiche-tete .chemin{margin:2px 0 0;}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
.badge-info{color:var(--info);background:var(--info-fond);border-color:var(--info-filet);}
.badges .badge,.chiffres-tete .badge{white-space:normal;}
.fiche-id{flex:1 1 240px;min-width:0;}
button.badge{cursor:help;}
.chiffres-boite{background:var(--page);border-radius:var(--r-m);padding:14px 16px;}
.chiffres-tete{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-weight:700;color:var(--navy);margin-bottom:10px;}
.chiffres{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px 16px;}
.chiffres dt{font-size:.75rem;color:var(--texte-3);}
.chiffres dd{font-weight:700;color:var(--navy);font-size:1rem;font-variant-numeric:tabular-nums;white-space:nowrap;}
.chiffres dd small{display:block;font-weight:400;font-size:.75rem;color:var(--texte-3);white-space:normal;}
.sous-titre{font-size:.9375rem;margin-bottom:8px;}
.notes{list-style:none;display:grid;gap:6px;}
.notes li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:8px 12px;border-left:4px solid var(--alerte-filet);background:var(--alerte-fond);border-radius:var(--r-s);font-size:.8125rem;}
.notes-libres{white-space:pre-line;}
.croise{border:1px dashed var(--filet-fort);border-radius:var(--r-m);padding:12px 14px;display:flex;flex-direction:column;gap:6px;}
.fiche-pied{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.75rem;color:var(--texte-3);border-top:1px solid var(--filet);padding-top:12px;}
.fiche-pied span{margin-right:auto;}
/* Formulaire partenaire */
.part-form fieldset{border:0;min-width:0;}
.form-bloc{padding:18px 20px;border-top:1px solid var(--filet);}
.form-bloc>legend{float:left;width:100%;font-size:1rem;margin-bottom:12px;}
.form-bloc>legend+*{clear:both;}
.grille-champs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;align-items:start;}
.champ{display:flex;flex-direction:column;gap:6px;min-width:0;}
.champ.large{grid-column:1 / -1;}
.champ>label,.champ-lbl{font-size:.8125rem;font-weight:600;color:var(--texte);}
.aide{font-size:.75rem;font-weight:400;color:var(--texte-3);}
.saisie{height:40px;border:1px solid var(--bord-champ);border-radius:var(--r-m);padding:0 12px;background:var(--surface);width:100%;min-width:0;}
textarea.saisie{height:auto;min-height:64px;padding:8px 12px;resize:vertical;}
.saisie:focus{outline:2px solid var(--bleu);outline-offset:0;border-color:var(--bleu);}
.saisie:disabled{background:var(--surface-2);color:var(--texte-2);}
.saisie[aria-invalid="true"]{border:2px solid var(--danger);}
.unite{position:relative;}
.unite .saisie{padding-right:34px;text-align:right;font-variant-numeric:tabular-nums;}
.unite>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--texte-3);pointer-events:none;}
.rubs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.rub{display:inline-flex;align-items:center;gap:6px;padding:3px 6px 3px 10px;border:1px solid var(--filet-fort);border-radius:var(--r-rond);font-size:.8125rem;}
.rub button{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;}
.rub button:hover{background:var(--surface-2);}
.rub .ic{width:14px;height:14px;}
.f-offre{border:1px solid var(--filet);border-radius:var(--r-m);padding:14px 16px;margin-top:14px;display:flex;flex-direction:column;gap:14px;}
.f-offre-tete{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
.f-offre-tete h3{font-size:.9375rem;margin-right:auto;}
.f-ligne{background:var(--page);border-radius:var(--r-m);padding:12px 14px;}
.apercu{font-size:.8125rem;color:var(--texte-2);}
.apercu:empty{display:none;}
.apercu .badge{white-space:normal;margin-top:4px;}
.apercu .err{color:var(--danger);font-weight:600;}
.form-pied{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px 20px;border-top:1px solid var(--filet);background:var(--surface-2);border-radius:0 0 var(--r-l) var(--r-l);}
.retour-ok{font-size:.8125rem;font-weight:700;color:var(--ok);}
.retour-ok.err{color:var(--danger);}
/* Rubriques (tiroir), import de l'Excel */
.rub-cat{margin-top:18px;}
.rub-cat h3{display:flex;align-items:center;gap:8px;font-size:1rem;}
.rub-groupe{font-size:.75rem;font-weight:700;color:var(--texte-3);margin:10px 0 4px;}
.rub-liste{list-style:none;display:flex;flex-direction:column;gap:4px;}
.rub-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 8px;border:1px solid var(--filet);border-radius:var(--r-m);}
.rub-ligne>span:first-child{margin-right:auto;min-width:0;overflow-wrap:anywhere;}
.rub-edit{width:100%;}
.btn-mini{width:30px;height:30px;border-radius:50%;display:inline-grid;place-items:center;border:1px solid var(--bord-champ);color:var(--navy);background:var(--surface);}
.btn-mini:hover:not(:disabled){border-color:var(--navy);}
.btn-mini:disabled{opacity:.4;cursor:not-allowed;}
.btn-mini .ic{width:15px;height:15px;}
.ic.haut{transform:rotate(180deg);}
.imp-rapport{display:flex;flex-direction:column;gap:10px;margin-top:12px;font-size:.8125rem;}
.imp-rapport .alerte{margin-top:0;}
.imp-rapport details{border:1px solid var(--filet);border-radius:var(--r-m);padding:8px 12px;}
.imp-rapport summary{cursor:pointer;font-weight:700;color:var(--navy);}
.imp-rapport ul{margin:8px 0 2px 18px;display:flex;flex-direction:column;gap:3px;}
/* Partenaires = chiffres de l'Excel (maquette docs/maquette-partenaires-excel.html) : colonnes A à N, cases, import */
.section-tete .seg{align-self:center;}
.col-l{display:block;font-size:.6875rem;font-weight:600;color:var(--texte-3);}
.txt-val{color:var(--texte-3);font-style:italic;}
.vide-c{color:var(--texte-3);}
.main-ic{margin-left:4px;color:var(--alerte);font-weight:700;text-decoration:none;}
.cat-lbl{display:inline-flex;align-items:center;gap:8px;}
.part-filtres{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:0 20px 14px;}
.part-choix{display:flex;align-items:center;gap:8px;font-size:.8125rem;font-weight:700;color:var(--navy);}
.part-choix .saisie{height:36px;width:auto;max-width:260px;border-radius:var(--r-rond);font-weight:600;color:var(--texte);}
.part-tab thead th{vertical-align:bottom;}
.part-tab thead th.n .th-in{justify-content:flex-end;text-align:right;}
.part-tab td,.part-tab tbody th{padding-top:7px;padding-bottom:7px;}
.part-tab .c-nom,.part-cat-tab .c-nom{position:sticky;left:0;z-index:1;background:var(--surface);min-width:170px;max-width:220px;white-space:normal;box-shadow:1px 0 0 var(--filet);}
.part-tab thead .c-nom,.part-cat-tab thead .c-nom{z-index:3;background:var(--surface-2);}
.part-tab tr.total .c-nom,.part-cat-tab tr.total .c-nom{background:var(--surface-2);z-index:3;}
.part-tab tbody tr:hover .c-nom,.part-cat-tab tbody tr:hover .c-nom{background:var(--surface-2);}
.part-tab .sous-ligne.badges{margin-top:3px;gap:4px;}
.part-cat-tab thead th.n .th-in{justify-content:flex-end;}
.part-cat-tab .c-nom{min-width:150px;}
.pied-tbl{display:flex;flex-wrap:wrap;gap:4px 18px;padding:10px 20px 16px;font-size:.8125rem;color:var(--texte-3);}
.chiffres dd.gris-dd{color:var(--texte-3);font-weight:600;}
.chiffres dd small.corr{color:var(--alerte);font-weight:600;}
.croise-src{margin-top:4px;color:var(--navy);}
.pf-case{display:flex;align-items:center;gap:8px;}
.pf-case .unite{flex:1;min-width:0;}
.pf-case .seg{flex:none;}
.champ .btn-lien{align-self:flex-start;font-size:.8125rem;}
.f-ajout{margin-top:14px;}
.etapes{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;}
.etape{border:1px solid var(--filet);border-radius:var(--r-m);padding:10px 14px;display:flex;flex-direction:column;gap:2px;}
.etape b{font-size:1.25rem;color:var(--navy);font-variant-numeric:tabular-nums;}
.etape span{font-size:.8125rem;color:var(--texte-2);}
.imp-exp{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.imp-choix h3{font-size:1rem;margin:6px 0 4px;}
.imp-choix .tbl-wrap{margin-top:8px;border:1px solid var(--filet);border-radius:var(--r-m);}
.radios{display:flex;flex-wrap:wrap;gap:6px 14px;}
.radios label{display:inline-flex;align-items:center;gap:6px;font-weight:600;white-space:nowrap;cursor:pointer;}
.radios input{width:17px;height:17px;accent-color:var(--navy);}
.barre-v{text-decoration:line-through;color:var(--texte-3);}
.box-foot #part-imp-reste{margin-right:auto;}
@media (max-width:760px){
  .part-filtres{padding:0 16px 12px;}
  .part-choix{flex:1 1 150px;}
  .part-choix .saisie{flex:1;min-width:0;max-width:none;}
  .part-tab .c-nom{min-width:130px;max-width:150px;}
  .pied-tbl{padding:10px 16px 14px;}
  .pf-case{flex-wrap:wrap;}
}
/* Choix de l'import sur téléphone : une carte par case (la colonne Choix reste visible, sans défilement) */
@media (max-width:600px){
  .imp-choix thead{display:none;}
  .imp-choix tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px;padding:10px 12px;}
  .imp-choix tbody th,.imp-choix tbody td{padding:0;}
  .imp-choix tbody th,.imp-choix tbody td:nth-child(2),.imp-choix tbody td:last-child{grid-column:1 / -1;}
  .imp-choix td.n{text-align:left;white-space:normal;}
  .imp-choix td.n::before{content:attr(data-lib);display:block;font-size:.75rem;font-weight:400;color:var(--texte-3);}
}
/* ── Adhérents (maquette docs/maquette-adherents.html) : types, couverture, relevé à cinq tuiles, barres en tableau, carte ── */
#adh-zone,#rmb-zone{margin-top:24px;}
#adh-panneaux>*,#rmb-panneaux>*{margin-top:24px;}
.adh-puce{flex-direction:row;gap:2px;}
.puce .rond{width:16px;height:16px;border-radius:50%;border:2px solid var(--bord-champ);display:grid;place-items:center;flex:none;}
.puce .rond .ic{width:11px;height:11px;stroke-width:3.2;color:#fff;display:none;}
.puce .val{font-weight:400;color:var(--texte-3);font-variant-numeric:tabular-nums;}
.puce[aria-pressed="true"] .rond{background:var(--navy);border-color:var(--navy);}
.puce[aria-pressed="true"] .rond .ic{display:block;}
.couverture.ligne{display:flex;flex-wrap:wrap;gap:2px 16px;padding:10px 20px 0;font-size:.8125rem;color:var(--texte-2);}
@media (min-width:1041px){ .releve.adh-rel{grid-template-columns:repeat(5,minmax(0,1fr));} }
.duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;}
/* Barres dans un tableau : le graphique EST le tableau (chiffres écrits, rien au survol seul) */
.hb td.barre{width:46%;padding-right:4px;}
.hb .piste{display:block;height:14px;border-radius:0 4px 4px 0;background:var(--lavande);overflow:hidden;}
.hb .piste i{display:block;height:100%;background:var(--adh);border-radius:0 4px 4px 0;min-width:2px;}
.hb .piste.vide i{min-width:0;}
.hb tr.sans>*{color:var(--texte-2);}
.hb .sous{display:block;font-size:.75rem;font-weight:400;color:var(--texte-3);white-space:normal;}
.hb-suite{margin-top:12px;}
.tableau tr.gris>*{color:var(--texte-2);background:var(--surface);}
.tableau tr.gris th{font-weight:400;color:var(--texte-2);}
/* Carte des régions (SVG tiré de data/regions.json), légende, encart de la région choisie */
.carte-grille{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:20px 28px;align-items:start;}
.carte{width:100%;max-width:560px;justify-self:center;}
.carte svg{display:block;width:100%;height:auto;}
.carte .reg{stroke:var(--bord-champ);stroke-width:.8;cursor:pointer;outline:none;}
.carte .reg:hover,.carte .reg:focus-visible,.carte .reg.choisie{stroke:var(--bleu);stroke-width:2.5;}
.carte .c0{fill:var(--carte-1);}.carte .c1{fill:var(--carte-2);}.carte .c2{fill:var(--carte-3);}.carte .c3{fill:var(--carte-4);}.carte .c4{fill:var(--carte-5);}.carte .cv{fill:var(--surface-2);}
.carte text{font-family:var(--police);font-size:12px;font-weight:700;fill:var(--navy);pointer-events:none;font-variant-numeric:tabular-nums;}
.carte text.clair{fill:#fff;}
.carte text.nom-drom{font-weight:600;fill:var(--texte-2);}
.legende{list-style:none;display:flex;flex-direction:column;gap:4px;font-size:.8125rem;color:var(--texte-2);font-variant-numeric:tabular-nums;}
.legende li{display:flex;align-items:center;gap:8px;}
.legende i{width:22px;height:13px;border-radius:3px;display:inline-block;border:1px solid var(--bord-champ);}
.legende-titre{font-weight:700;color:var(--navy);font-size:.8125rem;margin-bottom:6px;}
.encart{background:var(--page);border:1px solid var(--filet);border-radius:var(--r-m);padding:12px 14px;margin-top:16px;}
.encart h4{font:800 1rem/1.3 var(--titre);color:var(--navy);margin-bottom:6px;}
.lignes{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;font-size:.8125rem;color:var(--texte-2);}
.lignes dd{text-align:right;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap;}
.lignes dt.fort{font-weight:700;color:var(--navy);}
.zone-chiffres.en-cours .graph,.zone-chiffres.en-cours .carte svg{opacity:.35;}
/* Lot 2 : « Colorer par », segment grisé (« Même période l'an dernier » hors des données), panneau Fidélité */
.seg input:disabled+label{color:var(--texte-3);cursor:not-allowed;}
.seg input:disabled+label:hover{color:var(--texte-3);}
.seg input:checked:disabled+label{color:#fff;}
.filtre.coul{margin-bottom:12px;}
.filtre.coul .filtre-lbl{min-width:0;}
.filtre.coul .seg{max-width:100%;} .filtre.coul .seg label{white-space:normal;line-height:1.25;}   /* libellés longs : à la ligne plutôt que de déborder de la colonne */
@media (max-width:600px){ .filtre.coul .seg{display:flex;width:100%;} .filtre.coul .seg label{flex:1;} }
.legende .leg-note{display:block;color:var(--texte-2);font-size:.8125rem;line-height:1.4;}
@media (min-width:1041px){ .releve.fid-rel{grid-template-columns:repeat(3,minmax(0,1fr));} }
.fid-duo{margin-top:8px;}
.fid-duo>div{min-width:0;}   /* un tableau trop large défile dans sa colonne au lieu de chevaucher la voisine */
.sous-titre{font:800 .9375rem/1.3 var(--titre);color:var(--navy);margin:16px 0 6px;}
#adh-t-aff .c-nom{min-width:210px;}
.c-reg{white-space:nowrap;}
/* Segments en boutons (lignes par page) */
.seg button{padding:6px 14px;border-radius:var(--r-rond);font-weight:700;font-size:.8125rem;color:var(--texte-2);white-space:nowrap;}
.seg button:hover{color:var(--navy);}
.seg button[aria-pressed="true"]{background:var(--navy);color:#fff;}
.pag-pages{display:contents;}
.pag-taille{display:inline-flex;align-items:center;gap:8px;margin-left:auto;font-size:.8125rem;color:var(--texte-2);}
.pag .seg button{padding:4px 10px;}
@media (max-width:1040px){
  .duo,.carte-grille{grid-template-columns:minmax(0,1fr);}
}
@media (max-width:760px){
  .couverture.ligne{padding:10px 14px 0;}
}
@media (max-width:600px){
  .c-reg,.c-cmd,.c-pan{display:none;}
  .carte text{display:none;}     /* sous 600 px les étiquettes passeraient sous 12 px : chiffres dans l'encart et le tableau */
  .hb td.barre{width:34%;}
}

/* ── Remboursements (docs/spec-remboursements.md) : quatre tuiles sans héros, origine, produits, délais, à vérifier ── */
@media (min-width:1041px){ .releve.rmb-rel{grid-template-columns:repeat(4,minmax(0,1fr));} }
.tuile-val .ns{font-size:1rem;font-weight:700;color:var(--navy);}
.rmb-closes{margin-top:12px;font-size:.875rem;color:var(--texte-2);}
.rmb-closes:empty{display:none;}
#rmb-alerte>.alerte{margin-top:16px;}
.rmb-note{margin:-4px 0 10px;}
.sw-ligne{display:inline-block;width:18px;height:0;border-top:2px solid var(--src-pi);}
.rmb-nom{display:inline-flex;align-items:baseline;gap:7px;}
.rmb-nom .point{transform:translateY(-1px);}
.tableau tr.fort>*{font-weight:700;color:var(--navy);}
.tableau tr.dont>th{font-weight:400;color:var(--texte);padding-left:28px;}
.tableau tr.four>*{background:var(--surface-2);}
.tableau tr.four>th{font-weight:400;color:var(--texte-2);}
.rmb-origine td.exclu-txt{color:var(--texte-2);}
.rmb-origine .tsub{display:block;font-weight:400;}
.rmb-liens{display:flex;flex-wrap:wrap;gap:0 12px;margin-top:2px;font-size:.8125rem;}
.rmb-liens .btn-lien{min-height:24px;padding:0;font-weight:600;text-align:left;}
#rmb-p-tab thead th,#rmb-p-tab .tri{white-space:normal;}   /* en-têtes longs sur deux lignes : le tableau tient dans son panneau */
#rmb-p-tab thead th.n .tri,#rmb-p-tab thead th.n .th-in{justify-content:flex-end;text-align:right;}
.rmb-h4{font:800 1rem/1.3 var(--titre);color:var(--navy);margin:16px 0 6px;}
.rmb-h4:first-child{margin-top:0;}
.rmb-med{margin:8px 0 4px;font-size:.875rem;color:var(--texte-2);}
.rmb-med b{color:var(--navy);font-variant-numeric:tabular-nums;}
.verif{list-style:none;display:flex;flex-direction:column;gap:8px;margin-top:6px;font-size:.8125rem;color:var(--texte);}
.verif li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;}
#rmb-p-tab.vide thead{display:none;}
@media (max-width:600px){ .c-delai{display:none;} }

@media (max-width:1040px){
  .part-grille{grid-template-columns:minmax(0,1fr);}
  .cat-liste{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  .cat-liste li:first-child{grid-column:1 / -1;}
}
@media (max-width:760px){
  .alerte-actions{grid-row:auto;grid-column:1;}
  .part-rel .heros{grid-template-columns:48px minmax(0,1fr);}
  .part-rel .heros .badge-eur{grid-row:1 / span 3;}
  .part-rel .heros .tuile-val{grid-column:2;grid-row:2;text-align:left;}
  .part-rel .heros .tuile-sous{grid-column:2;grid-row:3;}
  .barres>.barre{grid-template-columns:minmax(0,1fr) auto;}
  .b-piste{grid-column:1 / -1;grid-row:2;}
  .comp-cmd,.barres{padding-left:16px;padding-right:16px;}
  .comp-cmd .filtre{width:100%;}
  .comp-cmd .seg{flex-wrap:wrap;border-radius:var(--r-m);}
  .comp-pied{padding:12px 16px 16px;}
  .sous-cats{display:flex;flex-wrap:wrap;gap:6px;}
  .sous-cat{width:auto;border:1px solid var(--filet-fort);border-radius:var(--r-rond);padding:4px 12px;}
  .sous-cat[aria-current="true"]{box-shadow:none;border:2px solid var(--navy);}
  .fiche,.form-bloc,.f-offre{padding:16px;}
  .form-pied{padding:14px 16px;}
}

/* ── Adaptations (écrans) ────────────────────────────────────────────── */
@media (max-width:1240px){
  .tuile-val{font-size:1.3125rem;}
  .heros .tuile-val{font-size:2.125rem;}
  .badge-eur{width:50px;height:50px;}
  .badge-eur .ic{width:26px;height:26px;}
  .tuile{padding:14px;}
}
/* Sous 1 040 px : le relevé devient une liste façon relevé bancaire */
@media (max-width:1040px){
  .releve{grid-template-columns:minmax(0,1fr);gap:0;background:var(--surface);border:1px solid var(--filet);border-radius:var(--r-l);}
  .tuile{border:0;border-radius:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;padding:12px 16px;}
  .tuile+.tuile{border-top:1px solid var(--filet);}
  .tuile:first-child{border-radius:var(--r-l) var(--r-l) 0 0;}
  .tuile:last-child{border-radius:0 0 var(--r-l) var(--r-l);}
  .tuile-tete{display:contents;}
  .tuile-ic{grid-row:1 / span 2;}
  .tuile-lbl{grid-column:2;grid-row:1;}
  .tuile-val{grid-column:3;grid-row:1;margin:0;text-align:right;font-size:1.25rem;}
  .tuile-sous{grid-column:2;grid-row:2;}
  .tuile-evo{grid-column:3;grid-row:2;text-align:right;}
  .op{left:19px;top:-15px;transform:none;}
  .heros{grid-template-columns:48px minmax(0,1fr) auto;padding:16px;}
  .badge-eur{grid-row:1 / span 2;width:48px;height:48px;}
  .heros .tuile-lbl{grid-column:2;grid-row:1;}
  .heros .tuile-sous{grid-column:2;grid-row:2;}
  .heros .tuile-val{grid-column:3;grid-row:1;text-align:right;font-size:1.75rem;}
  .heros .tuile-evo{grid-column:3;grid-row:2;}
}
/* Tête figée : à partir de 1 041 px les tableaux tiennent en largeur, le conteneur ne défile plus et les en-têtes
   collent sous le bandeau (sous la barre de sélection quand elle est collante) ; en dessous, défilement dans le panneau */
@media (min-width:1041px){
  main .tbl-wrap:not(.scroll){overflow:visible;}
  main .tbl-wrap:not(.scroll) thead th{top:var(--haut-bandeau);}
  main .tbl-wrap:not(.scroll) thead tr.total-fige th{top:calc(var(--haut-bandeau) + var(--haut-th));}
  .barre-sel.collante+.tbl-wrap thead th{top:calc(var(--haut-bandeau) + 56px);}
  .barre-sel.collante+.tbl-wrap thead tr.total-fige th{top:calc(var(--haut-bandeau) + 56px + var(--haut-th));}
  /* .defile : le tableau défile dans son panneau à toutes les largeurs (jamais la page) ; en-têtes non collants */
  main .tbl-wrap.defile{overflow-x:auto;}
  main .tbl-wrap.defile thead th{top:0;}
}
/* Règle entre 761 et 1 000 px : l'année (déjà écrite à gauche, « 2025–2026 ») quitte les libellés, qui tiennent sur une ligne */
@media (max-width:1000px){
  .rm .an{display:none;}
}
@media (max-width:900px){
  .etat-base{display:none;}
  .drw,.drw.wide,.drw.large{width:100vw;max-width:100vw;}
  .form-grid{grid-template-columns:minmax(0,1fr);}
}
@media (max-width:760px){
  :root{--haut-bandeau:0px;}
  .bandeau{position:static;}
  .barre-sel.collante{top:8px;}
  .bandeau-haut{padding:0 16px;gap:10px;}
  .tabs-bar{padding:0 16px;}
  .tab-btn{padding:10px 14px 12px;}
  .moi .nom,.moi .role{display:none;}
  .moi{padding:3px 8px 3px 3px;}
  footer{padding:16px;}
  .grille-form,.roles{grid-template-columns:minmax(0,1fr);}
  .drw .seg{flex-wrap:wrap;border-radius:var(--r-m);}   /* onglets et sources du tiroir : sur plusieurs lignes */
  .container{padding:16px 16px 48px;}
  h1{font-size:1.75rem;}
  .panneau-tete{padding:14px 16px 10px;}
  .panneau-corps{padding:0 16px 16px;}
  .filtres{padding:14px 14px 12px;}
  .filtre,.periode{flex-direction:column;align-items:stretch;}
  .filtre{gap:6px;}
  .filtre-lbl{padding-top:0;}
  .puces{gap:8px 6px;}
  .badge-attente{margin-left:0;flex-basis:100%;justify-content:flex-start;width:max-content;max-width:100%;white-space:normal;}
  .seg{display:flex;}
  .seg label{flex:1;}
  .periode .seg,.seg.comp{flex-wrap:wrap;border-radius:var(--r-m);}
  .periode .seg label{flex:1 1 auto;}
  .libre{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .libre label{display:flex;min-width:0;}
  .periode .libre .champ-date{flex:1;min-width:0;width:100%;padding:0 8px;}
  .libre .btn{grid-column:1 / -1;}
  .pas{justify-content:space-between;}
  .couverture{margin:2px -14px 0;padding:0 14px;}
  .regle{grid-template-columns:minmax(0,1fr);}
  .regle-an{padding:0 0 6px;}
  .regle-t{grid-column:1;}
  .rm .long{display:none;}
  .rm .court{display:inline;}
  .couv{padding:0 3px;}
  .cle-regle{padding-left:0;}
  .alerte{grid-template-columns:minmax(0,1fr);}
  .outils{margin-left:0;width:100%;}
  .recherche{width:100%;}
  .barre-sel{margin:0 16px 12px;border-radius:var(--r-m);}
  .cmd-cle{margin:0 16px 12px;}
  .cmd-partiel{margin:-4px 16px 12px;}
  .remb{padding:8px 16px 14px;}
  td,th{padding-left:8px;padding-right:8px;}
  /* .fige : case et première colonne figées quand le tableau défile dans son panneau */
  .fige .c-case{position:sticky;left:0;z-index:1;background:var(--surface);}
  .fige .c-nom{position:sticky;left:0;z-index:1;background:var(--surface);min-width:150px;max-width:170px;white-space:normal;box-shadow:1px 0 0 var(--filet);}
  .fige .c-case+.c-nom{left:40px;}
  .fige thead .c-case,.fige thead .c-nom{z-index:3;background:var(--surface-2);}
  .fige thead tr.total-fige .c-case,.fige thead tr.total-fige .c-nom{background:var(--bleu-pale);}
  .fige thead tr.total-fige.resultats .c-case,.fige thead tr.total-fige.resultats .c-nom{background:var(--surface-2);}
  .fige tr.total .c-nom,.fige tr.total .c-case,.fige tr.ps-hors .c-nom{background:var(--surface-2);}
  .fige tr.total.sel .c-nom,.fige tr.total.sel .c-case,.fige tr.choisie .c-nom,.fige tr.choisie .c-case{background:var(--bleu-pale);}
  .graph{height:250px;}
}
/* Téléphone : Taux et Économies (Par source, Enseignes) et Part (Commandes) masqués, visibles dans l'export */
@media (max-width:600px){
  .c-taux,.c-eco,.c-part{display:none;}
}
@media (max-width:760px){
  .toasts{left:16px;right:16px;bottom:16px;max-width:none;align-items:stretch;}
}
@media (max-width:420px){
  .outil{display:none;}
  .heros .tuile-val{font-size:1.375rem;}
  .badge-eur{width:40px;height:40px;}
  .heros{grid-template-columns:40px minmax(0,1fr) auto;}
  .panneau-tete .seg{width:100%;}
  .panneau-tete .seg label{padding:6px 6px;font-size:.75rem;}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation:none!important;transition:none!important;}
}
/* ── Profils des acheteurs (lot 4 : Billetterie B7, Remboursements bloc 8, Partenaires « Qui en profite ? ») ── */
@media (min-width:1041px){ .releve.pf-rel{grid-template-columns:repeat(4,minmax(0,1fr));} }
.pf-ind{list-style:none;display:flex;flex-direction:column;gap:4px;margin:14px 0 0;font-size:.875rem;color:var(--texte-2);}
.pf-ind b,.pf-ligne b{color:var(--navy);font-variant-numeric:tabular-nums;}
.pf-cle{margin:14px 0 0;}
.pf-duo{align-items:start;}
.pf-duo>div{min-width:0;}
.tableau.pf-tab thead th:first-child{width:auto;}
.tableau.pf-tab thead th:nth-child(2),.pf-tab td.barre{width:28%;}
.pf-tab .piste{height:8px;}
.pf-tab .piste+.piste{margin-top:3px;}
.pf-tab .piste.comp i{background:var(--adh-pale);}
.pf-note{margin-top:10px;}
.pf-ligne{font-size:.875rem;color:var(--texte-2);margin-top:12px;}
.pf-filtre{margin-top:16px;}
.seg.pf-segs{flex-wrap:wrap;max-width:100%;border-radius:18px;}
.seg.pf-segs label{white-space:normal;}
.qui{border:1px solid var(--filet);border-radius:var(--r-m);padding:14px 16px 16px;display:flex;flex-direction:column;gap:4px;}
.qui-tete{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;}
.qui-tete h3{display:inline-flex;align-items:center;gap:8px;}
.qui-tete h3 .ic{width:19px;height:19px;color:var(--navy);}
.qui .releve{margin-top:12px;}
.qui .pf-duo{grid-template-columns:minmax(0,1fr);gap:0;}   /* fiche plus étroite (colonne des rubriques) : listes l'une sous l'autre */
.suggestions{list-style:none;display:flex;flex-direction:column;gap:8px;margin-top:10px;font-size:.875rem;}
.suggestions li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:8px 12px;background:var(--page);border-radius:var(--r-m);}
.suggestions .tsub{display:block;}
.fiche-tete{flex-wrap:wrap;}
@media (max-width:760px){
  .qui{padding:12px;}
}
@media (max-width:600px){
  .pf-tab td.barre,.tableau.pf-tab thead th:nth-child(2),.pf-cle{display:none;}   /* chiffres écrits : les barres cèdent la place */
}
/* ── Billetterie › Taux Interne Préau (js/taux.js ; maquette docs/maquette-taux-interne.html) : préfixe tx- ── */
.initial #taux-pi{display:none;}
#tx-contenu{display:flex;flex-direction:column;gap:14px;}
#tx-contenu.tx-maj .tbl-wrap,#tx-contenu.tx-maj .tx-op{opacity:.35;}   /* nouvelle période : chiffres en place, estompés */
#tx-contenu .alerte{margin-top:0;}
#tx-contenu .alerte+.alerte{margin-top:8px;}
#tx-alerte:empty,#tx-msg:empty{display:none;}
.tx-phrase{background:var(--page);border-radius:var(--r-m);padding:12px 16px;font-size:.8125rem;color:var(--texte-2);}
.tx-phrase b{color:var(--navy);}
.tx-phrase ul{margin:6px 0 0 18px;display:grid;gap:2px;}
.tx-tete{margin-top:6px;}
.tx-tete .sous-titre{margin:0;flex:1 1 auto;}
.tx-tete .tx-meta{flex-basis:100%;}
.tx-compte{min-height:0;padding:0;font-size:inherit;color:var(--alerte);}
.tx-rel th[scope="row"]{font-weight:600;color:var(--texte);}
.tx-rel td.n{font-weight:700;color:var(--navy);}
.tx-rel tr.tx-fort td.n{font-size:1rem;}
.tx-op{display:grid;gap:2px;font-size:.8125rem;color:var(--texte-2);font-variant-numeric:tabular-nums;}
.tx-op b{color:var(--navy);white-space:nowrap;}
.tx-lbl{font-size:.8125rem;font-weight:700;color:var(--navy);}
.tx-cats{display:flex;flex-direction:column;gap:6px;font-size:.875rem;}
.tx-cat-r{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;}
.tx-cat-r .tx-src{display:inline;margin-left:4px;}
.tx-filtres{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;}
.tx-choix{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;}
.tx-masse{border:1px solid var(--filet);border-radius:var(--r-m);padding:10px 14px;}
.tx-masse>summary{cursor:pointer;font-weight:700;color:var(--bleu-fonce);font-size:.8125rem;width:max-content;max-width:100%;}
.tx-masse-corps{display:flex;flex-direction:column;gap:10px;margin-top:10px;}
.tx-cible{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:.875rem;}
.tx-cible label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;}
.tx-cible input{width:17px;height:17px;margin:0;accent-color:var(--navy);}
.tx-cible input:disabled+*,.tx-cible label:has(input:disabled){color:var(--texte-3);cursor:not-allowed;}
.tx-cible-cat{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;}
.tx-ed{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;}
.tx-select,.tx-unite input{height:34px;border:1px solid var(--bord-champ);border-radius:var(--r-s);padding:0 8px;background:var(--surface);color:var(--texte);}
.tx-select{width:auto;min-width:170px;max-width:100%;}
.tx-select:focus,.tx-unite input:focus{outline:2px solid var(--bleu);outline-offset:0;border-color:var(--bleu);}
.tx-unite{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
.tx-unite input{width:96px;text-align:right;font-variant-numeric:tabular-nums;}
.tx-unite input[aria-invalid="true"]{border:2px solid var(--danger);}
.tx-err{display:block;font-size:.75rem;font-weight:600;color:var(--danger);white-space:normal;max-width:220px;text-align:left;}
.tx-ed .tx-err{max-width:none;}
.tx-err:empty{display:none;}
.tx-boutons{display:inline-flex;flex-wrap:wrap;gap:6px;}
.tbl-wrap.tx-tab-wrap{max-height:640px;border-top:1px solid var(--filet);}   /* 2 classes : passe devant .tbl-wrap.scroll (480 px) */
.tableau.tx-tab thead th{vertical-align:bottom;white-space:normal;}
.tx-tab .tri{white-space:normal;text-align:left;}
.tx-tab thead th.n .th-in{justify-content:flex-end;text-align:right;}
.tx-tab thead th.n .tri{text-align:right;}
.tx-tab td,.tx-tab tbody th,.tx-tab tfoot th,.tx-tab thead th{padding:8px 6px;}
.tx-tab tfoot tr>*{position:sticky;bottom:0;z-index:2;}
.tx-prod{min-width:150px;}
.tx-prod b{display:block;color:var(--navy);}
.tx-prod .tsub{display:block;font-weight:400;font-size:.75rem;}
.tx-sku{font-size:.8125rem;color:var(--texte-2);max-width:120px;overflow-wrap:anywhere;}
.tx-cat{font-size:.8125rem;color:var(--texte-2);min-width:120px;max-width:180px;}
.tx-regle{min-width:150px;}
.tx-pile{display:grid;gap:1px;justify-items:end;}
.tx-pile>span{white-space:nowrap;}
.tx-pile.tx-carte>span{white-space:normal;text-align:right;}   /* « 45,00 € → 50,00 € » passe à la ligne après la flèche si la place manque (montants insécables) */
.tx-fl,.tx-gris{color:var(--texte-3);}
.tx-src{display:block;font-size:.75rem;color:var(--texte-3);margin-top:2px;}
.tx-ecart{display:block;font-size:.75rem;font-weight:600;color:var(--texte-3);}
.tx-plus,.tx-ecart.tx-plus{color:var(--ok);}
.tableau.tx-tab tbody tr.tx-edition>*{background:var(--bleu-pale);}
.tx-tab tr.tx-edition .tx-select{min-width:150px;width:100%;}
.tx-tab tr.tx-edition .tx-unite input{width:72px;}
.tx-tab tr.tx-edition .tx-boutons{flex-direction:column;align-items:stretch;}
@media (max-width:760px){
  .tx-rel .tx-ec{display:none;}
  .tx-rel td.n,.tx-rel tr.tx-fort td.n{font-size:.8125rem;}
  .tx-rel td,.tx-rel th{padding-left:6px;padding-right:6px;}
  .tx-filtres .seg{flex-wrap:wrap;border-radius:var(--r-m);}
  .tx-filtres .seg button{white-space:normal;flex:1 1 auto;}
  .tx-choix{width:100%;}
  .tx-masse{padding:10px 12px;}
}
@media (forced-colors:active){
  .point,.pastille-i,.sw-fr,.jauge i,.couv i,.badge-eur,.db-dot,.hb .piste i,.carte .reg,.legende i{forced-color-adjust:none;}
  .tab-btn.active{text-decoration:underline;}
}
