/* =====================================================================
   Déplacement montagne — couleur de l'appli : orange montagne (tuile Toolbox).
   Bloquant = rouge, attention = orange, conforme = vert : partout pareil.
   ===================================================================== */
:root { --app: #c2410c; --app-soft: #fff0e6; --app-fort: #9a3412; --app-ink: #fff; }

/* Thème de saison (charte) : bleu clair pour une course d'hiver, jaune clair pour l'été.
   La fiche ouverte donne la saison ; l'accueil prend celle du jour. Couleur claire = texte foncé
   dessus (--app-ink), pour rester lisible dehors au soleil. */
body[data-saison="hiver"] { --app: #7cc4ec; --app-soft: #e8f5fd; --app-fort: #0b6a99; --app-ink: #062f47; --fond: #f1f8fd; }
body[data-saison="ete"]   { --app: #f6d860; --app-soft: #fff8d6; --app-fort: #8f6c00; --app-ink: #3a2c00; --fond: #fffcef; }
body[data-saison] { background: var(--fond); }
body[data-saison] .btn:not(.ghost):not(.danger):not(.vert):not(.fait) { color: var(--app-ink); }
body[data-saison] .btn:not(.ghost):not(.danger):not(.vert):not(.fait):disabled { opacity: .5; }
body[data-saison] .acces label.on, body[data-saison] .chef-on { border-color: var(--app-fort); }
body[data-saison] .etapes li::before { color: var(--app-fort); }
body[data-saison] .check input, body[data-saison] .acces input { accent-color: var(--app-fort); }

.wrap { max-width: 860px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
textarea.in { width: 100%; min-height: 70px; border: 2px solid var(--gray-400); border-radius: var(--r-2); padding: 10px 12px;
              font: inherit; font-size: 16px; background: #fff; color: var(--gray-900); resize: vertical; }
textarea.in:focus, select.in:focus { outline: 2px solid var(--entree); outline-offset: 1px; border-color: transparent; }
select.in { width: 100%; height: 48px; border: 2px solid var(--gray-400); border-radius: var(--r-2); padding: 0 10px; font-size: 16px; background: #fff; }
input.in:disabled, textarea.in:disabled, select.in:disabled { background: var(--gray-100); color: var(--gray-800); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr; } }

/* ---- Safari iOS (iPhone) ----------------------------------------------------------------
   Les enfants de grille gardent leur largeur « intrinsèque » (champ date, select) et débordent :
   min-width 0. Le champ date iOS a sa propre largeur mini et son texte centré. Tout champ
   en dessous de 16 px fait zoomer la page au toucher. */
html { -webkit-text-size-adjust: 100%; }
.row2 > *, .row3 > *, .grid2 > *, .barre-in > * { min-width: 0; }
input.in[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input.in[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input.in, select.in, textarea.in { max-width: 100%; }
.seg-48 { min-height: 48px; }
.seg-48 button { min-height: 40px; }
select.in.sel-statut { width: auto; max-width: 100%; height: 38px; font-size: 16px; padding: 0 8px; }
.tg { white-space: normal; text-align: center; line-height: 1.2; max-width: 100%; }
dialog { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.hd, .wrap, .barre { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.hd-row h1, .item .t b, .item .t span { overflow-wrap: anywhere; }
.item .st { flex: none; }
/* Le message bref passe au-dessus de la barre d'action, pas dessous. */
body:has(.barre) #toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
body.saisie .barre { display: none; }
.barre .btn { padding: 0 14px; white-space: nowrap; }
.barre .etat-c { overflow-wrap: anywhere; }

/* Accueil */
.cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border-radius: var(--r-3); border: 0; cursor: pointer;
       background: var(--app); color: var(--app-ink); text-align: left; font: inherit; }
.cta svg { width: 34px; height: 34px; flex: none; }
.cta b { display: block; font-size: 19px; }
.cta span { font-size: 14px; opacity: .9; }
.sec-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-700); margin: 22px 2px 8px; }
.liste { display: grid; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--gray-300);
        border-radius: var(--r-2); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.item:hover { border-color: var(--gray-500); }
.item .d { font-family: var(--mono); font-weight: 600; font-size: 13px; width: 54px; flex: none; text-align: center; line-height: 1.2; }
.item .d small { display: block; font-size: 11px; color: var(--gray-600); font-weight: 500; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; font-size: 15.5px; }
.item .t span { color: var(--gray-700); font-size: 13px; }
.item.urgent { border-color: var(--warn-line); background: var(--warn-bg); }
.vide { color: var(--gray-600); font-size: 14px; padding: 6px 2px; }

/* Statuts */
.st { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st.brouillon { background: var(--gray-200); color: var(--gray-800); }
.st.a_valider { background: var(--warn-bg); color: var(--warn-fg); }
.st.validee { background: var(--entree-soft); color: var(--entree); }
.st.en_cours { background: var(--app); color: var(--app-ink); }
.st.terminee { background: var(--pos-bg); color: var(--pos-fg); }
.st.renoncee { background: var(--gray-200); color: var(--gray-700); }

/* Fiche */
.sec { scroll-margin-top: 12px; }
.sec-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--app); color: var(--app-ink);
         font-family: var(--mono); font-size: 14px; font-weight: 600; margin-right: 8px; }
.sec h2 { display: flex; align-items: center; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.tg { min-height: 40px; padding: 0 12px; border: 2px solid var(--gray-400); background: #fff; border-radius: 999px; font: inherit;
      font-size: 14px; font-weight: 600; color: var(--gray-800); cursor: pointer; }
.tg[aria-pressed="true"] { background: var(--app); border-color: var(--app-fort); color: var(--app-ink); }
.tg:disabled { cursor: default; opacity: .8; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 15px; line-height: 1.35; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--app); }
.check .req { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--neg-fg); margin-left: 6px; white-space: nowrap; }
.check.manque { color: var(--neg-fg); }
.grid2 { display: grid; gap: 0 18px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.membre { border: 1px solid var(--gray-300); border-radius: var(--r-2); padding: 10px 12px; margin-top: 10px; background: var(--gray-100); }
.membre-h { display: flex; gap: 8px; align-items: center; }
.membre-h input.in { height: 44px; font-size: 16px; }
.membre .toggles { margin-top: 8px; }
.membre .tg { min-height: 34px; font-size: 13px; padding: 0 10px; }
.chef-on { background: var(--app-soft); border-color: var(--app); }
.x-sm { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--gray-700); flex: none; }
.x-sm:hover { background: var(--gray-200); }

.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; }
.etapes li { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.etapes li::before { counter-increment: e; content: counter(e); font-family: var(--mono); font-weight: 600; width: 22px; padding-top: 12px; flex: none; color: var(--app-fort); }
.etapes textarea.in { min-height: 48px; }
.acces { display: grid; gap: 6px; }
.acces label { display: flex; gap: 10px; padding: 10px 12px; border: 2px solid var(--gray-300); border-radius: var(--r-2); cursor: pointer; font-size: 14px; }
.acces label b { display: block; }
.acces input { accent-color: var(--app); width: 20px; height: 20px; flex: none; }
.acces label.on { border-color: var(--app); background: var(--app-soft); }
.carte-img { display: block; width: 100%; border-radius: var(--r-2); border: 1px solid var(--gray-300); margin-top: 10px; }
.legende { display: grid; gap: 4px; font-size: 12.5px; color: var(--gray-700); margin-top: 6px; }
.avis-trace { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 10px;
  background: var(--warn-bg); color: var(--warn-fg); font-size: 13.5px; line-height: 1.35; }
.avis-trace svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
#imprime .avis-imp { margin-top: 3mm; padding: 2mm 3mm; border: 1px solid #000; font-size: 9pt; }
.legende i { display: inline-block; width: 26px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

.retex { border-left: 4px solid var(--warn); background: var(--warn-bg); color: var(--warn-fg); padding: 10px 12px; border-radius: 8px; margin-top: 8px; font-size: 14px; }
.retex small { display: block; font-family: var(--mono); font-size: 11.5px; margin-bottom: 2px; }

/* Météo */
.mtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 10px 0; }
.mt { background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--r-2); padding: 10px 12px; }
.mt b { display: block; font-family: var(--mono); font-size: 20px; }
.mt span { font-size: 12.5px; color: var(--gray-700); }
.mt.att { background: var(--warn-bg); border-color: var(--warn-line); }
.mt.fort { background: var(--neg-bg); border-color: var(--neg-line); }
.signal { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; font-size: 14px; margin-top: 6px; }
.signal svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.signal.attention { background: var(--warn-bg); color: var(--warn-fg); }
.signal.fort { background: var(--neg-bg); color: var(--neg-fg); }
.signal b { font-weight: 600; }
.sig-action { display: block; font-size: 13px; margin-top: 2px; opacity: .9; }
.sig-action::before { content: "→ "; }
.sig-plus summary { cursor: pointer; margin-top: 6px; }
.nouveautes { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 8px 10px 12px; border-radius: 10px;
  background: var(--pos-bg); color: var(--pos-fg); font-size: 13.5px; line-height: 1.4; }
.nouveautes span { flex: 1; }
.nouveautes .x { flex: none; background: none; border: 0; color: inherit; padding: 2px; cursor: pointer; }
.nouveautes .x svg { width: 18px; height: 18px; }
.heures { overflow-x: auto; margin-top: 10px; }
.heures table { border-collapse: collapse; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.heures th, .heures td { padding: 4px 6px; text-align: center; border-bottom: 1px solid var(--gray-200); }
.heures th { color: var(--gray-700); font-weight: 600; text-align: left; position: sticky; left: 0; background: #fff; }
.liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.liens a { font-size: 14px; font-weight: 600; color: var(--entree); min-height: 36px; display: inline-flex; align-items: center; }
.bra { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.bra button { min-height: 52px; border: 2px solid var(--gray-400); border-radius: var(--r-2); background: #fff; font-family: var(--mono); font-size: 20px; font-weight: 600; cursor: pointer; color: var(--gray-900); }
.bra button[aria-pressed="true"] { color: #fff; border-color: transparent; }
.bra button.b1[aria-pressed="true"] { background: #2e9e4f; } .bra button.b2[aria-pressed="true"] { background: #c9a400; }
.bra button.b3[aria-pressed="true"] { background: #e07b00; } .bra button.b4[aria-pressed="true"], .bra button.b5[aria-pressed="true"] { background: var(--neg); }

/* Contrôle RPP */
.pts { display: grid; gap: 6px; margin-top: 8px; }
.pt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.pt svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pt small { display: block; font-family: var(--mono); font-size: 11px; opacity: .8; margin-top: 2px; }
.pt.bloquant { background: var(--neg-bg); color: var(--neg-fg); }
.pt.attention { background: var(--warn-bg); color: var(--warn-fg); }
.pt.ok { background: var(--pos-bg); color: var(--pos-fg); }
.interdits { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--neg-fg); }

/* Barre d'action en bas d'écran */
.barre { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--gray-300);
         padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(15,21,48,.08); z-index: 20; }
.barre-in { max-width: 860px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.barre .etat-c { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; cursor: pointer; background: none; border: 0; text-align: left; font-family: inherit; padding: 0; }
.barre .etat-c.ko { color: var(--neg-fg); }
.barre .etat-c.ok { color: var(--pos-fg); }
.barre .btn { min-height: 50px; font-size: 16px; }
.btn.danger { background: #fff; color: var(--neg-fg); border: 2px solid var(--neg-line); }
.btn.vert { background: var(--pos); }

/* En cours : appels */
.appels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.appels .btn { min-height: 64px; flex-direction: column; gap: 2px; font-size: 15px; }
.appels .btn small { font-weight: 500; font-size: 12px; opacity: .9; }
.appels .btn.fait { background: var(--pos); }
.journal { margin-top: 10px; font-size: 13.5px; color: var(--gray-700); }
.journal div { padding: 4px 0; border-top: 1px solid var(--gray-200); }
.bandeau { border-radius: var(--r-3); padding: 14px 16px; margin-bottom: 12px; font-size: 15px; line-height: 1.4; }
.bandeau b { display: block; font-size: 17px; }
.bandeau.en_cours { background: var(--app); color: var(--app-ink); }
.bandeau.a_valider { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
.bandeau.validee { background: var(--entree-soft); color: var(--entree); }
.bandeau.terminee { background: var(--pos-bg); color: var(--pos-fg); }
.bandeau.renoncee { background: var(--gray-200); color: var(--gray-800); }
.dlg-b .check { font-size: 14.5px; }
dialog.large { width: min(720px, calc(100vw - 24px)); }
.modeles { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }

/* =====================================================================
   Impression : la fiche au format FOR-PIL-UPA-018 (A4, 2 pages)
   ===================================================================== */
#imprime { display: none; }
@media print {
  @page { size: A4; margin: 11mm 10mm; }
  body { background: #fff; }
  #app, #toast, dialog { display: none !important; }
  #imprime { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 9.5pt; color: #000; }
  #imprime h1 { font-size: 12pt; margin: 0; }
  #imprime .ph { display: flex; justify-content: space-between; border: 1.5px solid #001a70; padding: 6px 8px; margin-bottom: 6px; }
  #imprime .ph .id { text-align: right; font-size: 8pt; }
  #imprime h2 { background: #001a70; color: #fff; font-size: 9.5pt; padding: 3px 6px; margin: 7px 0 4px; }
  #imprime table { width: 100%; border-collapse: collapse; }
  #imprime td, #imprime th { border: 1px solid #555; padding: 3px 5px; vertical-align: top; text-align: left; font-size: 8.5pt; }
  #imprime .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  #imprime .cb { display: block; padding: 1px 0; }
  #imprime .interdit { border: 1.5px solid #c4170f; color: #c4170f; padding: 4px 6px; margin-top: 5px; font-size: 8.5pt; }
  #imprime .saut { break-before: page; }
  #imprime img { max-width: 100%; max-height: 225mm; display: block; margin: 0 auto; }
  #imprime .pied { font-size: 7pt; color: #555; margin-top: 6px; }
}

/* Saison choisie dans la fiche : le bouton actif prend la couleur de la saison. */
body[data-saison] .seg button[aria-pressed="true"][data-saison] { background: var(--app); color: var(--app-ink); }

/* ------------------------------------------------ Assistant : une question par écran */
.prog { display: flex; gap: 3px; margin: 14px 0 2px; }
.prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--gray-200); }
.prog i.fait { background: var(--app); }
.prog i.ici { background: var(--app-fort); }
.prog i.ko { background: var(--neg-fg); opacity: .55; }
.etape-n { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); }
.etape h2.q { font-size: 23px; line-height: 1.2; margin: 4px 0 6px; }
.etape .aide { color: var(--gray-700); margin: 0 0 14px; font-size: 15px; }
.in.grand { font-size: 19px; height: 56px; }
.sous-t { font-size: 15px; margin: 22px 0 8px; }
.recap { border-top: 1px solid var(--gray-200); }
.recap .ligne { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--gray-200);
  background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.recap .ligne > svg { width: 22px; height: 22px; flex: none; }
.recap .ligne.ko > svg { color: var(--neg-fg); }
.recap .ligne.att > svg { color: var(--warn-fg); }
.recap .ligne.ok > svg { color: var(--pos-fg); }
.recap .ligne .t { flex: 1; min-width: 0; }
.recap .ligne .t b { display: block; font-size: 15px; }
.recap .ligne .t span { display: block; color: var(--gray-600); font-size: 13px; overflow-wrap: anywhere; }
.recap .ligne .chev { color: var(--gray-500); font-size: 22px; }
.barre-in > span:empty { flex: 1; }
.etape ~ .barre #suiv, .etape ~ .barre #envoyer { min-width: 42%; }

/* ------------------------------------------------ Carte à dessiner */
.carte { height: min(56vh, 540px); min-height: 280px; margin-top: 10px; border: 1px solid var(--gray-300); border-radius: var(--r-2); overflow: hidden; background: #e9eef2; }
.carte.lecture { height: 340px; margin-top: 6px; }
#carte-imp { width: 190mm; height: 215mm; }
.carte.dessin, .carte.dessin * { touch-action: none !important; }
.carte.dessin { cursor: crosshair; box-shadow: inset 0 0 0 3px var(--app-fort); }
.carte .leaflet-control-layers-toggle { width: 36px; height: 36px; }
.outils { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.outils .seg { flex: 1 1 220px; }
.carte-modele { margin-top: 12px; }
#imprime.prepa { display: block; position: fixed; left: -10000px; top: 0; }
@media print { #imprime #carte-imp { width: 100%; height: 215mm; } }

/* Participants rattachés à la liste des agents du GU, rappel de 7 h */
.note-c { font-size: 12.5px; color: var(--pos-fg); margin-top: 6px; }
.note-c.sans { color: var(--warn-fg); }
.hint.rappel { margin: 12px 0 0; }
.hint.rappel.err { color: var(--neg-fg); }

/* Carte : mode actif bien visible, bandeau pendant le dessin */
.outils .seg button[aria-pressed="true"] { background: var(--app-fort); color: #fff; }
.carte-boite { position: relative; }
.carte-bandeau { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); z-index: 1000; pointer-events: none;
  background: var(--app-fort); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* « Qui part ? » : une ligne par personne, un seul chef de course */
.parts { display: grid; gap: 8px; }
.part { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.part > * { min-width: 0; }
.chef-radio { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 2px solid var(--gray-400);
  border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; background: #fff; }
.chef-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--app-fort); }
.chef-radio:has(input:checked) { background: var(--app); border-color: var(--app-fort); color: var(--app-ink); }
.membre-nom { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
@media (max-width: 420px) { .chef-radio span { font-size: 13px; } .chef-radio { padding: 0 10px; } }

/* Météo lue en plusieurs points de la zone */
.pts-meteo { margin-top: 10px; font-size: 13px; color: var(--gray-800); background: var(--app-soft); border-radius: var(--r-2); padding: 10px 12px; }
.pts-meteo span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; }

/* Ligne de fiche : glisser vers la gauche découvre « Supprimer » (défilement natif, aimanté) */
.glisse { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  border-radius: var(--r-2); -webkit-overflow-scrolling: touch; }
.glisse::-webkit-scrollbar { display: none; }
.glisse > .item { flex: 0 0 100%; scroll-snap-align: start; }
.glisse-suppr { flex: 0 0 104px; scroll-snap-align: end; margin-left: 8px; border: 0; border-radius: var(--r-2);
  background: var(--neg); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.glisse-suppr:focus-visible { outline: 3px solid #ff861d; outline-offset: -3px; }

/* Bulletin d'avalanche Météo-France */
.bra-auto { background: var(--app-soft); border-radius: var(--r-2); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.bra-auto small { display: block; color: var(--gray-700); font-size: 12px; margin-top: 4px; }
.bra-l { margin-top: 8px; }
.bra-l span { color: var(--gray-800); font-size: 13px; }
.bra-n { display: inline-block; min-width: 24px; text-align: center; border-radius: 6px; font-weight: 700; color: #fff; margin: 0 6px; padding: 1px 6px; }
.bra-n.b1 { background: #52b043; } .bra-n.b2 { background: #d6c100; color: #222; } .bra-n.b3 { background: #f08a00; }
.bra-n.b4 { background: #d62d20; } .bra-n.b5 { background: #7a1c14; }

/* Date de la course : tuile calendrier + raccourcis (maquette A) */
.tuile-date { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 14px 10px 10px;
  background: #fff; border: 2px solid var(--app); border-radius: 14px; box-shadow: 0 2px 0 color-mix(in srgb, var(--app-fort) 18%, transparent);
  color: var(--app-fort); cursor: pointer; }
.tuile-date:focus-within { outline: 3px solid var(--app-fort); outline-offset: 2px; }
.td-cal { width: 60px; height: 64px; flex: none; display: flex; flex-direction: column; border: 1px solid var(--gray-300); border-radius: 10px; overflow: hidden; background: #fff; }
.td-mois { background: var(--app); color: var(--app-ink); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-align: center; padding: 3px 0; }
.td-jour { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; line-height: 1; color: var(--gray-900); }
.td-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--gray-900); }
.td-texte b { font-size: 19px; line-height: 1.2; }
.td-texte span { font-size: 14px; color: var(--gray-700); }
/* Le vrai champ date couvre toute la tuile, invisible : un toucher ouvre le calendrier natif. */
.tuile-date input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; margin: 0; padding: 0;
  cursor: pointer; -webkit-appearance: none; appearance: none; font-size: 16px; }
.tuile-date input[type=date]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.puces-date { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.puce-date { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--gray-400); background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--gray-800); cursor: pointer; }
.puce-date[aria-pressed="true"] { background: var(--app); border-color: var(--app-fort); color: var(--app-ink); }

/* Check avant départ en un écran */
.cl-n { float: right; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.cl-prog { height: 6px; border-radius: 3px; background: var(--gray-200, #e2e8f0); overflow: hidden; margin: 4px 0 10px; }
.cl-prog i { display: block; height: 6px; background: var(--pos-fg); }
.cl-g { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-700); margin: 14px 4px 5px; }
.cl-row { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 8px 12px; margin-bottom: 6px;
  text-align: left; font-family: inherit; color: inherit; background: #fff; border: 1.5px solid var(--gray-300, #cbd5e1); border-radius: 12px; cursor: pointer; }
.cl-row.on { background: var(--pos-bg); border-color: var(--pos-fg); }
.cl-box { flex: none; width: 28px; height: 28px; box-sizing: border-box; border-radius: 8px; border: 2px solid var(--gray-600, #475569); background: #fff; display: flex; align-items: center; justify-content: center; }
.cl-row.on .cl-box { background: var(--pos-fg); border-color: var(--pos-fg); color: #fff; }
.cl-box svg { width: 18px; height: 18px; }
.cl-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cl-txt b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.cl-txt small { font-size: 12.5px; line-height: 1.3; color: var(--gray-700); }
.cl-bra { background: #fff; border: 1.5px solid var(--gray-300, #cbd5e1); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.cl-bra-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.cl-bra-t small { font-size: 12.5px; color: var(--gray-700); }
.cl-bra-r { margin: 8px 0 2px; font-size: 13px; font-weight: 600; }
.cl-bra-r.ko { color: var(--neg-fg); }
.cl-int { margin-top: 6px; }
.btn.alerte { background: #9a5b00; }
