/* ── Couleurs maquette ── */
:root {
    --surface-dim: #0c1321;
    --surface-container: #19202e;
    --surface-container-low: #151b2a;
    --surface-container-high: #232a39;
    --surface-container-highest: #2e3544;
    --primary-container: #f97316;
    --primary: #ffb690;
    --on-surface: #dce2f6;
    --on-surface-variant: #e0c0b1;
    --outline-variant: #584237;
}

/* ── Hero map ── */
.hero-map-wrap { position: relative; width: 100%; height: 900px; overflow: hidden; background: #070e1c; }
@media (max-width: 768px) { .hero-map-wrap { height: 1000px; } }
.hero-map-wrap #sortie-map-hero { position: absolute; inset: 0; z-index: 1; }
.hero-map-wrap .leaflet-tile-pane { filter: saturate(.85); }
 .hero-grad {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to top, #0c1321 0%, rgba(12,19,33,.7) 30%, rgba(12,19,33,.15) 65%, transparent 100%);
}

.hero-grad-top {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
   
}
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 0 24px 28px; }
@media (min-width: 1280px) { .hero-content { padding-left: calc(max(24px,(100% - 1400px)/2 + 24px)); padding-right: calc(max(24px,(100% - 1400px)/2 + 24px)); } }

/* ── Stats bar ── */
.hero-stats { display: flex; background: rgba(7,14,28,.88); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.hero-stat { flex: 1; text-align: center; padding: 10px 8px; border-right: 1px solid rgba(255,255,255,.05); }
.hero-stat:last-child { border-right: none; }
.hero-stat .v { font-size: 17px; font-weight: 800; color: #e5e7eb; line-height: 1; font-family: 'Courier New', monospace; }
.hero-stat .v small { font-size: 10px; color: #4b5563; font-weight: 600; }
.hero-stat .l { font-size: 8px; color: #4b5563; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.hero-stat.places .v, .hero-stat.places .l { color: #4ade80; }
@media (min-width: 768px) { .hero-stat .v { font-size: 20px; } }

/* ── Countdown ── */
.hero-countdown { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2); border-radius: 20px; }
.hero-countdown .cd-num { font-family: 'Courier New', monospace; font-weight: 800; font-size: 13px; color: #f97316; }
.hero-countdown .cd-sep { color: rgba(249,115,22,.3); }
.cd-pre { font-size: 10px; color: rgba(249,115,22,.6); text-transform: uppercase; letter-spacing: .3px; }

/* ── Avatars stack ── */
.av-stack { display: flex; }
.av-stack img, .av-stack .av-more {
    width: 38px; height: 38px; border-radius: 9999px; border: 2px solid rgba(7,14,28,.95);
    object-fit: cover; background: #0f172a; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.av-stack img + img, .av-stack img + .av-more { margin-left: -10px; }
.av-more { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#f97316,#ea580c); }

/* ── Hero pills / actions ── */
.hero-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); white-space: nowrap; }
.hero-pill-dark { background: rgba(7,14,28,.8); color: #9ca3af; border: 1px solid rgba(255,255,255,.1); }
.hero-actions { position: absolute; top: 20px; right: 20px; z-index: 20; display: flex; gap: 6px; }

/* ── Section headers (maquette) ── */
.section-header { font-size: 1.25rem; font-weight: 900; font-family: 'Plus Jakarta Sans', sans-serif; text-transform: uppercase; letter-spacing: -.02em; display: flex; align-items: center; gap: 16px; margin-bottom: 2rem; color: #fff; }
.section-header::after { content: ''; flex: 1; height: 2px; background: var(--surface-container-highest); }

/* ── Timeline itinerary (maquette) ── */
.itinerary-timeline { position: relative; border-left: 1px solid var(--surface-container-highest); margin-left: 16px; padding-left: 40px; }
.it-item { position: relative; margin-bottom: 2.5rem; }
.it-dot { position: absolute; left: -57px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-dim); border: 4px solid #f97316; }
.it-dot.inactive { border-color: var(--surface-container-highest); }
.it-time { font-size: 1rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; color: #ffb690; letter-spacing: -.02em; }
.it-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #64748b; background: var(--surface-container-low); padding: 3px 10px; border-radius: 4px; }
.it-title { font-size: 1.3rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; color: #fff; margin: 4px 0; }
.it-desc { color: #94a3b8; font-size: .875rem; line-height: 1.6; }

/* ── Cards ── */
.mc-card { background: var(--surface-container-high); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; }
.mc-card-low { background: var(--surface-container-low); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; }
.mc-card-orange { background: rgba(21,27,42,.9); border: 1px solid rgba(249,115,22,.15); border-radius: 14px; }

/* ── Specs grid (maquette) ── */
.spec-lbl { font-size: 10px; text-transform: uppercase; font-weight: 700; color: #64748b; letter-spacing: .12em; margin-bottom: 4px; }
.spec-val { font-size: 1.1rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; color: #fff; }

/* ── Past rides ── */
.past-rides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.past-rides::-webkit-scrollbar { display: none; }
.past-rides .pr-card { flex: 0 0 170px; scroll-snap-align: start; background: rgba(30,41,59,.5); border: 1px solid rgba(255,255,255,.04); border-radius: 12px; padding: 14px; transition: background .2s; text-decoration: none; display: block; }
.past-rides .pr-card:hover { background: rgba(30,41,59,.85); }
.pr-title { font-size: 12px; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-meta { font-size: 10px; color: #64748b; margin-top: 4px; }
.pr-stat { font-size: 11px; color: #94a3b8; font-weight: 600; margin-top: 6px; }

/* ── Map fullscreen modal ── */
#map-fullscreen-modal { display: none; position: fixed; inset: 0; z-index: 999998; background: #070e1c; flex-direction: column; }
#map-fullscreen-modal.open { display: flex; }
#map-fullscreen-close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 999999; display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(15,23,42,.85); backdrop-filter: blur(10px); border: 1px solid rgba(249,115,22,.5); border-radius: 10px; color: #fb923c; font-size: 13px; font-weight: 700; letter-spacing: .05em; cursor: pointer; }
#map-fullscreen { width: 100%; flex: 1; }
#map-fullscreen .leaflet-container { background: #070e1c !important; }
#mff-footer { padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,14,28,.97); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #6b7280; }
#mff-footer .mff-title { font-weight: 700; color: #e5e7eb; font-size: 13px; }
#mff-footer .mff-stats { display: flex; gap: 12px; }
#mff-footer .mff-stat { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #9ca3af; }
#mff-footer .mff-stat strong { color: #e5e7eb; }

/* ── Map expand click overlay ── */
#map-click-overlay { position: absolute; inset: 0; z-index: 6; cursor: zoom-in; }

/* ── Story generator ── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Leaflet dark ── */
.leaflet-popup-content-wrapper { background: #1a1a2e; color: #f1f5f9; border: 1px solid #262640; border-radius: 10px; }
.leaflet-popup-tip { background: #1a1a2e; }
.leaflet-control-zoom a { background: #1a1a2e !important; color: #e5e7eb !important; border-color: #262640 !important; }
.leaflet-control-zoom a:hover { background: #262640 !important; }

/* ── Mobile CTA sticky ── */
.mob-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(7,14,28,.97); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.06); padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .mob-cta { display: none !important; } }

/* ── Pulse orange ── */
@keyframes pulse-orange { 0%,100%{opacity:1} 50%{opacity:.75} }
.pulse-orange { animation: pulse-orange 2s cubic-bezier(.4,0,.6,1) infinite; }

/* ── Index · Filter bar (desktop only) ──────────────────────────────── */
.sf-bar { display: none; margin-bottom: 2rem; }
@media (min-width: 1280px) { .sf-bar { display: block; } }

/* ── Index · Territoire grid ─────────────────────────────────────────── */
.sorties-territoire-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width:  640px) { .sorties-territoire-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sorties-territoire-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .sorties-territoire-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ── Carousel régions (même pattern que home) ── */
.rc-track {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: .75rem;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1e2d42 transparent;
}
.rc-track::-webkit-scrollbar { height: 4px; }
.rc-track::-webkit-scrollbar-track { background: transparent; }
.rc-track::-webkit-scrollbar-thumb { background: #1e2d42; border-radius: 2px; }
.rc-grad { background: linear-gradient(to top, #151b2a 0%, transparent 60%); }
.rc-chef { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }

