/* GR20 en cinq jours : carnet de route. Papier, encre de granite, balisage
   rouge et blanc du GR, vert du maquis, bleu de la mer. Aucune police externe. */

:root {
  --papier: #F3EEE4;
  --carte: #FBF8F2;
  --encre: #24231F;
  --encre-2: #57534A;
  --muted: #6F6A60;
  --filet: #DCD4C4;
  --rouge: #C4202F;
  --maquis: #3D5A3A;
  --maquis-clair: #E3E9DC;
  --mer: #1F5F7A;
  --samuel: #1F72B0;
  --hugo: #D17A22;
  --alerte: #A3271C;
  --rayon: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 16px/1.55 var(--sans);
  /* Courbes de niveau en fond, très discrètes. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23D9CFBD' stroke-width='1' opacity='.55'%3E%3Cpath d='M-20 80 C60 40 120 120 210 90 S360 20 440 70'/%3E%3Cpath d='M-20 120 C70 80 130 160 215 130 S360 60 440 110'/%3E%3Cpath d='M-20 165 C80 125 140 205 220 175 S365 105 440 155'/%3E%3Cpath d='M-20 260 C50 230 110 300 200 280 S350 220 440 260'/%3E%3Cpath d='M-20 305 C60 270 120 345 205 320 S355 265 440 305'/%3E%3Cpath d='M-20 350 C70 315 130 390 210 365 S360 310 440 350'/%3E%3C/g%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: var(--mer); }
.muted { color: var(--muted); }
.alerte { color: var(--alerte); font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------- en-tête */

.top {
  padding-top: max(.9rem, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-left: clamp(1rem, 4vw, 2.5rem); padding-right: clamp(1rem, 4vw, 2.5rem); padding-bottom: .5rem;
  max-width: 1120px; margin: 0 auto;
}
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--encre); }
.balise {
  width: 30px; height: 22px; border-radius: 3px; flex: none;
  background: linear-gradient(var(--carte) 0 50%, var(--rouge) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.marque-txt { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .02em; line-height: 1; }
.marque-txt b { color: var(--rouge); }
.marque-txt small { display: block; font: 600 .68rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.top-droite { display: flex; align-items: center; gap: 1rem; }
.decompte {
  font: 700 .95rem var(--sans); letter-spacing: .04em;
  background: var(--encre); color: var(--papier); padding: .3rem .7rem; border-radius: 99px;
}
.lien-discret { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; }

.onglets {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none;
  padding: .45rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(243, 238, 228, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--filet);
  max-width: 100%;
}
.onglets::-webkit-scrollbar { display: none; }
.onglets a {
  flex: none; padding: .4rem .8rem; border-radius: 99px; text-decoration: none;
  color: var(--encre-2); font-weight: 600; font-size: .93rem;
}
.onglets a:hover { background: #E8E0D1; }
.onglets a.actif { background: var(--encre); color: var(--papier); }

main { max-width: 1120px; margin: 0 auto; padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.vue > * + * { margin-top: 1.2rem; }
.chargement { color: var(--muted); }

.titre-vue { padding-top: .6rem; border-bottom: 2px solid var(--encre); padding-bottom: .8rem; margin-bottom: 1.4rem; }
.titre-vue h1 { display: flex; align-items: center; gap: .6rem; }
.titre-vue h1::before { content: ""; width: 10px; height: 1.1em; background: linear-gradient(var(--carte) 0 50%, var(--rouge) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); border-radius: 2px; }
.chapeau { color: var(--encre-2); max-width: 72ch; margin: 0; }
h2.section { margin-top: 2rem; font-size: 1.45rem; }

.carte {
  background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon);
  padding: 1.1rem 1.25rem; box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.1rem; }
.grille-2.serre { gap: 1.5rem; margin-top: 1rem; }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.grille-2 > .carte, .grille-3 > .carte { margin: 0; }
.entete-carte { display: flex; justify-content: space-between; align-items: baseline; }

/* --------------------------------------------------------------- porte */

.porte { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.porte-balise { width: 64px; height: 46px; margin: 0 auto 1.2rem; border-radius: 5px; background: linear-gradient(var(--carte) 0 50%, var(--rouge) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.porte-erreur { color: var(--alerte); font-weight: 600; }

.porte-form { display: flex; gap: .5rem; align-items: flex-end; margin: 1.4rem 0 1rem; text-align: left; }
.porte-form label { flex: 1; }

.horsligne {
  text-align: center; font-size: .85rem; font-weight: 700;
  background: #F2E1BD; color: #6B4A0B; padding: .4rem 1rem; border-bottom: 1px solid #E2CC97;
}
.lien-appareil { margin-top: .8rem; }
.lien-appareil p.ok { color: var(--maquis); font-weight: 600; }
.lien-appareil input { font-size: .8rem; }

/* --------------------------------------------------------------- accueil */

.hero {
  display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: center;
  background: var(--encre); color: var(--papier); border-radius: 14px; padding: 1.6rem 2rem;
  position: relative; overflow: hidden;
}
.corse { width: 100%; height: auto; display: block; }
.corse .ile { fill: #3A3933; stroke: #6E6A5E; stroke-width: 1.2; }
.corse .trace { fill: none; stroke: var(--rouge); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 0; }
.corse .etape { fill: var(--papier); stroke: var(--rouge); stroke-width: 2; }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: #C9C1B0; margin-bottom: .3rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: .2rem; }
.hero .fleche { color: var(--rouge); }
.hero-dates { color: #D8D0BF; }
.chiffres { display: grid; grid-template-columns: repeat(4, auto); gap: .5rem 2rem; margin: 1rem 0 0; justify-content: start; }
.chiffres div { border-left: 2px solid var(--rouge); padding-left: .7rem; }
.chiffres dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #B8B0A0; }
.chiffres dd { margin: 0; font: 600 1.6rem/1.2 var(--serif); }

.defi { border-left: 6px solid var(--rouge); }
.ligne-jauge { display: grid; grid-template-columns: minmax(120px, 11rem) 1fr auto; gap: .8rem; align-items: center; margin: .5rem 0; font-size: .93rem; }
.ligne-jauge b { font-variant-numeric: tabular-nums; font-size: .88rem; }
.jauge { height: 8px; background: #E7E0D2; border-radius: 99px; overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--maquis); border-radius: 99px; }
.jauge.j-samuel span { background: var(--samuel); }
.jauge.j-hugo span { background: var(--hugo); }
.semaine { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--filet); }

.liste-simple { list-style: none; padding: 0; margin: 0; }
.liste-simple li { display: flex; gap: .7rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid #ECE5D7; }
.liste-simple li:last-child { border-bottom: 0; }
.li-titre { flex: 1; }
.echeance { font-size: .8rem; font-weight: 600; color: var(--encre-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.echeance.retard { color: var(--alerte); }

.pastille { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; white-space: nowrap; background: #E7E0D2; color: var(--encre-2); }
.pastille.p-samuel { background: #DCE9F5; color: #134A75; }
.pastille.p-hugo { background: #F7E4D0; color: #7A420C; }
.chip { font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 4px; background: var(--maquis-clair); color: var(--maquis); white-space: nowrap; }
.chip.c-reservation { background: #F6DADC; color: #8E1621; }
.chip.c-decision { background: var(--encre); color: var(--papier); }
.chip.c-entrainement { background: #DDE9EE; color: var(--mer); }

/* --------------------------------------------------------------- formulaires */

.form-ligne { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--encre-2); flex: 1 1 140px; }
label.court { flex: 0 1 90px; }
label.large { flex: 3 1 240px; }
input, select, textarea {
  border: 1px solid #CFC6B4; border-radius: 7px; background: #fff; padding: .5rem .6rem; font-size: .95rem; font-weight: 400; color: var(--encre); width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--mer); outline-offset: 1px; }
button {
  border: 0; border-radius: 7px; background: var(--encre); color: var(--papier); padding: .55rem 1rem; font-weight: 700; cursor: pointer;
}
button:hover { background: #3A3933; }
button.secondaire { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px #BFB6A3; }
button.danger { background: transparent; color: var(--alerte); box-shadow: inset 0 0 0 1px #E3B7B2; }
button.principal { background: var(--rouge); }
button.principal:hover { background: #A51A27; }
button.mini { background: transparent; color: var(--muted); padding: .1rem .45rem; font-size: 1.1rem; line-height: 1; }
button.mini:hover { color: var(--alerte); background: #F3E2DF; }
.espace { flex: 1; }
.case-ligne { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; color: var(--encre); font-size: .95rem; }
.case-ligne input { width: auto; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(640px, 94vw); background: var(--carte); color: var(--encre); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(36, 35, 31, .45); }
.fenetre-form { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; }
.actions { display: flex; gap: .6rem; align-items: center; margin-top: .4rem; }

.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); background: var(--maquis); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 92vw; }
.toast.erreur { background: var(--alerte); }

.filtres { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filtres button:not(.principal) { background: transparent; color: var(--encre-2); box-shadow: inset 0 0 0 1px #CFC6B4; padding: .4rem .85rem; font-weight: 600; }
.filtres button.actif { background: var(--encre); color: var(--papier); box-shadow: none; }

/* --------------------------------------------------------------- cases à cocher */

.case { position: relative; flex: none; width: 26px; height: 26px; display: block; cursor: pointer; }
.case input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.case span { pointer-events: none; position: absolute; inset: 0; border: 2px solid #A99F8B; border-radius: 6px; background: #fff; }
.case input:checked + span { background: var(--maquis); border-color: var(--maquis); }
.case input:checked + span::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.case input:focus-visible + span { outline: 2px solid var(--mer); outline-offset: 2px; }
.case-vide { width: 26px; height: 26px; flex: none; border: 2px dashed #CFC6B4; border-radius: 6px; }

/* --------------------------------------------------------------- tâches */

.mois h2 { font-size: 1.1rem; color: var(--encre-2); margin: 1.6rem 0 .5rem; text-transform: none; }
.taches { list-style: none; margin: 0; padding: 0; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); }
.tache { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 1rem; border-bottom: 1px solid #ECE5D7; }
.tache:last-child { border-bottom: 0; }
.tache.retard { box-shadow: inset 4px 0 0 var(--alerte); }
.tache-corps { flex: 1; background: none; color: inherit; padding: 0; text-align: left; display: flex; flex-direction: column; gap: .25rem; font-weight: 400; border-radius: 4px; }
.tache-corps:hover { background: none; }
.tache-corps:hover .tache-titre { text-decoration: underline; text-decoration-color: var(--filet); }
.tache-titre { font-weight: 650; }
.tache-detail { color: var(--encre-2); font-size: .9rem; }
.tache-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-size: .8rem; }
.tache.faite .tache-titre { text-decoration: line-through; color: var(--muted); }
.tache.faite .tache-detail { display: none; }
.vide { color: var(--muted); padding: 2rem 0; text-align: center; }

/* --------------------------------------------------------------- itinéraire */

.apercu-jours { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.apercu-jour { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--encre); background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem; }
.apercu-jour:hover { border-color: var(--encre); }
.aj-n { font: 700 1.3rem var(--serif); color: var(--rouge); }
.aj-date { font-size: .8rem; color: var(--muted); }
.aj-km { font-weight: 700; font-size: 1.1rem; margin-top: .3rem; }
.aj-barre { height: 6px; background: #E7E0D2; border-radius: 99px; overflow: hidden; }
.aj-barre span { display: block; height: 100%; background: var(--encre); border-radius: 99px; }
.aj-dplus { font-size: .85rem; color: var(--encre-2); }
.aj-fin { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

.jour { background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; padding: 1.4rem 1.5rem; scroll-margin-top: 4rem; }
.jour-tete { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; }
.jour-tete h2 { font-size: 1.5rem; margin: 0; }
.jour-num { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--encre); color: var(--papier); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; position: relative; overflow: hidden; }
.jour-num::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--papier) 0 50%, var(--rouge) 50%); }
.jour-num span { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.jour-num b { font: 600 1.9rem var(--serif); }
.jour-date { margin: 0; font-size: .85rem; color: var(--muted); }
.jour-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0 0 1rem; }
.jour-chiffres div { background: var(--papier); border-radius: 8px; padding: .5rem .7rem; }
.jour-chiffres dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.jour-chiffres dd { margin: 0; font: 600 1.25rem var(--serif); font-variant-numeric: tabular-nums; }
.jour-texte { font-size: 1.02rem; max-width: 75ch; margin-top: 1rem; }
.passage { margin: 0; padding-left: 1.2rem; }
.passage li { margin: .25rem 0; }
.vigilance { margin: 0 0 1rem; padding-left: 1.1rem; }
.vigilance li { margin: .3rem 0; }
.vigilance li::marker { color: var(--rouge); }
.nuit { background: var(--maquis-clair); border-radius: 8px; padding: .7rem .9rem; }
.nuit h3 { color: var(--maquis); margin-bottom: .2rem; font-size: .95rem; }
.nuit p { margin: 0; }
.plan-b { border-left: 6px solid var(--maquis); }

/* carte */
.carte-topo { padding: .8rem; }
.carte-barre { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.carte-jours, .carte-fonds { display: flex; flex-wrap: wrap; gap: .3rem; }
.carte-jours button, .carte-fonds button { background: transparent; color: var(--encre-2); box-shadow: inset 0 0 0 1px #CFC6B4; padding: .35rem .7rem; font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; }
.carte-jours button.actif, .carte-fonds button.actif { background: var(--encre); color: var(--papier); box-shadow: none; }
.carte-jours i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.carte-gr20 { height: min(68vh, 560px); border-radius: 8px; border: 1px solid var(--filet); background: #E9E4D8; z-index: 0; }
.carte-pied { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-top: .6rem; }
.carte-pied p { margin: 0; font-size: .85rem; }
.etiq-boite { background: none; border: 0; }
.etiq { display: inline-block; transform: translate(-50%, -140%); white-space: nowrap; background: var(--carte); color: var(--encre); font: 700 11px/1 var(--sans); padding: .3rem .45rem; border-radius: 5px; border: 2px solid var(--encre); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.etiq-depart { background: var(--encre); color: var(--papier); }
.leaflet-container { font-family: var(--sans); }
.leaflet-tooltip { font-weight: 600; }
.voir-carte { margin-left: auto; padding: .4rem .8rem; font-size: .85rem; }
.jour-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--couleur-jour, transparent); }

/* graphiques */
.profil, .graph { width: 100%; height: auto; display: block; overflow: visible; }
.grille { stroke: #E4DCCC; stroke-width: 1; }
.axe { font: 11px var(--sans); fill: var(--muted); }
.profil-aire { fill: var(--maquis); opacity: .1; }
.profil-ligne { fill: none; stroke: var(--maquis); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pt-mark { fill: var(--maquis); stroke: var(--carte); stroke-width: 2; pointer-events: none; }
.pt-hit { fill: transparent; cursor: help; }
.pt:hover .pt-mark { fill: var(--rouge); }
.pt-alt { font: 600 11px var(--sans); fill: var(--encre-2); }
.objectif { fill: var(--maquis); opacity: .1; }
.barre { cursor: help; }
.barre:hover { opacity: .8; }
.legende { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; margin-bottom: .4rem; color: var(--encre-2); }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende i, .puce { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.legende i.leg-objectif { background: var(--maquis); opacity: .25; width: 18px; }
.puce { margin-right: .4rem; vertical-align: -1px; }

/* --------------------------------------------------------------- tableaux */

.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .6rem 0; }
.tableau th, .tableau td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid #E7E0D2; vertical-align: top; }
.tableau thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1.5px solid var(--encre); }
.tableau tfoot th { border-top: 1.5px solid var(--encre); border-bottom: 0; }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau td:first-child { text-transform: none; }
.tableau .note { color: var(--encre-2); font-size: .85rem; }
.tableau.compact { max-width: 420px; }
.puces { padding-left: 1.2rem; margin: 0 0 .8rem; }
.puces li { margin: .35rem 0; }
.def dt { font-weight: 700; margin-top: .6rem; }
.def dd { margin: .1rem 0 0; color: var(--encre-2); }
.solde { font: 600 1.3rem var(--serif); color: var(--maquis); }

/* --------------------------------------------------------------- entraînement */

.totaux { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--filet); }
.total-perso h3 { margin: 0; }
.total-perso p { margin: 0; }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.phase { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem; }
.phase.en-cours { border: 2px solid var(--encre); box-shadow: 0 0 0 4px rgba(196, 32, 47, .1); }
.phase.en-cours h3::after { content: "  en cours"; font: 700 .7rem var(--sans); color: var(--rouge); text-transform: uppercase; letter-spacing: .08em; }
.phase-dates { font-size: .8rem; color: var(--muted); margin: 0; }
.phase-obj { font-weight: 600; font-size: .88rem; color: var(--mer); }
.phase ul { padding-left: 1.1rem; margin: 0; font-size: .9rem; }
.phase li { margin: .3rem 0; }
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .8rem; }
.repere { border-top: 3px solid var(--rouge); background: var(--carte); padding: .9rem 1rem; border-radius: 0 0 var(--rayon) var(--rayon); }
.repere p { margin: 0; font-size: .93rem; }

/* --------------------------------------------------------------- matériel */

.sacs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.sac { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem 1.2rem; }
.sac h3 { margin-bottom: .1rem; }
.sac-poids { font: 600 2.2rem/1.1 var(--serif); margin: .2rem 0; font-variant-numeric: tabular-nums; }
.sac .muted { font-size: .85rem; }
.cat-materiel h2 { font-size: 1.1rem; color: var(--encre-2); margin: 1.4rem 0 .5rem; }
.materiel { list-style: none; margin: 0; padding: 0; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); }
.objet { display: flex; gap: .8rem; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid #ECE5D7; }
.objet:last-child { border-bottom: 0; }
.objet.pret .objet-nom { color: var(--muted); }
.objet.pas-moi { background: #F7F3EA; }
.objet-corps { flex: 1; background: none; color: inherit; padding: 0; text-align: left; font-weight: 400; display: flex; flex-direction: column; }
.objet-corps:hover { background: none; text-decoration: underline; text-decoration-color: var(--filet); }
.objet-nom { font-weight: 600; }
.objet-note { font-size: .82rem; color: var(--muted); }
.objet-meta { display: flex; gap: .6rem; align-items: center; font-size: .82rem; }
.poids { color: var(--encre-2); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.autre { font-weight: 700; font-size: .75rem; padding: .1rem .4rem; border-radius: 4px; background: #EEE7D9; color: var(--muted); min-width: 2.6em; text-align: center; }
.autre.ok { background: var(--maquis-clair); color: var(--maquis); }

/* --------------------------------------------------------------- sécurité */

.secours { display: flex; gap: 1.2rem; align-items: center; background: var(--rouge); color: #fff; border-radius: 14px; padding: 1rem 1.4rem; }
.num-secours { font: 700 3rem/1 var(--serif); }
.secours p { margin: 0; max-width: 60ch; }
.liens { list-style: none; padding: 0; margin: 0; }
.liens li { padding: .4rem 0; border-bottom: 1px solid #ECE5D7; }
.liens li:last-child { border: 0; }

/* --------------------------------------------------------------- petit écran */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 1.3rem; }
  .hero-carte { display: none; }
  .chiffres { grid-template-columns: repeat(2, auto); }
  .apercu-jours { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .jour { padding: 1.1rem; }
  .jour-chiffres { grid-template-columns: repeat(2, 1fr); }
  .jour-tete { flex-wrap: wrap; }
  .voir-carte { margin-left: 0; }
  .carte-gr20 { height: 60vh; }
  .ligne-jauge { grid-template-columns: 7rem 1fr auto; }
  .tableau { font-size: .85rem; }
  .tableau th, .tableau td { padding: .45rem .35rem; }
  .marque-txt small { display: none; }
  .comptes .tableau, .carte > .tableau { display: block; overflow-x: auto; }
}

@media print {
  .onglets, .top-droite, .filtres, button { display: none !important; }
  body { background: #fff; }
}
