/* Outil de voyage — styles. Les valeurs viennent de DESIGN.md (jetons) ; aucune couleur en dur ailleurs. */

:root {
  color-scheme: light dark;
  --fond: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #e9e9ee;
  --texte: #000000;
  --texte-2: #6c6c70;
  --separateur: rgba(60, 60, 67, 0.29);
  --accent: #0066cc;
  --accent-fond: #0066cc;
  --accent-doux: rgba(0, 102, 204, 0.12);
  --ok: #248a3d;
  --attention: #c93400;
  --critique: #d70015;
  --jour-1: #5856d6;
  --jour-2: #0e8a96;
  --jour-3: #af52de;
  --jour-4: #a2845e;
  --jour-5: #d63384;
  --jour-6: #6e8b3d;
  --ombre: 0 4px 16px rgba(0, 0, 0, 0.12);
  --voile: rgba(0, 0, 0, 0.32);
  --rayon: 10px;
  --rayon-feuille: 14px;
  --marge: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --texte: #ffffff;
    --texte-2: #aeaeb2;
    --separateur: rgba(84, 84, 88, 0.65);
    --accent: #3395ff;
    --accent-fond: #0071e3;
    --accent-doux: rgba(51, 149, 255, 0.18);
    --ok: #30d158;
    --attention: #ff9f0a;
    --critique: #ff453a;
    --jour-1: #7d7aff;
    --jour-2: #3ebdca;
    --jour-3: #c77dea;
    --jour-4: #c4a57e;
    --jour-5: #f06aa6;
    --jour-6: #9cbf63;
    --ombre: 0 4px 16px rgba(0, 0, 0, 0.5);
    --voile: rgba(0, 0, 0, 0.55);
  }
}

@media (min-width: 430px) {
  :root { --marge: 20px; }
}

/* Taille de texte de l'iPhone (Dynamic Type) ; 17 px ailleurs. */
html { font: -apple-system-body; }
@supports not (font: -apple-system-body) {
  html { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif; font-size: 17px; }
}

* { box-sizing: border-box; min-width: 0; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.3;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.feuille-ouverte { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { min-height: 100dvh; display: flex; flex-direction: column; }
.chargement { margin: 40vh auto 0; color: var(--texte-2); text-align: center; }

/* ---------- barre de navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; container: barre / inline-size;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separateur);
}
.nav-barre {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center;
  min-height: 44px;
  padding: 0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left));
}
.nav-gauche { justify-self: start; display: flex; min-width: 0; max-width: 100%; }
.nav-droite { justify-self: end; display: flex; min-width: 0; max-width: 100%; }
.nav-centre { text-align: center; padding: 4px 0; }
/* Comme sur iPhone, la barre de navigation, les feuilles et les onglets ne grossissent pas au-delà d'une taille
   raisonnable avec le texte agrandi : le contenu, lui, suit la taille choisie. */
.nav-titre { font-weight: 600; font-size: min(1rem, 19px); line-height: 1.2; overflow-wrap: break-word; }
.nav-sous-titre { font-size: min(0.765rem, 14px); color: var(--texte-2); }
.bouton-nav {
  min-width: 44px; min-height: 44px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 0 8px; border: 0; background: none; color: var(--accent); font-size: min(1rem, 19px);
}
.bouton-nav:active { opacity: 0.6; }
.bouton-nav:disabled { color: var(--texte-2); opacity: 0.6; cursor: default; }
.bouton-retour { padding: 0 6px 0 0; gap: 0; }
/* Texte très agrandi : le bouton retour ne garde que son chevron (comme sur iPhone). */
@container barre (max-width: 18em) { .nav-gauche .bouton-nav span { display: none; } }
.bouton-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activite { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface-2); border-top-color: var(--accent); animation: tourne 0.8s linear infinite; margin: 0 13px; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- contenu ---------- */
.contenu {
  flex: 1; width: 100%; max-width: 720px; margin: 0 auto;
  padding: 8px max(var(--marge), env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) max(var(--marge), env(safe-area-inset-left));
}
.contenu.sans-onglets { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.grand-titre { font-size: 2rem; line-height: 1.2; font-weight: 700; margin: 8px 0 16px; }
.titre-section { font-size: 1.294rem; line-height: 1.27; font-weight: 700; margin: 24px 0 8px; }
.legende { font-size: 0.882rem; color: var(--texte-2); }
.note { font-size: 0.765rem; color: var(--texte-2); }
.paragraphe { font-size: 1rem; line-height: 1.35; margin: 0 0 12px; }

/* ---------- listes groupées ---------- */
.groupe-titre { font-size: 0.765rem; color: var(--texte-2); margin: 0 16px 6px; font-weight: 400; }
.groupe { background: var(--surface); border-radius: var(--rayon); overflow: hidden; margin: 0 0 24px; padding: 0; list-style: none; }
.groupe-note { font-size: 0.765rem; color: var(--texte-2); margin: -18px 16px 24px; }
.cellule {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 44px; padding: 11px 16px; border: 0; background: none; text-align: left; color: inherit; text-decoration: none;
}
.groupe > li + li > .cellule::before, .groupe > .cellule + .cellule::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separateur);
}
button.cellule:active, a.cellule:active { background: var(--surface-2); }
.cellule-icone { flex: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--texte-2); }
.cellule-texte { flex: 1; overflow-wrap: break-word; }
.cellule-titre { font-size: 1rem; line-height: 1.3; }
.cellule-sous { font-size: 0.882rem; color: var(--texte-2); margin-top: 2px; line-height: 1.3; }
.cellule-valeur { color: var(--texte-2); text-align: right; flex: none; max-width: 55%; overflow-wrap: anywhere; }
.chevron { flex: none; color: var(--texte-2); opacity: 0.55; }

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--rayon); border: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
}
.bouton:active { opacity: 0.6; }
.bouton:disabled { opacity: 0.4; cursor: default; }
.bouton-plein { background: var(--accent-fond); color: #fff; }
.bouton-teinte { background: var(--accent-doux); color: var(--accent); }
.bouton-simple { background: none; color: var(--accent); font-weight: 400; }
.bouton-destructif { background: none; color: var(--critique); font-weight: 400; }
.bouton-large { width: 100%; }
.boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.petit-bouton { min-height: 32px; padding: 4px 12px; font-size: 0.882rem; border-radius: 999px; }
/* zone tactile de 44 px autour des petits boutons */
.petit-bouton { position: relative; }
.petit-bouton::after { content: ''; position: absolute; inset: -6px -2px; }

/* ---------- champs ---------- */
.champ { display: block; margin: 0 0 16px; }
.champ-libelle { display: block; font-size: 0.882rem; color: var(--texte-2); margin: 0 4px 6px; }
.entree {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--rayon);
  border: 0; background: var(--surface-2); font-size: max(16px, 1rem); color: var(--texte);
  appearance: none; -webkit-appearance: none;
}
textarea.entree { min-height: 88px; resize: vertical; line-height: 1.35; }
select.entree { background-image: none; }
.entree::placeholder { color: var(--texte-2); opacity: 0.8; }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 12px; }
.erreur { color: var(--critique); font-size: 0.882rem; margin: 8px 4px; }

/* ---------- pastilles et contrôle segmenté ---------- */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille {
  min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0; position: relative;
  background: var(--surface-2); color: var(--texte); font-size: 0.882rem;
}
.pastille::after { content: ''; position: absolute; inset: -4px -2px; }
.pastille[aria-pressed="true"] { background: var(--accent-fond); color: #fff; font-weight: 600; }
.segments { display: flex; padding: 2px; border-radius: 9px; background: var(--surface-2); gap: 2px; }
.segment { flex: 1; min-height: 36px; border: 0; border-radius: 7px; background: none; font-size: 0.882rem; padding: 4px 6px; }
.segment[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.765rem; font-weight: 600; }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-ok { color: var(--ok); }
.badge-attention { color: var(--attention); }
.badge-critique { color: var(--critique); }
.badge-neutre { color: var(--texte-2); font-weight: 400; }

/* ---------- connexion ---------- */
.connexion { flex: 1; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) var(--marge) 24px; }
.connexion-carte { width: 100%; max-width: 360px; text-align: center; }
.connexion-icone { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 16px; display: block; }
.connexion form { text-align: left; margin-top: 24px; }

/* ---------- états vides ---------- */
.vide { text-align: center; padding: 48px 16px; color: var(--texte-2); }
/* Seulement la grande icône de l'état vide : pas celles des boutons qu'il contient. */
.vide > svg { width: 56px; height: 56px; color: var(--texte-2); opacity: 0.6; margin-bottom: 12px; }
.vide-titre { font-size: 1.176rem; font-weight: 600; color: var(--texte); margin: 0 0 6px; }
.vide p { margin: 0 0 16px; }

/* ---------- barre d'onglets ---------- */
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--separateur);
}
.onglet {
  min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; color: var(--texte-2); font-size: min(0.706rem, 13px); padding: 4px 2px;
}
.onglet[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- programme ---------- */
.jours { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--marge)); padding: 6px var(--marge) 14px; scrollbar-width: none; }
.jours::-webkit-scrollbar { display: none; }
.jour-pastille {
  flex: none; scroll-snap-align: start; min-height: 48px; min-width: 64px; padding: 6px 14px; border-radius: 14px;
  border: 0; background: var(--surface); color: var(--texte);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.jour-pastille small { font-size: 0.765rem; color: var(--texte-2); }
.jour-pastille[aria-pressed="true"] { background: var(--couleur-jour, var(--accent-fond)); color: #fff; font-weight: 600; }
.jour-pastille[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }
.alertes { display: grid; gap: 8px; margin-bottom: 16px; }
.alerte {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: var(--rayon); border: 0; background: var(--surface); text-align: left;
}
.alerte-texte { flex: 1; font-size: 0.882rem; }
.alerte svg { flex: none; }
.alerte-attention svg { color: var(--attention); }
.alerte-neutre svg { color: var(--texte-2); }
.alerte-critique svg { color: var(--critique); }
.alerte .chevron { opacity: 0.55; }
.chronologie { list-style: none; margin: 0; padding: 0; }
.etape { display: grid; grid-template-columns: 3.3em minmax(0, 1fr); column-gap: 10px; }
.etape + .etape { margin-top: 8px; }
.chronologie > .etape:has(> .trajet) { margin-top: 0; }
.chronologie > .etape:has(> .trajet) + .etape { margin-top: 0; }
.etape-heure { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; padding-top: 13px; font-size: 1rem; }
.etape-heure small { display: block; font-weight: 400; font-size: 0.765rem; color: var(--texte-2); }
.etape-carte {
  display: block; width: 100%; padding: 12px 14px; margin: 0; border-radius: var(--rayon);
  background: var(--surface); border: 0; border-left: 4px solid var(--couleur-jour, var(--accent)); text-align: left;
}
button.etape-carte:active { background: var(--surface-2); }
.etape-nom { font-weight: 600; font-size: 1rem; line-height: 1.25; overflow-wrap: break-word; }
.etape-detail { font-size: 0.882rem; color: var(--texte-2); margin-top: 2px; }
.etape-pause .etape-carte { background: transparent; border-left-style: dashed; border-left-color: var(--separateur); padding-top: 10px; padding-bottom: 10px; }
.etape-pause .etape-nom { font-weight: 400; color: var(--texte-2); }
.etape-fait .etape-nom { text-decoration: line-through; color: var(--texte-2); }
.trajet { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; padding: 6px 0 6px 6px; font-size: 0.882rem; color: var(--texte-2); }
.trajet svg { width: 18px; height: 18px; flex: none; }
.trajet-info { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; }
.trajet-liens { display: flex; gap: 4px; margin-left: auto; }
.fin-journee { grid-column: 2; font-size: 0.882rem; color: var(--texte-2); padding: 10px 0 0 6px; }
.journee-libre { background: var(--surface); border-radius: var(--rayon); padding: 20px 16px; text-align: center; color: var(--texte-2); }

/* ---------- lieux ---------- */
.puce-jour { width: 12px; height: 12px; border-radius: 50%; background: var(--couleur-jour, var(--texte-2)); flex: none; }
.cellule .badges { margin-top: 4px; }

/* ---------- carte ---------- */
#app.ecran-carte { height: 100dvh; overflow: hidden; }
.ecran-carte .contenu { position: relative; flex: 1; min-height: 0; padding: 0; max-width: none; }
.carte-zone { position: absolute; inset: 0 0 calc(50px + env(safe-area-inset-bottom)) 0; background: var(--surface-2); }
.carte { position: absolute; inset: 0; }
.carte-filtres {
  position: absolute; top: 10px; left: 0; right: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto;
  padding: 0 max(12px, env(safe-area-inset-left)); scrollbar-width: none;
}
.carte-filtres::-webkit-scrollbar { display: none; }
.carte-filtres .pastille { box-shadow: var(--ombre); background: var(--surface); flex: none; }
.carte-filtres .pastille[aria-pressed="true"] { background: var(--couleur-jour, var(--accent-fond)); color: #fff; }
.carte-boutons { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: 28px; z-index: 2; display: grid; gap: 8px; }
.carte-bouton { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface); color: var(--accent); box-shadow: var(--ombre); display: grid; place-items: center; }
.marqueur {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--couleur-jour, var(--texte-2));
  color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); cursor: pointer; padding: 0;
}
.marqueur::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.marqueur-base { background: var(--texte); color: var(--surface); border-radius: 8px; cursor: default; }
.ma-position { width: 18px; height: 18px; border-radius: 50%; background: #0a84ff; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(10, 132, 255, 0.25); }
.carte-repli { position: absolute; inset: 0; overflow-y: auto; padding: 8px max(var(--marge), env(safe-area-inset-left)) 24px; background: var(--fond); }
.carte-repli > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---------- feuilles ---------- */
.voile { position: fixed; inset: 0; z-index: 40; background: var(--voile); animation: apparait 0.2s ease-out; }
.feuille {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0 auto; width: 100%; max-width: 720px;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--fond); border-radius: var(--rayon-feuille) var(--rayon-feuille) 0 0; box-shadow: var(--ombre);
  animation: monte 0.28s ease-out;
}
.feuille-poignee { width: 36px; height: 5px; border-radius: 3px; background: var(--separateur); margin: 6px auto 0; }
.feuille-entete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; min-height: 52px; padding: 0 4px; }
.feuille-entete .bouton-nav:last-child { justify-self: end; font-weight: 600; }
.feuille-entete .bouton-nav:first-child { justify-self: start; }
.feuille-titre { margin: 0; text-align: center; font-weight: 600; font-size: min(1rem, 19px); overflow-wrap: break-word; }
.feuille-corps { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px var(--marge) calc(24px + env(safe-area-inset-bottom)); }
.feuille-actions { display: grid; gap: 8px; padding: 8px var(--marge) calc(12px + env(safe-area-inset-bottom)); }
.feuille-actions .groupe { margin: 0; }
.bouton-fond { background: var(--surface); font-weight: 600; }
@keyframes monte { from { transform: translateY(100%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

/* ---------- résultats de recherche ---------- */
.resultats { margin: -4px 0 16px; }
.resultat[aria-pressed="true"] .cellule-titre { font-weight: 600; color: var(--accent); }
.resultat[aria-pressed="true"]::after { content: ''; }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: center; pointer-events: none; padding: 0 var(--marge); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 560px; width: 100%;
  padding: 10px 10px 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--texte) 88%, transparent); color: var(--surface);
  box-shadow: var(--ombre); font-size: 0.882rem; animation: apparait 0.2s ease-out;
}
.toast-texte { flex: 1; }
.toast button { min-height: 36px; border: 0; background: none; color: var(--surface); font-weight: 600; padding: 4px 8px; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 900px) {
  .contenu { padding-left: 24px; padding-right: 24px; }
}

/* ---------- contrôles ---------- */
.ligne-reglage { justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.ligne-reglage .cellule-texte { flex: 1 1 8rem; }
.ligne-reglage .entree { width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; }
/* Comme les formulaires iPhone : texte saisi à droite sans fond, choix en bleu, dates et heures en pastille grise. */
.ligne-reglage input[type="text"].entree, .ligne-reglage input[type="url"].entree {
  flex: 1 1 8rem; background: none; text-align: right; padding: 8px 0 8px 8px; min-height: 0;
}
.ligne-reglage select.entree { background: none; color: var(--accent); text-align: right; text-align-last: right; padding: 8px 0 8px 8px; min-height: 0; }
.pas-a-pas { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pas-a-pas-bouton {
  width: 44px; height: 36px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--texte);
  font-size: 1.25rem; font-weight: 600; line-height: 1;
}
.pas-a-pas-bouton:disabled { opacity: 0.4; cursor: default; }
.pas-a-pas-valeur { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.interrupteur {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 51px; height: 31px; margin: 0;
  border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: background 0.2s;
}
.interrupteur::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s;
}
.interrupteur:checked { background: var(--ok); }
.interrupteur:checked::before { transform: translateX(20px); }
.bloc { margin: 0 0 24px; }
.bloc > .champ-libelle { margin-bottom: 8px; }
.sous-bloc { margin-top: 12px; }
.choisi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: var(--rayon); background: var(--surface); margin: 0 0 20px; }
.choisi .cellule-texte { flex: 1 1 10rem; }
.lien-carte { display: inline-flex; align-items: center; gap: 6px; }
.infos { display: grid; gap: 10px; }
.info { display: flex; gap: 10px; align-items: flex-start; font-size: 0.882rem; line-height: 1.35; }
.info svg { flex: none; margin-top: 1px; color: var(--texte-2); }
.info-attention svg { color: var(--attention); }
.info-critique svg { color: var(--critique); }
.info-ok svg { color: var(--ok); }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 0.882rem; font-variant-numeric: tabular-nums; }
.horaires .aujourdhui { font-weight: 600; }
.texte-attention { color: var(--attention); }
.nav-droite .bouton-nav { padding: 0 4px; }
.ligne-reglage:has(input[type="text"], input[type="url"]) .cellule-texte { flex: 0 0 auto; }
.ligne-reglage:has(input[type="text"], input[type="url"]) .entree { flex: 1 1 0; }
.boutons-egaux > .bouton { flex: 1 1 9rem; }
.boutons-pile { flex-direction: column; align-items: stretch; }
.attente { display: flex; align-items: center; gap: 10px; padding: 16px 4px; color: var(--texte-2); }
.attente .activite { margin: 0; flex: none; }
.apercu { margin-top: 12px; display: flex; gap: 12px; align-items: flex-end; }
.apercu img { max-width: 55%; max-height: 240px; border-radius: 10px; object-fit: contain; background: var(--surface-2); }

/* ---------- profil de ville ---------- */
.bandeau-ville { border-radius: var(--rayon-feuille); overflow: hidden; background: var(--surface); margin: 4px 0 14px; }
.bandeau-motif { height: 64px; }
.bandeau-motif svg { display: block; width: 100%; height: 100%; }
.bandeau-texte { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 10px 10px 14px; }
.bandeau-titre { font-size: 1.412rem; font-weight: 700; line-height: 1.2; }
.conseils { display: grid; gap: 12px; }
.conseil { background: var(--surface); border-radius: var(--rayon); padding: 12px 14px; }
.conseil h3 { margin: 0 0 4px; font-size: 1rem; }
.conseil p { margin: 0; font-size: 0.941rem; line-height: 1.4; }

/* ---------- sur place ---------- */
.maintenant { background: var(--surface); border-radius: var(--rayon-feuille); padding: 12px 14px 14px; margin: 4px 0 16px; border: 2px solid var(--accent); }
.maintenant-entete { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.765rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; }
.maintenant-entete .bouton { text-transform: none; letter-spacing: 0; }
.maintenant-bloc + .maintenant-bloc, .maintenant-bloc + div, div + .maintenant-bloc { margin-top: 12px; }
.maintenant-libelle { font-size: 0.765rem; color: var(--texte-2); font-weight: 600; }
.maintenant-nom { font-size: 1.176rem; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.maintenant-detail { font-size: 0.882rem; color: var(--texte-2); margin-top: 2px; }
.maintenant-detail svg { vertical-align: -2px; }
.hors-ligne { display: flex; align-items: center; gap: 8px; padding: 8px max(var(--marge), env(safe-area-inset-left)); background: var(--surface-2); color: var(--texte); font-size: 0.882rem; }

/* ---------- groupe ---------- */
.onglets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lien-invitation .entree { font-size: 0.882rem; }
.etape-separation .etape-carte { border-left-style: double; border-left-width: 6px; }
.piste { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.piste-mienne { outline: 2px solid var(--accent); outline-offset: -2px; }
.piste-titre { font-size: 0.882rem; font-weight: 600; margin-bottom: 4px; overflow-wrap: break-word; }
.piste-etape { display: flex; flex-wrap: wrap; column-gap: 10px; width: 100%; min-height: 36px; align-items: center; border: 0; background: none; padding: 2px 0; text-align: left; font-size: 0.941rem; }
.piste-etape span:last-child { flex: 1 1 5rem; overflow-wrap: break-word; }
.piste-heure { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3em; }
.ligne-reglage .segments { flex: 0 0 auto; min-width: 7.5rem; }
