/* Carte (about.php) et disponibilites (stock.php), 30/11/2026.
   Carte : mobile = carte (60 % de l'ecran), fiche, liste ; bureau = carte a gauche, panneau a droite. */
.gr { --vert: #00936f; --vert-f: #00785b; --foret: #0f3d2e; --trait: #e2e8e4; --doux: #5b6762; --fond: #f3f6f2; --peu: #a45f00; --plein: #b3261e; color: #1f2a25; text-align: left; font: 16px/1.5 Lato, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.gr * { box-sizing: border-box; min-width: 0; }
.gr-app { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--trait); }
.gr-carte { position: relative; z-index: 0; isolation: isolate; height: 60vh; height: 60svh; min-height: 320px; }
.gr-carte #map { position: absolute; inset: 0; }
.gr-filtres { position: absolute; z-index: 1000; top: 10px; left: 68px; right: 10px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.gr-puce { pointer-events: auto; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--trait); background: #fff; color: #1f2a25; font: 700 14px Lato, sans-serif; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.gr-puce[aria-pressed=false] { opacity: .6; box-shadow: none; text-decoration: line-through; }
.gr-puce b { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
/* Fond OSM attenue : le trace et les refuges ressortent, comme sur la maquette. */
.gr .leaflet-tile-pane { filter: grayscale(.3) contrast(.95); }
.gr .leaflet-tooltip.gr-nom { background: none; border: 0; box-shadow: none; padding: 0 0 0 4px; font: 700 13px Lato, sans-serif; color: #1f2a25; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; }
.gr .leaflet-tooltip.gr-nom::before { display: none; }
.gr-loin .leaflet-tooltip.gr-nom { display: none; }
.gr .leaflet-bar a, .gr .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.gr-tout { position: absolute; z-index: 1000; right: 10px; bottom: 28px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--trait); background: #fff; color: #1f2a25; font: 700 14px Lato, sans-serif; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.gr button:focus-visible, .gr a:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.gr-pt { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; }
.gr-pt i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--c, #00936f); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gr-pt.on i { width: 24px; height: 24px; box-shadow: 0 0 0 3px var(--c, #00936f), 0 1px 6px rgba(0,0,0,.5); }
.gr-panneau { border-top: 1px solid var(--trait); background: var(--fond); }
.gr-fiche { padding: 16px; margin: 12px; background: #fff; border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 61, 46, .08); }
.gr-type { font-size: 13px; color: var(--vert-f); font-weight: 700; }
.gr-fiche h2 { font: 400 28px/1.15 Oswald, sans-serif; margin: 2px 0 10px; color: #1f2a25; text-transform: none; letter-spacing: 0; }
.gr-fiche p { margin: 0 0 12px; }
.gr-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.gr-chiffres div { background: var(--fond); border-radius: 10px; padding: 8px 10px; }
.gr-chiffres dt { font-size: 13px; color: var(--doux); font-weight: 400; }
.gr-chiffres dd { margin: 0; font: 400 21px/1.2 Oswald, sans-serif; white-space: nowrap; }
.gr-troncons { margin: 0 0 12px; padding: 0; list-style: none; font-size: 15px; }
.gr-troncons li { padding: 6px 0; border-top: 1px dashed var(--trait); display: flex; gap: 4px 10px; flex-wrap: wrap; }
.gr-troncons span { color: var(--doux); }
.gr-soir { margin: 0 0 12px; }
.gr-soir strong { display: block; font-size: 14px; margin-bottom: 6px; }
.gr-etats { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.gr-etat { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 14px; border: 1px solid currentColor; white-space: nowrap; }
.gr-e2 { color: var(--vert-f); } .gr-e1 { color: var(--peu); } .gr-e0 { color: var(--plein); } .gr-ef { color: var(--doux); }
.gr-note { font-size: 14px; color: var(--doux); }
.gr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gr-btn { min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; border: 2px solid var(--vert); font: 700 13px Lato, sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; color: var(--vert-f); background: #fff; }
.gr-btn:hover { background: #e6f4f0; color: var(--vert-f); }
.gr-btn.plein { background: #007a5c; border-color: #007a5c; color: #fff; }
.gr-btn.plein:hover { background: var(--vert-f); color: #fff; }
.gr-liste h3 { font: 400 20px Oswald, sans-serif; margin: 0; padding: 16px max(4vw, 16px) 6px; color: #1f2a25; text-transform: none; letter-spacing: 0; }
.gr-liste ol { list-style: none; margin: 0; padding: 0; }
.gr-etape { width: 100%; min-height: 56px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px max(4vw, 16px); background: none; border: 0; border-top: 1px solid var(--trait); color: #1f2a25; font: inherit; text-align: left; cursor: pointer; }
.gr-etape:hover { background: #fff; }
.gr-etape[aria-current=true] { background: #e6f4f0; }
.gr-num { width: 28px; height: 28px; border-radius: 50%; background: var(--c, var(--foret)); color: #fff; font: 400 14px/28px Oswald, sans-serif; text-align: center; }
.gr-etape strong { display: block; line-height: 1.25; }
.gr-etape small { color: var(--doux); font-size: 13px; }
.gr-etape em { font-style: normal; font-size: 13px; color: var(--doux); white-space: nowrap; }
.gr-profil { padding: 24px max(4vw, 16px) 16px; border-top: 1px solid var(--trait); }
.gr-profil h2 { font: 400 26px Oswald, sans-serif; margin: 0; color: #1f2a25; text-transform: none; letter-spacing: 0; }
.gr-profil p { margin: 4px 0 8px; color: var(--doux); font-size: 14px; max-width: 70ch; }
.gr-fig { position: relative; height: 190px; cursor: pointer; }
.gr-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 900px) {
	.gr-app { grid-template-columns: minmax(0, 1fr) 400px; }
	.gr-carte { height: calc(100vh - 170px); min-height: 560px; }
	.gr-panneau .gr-fiche, .gr-panneau .gr-etape, .gr-panneau .gr-liste h3 { padding-left: 20px; padding-right: 20px; }
	.gr-panneau { border-top: 0; border-left: 1px solid var(--trait); height: calc(100vh - 170px); min-height: 560px; overflow: auto; }
}


/* Calendrier des nuits (stock) */
.gs-cal { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; max-width: 380px; margin-bottom: 16px; align-self: start; }
.gs-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gs-cal-tete b { font: 400 20px Oswald, sans-serif; text-transform: capitalize; }
.gs-cal-tete .gs-nav:disabled { opacity: .35; cursor: default; }
.gs-cal-j { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.gs-cal-j span { font-size: 12px; color: var(--mute); padding: 2px 0; text-transform: capitalize; }
.gs-cal-j button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: var(--soft); font-weight: 700; padding: 0; }
.gs-cal-j button:hover:not(:disabled) { border-color: var(--g); }
.gs-cal-j button[aria-pressed=true] { background: var(--gd); color: #fff; }
.gs-cal-j button:disabled { background: none; color: #b7c2bc; font-weight: 400; cursor: default; }
@media (min-width: 1100px) { .gs-vues-corps { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; } .gs-vues-corps.gs-sans-cal { grid-template-columns: minmax(0, 1fr); } }
.gs-sans-cal .gs-cal { display: none; }

/* Disponibilites (stock.php), d'apres la maquette : bandeau vert, onglets, bande de nuits, cartes refuge,
   grille 14 nuits, itineraire. Chaque etat a une forme, un mot et une couleur. */
.gs { --g: #00936f; --gd: #007a5c; --ink: #1f2a24; --mute: #5b6a62; --line: #dfe7e2; --soft: #f2f7f4; --e2: #00845f; --e1: #a85f00; --e0: #b3261e; --ef: #8a958f; color: var(--ink); font: 16px/1.55 Lato, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; text-align: left; }
.gs * { box-sizing: border-box; min-width: 0; }
.gs h1, .gs h2, .gs h3 { font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0; color: inherit; }
.gs h2 { font-size: clamp(24px, 4vw, 32px); text-transform: none; }
.gs h3 { font-size: 19px; text-transform: none; }
.gs button, .gs input, .gs select { font: inherit; color: inherit; }
.gs button { cursor: pointer; }
.gs :focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
.gs-wrap { max-width: 1240px; margin: 0 auto; }
.gs-tabs { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 0 max(5vw, 8px); }
.gs-tabs button { flex: none; min-height: 52px; padding: 0 16px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 700; color: var(--mute); }
.gs-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--g); }
.gs-corps { padding: clamp(18px, 3vw, 36px) max(5vw, 16px) 40px; }
.gs-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--mute); margin: 0 0 14px; }
.gs-legende span { display: inline-flex; align-items: center; gap: 6px; }
.gs svg.gs-sy { width: 16px; height: 16px; flex: none; }
.gs svg.gs-ic { width: 20px; height: 20px; }
.gs-e2 { color: var(--e2); } .gs-e1 { color: var(--e1); } .gs-e0 { color: var(--e0); } .gs-ef { color: var(--ef); }
.gs-nav { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; padding: 0; }
.gs-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gs-puces button { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.gs-puces button[aria-pressed=true] { border-color: var(--g); background: var(--soft); color: var(--g); }
.gs-titre { margin-bottom: 12px !important; }
.gs-cartes { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .gs-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gs-carte { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px 16px; scroll-margin-top: 140px; }
.gs-carte header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.gs-carte header small { color: var(--mute); font-size: 13px; white-space: nowrap; }
.gs-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.gs-ic-w { color: var(--mute); display: grid; place-items: center; }
.gs-stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; font-size: 15px; }
.gs-go { margin-top: 10px; display: flex; justify-content: flex-end; }
.gs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 2px solid var(--gd); background: var(--gd); color: #fff; font-weight: 700; text-decoration: none; }
.gs-btn:hover, .gs-btn:focus { background: #005c45; border-color: #005c45; color: #fff; text-decoration: none; }
.gs-btn.gs-ghost { background: none; color: var(--g); }
.gs-btn.gs-ghost:hover { background: var(--soft); color: var(--gd); }
/* .gs button { color: inherit } passait devant le blanc des boutons pleins (texte fonce sur vert, 2,8). */
.gs .gs-btn, .gs .gs-btn:hover, .gs .gs-btn:focus { color: #fff; }
.gs .gs-btn.gs-ghost { color: var(--gd); }
.gs-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
@media (min-width: 720px) { .gs-form { grid-template-columns: repeat(3, minmax(0, auto)); align-items: end; justify-content: start; } }
.gs-form label, .gs-champ { display: grid; gap: 4px; font-size: 14px; font-weight: 700; margin: 0; }
.gs-form input, .gs-form select { min-height: 44px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.gs-seg { display: inline-flex; justify-self: start; border: 2px solid var(--g); border-radius: 8px; overflow: hidden; color: var(--g); }
.gs-seg button { min-height: 44px; padding: 0 14px; background: none; border: 0; font-weight: 700; font-size: 14px; color: inherit; }
.gs-seg button[aria-pressed=true] { background: var(--gd); color: #fff; }
.gs-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; vertical-align: middle; }
.gs-step button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; font-weight: 700; color: var(--g); padding: 0; }
.gs-step output { min-width: 28px; text-align: center; font-weight: 700; }
.gs-sum { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: var(--soft); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.gs-sum p { margin: 0; }
.gs-nuits { list-style: none; margin: 0 0 0 8px; padding: 0; border-left: 3px solid var(--g); }
.gs-nuits > li { position: relative; padding: 8px 0 14px 22px; }
.gs-nuits > li::before { content: ""; position: absolute; left: -9px; top: 14px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--g); }
.gs-nuits > li.gs-loin::before { border-style: dashed; border-color: var(--ef); }
.gs-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.gs-meta { color: var(--mute); font-size: 14px; }
.gs-loin-b { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--mute); font-size: 14px; }
.gs-nw { white-space: nowrap; }
.gs-note { font-size: 14px; color: var(--mute); margin: 14px 0 0; }
.gs-note-haut { margin: 0 0 12px; }
.gs-msg { margin: 0 0 14px; padding: 12px 14px; border-left: 4px solid var(--g); background: var(--soft); border-radius: 0 8px 8px 0; }
.gs-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 10px; }
.gs-grille { border-collapse: separate; border-spacing: 0; font-size: 14px; width: max-content; min-width: 100%; }
.gs-grille th, .gs-grille td { padding: 0 6px; height: 36px; border-bottom: 1px solid var(--line); text-align: center; background: #fff; white-space: nowrap; vertical-align: middle; }
.gs-grille thead th { position: sticky; top: 0; z-index: 2; background: var(--soft); font-weight: 700; height: 44px; line-height: 1.2; }
.gs-grille .gs-c1 { position: sticky; left: 0; z-index: 1; text-align: left; width: 150px; min-width: 150px; max-width: 150px; white-space: normal; line-height: 1.2; font-weight: 700; }
.gs-grille .gs-c2 { position: sticky; left: 150px; z-index: 1; width: 36px; min-width: 36px; color: var(--mute); border-right: 1px solid var(--line); }
.gs-grille thead .gs-c1, .gs-grille thead .gs-c2 { z-index: 3; }
.gs-grille td.gs-n { min-width: 46px; }
.gs-grille th.gs-we { color: var(--g); }
.gs-hs { border: 2px dashed var(--line); border-radius: 14px; padding: clamp(18px, 4vw, 36px); text-align: center; max-width: 640px; margin: 10px auto; }
.gs-hs p { margin: 10px 0 16px; }
.gs [hidden] { display: none !important; }
@media (max-width: 600px) { .gs-grille { font-size: 13px; } .gs-grille .gs-c1 { width: 110px; min-width: 110px; max-width: 110px; } .gs-grille .gs-c2 { left: 110px; } }
/* Itineraire en couchage indetermine : toutes les formules proposees par le refuge, nuit par nuit. */
.gs-multi { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gs-multi li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.gs-multi li > span:first-of-type { color: var(--mute); }
.gs-multi .gs-stat { font-size: 14px; }
.gs-sans { margin: 8px 0 0; }
