/* Keupro Event v2.1 — système visuel de la v1.7 (bleu nuit, orange, vert ; dégradés, cartes arrondies, ombres bleutées).
   Les couleurs se règlent par la charte graphique de chaque compétition (variables ci-dessous). */
:root {
  --nv: #0A1A4A; --nv0: #060E33; --nv1: #0F2A8A; --nv2: #1D3FBF;
  --or: #FF6A1A; --or2: #FF8A3D; --od: #E4520A;
  --gn: #17A34A; --gn2: #2BE07A; --gnd: #0B6B33;
  --bg: #EEF2FF; --cd: #fff; --tx: #0B1437; --mu: #5B6488; --ln: #DDE3F5;
  --ok: #DDF7E8; --wa: #FFE8D9; --ko: #FDE3E3; --rouge: #C62828;
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ombre: 0 8px 28px rgba(10, 26, 74, .07);
}
* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
a { color: var(--nv2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.cache { display: none !important; }
h1, h2, h3, .titre { font-family: var(--titre); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0; }
h1 { font-size: 38px; margin: 6px 0 12px; }
h2 { font-size: 24px; margin: 22px 0 10px; }
h3 { font-size: 20px; }
.discret { color: var(--mu); font-size: 13px; }
.petit { font-size: 12.5px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- coque : menu latéral, en-tête mobile, barre du bas ---------- */
#coque { display: grid; grid-template-columns: 268px 1fr; min-height: 100dvh; }
#sb { background: linear-gradient(180deg, var(--nv), var(--nv0)); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 18px; overflow: auto; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.brand b { font: 700 24px var(--titre); text-transform: uppercase; display: block; line-height: 1; }
.brand small { color: #9FB3FF; font-size: 12px; }
.lgo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--or), #FFB020); display: flex; align-items: center; justify-content: center; font: 700 18px var(--titre); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 26, .5); flex: none; overflow: hidden; }
.lgo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.sb-ctx { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 12px; }
.sb-ctx small { display: block; color: #FFC59E; font: 600 11px Inter; letter-spacing: .1em; text-transform: uppercase; }
.sb-ctx b { display: block; font: 700 19px/1.1 var(--titre); text-transform: uppercase; margin-top: 3px; }
.sb-ctx a { color: #9FB3FF; font-size: 12px; text-decoration: none; display: inline-block; margin-top: 8px; }
#nv { display: flex; flex-direction: column; gap: 4px; }
#nv a { display: flex; gap: 12px; align-items: center; color: #C9D4FF; padding: 11px 12px; border-radius: 12px; font: 600 14px Inter; min-height: 44px; text-decoration: none; }
#nv a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#nv a.on { background: linear-gradient(90deg, var(--or), var(--or2)); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 26, .35); }
#nv a .nb { margin-left: auto; background: #fff; color: var(--od); border-radius: 99px; font-size: 11px; padding: 1px 8px; }
#nv .sep { height: 1px; background: rgba(255, 255, 255, .12); margin: 8px 4px; }
.ver { font-size: 11px; color: #9FB3FF; margin-top: auto; text-align: center; }
#hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; color: var(--mu); font-size: 13px; min-height: 48px; }
#hd .brand { display: none; }
#hd .compte { display: flex; gap: 10px; align-items: center; }
#hd .compte a { color: var(--nv); font-weight: 600; text-decoration: none; }
#app { padding: 6px 28px 48px; max-width: 1120px; width: 100%; margin: 0 auto; }
#bn { display: none; }

/* ---------- éléments communs ---------- */
.cd, .carte { background: var(--cd); border: 1px solid var(--ln); border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: var(--ombre); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px Inter, sans-serif; border-radius: 14px; padding: 10px 16px; border: 2px solid var(--nv); background: #fff; color: var(--nv); cursor: pointer; min-height: 44px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:active { transform: scale(.97); }
.btn-action { background: linear-gradient(135deg, var(--or), var(--or2)); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 26, .4); }
.btn-action:hover { box-shadow: 0 12px 26px rgba(255, 106, 26, .5); }
.btn-noir { background: var(--nv); border-color: var(--nv); color: #fff; }
.btn-vert { background: linear-gradient(135deg, var(--gn), var(--gnd)); border: 0; color: #fff; box-shadow: 0 8px 18px rgba(23, 163, 74, .3); }
.btn-danger { border-color: var(--rouge); color: var(--rouge); }
.btn-plein { width: 100%; }
.btn-grand { padding: 14px 22px; font-size: 16px; border-radius: 16px; min-height: 54px; }
.btn-petit { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .ic { width: 18px; height: 18px; }
.lien-btn { background: none; border: 0; padding: 0; color: var(--nv2); font-weight: 600; cursor: pointer; text-decoration: underline; min-height: 0; }

.champ { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: var(--mu); }
.champ > span { font-size: 12px; font-weight: 600; }
.champ input, .champ select, .champ textarea { font: 15px Inter, sans-serif; padding: 12px; border: 1.5px solid var(--ln); border-radius: 12px; background: #fff; color: var(--tx); min-height: 46px; min-width: 0; }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--nv2); outline: none; }
.champ .aide { font-weight: 400; color: var(--mu); }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }

.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { min-height: 46px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ln); background: #fff; color: var(--nv); font: 700 14px Inter; cursor: pointer; }
.choix button[aria-pressed="true"] { background: var(--nv); border-color: var(--nv); color: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button { min-height: 54px; font-size: 16px; }
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.puces button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--ln); background: #fff; color: var(--nv); font: 700 13px Inter; cursor: pointer; }
.puces button[aria-pressed="true"] { background: var(--nv); border-color: var(--nv); color: #fff; }

.pastille { display: inline-block; border-radius: 99px; padding: 4px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-ok { background: var(--ok); color: var(--gnd); }
.p-att { background: var(--wa); color: var(--od); }
.p-noir { background: var(--nv); color: #fff; }
.p-gris { background: #E8ECF8; color: var(--mu); }
.p-ko { background: var(--ko); color: var(--rouge); }
.docs { display: inline-flex; gap: 4px; }
.docs span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; }

.alerte { border-radius: 16px; padding: 12px 14px; background: var(--ko); color: var(--rouge); font-weight: 600; font-size: 14px; }
.info { border-radius: 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--ln); border-left: 5px solid var(--or); font-size: 14px; }
.chargement { padding: 60px 20px; text-align: center; color: var(--mu); }
.vide { text-align: center; padding: 44px 20px; border: 2px dashed var(--ln); border-radius: 20px; color: var(--mu); background: rgba(255, 255, 255, .5); }
.vide h3 { color: var(--tx); margin-bottom: 6px; }

.av, .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--nv2), var(--or)); color: #fff; font: 700 13px Inter; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ln); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- bandeau (hero) avec anneau ---------- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-radius: 28px; padding: 28px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(circle at 88% 12%, rgba(255, 106, 26, .6), transparent 45%), radial-gradient(circle at 10% 110%, rgba(43, 224, 122, .35), transparent 40%), linear-gradient(135deg, var(--nv), var(--nv2));
  box-shadow: 0 18px 44px rgba(29, 63, 191, .35); }
.hero h1 { color: #fff; font-size: 44px; margin: 4px 0; }
.hero p { margin: 0 0 16px; color: #CBD6FF; }
.eyebrow { font: 600 12px Inter; letter-spacing: .12em; text-transform: uppercase; color: #FFC59E; }
.ring { --p: 0; width: 116px; height: 116px; border-radius: 50%; background: conic-gradient(var(--gn2) calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--nv1); }
.ring > * { position: relative; }
.ring b { font: 700 30px var(--titre); }
.ring span { font-size: 11px; color: #CBD6FF; }

/* ---------- indicateurs, tuiles, à faire ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 6px; }
.kpi { background: #fff; border-radius: 20px; padding: 14px; border: 1px solid var(--ln); box-shadow: 0 8px 24px rgba(10, 26, 74, .06); }
.kpi .ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: #fff; margin-bottom: 8px; display: block; }
.kpi b { display: block; font: 700 34px var(--titre); line-height: 1; }
.kpi span { font-size: 12px; color: var(--mu); }
.kpi.alerte-kpi { border: 2px solid var(--or); }
.t-bleu { background: var(--nv2); } .t-vert { background: var(--gn); } .t-or { background: var(--or); } .t-violet { background: #7C3AED; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { display: flex; gap: 14px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--ln); border-radius: 20px; padding: 16px; min-height: 78px; color: var(--tx); text-decoration: none; box-shadow: 0 8px 24px rgba(10, 26, 74, .06); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--or); }
.tile .ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--or), var(--or2)); }
.tile b { display: block; font-size: 15px; }
.tile span { font-size: 12.5px; color: var(--mu); }
.a-faire { list-style: none; margin: 0; padding: 0; }
.a-faire li { margin-bottom: 8px; }
.a-faire button, .a-faire a { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--ln); border-radius: 16px; padding: 14px; color: var(--tx); text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(10, 26, 74, .05); min-height: 0; font: inherit; }
.a-faire .n { font: 700 26px var(--titre); color: var(--od); min-width: 34px; text-align: center; }
.a-faire b { display: block; font-size: 14px; }
.a-faire small { color: var(--mu); font-size: 12.5px; }
.a-faire .chev { margin-left: auto; color: var(--mu); }

/* ---------- mur d'affiches ---------- */
.entete-annonces { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; justify-content: space-between; }
.entete-annonces p { margin: 0; max-width: 58ch; color: var(--mu); }
.hero-annonces { margin-bottom: 8px; }
.hero-annonces .stat { text-align: right; }
.hero-annonces .stat b { display: block; font: 700 54px/1 var(--titre); }
.hero-annonces .stat span { color: #CBD6FF; font-size: 13px; }
.mois { margin-top: 26px; }
.mois-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mois-titre h2 { margin: 0; font-size: 22px; color: var(--nv); }
.mois-titre::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--or), transparent); }
.mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.affiche-carte { text-decoration: none; color: var(--tx); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ln); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(10, 26, 74, .09); transition: transform .15s, box-shadow .15s; }
.affiche-carte:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(10, 26, 74, .16); }
@media (prefers-reduced-motion: reduce) { .affiche-carte, .tile { transition: none; } .affiche-carte:hover, .tile:hover { transform: none; } }
.affiche { position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(circle at 85% 10%, rgba(255, 106, 26, .75), transparent 50%), radial-gradient(circle at 0% 100%, rgba(43, 224, 122, .3), transparent 45%), linear-gradient(150deg, var(--nv), var(--nv2)); }
.affiche img { width: 100%; height: 100%; object-fit: cover; }
.affiche-date { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 14px; padding: 6px 10px; text-align: center; min-width: 62px; box-shadow: 0 8px 20px rgba(6, 14, 51, .3); color: var(--nv); }
.affiche-date b { display: block; font: 700 30px/.95 var(--titre); }
.affiche-date span { font: 700 13px var(--titre); text-transform: uppercase; color: var(--od); }
.affiche-generee { position: absolute; inset: 0; padding: 96px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.affiche-generee .disc { font: 700 12px Inter; letter-spacing: .1em; text-transform: uppercase; color: #FFC59E; margin-bottom: 8px; }
.affiche-generee .t { font: 700 clamp(30px, 3vw, 40px)/.95 var(--titre); text-transform: uppercase; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.affiche-generee .l { margin-top: 10px; font-size: 13px; color: #CBD6FF; }
.affiche-pied { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.affiche-pied .t { font: 700 21px/1.05 var(--titre); text-transform: uppercase; color: var(--nv); }
.affiche-pied .m { font-size: 13px; color: var(--mu); display: flex; gap: 6px; align-items: center; }
.affiche-pied .m .ic { width: 15px; height: 15px; color: var(--od); }
.affiche-pied .bas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }

/* ---------- fiche d'une compétition ---------- */
.fiche { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 30px; align-items: start; }
.fiche .affiche { border-radius: 24px; position: sticky; top: 20px; box-shadow: 0 18px 44px rgba(29, 63, 191, .3); }
.fiche h1 { font-size: clamp(34px, 5vw, 52px); margin: 8px 0 6px; color: var(--nv); }
.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.fait { background: #fff; border: 1px solid var(--ln); border-radius: 18px; padding: 12px 14px; box-shadow: 0 6px 18px rgba(10, 26, 74, .05); display: flex; gap: 10px; align-items: flex-start; }
.fait .ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: #fff; }
.fait span { display: block; font-size: 12px; color: var(--mu); font-weight: 600; }
.fait b { font-size: 14.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.description { white-space: pre-line; max-width: 68ch; }
.groupe-cat { background: #fff; border: 1px solid var(--ln); border-radius: 18px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(10, 26, 74, .05); }
.groupe-cat summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; font: 700 19px var(--titre); text-transform: uppercase; color: var(--nv); }
.groupe-cat summary::-webkit-details-marker { display: none; }
.groupe-cat summary .nbc { font: 700 12px Inter; text-transform: none; background: var(--bg); color: var(--mu); border-radius: 99px; padding: 3px 10px; margin-left: auto; }
.groupe-cat summary::after { content: '+'; font: 700 22px Inter; color: var(--od); }
.groupe-cat[open] summary::after { content: '−'; }
.groupe-cat .tableau { border: 0; border-radius: 0; box-shadow: none; }

/* ---------- tableaux ---------- */
.sc { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.tableau th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mu); padding: 10px 12px; }
.tableau td { padding: 11px 12px; border-top: 1px solid var(--ln); vertical-align: middle; }
.tableau td:last-child, .tableau th:last-child { white-space: nowrap; }
.tableau tr:hover td { background: #F7F9FF; }

/* ---------- espace club ---------- */
.liste-eleves { list-style: none; margin: 0; padding: 0; }
.liste-eleves li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--ln); scroll-margin-bottom: 120px; }
.liste-eleves li:first-child { border-top: 0; }
.liste-eleves li.choisi { background: var(--ok); border-radius: 14px; box-shadow: inset 5px 0 var(--gn); padding-left: 12px; border-top-color: transparent; }
.liste-eleves .nom { font-weight: 700; font-size: 14px; }
.liste-eleves .sous { font-size: 12.5px; color: var(--mu); }
.liste-eleves .droite { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.liste-eleves button.ligne { all: unset; display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.liste-eleves button.ligne:focus-visible { outline: 3px solid var(--or); border-radius: 10px; }
.jauge { height: 10px; border-radius: 5px; background: #D4DBF5; overflow: hidden; margin: 12px 0; }
.jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--gn), var(--gn2)); }
.lignes-recap { list-style: none; margin: 0; padding: 0; }
.lignes-recap li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.lignes-recap li:last-child { border-bottom: 0; }
.lignes-recap b { text-align: right; }
.succes { text-align: center; padding: 30px 10px; }
.succes .rond { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--gn), var(--gn2)); box-shadow: 0 12px 30px rgba(23, 163, 74, .4); }
.succes .rond .ic { width: 40px; height: 40px; stroke-width: 3; }

/* inscription pas à pas */
.wz { max-width: 600px; margin: 0 auto; }
.wz-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wz-haut button { background: none; border: 0; font: 600 14px Inter; color: var(--nv); cursor: pointer; display: flex; gap: 6px; align-items: center; padding: 6px 0; }
.progres { display: flex; gap: 6px; margin-bottom: 16px; }
.progres i { flex: 1; height: 8px; border-radius: 4px; background: #D4DBF5; }
.progres i.fait { background: linear-gradient(90deg, var(--gn), var(--gn2)); }
.wz h2 { margin: 0 0 6px; font-size: 28px; color: var(--nv); }
.encadre-calcule { border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--gn), var(--gnd)); box-shadow: 0 12px 28px rgba(23, 163, 74, .3); }
.encadre-calcule .etiquette { font: 600 11px Inter; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.encadre-calcule .valeur { font: 700 30px/1.05 var(--titre); text-transform: uppercase; margin: 4px 0; }
.encadre-calcule .petit { opacity: .9; }
.encadre-vert { border-radius: 18px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--nv), var(--nv2)); }
.encadre-vert .etiquette { font: 600 11px Inter; letter-spacing: .1em; text-transform: uppercase; color: #FFC59E; }
.encadre-vert .valeur { font: 700 28px var(--titre); }
.encadre-vert .petit { color: #CBD6FF; }
.sw { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1.5px solid var(--ln); border-radius: 16px; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--tx); margin-bottom: 8px; cursor: pointer; }
.sw input { width: 26px; height: 26px; accent-color: var(--gn); }
.bas-fixe { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px; padding: 14px 0 6px; background: linear-gradient(180deg, rgba(238, 242, 255, 0), var(--bg) 30%); }
.bas-fixe .btn { min-height: 54px; font-size: 16px; }

/* ---------- console de l'organisateur ---------- */
.zone-entete { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.zone-entete h1 { margin-bottom: 4px; }
.deux-col { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.depot { border: 2px dashed var(--ln); border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; background: #F7F9FF; }
.depot .apercu { width: 92px; aspect-ratio: 4/5; border-radius: 12px; flex: none; overflow: hidden; box-shadow: 0 6px 16px rgba(10, 26, 74, .2);
  background: radial-gradient(circle at 85% 10%, rgba(255, 106, 26, .75), transparent 50%), linear-gradient(150deg, var(--nv), var(--nv2)); }
.depot .apercu img { width: 100%; height: 100%; object-fit: cover; }
.depot .apercu.pdf { background: linear-gradient(135deg, var(--or), var(--od)); color: #fff; display: grid; place-items: center; font: 700 22px var(--titre); }
.club-bloc { background: #fff; border: 1px solid var(--ln); border-radius: 20px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--ombre); }
.club-bloc > header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(135deg, #F7F9FF, #fff); border-bottom: 1px solid var(--ln); }
.club-bloc > header h3 { font-size: 21px; color: var(--nv); }
.club-bloc .corps { overflow-x: auto; }
.barre-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--ln); background: #FBFCFF; }
.barre-actions input { min-height: 38px; border: 1.5px solid var(--ln); border-radius: 12px; padding: 0 12px; min-width: 220px; flex: 1; }
.cat-edit input, .cat-edit select { width: 100%; min-height: 36px; border: 1.5px solid var(--ln); border-radius: 10px; padding: 4px 8px; font-size: 13px; background: #fff; }
.cat-edit td { padding: 6px 8px; }
.lien-partage { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #F7F9FF; border: 1px solid var(--ln); border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.lien-partage code { overflow-wrap: anywhere; flex: 1; min-width: 160px; font: 12px monospace; color: var(--mu); }
.etapes { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: e; }
.etapes li { counter-increment: e; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ln); }
.etapes li:first-child { border-top: 0; }
.etapes li::before { content: counter(e); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--titre); background: var(--wa); color: var(--od); flex: none; }
.etapes li.fait::before { content: '✓'; background: var(--gn); color: #fff; }
.etapes a { color: var(--tx); font-weight: 600; text-decoration: none; }
.connexion { max-width: 440px; margin: 24px auto; }
.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--nv); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 12px 30px rgba(6, 14, 51, .35); }
.toast.erreur { background: var(--rouge); }

/* ---------- feuille « Plus » (mobile) ---------- */
#feuille .fond { position: fixed; inset: 0; background: rgba(6, 14, 51, .35); z-index: 29; }
#feuille .sh { position: fixed; left: 12px; right: 12px; bottom: 92px; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 20px 50px rgba(10, 26, 74, .35); z-index: 30; }
#feuille .sh a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; color: var(--tx); text-decoration: none; font-weight: 600; }
#feuille .sh a:hover { background: var(--bg); }
#feuille .sh .ic { color: var(--od); }

@media (max-width: 980px) { .deux-col { grid-template-columns: 1fr; } .fiche { grid-template-columns: 1fr; } .fiche .affiche { position: relative; top: 0; max-width: 420px; } }
@media (max-width: 820px) {
  #coque { display: block; }
  #sb { display: none; }
  #hd { position: sticky; top: 0; z-index: 20; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: linear-gradient(135deg, var(--nv), var(--nv2)); color: #C9D4FF; }
  #hd .brand { display: flex; color: #fff; }
  #hd .brand b { font-size: 22px; }
  #hd .lgo { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  #hd .ctx { text-align: right; font-size: 12px; max-width: 55%; line-height: 1.3; }
  #hd .compte a { color: #fff; }
  #app { padding: 14px 14px 120px; }
  h1 { font-size: 30px; }
  .hero { padding: 20px; border-radius: 24px; flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 32px; }
  .hero .ring { align-self: flex-end; margin-top: -84px; width: 92px; height: 92px; }
  .hero .ring b { font-size: 24px; }
  .hero-annonces .stat { display: none; }
  .cd, .carte { padding: 14px; border-radius: 18px; }
  .tiles { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .hero .btn-action { width: 100%; }
  #bn { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--ln); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; align-items: flex-end; box-shadow: 0 -10px 30px rgba(10, 26, 74, .1); }
  #bn:empty { display: none; }
  #bn a, #bn button { flex: 1; border: 0; background: none; color: var(--mu); font: 600 11px Inter; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 52px; text-decoration: none; cursor: pointer; }
  #bn .on { color: var(--od); }
  #bn .fab { flex: none; width: 62px; height: 62px; border-radius: 50%; margin-top: -30px; background: linear-gradient(135deg, var(--or), var(--or2)); color: #fff; box-shadow: 0 10px 26px rgba(255, 106, 26, .55); justify-content: center; border: 4px solid #fff; padding: 0; min-height: 0; }
  #bn .fab .ic { width: 28px; height: 28px; }
  .mur { grid-template-columns: 1fr; gap: 16px; }
  .affiche-carte { display: grid; grid-template-columns: 42% 1fr; }
  .affiche-carte .affiche { aspect-ratio: auto; height: 100%; min-height: 220px; }
  .affiche-carte .affiche-date { left: 8px; top: 8px; min-width: 50px; padding: 4px 8px; }
  .affiche-carte .affiche-date b { font-size: 24px; }
  .affiche-carte .affiche-generee { padding: 72px 10px 12px; }
  .affiche-carte .affiche-generee .disc { font-size: 10px; }
  .affiche-carte .affiche-generee .t { font-size: 19px; line-height: 1; -webkit-line-clamp: 3; }
  .affiche-carte .affiche-generee .l { display: none; }
  .affiche-pied .t { font-size: 19px; }
  .tableau { font-size: 13px; }
  .bas-fixe { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: 108px; }
}
.seg button { border-radius: 14px; border: 2px solid var(--nv); background: #fff; color: var(--nv); font: 700 16px Inter; cursor: pointer; min-height: 54px; }
.seg button[aria-pressed="true"] { background: var(--nv); color: #fff; box-shadow: 0 8px 18px rgba(10, 26, 74, .25); }
.fait .ic-t { display: block; }
#hd .ctx { font-weight: 600; }
@media (min-width: 821px) { #hd { justify-content: flex-start; } }
.hero { position: relative; }
@media (max-width: 820px) {
  .hero .ring { position: absolute; top: 18px; right: 16px; margin: 0; width: 74px; height: 74px; }
  .hero .ring::before { inset: 7px; }
  .hero .ring b { font-size: 20px; }
  .hero .ring span { font-size: 9.5px; }
  .hero:has(.ring) .eyebrow, .hero:has(.ring) h1, .hero:has(.ring) p { padding-right: 84px; }
}
