/* HEXARANDO V12 — Vitrine Geotrek simulée. Architecture visuelle autonome; données fictives explicitement isolées. */
:root{--demo-ink:#1c3030;--demo-green:#23744e;--demo-copper:#bd7644;--demo-bg:#f7f9f5;--demo-line:#dbe6dc}
.version-label{font-size:10px;letter-spacing:.1em}.version-label b{background:#1d5f3f;color:white;border-radius:4px;padding:5px 8px;margin-left:3px}
.v12-demo-indicator{display:inline-flex;gap:7px;align-items:center;background:#f0e9d5;color:#795b2c;border:1px solid #e1d5af;padding:7px 10px;border-radius:6px;font-size:10px;font-weight:750;letter-spacing:.04em}
.v12-demo-indicator::before{content:'●';font-size:10px;color:#c68b48}
.demo-home-kicker{margin-top:17px;display:inline-flex;align-items:center;gap:8px;color:#815e35;background:#f7edda;border:1px solid #e9d9bc;border-radius:5px;padding:8px 11px;font-size:11px;font-weight:700}
.intro .intro-copy{max-width:420px}
.route-overlay.showcase-active{background:#fbfcf9f5;border-color:#d2e1d4;box-shadow:0 22px 72px #0d27283b}
.route-overlay.showcase-active.expanded{width:min(518px,calc(100% - 48px));max-height:calc(100% - 92px);padding:0;overflow:auto;scrollbar-color:#9dc5ae transparent;scrollbar-width:thin}
.route-overlay.showcase-active:not(.expanded){padding:20px 22px;max-height:72%}
.route-overlay.expanded>.detail-head,.route-overlay.expanded>.v12-route-kicker,.route-overlay.expanded>h2,.route-overlay.expanded>.v12-departure,.route-overlay.expanded>.v12-key-figures,.route-overlay.expanded>.detail-actions{margin-left:22px;margin-right:22px}
.route-overlay.expanded>.detail-head{position:sticky;top:0;z-index:7;padding:14px 0;background:#fbfcf9;border-bottom:1px solid #e3eae2;margin-bottom:14px}
.route-overlay.showcase-active h2{font-family:var(--sans);font-size:23px;font-weight:770;line-height:1.17;color:#20392c;letter-spacing:-.7px;margin:8px 0 13px}
.route-overlay.showcase-active.expanded h2{margin-left:22px;margin-right:22px}
.detail-eyebrow{font-size:9px;letter-spacing:.14em;color:#62836d;font-weight:750}
#expand-detail{border:1px solid #c7d9c9;background:#eaf3eb;color:#1f6a45;font-weight:750;padding:8px 10px;border-radius:6px;font-size:11px;cursor:pointer}
.v12-route-kicker{font-size:10px;letter-spacing:.06em;color:#618069;margin-top:4px;font-weight:700}
.v12-route-kicker span{font-size:13px;margin-right:4px}
.v12-departure{font-size:11px;color:#738678;line-height:1.45;margin:0 0 17px}
.v12-key-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:15px}
.v12-key-figures>div{padding:11px 8px;background:#f0f5ee;border:1px solid #dce8d9;border-radius:7px;min-width:0}
.v12-key-figures small{display:block;color:#6e8275;font-size:8px;letter-spacing:.09em;font-weight:750;white-space:nowrap}
.v12-key-figures small sup{color:#ad713c;letter-spacing:0}
.v12-key-figures b{display:block;color:#244c37;font-size:19px;font-weight:800;margin-top:5px;letter-spacing:-.04em;white-space:nowrap}
.v12-key-figures em{font-size:12px;font-style:normal}
.v12-compact-teaser{font-size:12px;color:#748574;line-height:1.6;margin:10px 0 14px}
.v12-explore-more{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 14px;background:#216c48;color:white;border:0;border-radius:6px;font-size:11px;font-weight:750;cursor:pointer}
.v12-explore-more span{font-size:17px}
.demo-showcase{border-top:1px solid #e1e8df;margin-top:10px}
.demo-ribbon{display:flex;justify-content:space-between;align-items:center;gap:9px;background:#263a38;color:#f3f6ed;padding:12px 21px;font-size:9px;letter-spacing:.095em}
.demo-ribbon strong{font-weight:750}.demo-ribbon span:last-child{color:#a6c1ad;font-size:8px;white-space:nowrap}
.demo-live{color:#e2a46c!important;margin-right:-5px}
.demo-tabbar{display:grid;grid-template-columns:repeat(3,1fr);position:sticky;top:43px;z-index:6;background:#f5f8f3;border-bottom:1px solid #d9e4d8}
.demo-tabbar button{font-family:var(--sans);font-size:11px;font-weight:700;padding:14px 6px;cursor:pointer;background:transparent;color:#7c8d80;border:0;border-bottom:3px solid transparent}
.demo-tabbar button[aria-current=page]{color:#267049;border-bottom-color:#267049;background:#eef6ef}
.demo-tabbody{padding:20px 21px 12px}
.demo-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 10px;font-size:9px;font-weight:800;color:#3b564b;letter-spacing:.075em;text-transform:uppercase}
.demo-section-head span:last-child{letter-spacing:0;color:#8a988b;font-size:9px;font-weight:550;text-transform:none;text-align:right}
.demo-profile-wrap{position:relative;background:linear-gradient(#f0f6f0,#f9fbf7);border:1px solid #e1e9dc;border-radius:8px;height:176px;cursor:crosshair;overflow:hidden}
.demo-profile-svg{display:block;width:100%;height:100%}.demo-profile-axis{display:flex;justify-content:space-between;gap:4px;font-size:9px;color:#879889;margin:7px 0 12px}.demo-profile-axis span:nth-child(2){text-align:center}
.demo-profile-float{position:absolute;top:11px;background:#213d32;color:white;box-shadow:0 2px 8px #20352d33;border-radius:5px;padding:6px 8px;font-size:10px;font-weight:600;pointer-events:none;white-space:nowrap;z-index:2}
.demo-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.demo-stats div{background:#f2f5f0;padding:10px;border-radius:5px;display:flex;flex-direction:column;gap:4px}.demo-stats small{font-size:9px;color:#89998b}.demo-stats strong{font-size:16px;color:#294e3b}
.demo-surface-bar,.demo-slope-bar{display:flex;height:14px;border-radius:4px;overflow:hidden;gap:1px;background:#e6ede7}.demo-surface-bar span,.demo-slope-bar span{flex:1 1 0;min-width:0}
.demo-surface-key{display:grid;grid-template-columns:repeat(3,1fr);gap:7px 5px;margin:12px 0 18px}.demo-surface-key span{font-size:10px;color:#6d7f72;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.demo-surface-key i{width:8px;height:8px;border-radius:2px;display:inline-block}.demo-surface-key b{color:#314d3f}




.demo-weather{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.demo-weather>div{border:1px solid #dee7df;background:#f3f7f2;border-radius:7px;display:flex;align-items:center;flex-direction:column;gap:9px;padding:11px 2px;color:#3d5545}.demo-weather small{font-size:9px;color:#7a8b7c}.demo-weather b{font-size:18px;color:#253f32}.demo-weather-icon{font-size:21px;min-height:26px}.demo-weather span:not(.demo-weather-icon){font-size:10px}
.demo-notice{font-size:10px;color:#9c713f;background:#f8f0de;border:1px solid #ead8b6;border-radius:6px;line-height:1.65;padding:10px 12px;margin:14px 0}.demo-body-copy{font-size:12px;line-height:1.6;color:#647b6c}
.demo-disclaimer{font-size:10px;color:#967346;background:#fbf3e5;border-top:1px solid #ebddc6;border-bottom:1px solid #ebddc6;padding:12px 21px;line-height:1.6;margin:8px 0 0}
.v12-provenance{padding:9px 21px 16px}.v12-provenance .source-metadata{grid-template-columns:42% 58%}.v12-provenance .source-disclaimer{padding:9px;background:#f4f7f2;border-radius:5px}.v12-provenance .mobile-transfer{margin-top:16px}.route-overlay.showcase-active.expanded>.detail-actions{padding:12px 0 20px;border-top:1px solid #e4ebe3}
.poi-modal-close{position:absolute;right:20px;top:16px;border:0;background:#edf4ed;border-radius:50%;font-size:22px;width:35px;height:35px;cursor:pointer}
.gpx-hover-geopoint{position:absolute;z-index:15;pointer-events:none;transform:translate(-50%,-50%);width:19px;height:19px;background:#f4bc5d;border:3px solid white;border-radius:50%;box-shadow:0 0 0 5px #e8a34273,0 3px 15px #13201980}
/* v15 : commandes 3D uniformes, visibles et sans chevauchement. */
.gpx-controls{width:38px;align-items:center;z-index:25}
.gpx-controls button{flex-shrink:0}
.gpx-controls .gpx-flight-button{display:flex!important;align-items:center;justify-content:center;width:38px!important;min-width:38px!important;max-width:38px!important;height:40px!important;min-height:40px!important;box-sizing:border-box;background:#204b39!important;color:#fff!important;border-radius:0 0 5px 5px!important;font-size:19px!important;line-height:1!important;font-weight:750!important;padding:0!important;white-space:nowrap;overflow:hidden}
.gpx-controls .gpx-flight-button[data-state=playing]{background:#bd6539!important}
.gpx-controls .gpx-flight-button:hover{filter:brightness(1.15)}
/* La commande Recentrer / Incliner sort de la colonne du survol en 3D. */
#map[data-mode="3d"] ~ .extra-map-controls{top:225px}

@media(max-width:700px){.v12-demo-indicator{display:none}.route-overlay.showcase-active.expanded{left:8px;right:8px;bottom:9px;width:auto;max-height:77dvh}.demo-tabbody{padding:15px}.demo-ribbon{padding:10px 13px}.v12-provenance{padding:8px 15px}.demo-disclaimer{padding:10px 15px}.route-overlay.showcase-active.expanded h2,.route-overlay.expanded>.detail-head,.route-overlay.expanded>.v12-route-kicker,.route-overlay.expanded>.v12-departure,.route-overlay.expanded>.v12-key-figures,.route-overlay.expanded>.detail-actions{margin-left:16px;margin-right:16px}.v12-key-figures b{font-size:16px}.demo-surface-key{grid-template-columns:repeat(2,1fr)}.demo-weather{gap:3px}.demo-weather b{font-size:15px}}


/* v14 : fiche vraiment escamotable, comme les commandes solaires. */
.detail-launcher{position:absolute;z-index:12;right:19px;bottom:82px;width:40px;height:40px;border:1px solid #bed2bf;border-radius:10px;background:#f9fdf7;box-shadow:0 3px 15px #132c2360;color:#1d5f3f;font-size:25px;display:grid;place-items:center;cursor:pointer}
#expand-detail{min-width:34px;min-height:34px;display:inline-grid;place-items:center;font-size:20px!important;line-height:1;padding:3px 7px!important;font-weight:650}
.detail-launcher:hover,#expand-detail:hover{background:#e0eee3}
@media(max-width:700px){.detail-launcher{right:14px;bottom:calc(var(--sheet-height,0px) + 82px)}}

/* v16 — Fiche étendue : réserver une colonne aux commandes verticales 3D.
   La fiche reste scrollable et ne recouvre jamais le bouton survol en haut à droite. */
@media (min-width:701px){
  .map-area:has(#map[data-mode="3d"]) .route-overlay.expanded,
  .map-area:has(#map[data-mode="3d"]) .route-overlay.showcase-active.expanded{
    right:72px;
    max-width:calc(100% - 96px);
  }
}
@media (max-width:700px){
  .map-area:has(#map[data-mode="3d"]) .route-overlay.expanded,
  .map-area:has(#map[data-mode="3d"]) .route-overlay.showcase-active.expanded{
    max-height:max(100px, min(75dvh, calc(100% - 230px)));
  }
}

/* v18 — cartes immobiles et interface allégée : réserve pour commandes, pas d'animation de cadrage sur les panneaux. */
.route-overlay .detail-eyebrow{font-size:9px;letter-spacing:.05em}
.demo-tabbar{top:43px}
.demo-disclaimer{padding:8px 20px;font-size:9px}


.map-topline:not(:has(.map-load-status:not([hidden]))){display:none}
@media(max-width:700px){}

/* v18 : conseils visuels et textes de statut non essentiels écartés de la vue 3D. */
#map[data-mode="3d"] ~ .map-help,.map-area:has(#map[data-mode="3d"]) .map-help{display:none}

/* v19 : l'en-tête n'est plus un panneau blanc autonome. */
.route-overlay.expanded>.detail-head{position:relative;top:auto;z-index:auto;padding:0;margin-top:0;margin-bottom:12px;background:transparent;border:0;box-shadow:none;min-height:32px}
.route-overlay.showcase-active.expanded>.detail-head{background:transparent;border-bottom:0}

/* v21 — Actions GPX prioritaires, immédiatement visibles sous les chiffres clés. */
.route-overlay.showcase-active.expanded>.v21-transfer{margin:2px 22px 14px}
.v21-transfer{display:flex;align-items:stretch;gap:10px}
.v21-download{flex:1;min-width:0;display:flex;justify-content:center;align-items:center;gap:5px;background:#1d5f3f;color:#fff;border:1px solid #1d5f3f;border-radius:8px;padding:13px 9px;font-size:13px;font-weight:750;white-space:normal;line-height:1.3}
.v21-download:hover:not(:disabled){background:#144b31}
.v21-download:disabled{opacity:.55;cursor:progress}
.v21-qr{min-width:0;flex:1;display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:8px;border:1px solid #d4e0d0;background:#fff;text-decoration:none}
.v21-qr:hover{border-color:#7cae8b;background:#f0f7ef}
.v21-qr img{width:112px;height:112px;object-fit:contain;flex:none;background:#fff;border-radius:3px}
.v21-qr strong{font-size:11px;display:block;color:#1c5d3b}
.v21-qr small{display:block;font-size:9px;line-height:1.4;color:#748474;margin-top:3px}
@media(max-width:700px){.route-overlay.showcase-active.expanded>.v21-transfer{margin:2px 16px 12px}.v21-transfer{gap:6px}.v21-download{font-size:11px;padding:10px 7px}.v21-qr{gap:5px;padding:5px}.v21-qr img{width:104px;height:104px}.v21-qr small{font-size:8px}}

/* v23 — description éditoriale adaptable, insérée après les actions GPX. */

/* v30 — À propos minimal, replié par défaut (<dialog> natif). */
.about-dialog{width:min(570px,calc(100vw - 28px));padding:27px 30px;overflow-y:auto}
.about-dialog h2{font-size:26px;margin:4px 35px 14px 0}
.about-dialog h3{margin:16px 0 7px;font-size:12px}
.about-dialog p{margin:8px 0;font-size:12px;line-height:1.65}
.about-source-box{border-radius:8px;padding:12px 15px;background:#edf1ed}
.about-source-box h3{margin-top:0}
.about-legals{display:grid;grid-template-columns:42% 58%;gap:6px 10px;font-size:11px;line-height:1.6}
.about-legals dt{color:#637668}.about-legals dd{margin:0}
@media(max-width:550px){.about-dialog{padding:22px}.about-legals{grid-template-columns:1fr;gap:1px}.about-legals dd{margin-bottom:7px}}

/* v31 : téléchargement accessible sans déployer la fiche. */
.v31-quick-download{margin:8px 0 2px;display:flex}
.v31-quick-download .v21-download{width:100%;min-height:40px;padding:9px 12px;font-size:12px}

/* v41 : une matrice QR par trace, dimension lisible pour le scan sur ecran. */
@media(max-width:700px){.v21-transfer{flex-wrap:wrap}.v21-qr{flex-basis:100%}}

/* v68 : repères GPX projetés, noms au survol/focus et détails sur clic. */
.gpx-waypoint-layer{position:absolute;inset:0;z-index:14;pointer-events:none}
.gpx-waypoint{position:absolute;width:32px;height:36px;padding:3px;border:0;background:white;border-radius:8px;box-shadow:0 2px 7px #142d4255;transform:translate(-50%,-100%);pointer-events:auto;cursor:pointer}
.gpx-waypoint .atlas-icon{width:24px;height:28px}
.gpx-waypoint[hidden],.gpx-waypoint-info[hidden]{display:none}
.gpx-waypoint-label{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#16372e;color:white;padding:4px 7px;border-radius:4px;white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis;display:none;font-size:12px}
.gpx-waypoint:hover .gpx-waypoint-label,.gpx-waypoint:focus-visible .gpx-waypoint-label{display:block}
.gpx-endpoint-badge{position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);background:#16372e;color:white;border-radius:3px;padding:1px 3px;font-size:10px;white-space:nowrap}
.gpx-waypoint-info{position:absolute;left:12px;bottom:14px;width:min(300px,calc(100% - 24px));max-height:45%;overflow:auto;padding:12px;background:#fff;color:#18382c;border-radius:8px;box-shadow:0 3px 15px #13201955;pointer-events:auto;overflow-wrap:anywhere;font-size:13px}
.gpx-waypoint-info>button{float:right;border:0;background:none;padding:2px;color:inherit;cursor:pointer}
.gpx-waypoint-info p{margin:8px 0;white-space:pre-wrap}
.leaflet-gpx-waypoint{color:#365b8b;background:white;border-radius:5px;box-shadow:0 2px 5px #13201955}
.leaflet-gpx-waypoint .atlas-icon{width:24px;height:28px}
@media(pointer:coarse){.gpx-waypoint{width:40px;height:44px;padding:7px}}

/* v72 : repères activables sur la carte ; extrémités sans panneau ni étiquette. */
.gpx-endpoint{pointer-events:none;cursor:default}
.extra-map-controls #toggle-waypoints{display:grid;place-items:center;color:#345d43}
.extra-map-controls #toggle-waypoints[hidden]{display:none}
.extra-map-controls #toggle-waypoints[aria-pressed=true]{background:#1d5f3f;color:#fff}
.extra-map-controls #toggle-waypoints svg{stroke:currentColor}
.extra-map-controls #toggle-waypoints[aria-pressed=true] .waypoints-off{display:none}
.extra-map-controls #toggle-waypoints:focus-visible{outline:2px solid #1d5f3f;outline-offset:3px}
.catalogue-note{font-size:12px;line-height:1.8;color:var(--muted);margin-top:26px}



/* v90 — attribution mobile : garder les crédits accessibles sans les faire
   remonter selon la hauteur variable de la fiche superposée à la carte.
   Aucun changement de caméra, de texture ou de niveau de zoom. */
.map-credits-toggle,.map-credits-panel{display:none}
@media(max-width:700px){
  .map-area:has(#route-detail:not([hidden])) .map-view .leaflet-control-attribution,
  .map-area:has(#route-detail:not([hidden])) .gpx-attribution,
  .map-area:has(#route-detail:not([hidden])) .maplibregl-ctrl-attrib{
    visibility:hidden!important;pointer-events:none!important;
  }
  .map-area:has(#route-detail:not([hidden])) .map-credits-toggle{
    display:inline-flex;align-items:center;justify-content:center;
    position:absolute;top:158px;left:13px;z-index:635;
    min-height:27px;padding:5px 10px;border:1px solid #c8d9c8;
    border-radius:6px;background:#fafcf5ed;backdrop-filter:blur(8px);
    box-shadow:0 2px 8px #183b2d17;color:#315842;font-size:10px;
    line-height:1.25;font-weight:650;
  }
  .map-area:has(#route-detail:not([hidden])) .map-credits-toggle[aria-expanded=true]{background:#e8f1e6}
  .map-area:has(#route-detail:not([hidden])) .map-credits-panel:not([hidden]){
    display:block;position:absolute;z-index:640;top:190px;left:13px;
    width:min(355px,calc(100% - 26px));max-height:min(38dvh,260px);
    overflow:auto;padding:11px 12px;background:#fcfdf9;
    border:1px solid #cbdaca;border-radius:8px;
    box-shadow:0 8px 28px #12291f40;font-size:11px;line-height:1.6;
    color:#365a44;overflow-wrap:anywhere;
  }
  .map-credits-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
  .map-credits-heading button{border:0;background:none;padding:0 5px;font-size:22px;line-height:1.1;color:#456951}
  .map-credits-content a{text-decoration:underline;text-underline-offset:2px}
}
