/* Composants de l'interface. Aucune couleur en dur : tout passe par jetons.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 var(--t-m)/1.5 var(--police); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font: 650 var(--t-xl)/1.1 var(--police-titre); color: var(--encre); letter-spacing: -0.025em; text-wrap: balance; }
h2 { font: 650 var(--t-l)/1.25 var(--police-titre); color: var(--encre); letter-spacing: -0.012em; }
h3 { font-size: var(--t-m); font-weight: 700; color: var(--encre); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-fonce); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--sur-signal); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doux { color: var(--doux); } .petit { font-size: var(--t-s); } .mini { font-size: var(--t-xs); } .gras { font-weight: 700; } .droite { text-align: right; } .centre { text-align: center; }
.nb { white-space: nowrap; } .tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-2 { margin-top: var(--e-2); } .mt-3 { margin-top: var(--e-3); } .mt-4 { margin-top: var(--e-4); } .mt-6 { margin-top: var(--e-6); } .mb-2 { margin-bottom: var(--e-2); } .mb-4 { margin-bottom: var(--e-4); }
.ligne { display: flex; align-items: center; gap: var(--e-3); flex-wrap: wrap; } .ligne.serre { gap: var(--e-2); } .ligne.haut { align-items: flex-start; } .ligne.fixe { flex-wrap: nowrap; } .entre { justify-content: space-between; } .pousse { margin-left: auto; }
.pile { display: flex; flex-direction: column; gap: var(--e-3); } .pile.large { gap: var(--e-6); } .pile.serre { gap: var(--e-1); }
.grille { display: grid; gap: var(--e-4); } .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-fiche { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.icone { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Bandeau des données fictives */
.bandeau-demo { background: var(--encre); color: var(--surface); font-size: var(--t-xs); font-weight: 600; text-align: center; padding: 6px var(--e-4); }
.bandeau-demo::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; }

/* Coquille : un rail de navigation posé sur le fond, le contenu sur des surfaces blanches */
.coquille { display: grid; grid-template-columns: var(--largeur-nav) minmax(0, 1fr); min-height: 100vh; }
.nav { padding: var(--e-5) var(--e-3) var(--e-4); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
.nav .club { padding: 0 var(--e-3) var(--e-5); }
.nav .club strong { display: block; color: var(--encre); line-height: 1.25; font: 650 var(--t-m)/1.25 var(--police-titre); }
.marque { display: flex; align-items: center; gap: 10px; font: 700 var(--t-m)/1 var(--police-titre); color: var(--encre); letter-spacing: -0.01em; }
.marque i { width: 26px; height: 26px; border-radius: 9px; background: var(--encre); display: grid; place-items: center; position: relative; }
.marque i::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.nav h4 { font-size: var(--t-xs); font-weight: 600; color: var(--doux); padding: var(--e-4) var(--e-3) var(--e-1); }
.nav a.lien { display: flex; align-items: center; gap: var(--e-3); min-height: 38px; padding: 0 var(--e-3); border-radius: var(--rayon-s); color: var(--texte); text-decoration: none; font-weight: 550; transition: background var(--duree) var(--courbe); }
.nav a.lien .icone { color: var(--doux); }
.nav a.lien:hover { background: var(--neutre-clair); }
.nav a.lien[aria-current="page"] { background: var(--surface); color: var(--encre); font-weight: 700; box-shadow: var(--ombre); }
.nav a.lien[aria-current="page"] .icone { color: var(--accent); }
.nav a.lien .puce { margin-left: auto; }
.nav .bas { margin-top: auto; padding-top: var(--e-4); }
.barre { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-3) var(--e-8); background: var(--surface-verre); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: border-color var(--duree); }
.barre.ombre { border-bottom-color: var(--trait); }
.contenu { padding: var(--e-5) var(--e-8) var(--e-16); max-width: 1280px; width: 100%; }
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--e-4); flex-wrap: wrap; margin-bottom: var(--e-6); }
.entete p { color: var(--doux); margin-top: 6px; max-width: 68ch; }
.onglets-bas { display: none; }

/* Recherche et palette de commandes */
.recherche { position: relative; flex: 1; max-width: 480px; }
.recherche input[type=search]:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=hidden]) { width: 100%; height: 40px; border: 0; box-shadow: var(--ombre); border-radius: var(--rayon-rond); background: var(--surface); padding: 0 var(--e-4) 0 40px; }
.recherche > .icone { position: absolute; left: 14px; top: 11px; color: var(--doux); }
.recherche kbd { position: absolute; right: 12px; top: 9px; font: 600 var(--t-xs)/22px var(--police); color: var(--doux); background: var(--neutre-clair); border-radius: 6px; padding: 0 7px; pointer-events: none; }
.recherche .resultats { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre-haute); padding: var(--e-2); z-index: 40; max-height: 70vh; overflow: auto; }
.recherche .resultats a { display: flex; gap: var(--e-3); align-items: center; padding: var(--e-2) var(--e-3); border-radius: var(--rayon-s); color: var(--texte); text-decoration: none; }
.recherche .resultats a:hover, .recherche .resultats a:focus { background: var(--neutre-clair); }
.recherche .resultats h4 { font-size: var(--t-xs); font-weight: 600; color: var(--doux); padding: var(--e-2) var(--e-3) 2px; }

/* Boutons : en pastille. Le bouton principal est à l'encre, la couleur reste pour le sens. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: 40px; padding: 0 18px; border-radius: var(--rayon-rond); border: 0; box-shadow: inset 0 0 0 1px var(--trait-fort); background: var(--surface); color: var(--encre); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe), transform 80ms; }
.btn:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--doux); color: var(--encre); }
.btn:active { transform: scale(0.98); }
.btn.primaire { background: var(--action); box-shadow: none; color: var(--sur-action); }
.btn.primaire:hover { background: var(--action-survol); color: var(--sur-action); }
.btn.signal { background: var(--signal); box-shadow: none; color: var(--sur-signal); }
.btn.danger { background: var(--danger); box-shadow: none; color: var(--surface); }
.btn.discret { box-shadow: none; background: transparent; color: var(--accent); padding: 0 var(--e-3); }
.btn.discret:hover { background: var(--accent-clair); box-shadow: none; }
.btn.petit { min-height: 32px; padding: 0 14px; font-size: var(--t-s); }
.btn.large { min-height: 52px; padding: 0 28px; font-size: var(--t-l); }
.btn.bloc { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-icone { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--doux); transition: background var(--duree); }
.btn-icone:hover { background: var(--neutre-clair); color: var(--encre); }

/* Cartes et chiffres */
.carte { background: var(--surface); border-radius: var(--rayon); padding: var(--e-6); box-shadow: var(--ombre); }
.carte.plate { box-shadow: none; background: var(--surface-2); } .carte.serre { padding: var(--e-4); } .carte.sans { padding: 0; overflow: hidden; }
.carte.encre { background: var(--encre); color: var(--surface); box-shadow: none; } .carte.encre h2, .carte.encre .v, .carte.encre strong { color: var(--surface); } .carte.encre .l, .carte.encre .s, .carte.encre .doux { color: color-mix(in srgb, var(--surface) 68%, transparent); }
.carte > h2 { margin-bottom: var(--e-4); }
.carte .tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); padding: var(--e-4) var(--e-6); border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.chiffre { display: flex; flex-direction: column; gap: 4px; }
.chiffre .v { font: 650 clamp(1.5rem, 2.3vw, var(--t-xxl))/1.05 var(--police-titre); color: var(--encre); letter-spacing: -0.035em; white-space: nowrap; }
.chiffre .l { color: var(--doux); font-size: var(--t-s); font-weight: 600; order: -1; }
.chiffre .s { color: var(--doux); font-size: var(--t-xs); }
a.carte { display: block; text-decoration: none; color: inherit; transition: box-shadow var(--duree) var(--courbe), transform var(--duree) var(--courbe); } a.carte.chiffre { display: flex; } a.carte:hover { box-shadow: var(--ombre-moyenne); transform: translateY(-1px); }
.barres { display: flex; flex-direction: column; gap: var(--e-3); }
.barres .b > :last-child { min-width: 86px; text-align: right; }
.barres .b { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) auto; gap: var(--e-3); align-items: center; font-size: var(--t-s); }
.barres .piste { height: 10px; background: var(--neutre-clair); border-radius: 5px; overflow: hidden; }
.barres .piste i { display: block; height: 100%; background: var(--encre); border-radius: 5px; min-width: 2px; }
.jauge { height: 8px; background: var(--neutre-clair); border-radius: 4px; overflow: hidden; } .jauge i { display: block; height: 100%; background: var(--signal); border-radius: 4px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sur-signal) 18%, transparent); }
.pastille { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--doux); }

/* Badges d'état */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: var(--t-xs); font-weight: 650; background: var(--neutre-clair); color: var(--texte); white-space: nowrap; }
.badge.ok { background: var(--accent-clair); color: var(--accent-fonce); } .badge.attention { background: var(--attention-clair); color: var(--attention); }
.badge.danger { background: var(--danger-clair); color: var(--danger); } .badge.info { background: var(--info-clair); color: var(--info); } .badge.signal { background: var(--signal); color: var(--sur-signal); }
.puce { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--signal); color: var(--sur-signal); font-size: var(--t-xs); font-weight: 700; display: inline-grid; place-items: center; }
.etiquette { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: var(--t-xs); font-weight: 550; color: var(--texte); background: var(--neutre-clair); gap: 4px; }
.etiquette button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--doux); line-height: 1; }

/* Tableaux */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: var(--t-xs); color: var(--doux); font-weight: 600; padding: var(--e-3) var(--e-4); border-bottom: 1px solid var(--trait); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: var(--e-6); } .table th:last-child, .table td:last-child { padding-right: var(--e-6); }
.table td { padding: 14px var(--e-4); border-bottom: 1px solid var(--trait); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clic { cursor: pointer; transition: background var(--duree); } .table tbody tr.clic:hover { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 700; color: var(--encre); border-top: 1px solid var(--trait-fort); }
.table td.case, .table th.case { width: 36px; padding-right: 0; }
.pied-table { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); padding: var(--e-3) var(--e-6); border-top: 1px solid var(--trait); flex-wrap: wrap; font-size: var(--t-s); color: var(--doux); }
.vide { padding: var(--e-12) var(--e-4); text-align: center; color: var(--doux); }
.vide strong { display: block; color: var(--encre); margin-bottom: 4px; font: 650 var(--t-l)/1.3 var(--police-titre); }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > label, .champ > .lab { font-size: var(--t-s); font-weight: 600; color: var(--encre); }
.champ .aide { font-size: var(--t-xs); color: var(--doux); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=hidden]):not([type=range]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px var(--e-3); border: 0; box-shadow: inset 0 0 0 1px var(--trait-fort); border-radius: var(--rayon-s); background: var(--surface); transition: box-shadow var(--duree); }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--doux); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 4px color-mix(in srgb, var(--focus) 16%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--doux) 70%, transparent); }
input[type=file] { max-width: 100%; font-size: var(--t-s); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
input[type=color] { width: 42px; height: 42px; padding: 3px; border: 0; border-radius: var(--rayon-s); box-shadow: inset 0 0 0 1px var(--trait-fort); background: var(--surface); cursor: pointer; }
label.coche { display: flex; gap: var(--e-3); align-items: flex-start; cursor: pointer; } label.coche input { margin-top: 2px; }
.interrupteur { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--e-4); padding: var(--e-3) 0; border-bottom: 1px solid var(--trait); }
.interrupteur:last-child { border-bottom: 0; }
.interrupteur > input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--trait-fort); position: relative; cursor: pointer; transition: background var(--duree); flex: none; }
.interrupteur > input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--duree) var(--courbe); }
.interrupteur > input:checked { background: var(--accent); } .interrupteur > input:checked::after { transform: translateX(18px); }
.filtres { display: flex; gap: var(--e-2); flex-wrap: wrap; align-items: center; }
.filtres select, .filtres input { width: auto; min-width: 130px; }
.segmente { display: inline-flex; padding: 3px; border-radius: var(--rayon-rond); background: var(--neutre-clair); gap: 2px; }
.segmente button { border: 0; background: none; padding: 0 var(--e-4); min-height: 34px; cursor: pointer; font-weight: 600; color: var(--doux); border-radius: var(--rayon-rond); transition: background var(--duree), color var(--duree); }
.segmente button[aria-pressed="true"] { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.onglets { display: flex; gap: var(--e-6); border-bottom: 1px solid var(--trait); margin-bottom: var(--e-6); overflow-x: auto; scrollbar-width: none; }
.onglets button { border: 0; background: none; padding: var(--e-3) 0; cursor: pointer; font-weight: 600; color: var(--doux); border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: var(--e-2); align-items: center; transition: color var(--duree); }
.onglets button:hover { color: var(--encre); }
.onglets button[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--encre); }

/* Messages */
.note { display: flex; gap: var(--e-3); padding: var(--e-3) var(--e-4); border-radius: var(--rayon-s); background: var(--info-clair); color: var(--encre); font-size: var(--t-s); align-items: flex-start; }
.note.attention { background: var(--attention-clair); } .note.danger { background: var(--danger-clair); } .note.ok { background: var(--accent-clair); } .note.neutre { background: var(--neutre-clair); }
.toasts { position: fixed; bottom: var(--e-6); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: var(--e-2); align-items: center; width: min(92vw, 440px); }
.toast { background: var(--encre); color: var(--fond); padding: var(--e-3) var(--e-5); border-radius: var(--rayon-rond); box-shadow: var(--ombre-haute); font-weight: 550; font-size: var(--t-s); animation: monte var(--duree-longue) var(--courbe); }
.toast.erreur { background: var(--danger); color: #fff; border-radius: var(--rayon); }
@keyframes monte { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes apparait { from { opacity: 0; } }
@keyframes feuille { from { transform: translateY(100%); } }

/* Modale, tiroir, feuille de paiement */
.voile { position: fixed; inset: 0; background: var(--voile); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: var(--e-4); animation: apparait var(--duree); }
.modale { background: var(--surface); border-radius: var(--rayon-l); box-shadow: var(--ombre-haute); width: min(100%, 540px); max-height: 92vh; display: flex; flex-direction: column; animation: monte var(--duree-longue) var(--courbe); overflow: hidden; }
.modale.large { width: min(100%, 900px); }
.modale > header { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); padding: var(--e-5) var(--e-6) var(--e-3); }
.modale > .corps { padding: var(--e-3) var(--e-6) var(--e-6); overflow: auto; }
.modale > footer { display: flex; justify-content: flex-end; gap: var(--e-2); padding: var(--e-4) var(--e-6); border-top: 1px solid var(--trait); flex-wrap: wrap; background: var(--surface-2); }
.voile.tiroir { justify-content: flex-end; padding: var(--e-3); align-items: stretch; }
.voile.tiroir .modale { width: min(100%, 780px); max-height: none; height: 100%; animation: tiroir var(--duree-longue) var(--courbe); }
@keyframes tiroir { from { transform: translateX(40px); opacity: 0; } }
.modale.paiement { width: min(100%, 560px); height: min(92vh, 860px); }
.modale.paiement > .corps { padding: 0; flex: 1; display: flex; flex-direction: column; }
.modale.paiement iframe { border: 0; width: 100%; flex: 1; background: var(--surface); }
.modale.paiement .securite { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: var(--t-xs); color: var(--doux); border-top: 1px solid var(--trait); }
.palette { align-items: flex-start; padding-top: 12vh; }
.palette .modale { width: min(100%, 620px); }
.palette input[type=search] { box-shadow: none !important; font-size: var(--t-l); min-height: 60px !important; padding: 0 var(--e-6) !important; border-radius: 0 !important; border-bottom: 1px solid var(--trait) !important; }
.palette .liste { max-height: 52vh; overflow: auto; padding: var(--e-2); }
.palette .liste h4 { font-size: var(--t-xs); font-weight: 600; color: var(--doux); padding: var(--e-3) var(--e-3) var(--e-1); }
.palette .liste a { display: flex; gap: var(--e-3); align-items: center; padding: 10px var(--e-3); border-radius: var(--rayon-s); color: var(--texte); text-decoration: none; }
.palette .liste a[aria-selected="true"] { background: var(--neutre-clair); color: var(--encre); }
.palette .liste a .pousse { color: var(--doux); font-size: var(--t-xs); }

/* Divers */
.liste-def { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 8px var(--e-4); font-size: var(--t-s); }
.liste-def dt { color: var(--doux); } .liste-def dd { margin: 0; color: var(--encre); overflow-wrap: anywhere; }
.fil { list-style: none; padding: 0; margin: 0; }
.fil li { padding: var(--e-3) 0; border-bottom: 1px solid var(--trait); display: flex; gap: var(--e-3); align-items: flex-start; }
.fil li:last-child { border-bottom: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--neutre-clair); color: var(--encre); font-weight: 700; display: grid; place-items: center; flex: none; font-size: var(--t-s); }
.avatar.grand { width: 56px; height: 56px; font: 650 var(--t-l)/1 var(--police-titre); }
.squelette { height: 160px; border-radius: var(--rayon); background: linear-gradient(90deg, var(--neutre-clair), var(--surface-2), var(--neutre-clair)); background-size: 200% 100%; animation: glisse 1.2s infinite; }
@keyframes glisse { to { background-position: -200% 0; } }
.progression { height: 6px; background: var(--neutre-clair); border-radius: 3px; overflow: hidden; } .progression i { display: block; height: 100%; background: var(--signal); transition: width 0.3s; }
details.repli > summary { cursor: pointer; font-weight: 600; color: var(--encre); padding: var(--e-2) 0; }
.apercu-email { border: 0; box-shadow: var(--ombre); border-radius: var(--rayon); background: var(--fond); width: 100%; height: 560px; }
.apercu-email.mobile { width: 375px; max-width: 100%; margin: 0 auto; display: block; }
.bloc-email { border-radius: var(--rayon-s); padding: var(--e-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--trait); }
.pointage li { min-height: 60px; align-items: center; }
.pointage .btn { min-width: 108px; min-height: var(--cible); }
.assistant-bouton { position: fixed; right: var(--e-5); bottom: var(--e-5); z-index: 30; box-shadow: var(--ombre-haute); border-radius: 26px; min-height: 52px; min-width: 52px; }

/* Pages publiques et connexion */
.page-centre { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: var(--e-10) var(--e-4); gap: var(--e-6); }
.page-centre .carte { width: min(100%, 460px); padding: var(--e-8); border-radius: var(--rayon-l); box-shadow: var(--ombre-moyenne); } .page-centre .carte.large { width: min(100%, 780px); }
.comptes-demo { display: grid; gap: var(--e-2); }
.comptes-demo button { display: flex; gap: var(--e-3); align-items: center; text-align: left; padding: var(--e-3); border: 0; box-shadow: inset 0 0 0 1px var(--trait); border-radius: var(--rayon); background: var(--surface); cursor: pointer; width: 100%; transition: box-shadow var(--duree), background var(--duree); }
.comptes-demo button:hover { box-shadow: inset 0 0 0 2px var(--encre); }
.choix-section { display: flex; gap: var(--e-3); align-items: center; padding: var(--e-3) var(--e-4); box-shadow: inset 0 0 0 1px var(--trait-fort); border-radius: var(--rayon-s); cursor: pointer; transition: box-shadow var(--duree), background var(--duree); }
.choix-section:has(input:checked) { box-shadow: inset 0 0 0 2px var(--encre); background: var(--surface-2); }
.recap { position: sticky; top: var(--e-4); }
.recap table { width: 100%; border-collapse: collapse; font-size: var(--t-s); } .recap td { padding: 5px 0; vertical-align: top; } .recap td:last-child { text-align: right; white-space: nowrap; }
.recap .remise td { color: var(--accent-fonce); } .recap .total td { border-top: 1px solid var(--trait); padding-top: var(--e-3); font: 650 var(--t-l)/1.3 var(--police-titre); color: var(--encre); }
.imprimable { background: #fff; color: #111; max-width: 760px; margin: 0 auto; padding: var(--e-12); box-shadow: var(--ombre); border-radius: var(--rayon); }

/* Transitions entre écrans : un fondu court, uniquement à la navigation */
@view-transition { navigation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 140ms; }

/* Mobile : navigation en bas, tableaux en cartes */
@media (max-width: 860px) {
  .coquille { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .nav.ouverte { display: flex; position: fixed; inset: 0; z-index: 70; height: auto; width: 100%; padding-bottom: 90px; background: var(--fond); animation: apparait var(--duree); }
  .barre { padding: var(--e-3) var(--e-4); }
  .contenu { padding: var(--e-3) var(--e-4) 120px; }
  .onglets-bas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--surface-verre); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); }
  .onglets-bas a, .onglets-bas button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: 0.6875rem; font-weight: 600; color: var(--doux); text-decoration: none; border: 0; background: none; cursor: pointer; }
  .onglets-bas a[aria-current="page"] { color: var(--encre); } .onglets-bas a[aria-current="page"] .icone { color: var(--accent); }
  .g-2, .g-3, .g-4, .g-fiche { grid-template-columns: minmax(0, 1fr); }
  .g-4.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffre .v { font-size: var(--t-xl); }
  h1 { font-size: 1.5rem; }
  .carte { padding: var(--e-5); }
  .table th:first-child, .table td:first-child { padding-left: var(--e-4); } .table th:last-child, .table td:last-child { padding-right: var(--e-4); }
  .table.adaptable thead { display: none; }
  .table.adaptable, .table.adaptable tbody, .table.adaptable tr, .table.adaptable td { display: block; width: 100%; }
  .table.adaptable tr { padding: var(--e-3) var(--e-4); border-bottom: 1px solid var(--trait); position: relative; }
  .table.adaptable td, .table.adaptable td:first-child, .table.adaptable td:last-child { padding: 2px 0; border: 0; text-align: left; }
  .table.adaptable td.num { text-align: left; } .table.adaptable td[data-t]::before { content: attr(data-t) ' : '; color: var(--doux); font-size: var(--t-xs); }
  .table.adaptable td.case { position: absolute; right: var(--e-3); top: var(--e-3); width: auto; }
  .voile { padding: 0; align-items: flex-end; } .modale, .modale.large, .modale.paiement { width: 100%; border-radius: var(--rayon-l) var(--rayon-l) 0 0; max-height: 94vh; animation: feuille var(--duree-longue) var(--courbe); }
  .modale.paiement { height: 94vh; }
  .voile.tiroir { padding: 0; } .voile.tiroir .modale { border-radius: 0; }
  .palette { padding-top: 0; align-items: flex-start; } .palette .modale { border-radius: 0 0 var(--rayon-l) var(--rayon-l); animation: apparait var(--duree); }
  .assistant-bouton { bottom: 76px; right: var(--e-3); }
  .toasts { bottom: 80px; }
  .recap { position: static; }
  .imprimable { padding: var(--e-5); box-shadow: none; }
  .masque-mobile { display: none !important; }
  .filtres select, .filtres input { min-width: 0; flex: 1 1 140px; }
  .barres .b { grid-template-columns: minmax(70px, 100px) minmax(0, 1fr) auto; }
  .page-centre { padding: var(--e-6) var(--e-3); } .page-centre .carte { padding: var(--e-6); }
}
@media (min-width: 861px) { .seul-mobile { display: none !important; } }
@media print { .nav, .barre, .onglets-bas, .bandeau-demo, .assistant-bouton, .non-imprime { display: none !important; } body { background: #fff; } .coquille { display: block; } .contenu { padding: 0; } .imprimable { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { *, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; } }

/* Collectes : cartes de la liste, choix du format, éditeur */
.collecte { display: flex !important; flex-direction: column; }
.collecte .couv { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; color: #fff; overflow: hidden; }
.collecte .couv img { width: 100%; height: 100%; object-fit: cover; display: block; } .collecte .couv > span .icone { width: 40px; height: 40px; stroke-width: 1.3; opacity: 0.9; } .collecte .couv .etats { position: absolute; top: 12px; left: 12px; }
.collecte .corps { padding: var(--e-4) var(--e-5) var(--e-5); display: flex; flex-direction: column; gap: var(--e-2); flex: 1; }
.collecte h3 { font: 650 1.125rem/1.25 var(--police-titre); letter-spacing: -0.01em; }
.collecte .chiffres { display: flex; gap: var(--e-6); margin-top: auto; padding-top: var(--e-3); } .collecte .chiffres div { display: flex; flex-direction: column; } .collecte .chiffres strong { font: 650 1.25rem/1.1 var(--police-titre); color: var(--encre); letter-spacing: -0.02em; } .collecte .chiffres small { font-weight: 500; color: var(--doux); font-size: var(--t-s); } .collecte .chiffres span { font-size: var(--t-xs); color: var(--doux); }
.formats .format { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: var(--e-4); border: 0; border-radius: var(--rayon); background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait-fort); cursor: pointer; transition: box-shadow var(--duree), background var(--duree); }
.formats .format:hover { box-shadow: inset 0 0 0 1px var(--encre); } .formats .format[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--encre); background: var(--surface-2); }
.formats .rond { width: 40px; height: 40px; border-radius: 12px; background: var(--neutre-clair); display: grid; place-items: center; color: var(--encre); margin-bottom: 4px; } .formats .format[aria-pressed="true"] .rond { background: var(--signal); color: var(--sur-signal); }
.editeur { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); gap: var(--e-6); align-items: start; }
.editeur .panneau { display: flex; flex-direction: column; gap: var(--e-4); min-width: 0; }
.editeur .apercu { position: sticky; top: 76px; height: calc(100vh - 100px); display: flex; flex-direction: column; gap: var(--e-3); }
.editeur .apercu .cadre { flex: 1; border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre-moyenne); background: var(--surface); display: flex; justify-content: center; }
.editeur .apercu iframe { border: 0; width: 100%; height: 100%; background: var(--fond); } .editeur .apercu .cadre.mobile iframe { width: 390px; max-width: 100%; border-left: 1px solid var(--trait); border-right: 1px solid var(--trait); }
.ed-section { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.ed-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--e-3); padding: var(--e-4) var(--e-5); font: 650 var(--t-m)/1.3 var(--police-titre); color: var(--encre); } .ed-section > summary::-webkit-details-marker { display: none; }
.ed-section > summary .icone:last-child { margin-left: auto; color: var(--doux); transition: transform var(--duree); } .ed-section[open] > summary .icone:last-child { transform: rotate(90deg); }
.ed-section > summary small { font: 500 var(--t-xs)/1 var(--police); color: var(--doux); }
.ed-section > .dedans { padding: 0 var(--e-5) var(--e-5); display: flex; flex-direction: column; gap: var(--e-4); }
.ed-item { border-radius: var(--rayon-s); background: var(--surface-2); padding: var(--e-3) var(--e-4); display: flex; flex-direction: column; gap: var(--e-3); }
.ed-item > .tete-i { display: flex; align-items: center; gap: var(--e-2); } .ed-item > .tete-i input { flex: 1; font-weight: 600; }
.ed-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--e-3); }
.ed-sous { display: flex; flex-direction: column; gap: var(--e-2); padding-left: var(--e-3); border-left: 2px solid var(--trait); }
.ed-ligne { display: flex; gap: var(--e-2); align-items: center; } .ed-ligne input { min-height: 36px !important; padding: 6px 10px !important; font-size: var(--t-s); }
.depot { position: relative; border-radius: var(--rayon); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--trait-fort); aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; color: var(--doux); font-size: var(--t-s); text-align: center; cursor: pointer; }
.depot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.couleurs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .couleurs label { position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); } .couleurs input[type=radio] { position: absolute; opacity: 0; } .couleurs label:has(input:checked) { outline: 2px solid var(--encre); outline-offset: 2px; }
.etat-enr { font-size: var(--t-xs); color: var(--doux); display: inline-flex; align-items: center; gap: 6px; } .etat-enr::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); } .etat-enr.encours::before { background: var(--signal); box-shadow: 0 0 0 1px var(--sur-signal); }
@media (max-width: 1080px) { .editeur { grid-template-columns: minmax(0, 1fr); } .editeur .apercu { display: none; } .formats { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------------------------------------------------------------- Vie du club : planning, actualités, bénévolat */
.jour-titre { font-family: var(--police-titre); font-size: var(--t-m); font-weight: 650; padding: var(--e-5) var(--e-6) var(--e-2); color: var(--encre); }
.jour-titre::first-letter { text-transform: uppercase; }
.agenda { list-style: none; margin: 0; padding: 0 var(--e-3) var(--e-2); }
.seance { display: grid; grid-template-columns: 58px 4px minmax(0, 1fr) auto; gap: var(--e-4); align-items: stretch; padding: var(--e-3); border-radius: var(--rayon); }
.seance[role="button"] { cursor: pointer; } .seance[role="button"]:hover { background: var(--neutre-clair); }
.seance .heure { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; } .seance .heure span { color: var(--doux); font-size: var(--t-s); }
.seance .trait { border-radius: 2px; min-height: 36px; }
.seance .quoi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seance .etat { display: flex; flex-direction: column; gap: var(--e-2); align-items: flex-end; }
.seance.annulee .quoi > strong, .seance.annulee .heure { text-decoration: line-through; color: var(--doux); }
.appel li { align-items: center; flex-wrap: wrap; }
.actu { overflow: hidden; } .actu > img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.actu .dedans { padding: var(--e-6); display: flex; flex-direction: column; gap: var(--e-3); } .actu h2 { font-size: var(--t-xl); }
.coms { display: flex; flex-direction: column; gap: var(--e-3); border-top: 1px solid var(--trait); padding-top: var(--e-4); } .coms[hidden] { display: none; }
.com { display: flex; gap: var(--e-3); align-items: flex-start; }
.btn.signal { background: var(--signal); color: var(--sur-signal); border-color: transparent; }
@media (max-width: 640px) { .seance { grid-template-columns: 48px 4px minmax(0, 1fr); } .seance .etat { grid-column: 3; align-items: flex-start; flex-direction: row; flex-wrap: wrap; } .segmente button { padding: 0 var(--e-3); } }
.annu li { align-items: center; } .annu .coord { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 640px) { .annu li { flex-wrap: wrap; } .annu .coord { flex-basis: 100%; text-align: left; padding-left: 52px; } }
.mt-5 { margin-top: var(--e-6); }

/* ---------------------------------------------------------------- Éditeur de collecte : apparence, blocs, texte mis en forme */
.tuiles { display: grid; gap: var(--e-2); grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.tuile { position: relative; cursor: pointer; } .tuile input { position: absolute; opacity: 0; inset: 0; }
.tuile > span { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; height: 100%; min-height: 64px; padding: var(--e-3); border-radius: var(--rayon-s); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--trait); transition: box-shadow var(--duree), background var(--duree); }
.tuile input:checked + span { background: var(--surface); box-shadow: inset 0 0 0 2px var(--encre); } .tuile input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; } .tuile:hover > span { box-shadow: inset 0 0 0 1px var(--trait-fort); } .tuile:hover input:checked + span { box-shadow: inset 0 0 0 2px var(--encre); }
.tuile b { font-size: 1.375rem; line-height: 1.05; color: var(--encre); letter-spacing: -0.02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .tuile small { font-size: var(--t-xs); color: var(--doux); line-height: 1.3; }
.tuiles.t-police { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .tuiles.t-boutons, .tuiles.t-fond { grid-template-columns: repeat(3, 1fr); } .tuiles.t-boutons .tuile > span, .tuiles.t-fond .tuile > span { align-items: center; min-height: 0; }
.schema { display: block; position: relative; height: 54px; border-radius: 6px; background: var(--neutre-clair); overflow: hidden; } .schema u, .schema em { position: absolute; display: block; text-decoration: none; }
.schema u { background: var(--encre); border-radius: 2px; height: 6px; width: 46%; left: 8px; top: 12px; box-shadow: 0 10px 0 -1px color-mix(in srgb, var(--encre) 40%, transparent); } .schema em { background: var(--accent); border-radius: 4px; }
.schema.s-affiche { background: linear-gradient(var(--encre) 56%, var(--neutre-clair) 56%); } .schema.s-affiche u { background: #fff; box-shadow: 0 10px 0 -1px rgba(255, 255, 255, 0.5); } .schema.s-affiche em { left: 8px; right: 30%; top: 32px; bottom: 4px; }
.schema.s-immersif { background: linear-gradient(160deg, var(--accent), var(--encre)); } .schema.s-immersif u { background: #fff; top: 30px; box-shadow: 0 10px 0 -1px rgba(255, 255, 255, 0.5); } .schema.s-immersif em { display: none; }
.schema.s-duo { background: var(--encre); } .schema.s-duo u { background: #fff; width: 34%; top: 18px; box-shadow: 0 10px 0 -1px rgba(255, 255, 255, 0.5); } .schema.s-duo em { right: 8px; top: 9px; bottom: 9px; width: 38%; transform: rotate(3deg); }
.schema.s-sobre { border-top: 4px solid var(--accent); } .schema.s-sobre em { left: 8px; right: 30%; top: 32px; bottom: -6px; }
.bouton { font-style: normal; font-size: var(--t-xs); font-weight: 650; background: var(--encre); color: var(--surface); padding: 8px 14px; } .bouton.b-pastille { border-radius: 999px; } .bouton.b-doux { border-radius: 10px; } .bouton.b-net { border-radius: 2px; }
.fond { display: block; width: 100%; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--trait-fort); } .fond.f-clair { background: #F2F4F7; } .fond.f-teinte { background: color-mix(in srgb, var(--t) 14%, #fff); } .fond.f-nuit { background: #0A1222; }
.ed-bloc { border-radius: var(--rayon-s); background: var(--surface-2); padding: var(--e-2) var(--e-3) var(--e-3); display: flex; flex-direction: column; gap: var(--e-2); box-shadow: inset 0 0 0 1px var(--trait); }
.ed-bloc .tete-b { display: flex; align-items: center; gap: 2px; } .ed-bloc .genre { display: inline-flex; align-items: center; gap: 6px; font: 650 var(--t-s)/1 var(--police-titre); color: var(--encre); } .ed-bloc .genre .icone { width: 16px; height: 16px; color: var(--accent); } .ed-bloc .btn-icone { width: 32px; height: 32px; }
.ed-bloc input:not([type=hidden]), .ed-bloc textarea, .ed-bloc select { font-size: var(--t-s); } .ed-bloc .titre-b { font-weight: 650; } .ed-ligne.haut { align-items: flex-start; }
.ajout-bloc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: var(--e-3); border-radius: var(--rayon-s); box-shadow: inset 0 0 0 1px var(--trait-fort); border: 0; background: var(--surface); } .ajout-bloc > span { width: 100%; }
.riche-outils { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 4px; border-radius: var(--rayon-s) var(--rayon-s) 0 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait-fort); margin-bottom: -9px; position: sticky; top: 64px; z-index: 2; }
.riche-outils button { border: 0; background: none; min-width: 34px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--texte); display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 600; } .riche-outils button:hover { background: var(--neutre-clair); color: var(--encre); } .riche-outils button.petit { font-size: var(--t-xs); padding: 0 8px; } .riche-outils .icone { width: 17px; height: 17px; }
.riche { min-height: 120px; max-height: 420px; overflow: auto; padding: var(--e-3) var(--e-4); background: var(--surface); border-radius: 0 0 var(--rayon-s) var(--rayon-s); box-shadow: inset 0 0 0 1px var(--trait-fort); font-size: var(--t-m) !important; line-height: 1.55 !important; max-width: none !important; outline: 0; }
.riche:focus { box-shadow: inset 0 0 0 2px var(--focus); } .riche:empty::before { content: attr(data-vide); color: var(--doux); } .riche h2 { font-size: 1.125rem !important; } .riche blockquote { font-size: var(--t-m) !important; }
.ed-photos { display: flex; flex-wrap: wrap; gap: var(--e-2); } .ed-photo { position: relative; width: 64px; height: 64px; border-radius: var(--rayon-s); overflow: hidden; background: var(--neutre-clair); display: grid; place-items: center; }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; } .ed-photo button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(11, 23, 48, 0.8); color: #fff; cursor: pointer; line-height: 1; font-size: 14px; }
.ed-photo.ajout { cursor: pointer; box-shadow: inset 0 0 0 1px var(--trait-fort); background: var(--surface); color: var(--doux); } .ed-photo.ajout:hover { color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.ed-bloc[data-type="partenaires"] .ed-photo img { object-fit: contain; background: #fff; }
hr.filet { border: 0; border-top: 1px solid var(--trait); margin: var(--e-2) 0; width: 100%; }
