/* ============================================================
   Kite Booker — les styles des ajouts du 05/11 au soir
   composants maison (liste déroulante), calendrier de réservation, dossier mineur,
   matériel et EPI, pré-inscriptions, équipe, espace éditeur, témoin de configuration.
   ⚠ Avant de nommer une classe : grep app.css et app-gestion.css (« .acc » était déjà pris).
   ============================================================ */

/* ---------- la liste déroulante maison (KBC.select) ---------- */
.csel { position: relative; min-width: 0; }
.csel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 44px; padding: 0 10px 0 12px; border-radius: var(--r-s);
  border: 1px solid var(--ligne-2); background: var(--panneau); color: var(--encre); text-align: left; cursor: pointer; }
.csel-btn:hover { border-color: var(--acc); }
.csel-btn:focus-visible, .csel.ouvert .csel-btn { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-s); }
.csel-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-btn svg.ic { flex: none; width: 16px; height: 16px; color: var(--mut); transition: transform .2s var(--doux); }
.csel.ouvert .csel-btn svg.ic { transform: rotate(180deg); }
.csel.petit .csel-btn { height: 34px; font-size: 12.5px; }
.csel-liste { position: fixed; z-index: 90; max-width: min(420px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain; padding: 5px;
  border-radius: 10px; border: 1px solid var(--ligne-2); background: var(--panneau); box-shadow: var(--ombre-l); animation: csel-arrive .14s var(--doux); }
@keyframes csel-arrive { from { opacity: 0; transform: translateY(-4px); } }
.csel-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 7px;
  background: none; color: var(--encre); text-align: left; font-size: 13.5px; cursor: pointer; }
.csel-opt:hover, .csel-opt:focus-visible { outline: none; background: var(--creux); }
.csel-opt[aria-selected="true"] { color: var(--acc); font-weight: 600; }
.csel-coche { width: 15px; height: 15px; flex: none; opacity: 0; }
.csel-opt[aria-selected="true"] .csel-coche { opacity: 1; }
.matrice .moment .csel { min-width: 200px; }
.aide-ligne { font-size: 12.5px; color: var(--mut); align-self: center; }

/* ---------- le calendrier de la réservation publique (aux couleurs de l'école) ---------- */
.pub-cal { border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px; background: rgba(255, 255, 255, .03); }
.pub-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pub-cal-tete b { font-size: 15px; }
.pub-cal-nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #eef4fa; font-size: 20px; line-height: 1; cursor: pointer; }
.pub-cal-nav[disabled] { opacity: .3; cursor: default; }
.pub-cal-sem, .pub-cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pub-cal-sem span { text-align: center; font-size: 11px; color: #a9c3d6; padding: 4px 0; }
.pub-cal-j { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; min-height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04); color: #eef4fa; font-size: 14px; cursor: pointer; }
.pub-cal-j b { font-weight: 700; }
.pub-cal-j em { position: absolute; bottom: 2px; left: 0; right: 0; font-style: normal; font-size: 8.5px; color: var(--pa); }
.pub-cal-j.libre { border-color: rgba(95, 191, 140, .45); }
.pub-cal-j.peu { border-color: rgba(214, 165, 68, .65); }
.pub-cal-j.plein, .pub-cal-j.passe, .pub-cal-j.loin { opacity: .3; cursor: default; }
.pub-cal-j.plein { text-decoration: line-through; }
.pub-cal-j.on { background: var(--pa); border-color: var(--pa); color: var(--pa-t); }
.pub-cal-j.on em { color: var(--pa-t); }
.pub-cal-leg { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 11px; color: #a9c3d6; }
.pub-cal-leg span { display: inline-flex; align-items: center; gap: 5px; }
.pub-cal-leg i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid; }
.pub-cal-leg i.libre { border-color: #5fbf8c; } .pub-cal-leg i.peu { border-color: #d6a544; } .pub-cal-leg i.plein { border-color: rgba(255, 255, 255, .3); opacity: .5; }
.pub-cal-hz { margin-left: auto; }
.pub-date-ch { font-style: normal; font-weight: 600; color: var(--pa); margin-left: 6px; }
.pub-slots.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .pub-slots.trois { grid-template-columns: 1fr 1fr; } .pub-cal { padding: 8px; } .pub-cal-grille, .pub-cal-sem { gap: 3px; } .pub-cal-hz { margin-left: 0; } }

/* ---------- le dossier d'un mineur, l'individuelle accident ---------- */
.pub-age { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--pa); font-size: 11px; font-weight: 700; }
.pub-mineur { margin: 0 12px 12px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .03); }
.pub-mineur > b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pub-mineur > b svg.ic { width: 18px; height: 18px; color: var(--pa); }
.pub-mineur > p { margin: 4px 0 10px; font-size: 12.5px; color: #a9c3d6; }
.pub-piece { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.pub-piece > span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.pub-piece > span svg.ic { width: 15px; height: 15px; }
.pub-piece.ok > span { background: var(--pa); color: var(--pa-t); }
.pub-piece b { display: block; font-size: 13px; } .pub-piece em { display: block; font-style: normal; font-size: 11.5px; color: #a9c3d6; }
.pub-piece i { font-style: normal; font-size: 12px; color: var(--pa); font-weight: 700; }
.pub-piece button { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #eef4fa; font-weight: 600; cursor: pointer; }
.pub-mineur-pied { margin: 8px 0 0; font-size: 11.5px; color: #a9c3d6; }
.pub-ia { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 12.5px; color: #cfe0ec; }
.pub-ia svg.ic { width: 16px; height: 16px; flex: none; color: var(--pa); margin-top: 1px; }

/* ---------- l'accueil : neuf carrés (3 × 3 dès qu'il y a la place) ---------- */
.tuiles > .tuile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: auto; min-height: 132px; }
@media (min-width: 700px) {
  .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tuiles > .tuile:last-child:nth-child(odd) { grid-column: auto; }
  .tuiles > .tuile, .tuiles > .tuile:last-child:nth-child(odd) { aspect-ratio: auto; min-height: 168px; }
  .tuiles .tuile h2 { font-size: 16.5px; }
  .tuiles .tuile .nb b { font-size: 26px; }
  .tuiles .tuile .repart { flex-wrap: wrap; gap: 4px 10px; }
}

/* ---------- MATÉRIEL ET EPI ---------- */
.mat-actions { margin-bottom: var(--pas-l); }
.mat-deux { display: grid; gap: var(--pas-l); }
@media (min-width: 1100px) { .mat-deux { grid-template-columns: 1fr 1fr; align-items: start; } }
.mat-al { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 11px var(--pad); border-top: 1px solid var(--ligne); color: inherit; text-decoration: none; }
.mat-al:hover { background: var(--creux); }
.mat-al .rond { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.mat-al .rond.crit { background: var(--crit-s); color: var(--crit); } .mat-al .rond.att { background: var(--att-s); color: var(--att); }
.mat-al .rond svg.ic { width: 17px; height: 17px; }
.mat-al .txt b { display: block; font-size: 13.5px; } .mat-al .txt span { font-size: 12.5px; color: var(--mut); }
.mat-al > svg.ic { width: 16px; height: 16px; color: var(--mut); }
.mat-id { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--creux); font: 600 11.5px var(--mono); color: var(--encre-2); vertical-align: 1px; }
.mat-sortie .txt span { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mat-sortie .txt span svg.ic { width: 13px; height: 13px; }
.mat-sortie.oubli { background: color-mix(in srgb, var(--crit-s) 60%, transparent); }
.mat-groupe { margin-top: var(--pas-l); }
.mat-groupe h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.mat-groupe h3 span { font: 600 11px var(--mono); color: var(--mut); }
.mat-groupe h3 svg.ic { width: 17px; height: 17px; color: var(--acc); }
.tl-ligne.mat-ligne { grid-template-columns: 4px 112px minmax(0, 1fr) auto; text-align: left; }
.tl-ligne.mat-ligne:has(.mat-case) { grid-template-columns: 4px 34px minmax(0, 1fr) auto; }
.mat-ligne .tl-s { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.mat-ligne.choisie { background: var(--acc-s); }
.mat-case { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--ligne-2); background: var(--panneau); display: grid; place-items: center; color: transparent; cursor: pointer; }
.mat-case svg.ic { width: 15px; height: 15px; }
.mat-case[aria-checked="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.mat-ouvrir { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.mat-barre-sel { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--pas); padding: 8px; border-radius: var(--r);
  border: 1px solid var(--ligne); background: var(--panneau); box-shadow: var(--ombre); }
.mat-nsel { font-size: 12.5px; color: var(--mut); } .mat-nsel b { color: var(--encre); }
.mat-sel-act { display: flex; flex-wrap: wrap; gap: 6px; }
.mat-barre-sel > .btn-plein { margin-left: auto; }
@media (max-width: 900px) { .mat-barre-sel { top: calc(var(--tete-m) + 6px); } }
@media (max-width: 640px) {
  .tl-ligne.mat-ligne:has(.mat-case) { grid-template-columns: 4px 30px minmax(0, 1fr); }
  .tl-ligne.mat-ligne:has(.mat-case) .tl-s { grid-column: 3; justify-content: flex-start; }
  .mat-ouvrir { grid-template-columns: 1fr; gap: 2px; }
  /* 12/11/2026 — « du contenu se chevauche » (fiche EPI, téléphone) : la règle générale des listes donne à .tl-n et .tl-c les zones
     « n » et « c » ; ici elles sont DANS le bouton .mat-ouvrir, qui n'a pas ces zones → les deux tombaient dans la même case. */
  .mat-ouvrir .tl-n, .mat-ouvrir .tl-c { grid-area: auto; }
  .tl-ligne.mat-ligne { grid-template-columns: 4px 80px minmax(0, 1fr); }
  .tl-ligne.mat-ligne .tl-s { grid-column: 2 / -1; justify-content: flex-start; }
  .mat-barre-sel > .btn-plein { margin-left: 0; }
}
.mat-fiche { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.mat-qr { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; color: var(--mut); }
.mat-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mat-chiffres div { display: grid; gap: 1px; padding: 10px; border-radius: var(--r-s); background: var(--creux); }
.mat-chiffres span { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.mat-chiffres b { font-size: 18px; } .mat-chiffres em { font-style: normal; font-size: 11.5px; color: var(--mut); }
@media (max-width: 520px) { .mat-fiche { grid-template-columns: 1fr; } }
.mat-rev { position: relative; display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: var(--r-s); background: var(--creux); }
.mat-rev b { display: block; font-size: 13.5px; } .mat-rev span { font-size: 12.5px; color: var(--mut); }
.mat-rev i { display: block; height: 8px; border-radius: 99px; background: var(--ligne); overflow: hidden; }
.mat-rev i::after { content: ""; display: block; height: 100%; width: var(--p); border-radius: 99px; background: var(--bon); }
.mat-rev.att i::after { background: var(--att); } .mat-rev.crit i::after { background: var(--crit); }
.mat-rev.att b { color: var(--att); } .mat-rev.crit b { color: var(--crit); }
.mat-h4 { margin: 16px 0 6px; font-size: 13px; }
.mat-pack { display: flex; flex-wrap: wrap; gap: 8px; }
.mat-puce { display: grid; gap: 1px; min-width: 120px; padding: 9px 12px; border-radius: var(--r-s); border: 1px solid var(--ligne); background: var(--panneau); color: inherit; text-align: left; cursor: pointer; }
.mat-puce b { font: 700 12px var(--mono); } .mat-puce span { font-size: 12.5px; color: var(--encre-2); }
.mat-puce em { font-style: normal; font-size: 11.5px; color: var(--acc); font-weight: 600; }
.mat-puce.sortie { border-color: var(--acc); background: var(--acc-s); }
.mat-trace td, .mat-trace th { text-align: left; white-space: nowrap; }
.mat-b { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.mat-b .l { color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-b .t { height: 10px; border-radius: 99px; background: var(--creux); overflow: hidden; }
.mat-b .t i { display: block; height: 100%; border-radius: 99px; background: var(--acc); }
.mat-b .t i.att { background: var(--att); }
.mat-b .v { font-variant-numeric: tabular-nums; color: var(--encre); font-weight: 600; }
.mat-note { margin: 10px 0 0; font-size: 12.5px; color: var(--mut); }
.mat-mois { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; }
.mat-mois div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 3px; }
.mat-mois i { align-self: end; display: block; border-radius: 6px 6px 2px 2px; background: var(--acc); }
.mat-mois b { font-size: 11.5px; } .mat-mois span { font-size: 11px; color: var(--mut); }

/* le geste du moniteur (téléphone d'abord) */
.scan-carte { max-width: 520px; margin: 0 auto; padding: 22px 18px; text-align: center; border-radius: 18px; border: 1px solid var(--ligne); background: var(--panneau); box-shadow: var(--ombre); }
.scan-ic { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.scan-ic svg.ic { width: 28px; height: 28px; }
.scan-carte h2 { margin: 0; font-size: 20px; } .scan-carte > p { margin: 4px 0 12px; color: var(--mut); font-size: 13.5px; }
.scan-sous { margin: 10px 0 0; font-size: 13px; color: var(--encre-2); }
.scan-btns { display: grid; gap: 10px; margin-top: 16px; }
.btn.grand { min-height: 54px; font-size: 15.5px; border-radius: 14px; }
.scan-hors { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin: 16px 0 0; font-size: 12px; color: var(--mut); text-align: left; }
.scan-hors svg.ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.scan-viseur { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: #0b0f17; display: grid; place-items: end center; padding: 12px; overflow: hidden; }
.scan-viseur::before { content: ""; position: absolute; inset: 18% 24%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scan-viseur i { position: absolute; left: 24%; right: 24%; top: 18%; height: 2px; background: #5fbf8c; animation: scan-ligne 2.2s ease-in-out infinite alternate; }
@keyframes scan-ligne { to { top: 82%; } }
@media (prefers-reduced-motion: reduce) { .scan-viseur i { animation: none; top: 50%; } }
.scan-viseur span { position: relative; color: #cfd6e4; font-size: 12px; }
.scan-demo { display: grid; gap: 8px; margin-top: 12px; }
.scan-demo .btn { justify-content: flex-start; }
.duree { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pas-a-pas.grand button { width: 44px; height: 44px; font-size: 20px; }
.pas-a-pas.grand b { min-width: 72px; text-align: center; font-size: 16px; }

/* la fiche de vie EPI, au format du modèle de l'école */
.fiche-epi { font-size: 12.5px; }
.fe-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.fe-tete img { width: 92px; height: auto; background: #0b1626; border-radius: 6px; padding: 6px 8px; }
.fe-tete b { display: block; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; } .fe-tete span { color: #5a6275; }
.fe-qr svg { border: 1px solid #e3e6ee; }
.fiche-epi table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.fiche-epi th { text-align: center; padding: 7px; background: #eef0f5; border: 1px solid #c9cfdc; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fiche-epi td { padding: 7px 9px; border: 1px solid #c9cfdc; vertical-align: top; width: 50%; }
.fe-col td { text-align: center; font-weight: 700; background: #f6f7fa; font-size: 11.5px; letter-spacing: .06em; }
.fe-hist td b, .fe-hist td span, .fe-hist td i { display: block; }
.fe-hist td i { font-style: normal; font-weight: 700; color: #8a5a00; }
.fe-pied { margin: 8px 0 0; font-size: 11.5px; color: #4a5266; }
.a4-fiche + .a4-fiche { margin-top: 24px; }
.etiquettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.etq { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px dashed #b9c0cf; border-radius: 8px; }
.etq b { display: block; font: 700 18px var(--mono); } .etq span { display: block; font-size: 12.5px; } .etq em { display: block; font-style: normal; font-size: 10.5px; color: #5a6275; margin-top: 4px; }
@media print {
  .a4-fiche { break-after: page; } .a4-fiche:last-of-type { break-after: auto; }
  .a4-fiche + .a4-fiche { margin-top: 0; }
  .fe-tete img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fiche-epi th, .fe-col td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* la vérification groupée */
.vf-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.vf-p { display: grid; gap: 1px; padding: 9px 10px; border-radius: var(--r-s); border: 1px solid var(--ligne-2); background: var(--panneau); color: inherit; text-align: left; cursor: pointer; }
.vf-p b { font: 700 13px var(--mono); } .vf-p span { font-size: 12px; color: var(--mut); } .vf-p em { font-style: normal; font-size: 11.5px; color: var(--bon); font-weight: 600; }
.vf-p.pb { border-color: var(--crit); background: var(--crit-s); } .vf-p.pb em { color: var(--crit); }

/* ---------- LES LOGOS SANS CADRE (05/11 soir, demandé : « enlève le cadre bleu foncé derrière les logos, ça fait moche ») ----------
   Les logos se posent directement sur la surface. En thème sombre, un logo à lettres foncées prend sa variante à lettres claires
   (« COACHING » est presque noir dans l'original). */
.plaque, .cnx-carte .plaque, .acc-tete .plaque, .cote-logos .plaque, .logos-regl .plaque { background: none; padding-left: 0; padding-right: 0; }
.cnx-carte .plaque { padding: 26px 20px 6px; }
.plaque .sep { background: var(--ligne-2); }
.fe-tete img { background: none; padding: 0; }

/* ---------- « Mon matériel », la prise en série, tout déposer (05/11 soir) ---------- */
.mat-moi { margin-bottom: var(--pas-l); border-color: color-mix(in srgb, var(--acc) 40%, var(--ligne)); }
.mat-moi .bloc-tete p { margin: 2px 0 0; font-size: 12.5px; color: var(--mut); }
.mat-sortie.a-moi { background: color-mix(in srgb, var(--acc-s) 55%, transparent); }
.scan-q { margin: 14px 0 0; font-weight: 600; font-size: 14.5px; }
.scan-ic.ok { background: var(--bon); }
.scan-ok h2 { font-size: 19px; }
.scan-serie { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; padding: 10px; border-radius: var(--r-s); background: var(--creux); font-size: 12.5px; }
.scan-serie b { width: 100%; }
.td-ligne { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.td-ligne b { display: block; font-size: 14px; } .td-ligne > div > span { font-size: 12.5px; color: var(--mut); }
.td-ligne .puces { margin: 0; }
.mat-fiche.sans-qr { grid-template-columns: 1fr; }
.mat-fiche.sans-qr .mat-chiffres { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ---------- le témoin de configuration ---------- */
.cfg-temoin { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--ligne-2); background: var(--panneau); color: var(--encre); cursor: pointer; }
.cfg-temoin svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.cfg-temoin circle { fill: none; stroke-width: 4; }
.cfg-temoin .fond { stroke: var(--creux); } .cfg-temoin .plein { stroke: var(--att); stroke-linecap: round; }
.cfg-temoin.fini .plein { stroke: var(--bon); }
.cfg-temoin b { font-size: 13.5px; font-variant-numeric: tabular-nums; } .cfg-temoin span { font-size: 12px; color: var(--mut); }
.cfg-temoin:hover { border-color: var(--acc); }

@media (max-width: 560px) { .acc-actions .cfg-temoin span { display: none; } }
.cfg-barre { height: 8px; border-radius: 99px; background: var(--creux); overflow: hidden; margin: 8px 0 12px; }
.cfg-barre i { display: block; height: 100%; border-radius: 99px; background: var(--att); }
.cfg-h { margin: 14px 0 4px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.cfg-l { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--ligne); color: inherit; text-decoration: none; border-radius: 6px; }
.cfg-l:hover { background: var(--creux); }
.cfg-c { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--att-s); color: var(--att); }
.cfg-l.fait .cfg-c { background: var(--bon-s); color: var(--bon); }
.cfg-c svg.ic { width: 16px; height: 16px; }
.cfg-t b { display: block; font-size: 13.5px; } .cfg-t em { display: block; font-style: normal; font-size: 12.5px; color: var(--mut); }
.cfg-l > svg.ic { width: 15px; height: 15px; color: var(--mut); }
.cfg-l.fait .cfg-t b { color: var(--encre-2); font-weight: 500; }

/* ---------- le statut de TVA ---------- */
.tva-ca { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-s); background: var(--creux); }
.tva-ca b { font-size: 17px; } .tva-ca span { font-size: 12px; color: var(--mut); }
.tva-ca i { display: block; height: 7px; border-radius: 99px; background: var(--ligne); overflow: hidden; }
.tva-ca i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--acc); }
.tva-mention { display: flex; gap: 8px; align-items: center; margin: 10px 0; padding: 10px 12px; border-radius: var(--r-s); border: 1px dashed var(--ligne-2); font-size: 13px; }
.tva-mention svg.ic { width: 16px; height: 16px; color: var(--acc); flex: none; }

/* ---------- PRÉ-INSCRIPTIONS ---------- */
.pi-grille { display: grid; gap: var(--pas); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pi-carte { position: relative; display: grid; gap: 6px; padding: 14px 14px 14px 18px; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--panneau); box-shadow: var(--ombre); color: inherit; text-decoration: none; overflow: hidden; }
.pi-carte:hover { border-color: var(--acc); }
.pi-carte .filet { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.pi-carte > b { font-size: 15px; } .pi-carte > span { font-size: 12.5px; color: var(--mut); }
.pi-carte .etiq { justify-self: start; font-style: normal; }
.pi-jauge { display: flex; height: 10px; border-radius: 99px; background: var(--creux); overflow: hidden; margin-top: 4px; }
.pi-jauge i { display: block; height: 100%; } .pi-jauge i.conf { background: var(--bon); } .pi-jauge i.cours { background: var(--att); }
.pi-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--mut); }
.pi-leg span { display: inline-flex; align-items: center; gap: 5px; } .pi-leg b { color: var(--encre); }
.pi-leg i { width: 8px; height: 8px; border-radius: 3px; } .pi-leg i.conf { background: var(--bon); } .pi-leg i.cours { background: var(--att); }
.pi-ligne .txt b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ---------- ÉQUIPE ---------- */
.eq-check { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* ---------- ESPACE ÉDITEUR ---------- */
.ed-offres { display: grid; gap: var(--pas-l); }
@media (min-width: 1100px) { .ed-offres { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.ed-mods { display: grid; gap: 4px; margin-top: 12px; }
.ed-mod { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 8px; border-radius: 7px; border: 0; background: none; color: var(--mut); text-align: left; font-size: 12.5px; cursor: pointer; }
.ed-mod svg.ic { width: 14px; height: 14px; flex: none; }
.ed-mod.on { color: var(--encre); background: var(--bon-s); } .ed-mod.on svg.ic { color: var(--bon); }
.ed-mod:hover { outline: 1px solid var(--ligne-2); }
.tl-ligne.ed-ligne { grid-template-columns: 4px 150px minmax(0, 1fr) 210px; }
@media (max-width: 760px) { .tl-ligne.ed-ligne { grid-template-columns: 4px minmax(0, 1fr); } .tl-ligne.ed-ligne > span:not(.filet) { grid-column: 2; } }
.tuiles .tuile .nb { flex-wrap: wrap; row-gap: 0; }

/* ---------- LA FICHE DE VIE EPI = LE MODÈLE DE L'ÉCOLE À L'IDENTIQUE (MODELE.docx relevé le 05/11) ----------
   A4, marges 2,54 cm, Arial 11 pt ; un tableau de deux colonnes égales, filets noirs 1 pt ; lignes de 0,79 cm au moins ;
   bandeaux noirs, texte blanc gras centré ; sous le tableau, la mention centrée. Remplace les anciennes règles .fe-*. */
.papier.fiche-epi { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-size: 11pt; line-height: 1.15; color: #000; background: #fff; }
.fiche-epi .fe-t { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; }
.fiche-epi .fe-t th, .fiche-epi .fe-t td { width: 50%; border: 1pt solid #000; padding: 0 5.4pt; height: 0.79cm; vertical-align: top; text-align: left; font-size: 11pt; letter-spacing: 0; text-transform: none; background: #fff; color: #000; }
.fiche-epi .fe-t th { background: #000; color: #fff; font-weight: 700; text-align: center; }
.fiche-epi .fe-t p { margin: 0; }
.fiche-epi .fe-garde { margin: 11pt 0 0; text-align: center; font-size: 11pt; }
.a4-fiche .papier.fiche-epi { padding: clamp(14px, 6vw, 25.4mm); min-height: min(297mm, 140vw); border-radius: 0; box-shadow: none; }
@media print {
  .a4-fiche { page: fiche-epi; }
  @page fiche-epi { size: A4; margin: 25.4mm; }
  .a4-fiche .papier.fiche-epi { padding: 0; min-height: 0; }
  .fiche-epi .fe-t th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ed-nb { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--ligne-2); background: var(--panneau); color: var(--encre-2); font-size: 11.5px; cursor: pointer; }
.ed-nb svg.ic { width: 13px; height: 13px; }
.ed-nb:hover { border-color: var(--acc); color: var(--acc); }
/* les marges du modèle (2,54 cm) à l'écran aussi, dès que la page A4 tient en largeur */
.a4-fiche .papier.fiche-epi { padding: 25.4mm; }
@media (max-width: 820px) { .a4-fiche .papier.fiche-epi { padding: 14px; } }

/* ---------- le calendrier du back-office (reporter un cours) : n'importe quelle date, sur 24 mois ---------- */
.kbcal-zone { display: grid; gap: var(--pas-l); }
@media (min-width: 720px) { .kbcal-zone { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.kbcal { border: 1px solid var(--ligne); border-radius: var(--r); padding: 10px; background: var(--panneau); }
.kbcal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kbcal-tete b { font-size: 15px; }
.kbcal-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ligne-2); background: var(--panneau); color: var(--encre); font-size: 19px; cursor: pointer; }
.kbcal-nav[disabled] { opacity: .3; cursor: default; }
.kbcal-sem, .kbcal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kbcal-sem span { text-align: center; font-size: 11px; color: var(--mut); padding: 3px 0; }
.kbcal-j { display: grid; place-items: center; aspect-ratio: 1 / 1; min-height: 36px; border-radius: 9px; border: 1px solid var(--ligne); background: var(--panneau); color: var(--encre); font-size: 13.5px; cursor: pointer; }
.kbcal-j.libre { border-color: color-mix(in srgb, var(--bon) 45%, var(--ligne)); }
.kbcal-j.peu { border-color: color-mix(in srgb, var(--att) 60%, var(--ligne)); }
.kbcal-j.plein { background: var(--creux); color: var(--mut); }
.kbcal-j.passe { opacity: .3; cursor: default; }
.kbcal-j.actuel { box-shadow: inset 0 0 0 2px var(--mut); }
.kbcal-j.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.kbcal-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--mut); }
.kbcal-leg span { display: inline-flex; align-items: center; gap: 5px; }
.kbcal-leg i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid; }
.kbcal-leg i.libre { border-color: var(--bon); } .kbcal-leg i.peu { border-color: var(--att); } .kbcal-leg i.plein { border-color: var(--ligne-2); background: var(--creux); } .kbcal-leg i.actuel { border-color: var(--mut); }
.kbcal-ch { margin: 0 0 8px; font-weight: 600; }
.kbcal-slots { grid-template-columns: 1fr 1fr; }

/* ---------- les formulaires d'édition du matériel (05/11 soir) ---------- */
.fm-grille { display: grid; gap: 12px; }
@media (min-width: 640px) { .fm-grille { grid-template-columns: 1fr 1fr; } .fm-grille .champ.large { grid-column: 1 / -1; } }
.fm-aide { font-size: 12px; color: var(--mut); }
.fm-date { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px; gap: 6px; }
.arm-liste { display: grid; gap: 8px; margin-bottom: 10px; }
.arm-l { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.arm-date { display: flex; gap: 6px; }
.arm-date .csel { min-width: 120px; } .arm-date .csel.arm-a, .arm-date .arm-a { min-width: 86px; }
@media (max-width: 560px) { .arm-l { grid-template-columns: minmax(0, 1fr) auto; } .arm-date { grid-column: 1; } .arm-l > .btn { grid-row: 1; grid-column: 2; } }
/* les lignes de l'armement s'alignent, datées ou non : la colonne de date a une largeur fixe */
.arm-l { grid-template-columns: minmax(0, 1fr) 240px auto; }
.arm-date .csel { flex: 1 1 0; min-width: 0; }
@media (max-width: 560px) { .arm-l { grid-template-columns: minmax(0, 1fr) auto; } .arm-date { grid-column: 1; } }

/* ===== 15/11 — 3.2 : le vent des spots (agenda, fiche du cours, Réglages) ===== */
/* Sous 1240 px la colonne passe sous les cours : le bloc du vent, lui, REMONTE en tête de l'agenda (on le regarde avant le reste) */
@media (max-width: 1239px) { .ag-grille > .colonne { display: contents; } .ag-grille > .colonne > .vent-bloc { order: -1; } }
.vent-bloc .bloc-corps { display: grid; gap: 10px; }
.vt-jours { justify-self: start; max-width: 100%; overflow-x: auto; }
.vt-jours button { height: 30px; padding: 0 10px; }
.vt-heures { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.vt-axe { margin-bottom: -4px; }
.vt-axe span { font: 600 10px/1 var(--mono); color: var(--mut); text-align: center; }
.vt-spot { display: grid; gap: 6px; }
.vt-nom { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; }
.vt-nom i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.vt-nom b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-nom span { margin-left: auto; flex: none; font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.vt-h { display: grid; justify-items: center; gap: 3px; padding: 6px 0 5px; border-radius: 7px; background: var(--creux); color: var(--encre-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.vt-h b { font-weight: 750; }
.vt-h.faible { color: var(--mut); }
.vt-h.bon { color: var(--bon); background: var(--bon-s); }
.vt-h.fort { color: var(--att); background: var(--att-s); }
.vt-h.trop { color: var(--crit); background: var(--crit-s); }
.vt-fl { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vt-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; font-size: 11.5px; color: var(--mut); }
.vt-legende span { display: inline-flex; align-items: center; gap: 5px; }
.vt-legende i.vt-h { display: inline-block; width: 11px; height: 11px; padding: 0; border-radius: 3px; background: currentColor; opacity: .55; }
.vt-maj { margin: 0; font-size: 11.5px; color: var(--mut); }
.vt-manque { display: flex; gap: 7px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--att-s); color: var(--att); font-size: 12.5px; }
.vt-manque svg.ic { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.vt-manque a { color: inherit; font-weight: 700; }
.etiq.vt-puce { gap: 4px; font-variant-numeric: tabular-nums; }
.vt-cours { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 9px; background: var(--creux); font-size: 12.5px; color: var(--encre-2); }
.vt-cours > svg.ic { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.vt-cours b { color: var(--encre); }
.vt-cours .vt-fl { margin: 0 2px 0 4px; vertical-align: -1px; }
.vt-cours.bon { background: var(--bon-s); } .vt-cours.bon > svg.ic { color: var(--bon); }
.vt-cours.fort { background: var(--att-s); } .vt-cours.fort > svg.ic { color: var(--att); }
.vt-cours.trop { background: var(--crit-s); } .vt-cours.trop > svg.ic { color: var(--crit); }
/* Réglages : la liste des spots, et ce qu'on a lu du lien */
.sp-liste { display: grid; border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; }
.sp-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--ligne); }
.sp-ligne:first-child { border-top: 0; }
.sp-ligne > svg.ic { width: 17px; height: 17px; color: var(--mut); }
.sp-t { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--mut); }
.sp-t b { font-size: 13.5px; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ok, .sp-err { display: flex; gap: 5px; align-items: flex-start; font-weight: 600; }
.sp-ok { color: var(--bon); } .sp-err { color: var(--att); }
.sp-ok svg.ic, .sp-err svg.ic { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.oblig { margin-left: 6px; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--att); }
.sp-lu:empty { display: none; }
.sp-lu { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--encre-2); }
.sp-lu b { display: block; color: var(--encre); }
.sp-lu svg.ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.sp-lu.bon { background: var(--bon-s); } .sp-lu.bon svg.ic { color: var(--bon); }
.sp-lu.att { background: var(--att-s); } .sp-lu.att svg.ic { color: var(--att); }
/* 01/12 — 3.102 : le pilote automatique, en tête des propositions — comme la maquette */
.prop.pilote-tete { background: var(--acc-s); border-color: transparent; }
.prop.pilote-tete .t svg.ic, .prop.pilote .t svg.ic { color: var(--acc); }
.prop.pilote-tete p { margin-bottom: 0; }
.prop.pilote-tete .rang-btn { margin-top: 8px; }
/* 30/11 — 3.100 : la houle (une ligne sous le vent, chaque lecture couvre ses heures) et le bouton des marées — comme la maquette */
.vt-houle { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; margin-top: -2px; }
.vt-w { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 4px; min-width: 0; padding: 4px 2px; border-radius: 7px; background: var(--eau-s); color: var(--encre-2); font-size: 11.5px; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt-w b { font-weight: 700; color: var(--encre); }
.vt-w small { flex-basis: 100%; text-align: center; font-size: 10.5px; color: var(--mut); }   /* la période toujours dessous : toutes les cases ont la même forme */
.vt-w .vt-fl { color: var(--eau); }
.vt-legende i.vt-w { display: inline-block; width: 11px; height: 11px; padding: 0; border-radius: 3px; background: var(--eau); opacity: .55; }
.vt-nom .vt-maree { margin-left: auto; flex: none; height: 28px; padding: 0 10px; font-size: 12px; gap: 5px; }
.vt-nom em + .vt-maree { margin-left: 4px; }
.vt-nom .vt-maree svg.ic { width: 15px; height: 15px; color: var(--eau); }
@media (max-width: 560px) { .vt-h { font-size: 11px; padding: 5px 0 4px; } .vt-heures { gap: 2px; } .vt-fl { width: 10px; height: 10px; } .vt-houle { gap: 2px; } .vt-w { font-size: 11px; padding: 3px 1px; } }
/* propres à l'app : une heure sans prévision, le panneau d'un jour, l'état d'un spot dans la liste des Réglages */
.vt-h.vide { color: var(--mut); opacity: .5; justify-content: center; align-content: center; }
.vt-panneau { display: grid; gap: 10px; }
.vt-panneau[hidden] { display: none; }
.kb-spot-t .sp-ok, .kb-spot-t .sp-err { font-size: 12px; margin-top: 2px; }
.sp-lu[hidden] { display: none; }
.vt-h.approx { opacity: .62; }   /* une valeur reprise de l’heure la plus proche (MET Norway, au-delà de demain : une valeur toutes les 6 h) */
.vt-diag { display: flex; gap: 7px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--att-s); color: var(--att); font-size: 12px; line-height: 1.45; }   /* 15/11 : l’état des sources (administrateur) */
.vt-diag svg.ic { flex: none; width: 14px; height: 14px; margin-top: 2px; } .vt-diag b { color: inherit; } .vt-diag span span { opacity: .8; }

/* 15/11 : la rafale, sous le vent moyen (demandé : « afficher le vent et la rafale (superposé) ») */
.vt-h small { font-size: 10px; font-weight: 600; line-height: 1; opacity: .72; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .vt-h small { font-size: 9.5px; } }
/* 15/11 : la page « Météo » — une carte par spot (une colonne sur téléphone, plus large deux ou trois) */
.vt-page { display: grid; gap: var(--pas, 14px); }
.vt-page-tete { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.vt-cartes { display: grid; gap: var(--pas, 14px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.vt-carte .bloc-corps { display: grid; gap: 8px; }
.vt-nom em { margin-left: auto; flex: none; font-style: normal; font-size: 11.5px; color: var(--mut); }
.vt-src { margin: 0; font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.vt-page-pied { display: grid; gap: 8px; }
/* 15/11 : la météo rapide (agenda) */
.vt-rapide .csel { width: 100%; } .vt-rapide .bloc-tete a.titre-mono { text-decoration: none; color: var(--acc); }
.vt-spot-choisi[hidden] { display: none; }
.vt-page-tete .titre-mono { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }   /* hors d’un .bloc-tete : le style d’étiquette n’y venait pas */
.contenu .vt-cartes > .bloc + .bloc { margin-top: 0; }   /* comme .mat-deux : la marge entre deux blocs décalait la 2e carte de la grille */
.vt-page-tete .vt-filtre { flex: 1 1 260px; max-width: 420px; }   /* 15/11 : le choix du spot, page Météo */
.vt-carte[hidden] { display: none; }
.tuile .repart .vt-fl { margin-right: 4px; vertical-align: -1px; }   /* 15/11 : la flèche du vent dans la tuile Météo */
.tuile[data-t="meteo"] .pic { flex: none; background: linear-gradient(135deg, #38BDF8, #0284C7); }   /* bleu ciel */
.tuiles .tuile .vt-tuile { display: grid; gap: 2px; min-width: 0; } .tuiles .tuile .vt-tuile span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuiles .tuile .vt-tuile { gap: 0; } .tuiles .tuile .vt-tuile span { line-height: 1.3; }
.tuiles .tuile .vt-tuile span + span { white-space: normal; }   /* 16/11 : le moment et les rafales passent à la ligne au lieu d’être coupés (« S · … » sur téléphone) ; l’icône ne rétrécit plus (.pic flex:none) */
.vt-filtre .csel-btn, .vt-choix .csel-btn { background: var(--panneau); }   /* 15/11, demandé : « la liste déroulante en blanc » (thème clair ; panneau en sombre) */
.tuile .pic { flex: none; }   /* 16/11 : sur téléphone, un texte long (Pré-inscriptions) écrasait le carré de l’icône en pastille : il ne rétrécit plus, la tuile grandit */
@media (max-width: 560px) { .tuiles .tuile { aspect-ratio: auto; min-height: 170px; } }   /* 16/11 : sur téléphone la tuile prend la hauteur de son texte (au moins 170 px) au lieu de déborder ; la rangée s’aligne sur la plus haute */
/* 16/11 (3.6-bis) : la copie hors site — sur téléphone, le bouton passe SOUS le texte (sinon il le serrait en une colonne de trois mots) */
.kb-drive-options { margin-top: 6px; }
@media (max-width: 560px) { .kb-drive-options .option { flex-wrap: wrap; } .kb-drive-options .option .txt { flex: 1 1 100%; } }
/* 3.35 (22/11) : « Actualiser maintenant » dans le cadre jaune — à droite du texte, dessous quand la place manque */
.vt-diag { flex-wrap: wrap; align-items: center; }
.vt-diag > svg.ic { align-self: flex-start; }
.vt-diag > span { flex: 1 1 220px; min-width: 0; }
.vt-diag > form, .vt-diag > .btn { margin-left: auto; }
.vt-diag .btn { white-space: nowrap; }
/* 22/11 (3.38) : la vue d’ensemble du matériel en TUILES (comme l’accueil) — une teinte par tuile ; les onglets « Matériel » */
.mat-tuiles { margin-bottom: var(--pas-l); }
.tuile[data-t="mat-epi"] .pic { background: linear-gradient(135deg, #FBBF24, #D97706); }
.tuile[data-t="mat-parc"] .pic { background: linear-gradient(135deg, #22D3EE, #0E7490); }
.tuile[data-t="mat-bateaux"] .pic { background: linear-gradient(135deg, #60A5FA, #1D4ED8); }
.tuile[data-t="mat-sorties"] .pic { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.tuile[data-t="mat-stats"] .pic { background: linear-gradient(135deg, #E879F9, #A21CAF); }
.tuile[data-t="mat-packs"] .pic { background: linear-gradient(135deg, #34D399, #059669); }
.mat-onglets { margin-bottom: var(--pas); }
/* 3.38 : une mention de tuile ne se coupe pas (« 1 à / surveiller ») — elles passent à la ligne l'une sous l'autre */
.mat-tuiles .repart { flex-wrap: wrap; row-gap: 2px; }
.mat-tuiles .repart span { white-space: nowrap; }
.tuile[data-t="mat-stats"] .repart span, .mat-tuiles .repart span:only-child { white-space: normal; }   /* 01/12 : une seule mention, longue, passe à la ligne (« 1 non déposée depuis hier » touchait le bord) */   /* sa seule mention, longue, peut passer à la ligne */
/* 22/11 (3.39) : les petites tuiles (Réglages : une par rubrique) — pas de carré forcé ; 2 colonnes au téléphone, 3 sur tablette, 4 sur PC */
.tuiles.tuiles-mini > .tuile, .tuiles.tuiles-mini > .tuile:last-child:nth-child(odd) { aspect-ratio: auto; min-height: 126px; grid-column: auto; }
.tuiles.tuiles-mini .tuile h2 { font-size: 15px; }
.tuiles.tuiles-mini .tuile .nb { font-size: 12.5px; color: var(--mut); line-height: 1.35; }
.tuiles.tuiles-mini .tuile .pic { width: 40px; height: 40px; border-radius: 12px; }
.tuiles.tuiles-mini .tuile .pic svg.ic { width: 20px; height: 20px; }
@media (min-width: 1100px) { .tuiles.tuiles-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mod-actions { margin-bottom: var(--pas); }

/* 01/12 — 3.78 : l'entretien et la sécurité, sous les statistiques du matériel */
.option.mat-suivi { color: inherit; text-decoration: none; }
.option.mat-suivi:hover b { color: var(--acc); }
.kpi.mat-entretien { margin-bottom: 10px; }
.mat-b.mat-dep { grid-template-columns: minmax(0, 1fr) auto; }   /* 3.78 : une dépense = un intitulé et un montant, sans barre */

/* 01/12 (3.110, « je veux quelque chose qui ressemble au screenshot pour la météo », « avec l'heure actuelle en surbrillance ») :
   une COLONNE PAR HEURE — l'heure, le vent (sa couleur dit sa force), les rafales, la flèche, la houle ;
   aujourd'hui commence à l'heure qu'il est (« Maintenant → 23:00 »), et cette heure-là est encadrée. */
.vt-ligne { display: flex; gap: 4px; padding: 3px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--mut) transparent; }
.vt-bande .vt-ligne { overflow: visible; }   /* la page Météo : c'est la bande des jours qui défile */
.vt-c { flex: 0 0 54px; display: grid; justify-items: center; align-content: start; gap: 7px; padding: 9px 2px 10px; border: 1.5px solid transparent; border-radius: 12px; font-variant-numeric: tabular-nums; }
.vt-c-h { font: 600 11px/1 var(--mono); color: var(--mut); }
.vt-c-v { font-size: 21px; font-weight: 800; line-height: 1; color: var(--encre-2); }
.vt-c-r { font-size: 16px; font-weight: 750; line-height: 1; color: var(--att); }
.vt-c .vt-fl { width: 16px; height: 16px; stroke-width: 2.4; color: var(--mut); }
.vt-c.bon .vt-c-v, .vt-c.bon .vt-fl { color: var(--bon); }
.vt-c.fort .vt-c-v, .vt-c.fort .vt-fl { color: var(--att); }
.vt-c.trop .vt-c-v, .vt-c.trop .vt-fl { color: var(--crit); }
.vt-c.faible .vt-c-v { color: var(--mut); }
.vt-c-w { display: grid; justify-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; line-height: 1.1; color: var(--encre-2); white-space: nowrap; }
.vt-c-w small { font-size: 10.5px; font-weight: 500; color: var(--mut); }
.vt-c.maintenant { border-color: var(--acc); background: var(--acc-s); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 16%, transparent); }
.vt-c.maintenant .vt-c-h { color: var(--acc); font-weight: 700; }
.vt-c.approx { opacity: .62; }
.vt-c.vide .vt-c-v { color: var(--mut); opacity: .5; }
.vt-plage { color: var(--encre-2); font-weight: 700; }
.vt-legende .vt-l-r { color: var(--att); font-weight: 750; font-size: 12px; }
@media (max-width: 560px) { .vt-c { flex-basis: 50px; gap: 6px; } .vt-c-v { font-size: 19px; } .vt-c-r { font-size: 14.5px; } }
/* 01/12 (3.111) : la flèche de la houle (bleue) sous celle du vent, et la LÉGENDE à gauche. Des rangées de hauteur FIXE dans chaque
   colonne et dans la légende : heure, vent, rafales, direction du vent, puis houle, période, direction de la houle. */
.vt-c, .vt-leg { grid-template-rows: 14px 24px 18px 20px; gap: 6px 0; align-items: center; align-content: start; }
.vt-ligne.avec-houle .vt-c, .vt-leg.avec-houle { grid-template-rows: 14px 24px 18px 20px 15px 13px 20px; }
.vt-c-d, .vt-c-dw { display: grid; place-items: center; }
.vt-c .vt-c-dw .vt-fl { width: 16px; height: 16px; stroke-width: 2.4; color: var(--eau); }
.vt-c-w { display: block; font-size: 11.5px; font-weight: 650; line-height: 1; color: var(--encre-2); white-space: nowrap; }
.vt-c-p { font-size: 10.5px; line-height: 1; color: var(--mut); white-space: nowrap; }
.vt-leg { display: grid; justify-items: start; flex: 0 0 auto; padding: 9px 6px 10px 2px; border: 1.5px solid transparent; position: sticky; left: 0; z-index: 2; background: var(--panneau); }
.vt-leg span { font: 600 9px/1.1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.vt-leg small { font-size: 8px; letter-spacing: 0; text-transform: none; opacity: .85; }
.vt-ligne > .vt-leg { box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .35); }
.vt-leg-col { position: sticky; left: 0; z-index: 2; flex: 0 0 auto; display: grid; gap: 6px; align-content: start; margin-right: -8px; background: var(--panneau); box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .35); }
.vt-leg-col .vt-leg { position: static; margin-top: 3px; box-shadow: none; }
.vt-bande .vt-jour-t { height: 18px; white-space: nowrap; overflow: hidden; }
.vt-leg-col .vt-jour-t { visibility: hidden; }
