/* ═══════════════════════════════════════════════════════════════════════
   Sentier des Miclèwes — CSS Responsive (mobile + desktop)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --green:        #2d5a40;
    --green-light:  #4a8c61;
    --green-pale:   #e8f4ed;
    --green-dark:   #1a3a2a;
    --gold:         #c8963c;
    --gold-light:   #f0d080;
    --gold-pale:    #fdf3df;
    --brown:        #6b4c2a;
    --brown-pale:   #f5ece0;
    --gray-100:     #f7f8f6;
    --gray-200:     #e9ecef;
    --gray-400:     #ced4da;
    --gray-600:     #6c757d;
    --gray-800:     #343a40;
    --white:        #ffffff;
    --shadow:       0 2px 12px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.11);
    --radius:       12px;
    --radius-sm:    8px;
    --sidebar-w:    240px;
    --header-h:     56px;
    --nav-h:        62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE (défaut)
   ════════════════════════════════════════════════════════════════════ */

body { overflow: hidden; }

/* ── Layout mobile ───────────────────────────────────────────────── */
.sidebar    { display: none; }
.desktop-only { display: none !important; }

.main {
    position: fixed;
    inset: 0;
    bottom: var(--nav-h);
    overflow: hidden;
}

/* ── Sections mobile : transitions latérales ─────────────────────── */
.section {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--gray-100);
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.section.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

/* ── Mobile header ───────────────────────────────────────────────── */
.mobile-header {
    height: var(--header-h);
    background: var(--green-dark);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,58,42,0.35);
}
/* Header de l'accueil : brand */
.mh-brand-link {
    display: flex; flex-direction: column; gap: 2px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.mh-brand-link:hover { opacity: 0.8; }
.mh-brand-orchies {
    font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
    font-size: 16px; font-weight: 900;
    color: #ffffff; letter-spacing: 0.4px; line-height: 1.1;
}
.mh-brand-sub {
    font-size: 10px; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 1px;
}

/* Header des sous-pages : bouton retour */
.mobile-header--back { padding: 0 16px; }
.mh-back {
    background: none; border: none; color: white;
    font-size: 22px; cursor: pointer; padding: 8px;
    min-width: 40px; flex-shrink: 0;
}
.mh-title-center {
    flex: 1; text-align: center;
    font-size: 16px; font-weight: 600;
    padding-right: 40px; /* compenser le bouton retour */
}

/* ── Hero (mobile + desktop partagé) ─────────────────────────────── */
.hero {
    position: relative;
    background: #e8d9c0;
    background-image: url('image_accueil.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #e8d5b0;
    overflow: hidden;
    flex-shrink: 0;
    /* Mobile : hauteur généreuse */
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* Dégradé adapté à l'image parchemin clair */
.hero-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 15, 5, 0.0)  0%,
        rgba(30, 15, 5, 0.35) 60%,
        rgba(30, 15, 5, 0.72) 100%
    );
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0;
    height: 22px; background: var(--gray-100);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 1;
    padding: 20px 20px 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.hero-top-badge { }
.hero-badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.9);
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.3px;
}
.hero-text-block { }
.hero-eyebrow {
    font-size: 11px; color: rgba(255,255,255,0.65);
    text-transform: uppercase; letter-spacing: 1.2px;
    display: block; margin-bottom: 6px;
}
.hero-title {
    font-size: 28px; font-weight: 800;
    color: white; line-height: 1.1; margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-title span { color: var(--gold-light); }
.hero-subtitle {
    font-size: 13px; color: rgba(255,255,255,0.75);
    font-style: italic; line-height: 1.5;
}
.hero-stats {
    display: flex; align-items: center;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm); padding: 10px 0;
}
.hero-stat    { flex: 1; text-align: center; }
.stat-val     { display: block; font-size: 17px; font-weight: 700; color: var(--gold-light); }
.stat-lbl     { display: block; font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.4px; }
.hero-stat-sep { width: 1px; background: rgba(255,255,255,0.18); align-self: stretch; }

/* ── Page content mobile ─────────────────────────────────────────── */
.page-content {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

/* ── Quick actions (mobile accueil) ──────────────────────────────── */
.quick-actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-bottom: 4px;
}
.quick-action-btn {
    background: var(--white); border: none;
    border-radius: var(--radius); padding: 14px 8px;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.quick-action-btn:active { transform: scale(0.95); box-shadow: none; }
.qa-icon  { font-size: 26px; }
.qa-label { font-size: 11px; color: var(--gray-600); text-align: center; line-height: 1.3; }

/* ── Two-col (colonne unique sur mobile) ─────────────────────────── */
.two-col { display: flex; flex-direction: column; gap: 0; }

/* ── Bottom nav (mobile) ─────────────────────────────────────────── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: grid; grid-template-columns: repeat(4, 1fr);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.bnav-item {
    background: none; border: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; cursor: pointer; color: var(--gray-600);
    transition: color 0.2s; padding: 6px 4px;
}
.bnav-item.active { color: var(--green); }
.bnav-icon  { font-size: 20px; }
.bnav-label { font-size: 9px; font-weight: 500; }

/* ════════════════════════════════════════════════════════════════════
   PARTAGÉ mobile + desktop
   ════════════════════════════════════════════════════════════════════ */

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
    background: var(--white); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.card:last-child { margin-bottom: 0; }
.card-map { padding: 14px; }
.card-map svg { border-radius: var(--radius-sm); }

/* ── Section label ───────────────────────────────────────────────── */
.section-label {
    font-size: 11px; font-weight: 700; color: var(--gray-600);
    text-transform: uppercase; letter-spacing: 0.7px;
    margin: 16px 0 8px;
}
/*.section-label:first-child { margin-top: 0; }*/

/* ── Card accent ─────────────────────────────────────────────────── */
.card-accent {
    background: var(--green-pale); border-left: 4px solid var(--green);
    display: flex; align-items: flex-start; gap: 12px;
}
.anecdote-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.anecdote-text { font-size: 14px; line-height: 1.65; color: var(--green-dark); }

/* ── Info rows ───────────────────────────────────────────────────── */
.info-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--gray-200);
}
.info-row.no-border { border-bottom: none; }
.info-icon-sm { font-size: 17px; flex-shrink: 0; margin-top: 2px; }
.info-detail  { display: flex; flex-direction: column; gap: 2px; }
.info-label   { font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.3px; }
.info-value   { font-size: 14px; color: var(--gray-800); line-height: 1.4; }

/* ── Btn link ────────────────────────────────────────────────────── */
.btn-link-full {
    width: 100%; background: none; border: none;
    color: var(--green); font-size: 13px; font-weight: 600;
    cursor: pointer; padding: 10px 0 2px; text-align: right;
    transition: opacity 0.2s;
}
.btn-link-full:hover { opacity: 0.7; }

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 16px; }
.timeline::before {
    content: ''; position: absolute;
    left: 24px; top: 20px; bottom: 20px;
    width: 2px; background: var(--gray-200);
}
.tl-item {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 16px; position: relative;
}
.tl-dot {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: var(--shadow);
}
.tl-dot--gold  { background: var(--gold-pale);  border: 2px solid var(--gold); }
.tl-dot--green { background: var(--green-pale); border: 2px solid var(--green); }
.tl-dot--brown { background: var(--brown-pale); border: 2px solid var(--brown); }
.tl-body  { flex: 1; }
.tl-date  { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.tl-title { font-size: 15px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.tl-text  { font-size: 14px; color: var(--gray-600); line-height: 1.65; }
.tl-highlight {
    margin-top: 10px; padding: 8px 12px;
    background: var(--gold-pale); border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px; color: var(--brown); line-height: 1.5;
}

/* ── Étymologie ──────────────────────────────────────────────────── */
.etym-badge {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 8px 14px;
    background: var(--green-pale); border-radius: var(--radius-sm);
    flex-wrap: wrap;
}
.etym-from  { font-size: 14px; font-weight: 700; color: var(--brown); font-style: italic; }
.etym-arrow { font-size: 15px; color: var(--gray-400); }
.etym-to    { font-size: 14px; font-weight: 700; color: var(--green-dark); font-style: italic; }
.etym-note  { font-size: 11px; color: var(--gray-600); background: white; padding: 2px 8px; border-radius: 10px; }

/* ── Card feature ────────────────────────────────────────────────── */
.card-feature { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon  { font-size: 34px; flex-shrink: 0; }
.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-text  { font-size: 14px; color: var(--gray-600); line-height: 1.65; }

/* ── Route steps ─────────────────────────────────────────────────── */
.route-steps { position: relative; padding-left: 10px; }
.route-steps::before {
    content: ''; position: absolute;
    left: 22px; top: 18px; bottom: 18px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--green));
    opacity: 0.25;
}
.route-step {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 8px; position: relative;
}
.step-marker {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--green); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    position: relative; z-index: 1;
    box-shadow: 0 2px 6px rgba(45,90,64,0.25);
}
.step-marker--depart  { background: var(--gold); color: var(--green-dark); }
.step-marker--arrivee { background: var(--green-dark); }
.step-card  { flex: 1; padding: 10px 14px; margin-bottom: 0; }
.step-name  { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.step-detail{ font-size: 12px; color: var(--gray-600); margin-top: 2px; line-height: 1.4; }
.route-step--depart  .step-card { border-left: 3px solid var(--gold); }
.route-step--arrivee .step-card { border-left: 3px solid var(--green-dark); }

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-droite  { background: var(--green-pale); color: var(--green-dark); }
.badge-gauche  { background: var(--gold-pale);  color: var(--brown); }
.badge-grand   { background: #dde4f8; color: #1a2c8c; }

/* ── Panneau recap ───────────────────────────────────────────────── */
.panneau-recap {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.recap-stat {
    background: var(--white); border-radius: var(--radius);
    padding: 12px 8px; text-align: center; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 3px;
}
.recap-val { font-size: 22px; font-weight: 700; color: var(--green); }
.recap-lbl { font-size: 10px; color: var(--gray-600); }

/* ── Filter ──────────────────────────────────────────────────────── */
.filter-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
    padding: 6px 14px; border-radius: 20px;
    border: 1.5px solid var(--gray-200);
    background: var(--white); color: var(--gray-600);
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: all 0.18s;
}
.filter-btn:hover  { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); color: white; border-color: var(--green); }
.panneau-dim-note  { font-size: 12px; color: var(--gray-400); font-style: italic; }

/* ── Panneau grid ────────────────────────────────────────────────── */
.panneau-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.panneau-item {
    background: var(--white); border-radius: var(--radius);
    padding: 12px 14px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.panneau-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.panneau-ref {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--green-pale); color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.panneau-item--grand .panneau-ref { background: #dde4f8; color: #1a2c8c; }
.panneau-info { flex: 1; min-width: 0; }
.panneau-name { font-size: 14px; font-weight: 500; color: var(--gray-800); }
.panneau-sub  { font-size: 12px; color: var(--gray-600); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Panneau preview ─────────────────────────────────────────────── */
.panneau-preview-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.panneau-demo {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green); color: white;
    padding: 10px 18px; border-radius: var(--radius-sm); flex-shrink: 0;
}
.pd-icon  { font-size: 18px; }
.pd-text  { display: flex; flex-direction: column; }
.pd-top   { font-size: 10px; opacity: 0.75; }
.pd-bot   { font-size: 14px; font-weight: 700; }
.pd-arrow { font-size: 12px; opacity: 0.7; }
.panneau-note { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ── Nature grid ─────────────────────────────────────────────────── */
.nature-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 12px;
}
.nature-card  { text-align: center; }
.nature-icon  { font-size: 32px; margin-bottom: 8px; }
.nature-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.nature-text  { font-size: 13px; color: var(--gray-600); line-height: 1.55; }

/* ── Plan interactif ─────────────────────────────────────────────── */
.map-toggle-wrap {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: visible; /* pas de overflow:hidden sinon le bouton est coupé */
    display: block;
}
.map-img {
    width: 100%; height: auto;
    display: block;
    border-radius: var(--radius-sm);
    transition: opacity 0.3s ease;
}
.map-toggle-wrap:active .map-img { opacity: 0.85; }

/* Bouton bascule en overlay */
.map-toggle-hint {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
    transition: background 0.2s;
}
.map--satellite .map-toggle-hint {
    background: rgba(30,30,30,0.80);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

/* Bouton agrandir haut gauche */
.map-btn-expand {
    position: absolute;
    top: 10px; left: 10px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, transform 0.15s;
}
.map-btn-expand:hover  { background: white; transform: scale(1.08); }
.map-btn-expand:active { transform: scale(0.95); }

/* ── Modale plein écran ───────────────────────────────────────────── */
.map-modal {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.88);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.map-modal.hidden { display: none; }

.map-modal-inner {
    position: relative;
    max-width: min(95vw, 1200px);
    max-height: 90vh;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.map-modal-img {
    display: block;
    width: 100%; height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    transition: opacity 0.2s ease;
}
.map-modal-img.switching { opacity: 0.3; }

.map-modal-close {
    position: fixed;
    top: 16px; right: 16px;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; cursor: pointer;
    z-index: 1001;
    transition: background 0.2s, transform 0.15s;
}
.map-modal-close:hover  { background: rgba(255,255,255,0.28); transform: scale(1.1); }
.map-modal-close:active { transform: scale(0.92); }

.map-modal-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: white;
    pointer-events: none;
}

/* ── Fiches PDF ──────────────────────────────────────────────────── */
.pdf-intro {
    font-size: 13px; color: var(--gray-600);
    margin-bottom: 14px; line-height: 1.5;
}
.pdf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.pdf-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    cursor: pointer;
}
.pdf-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--green);
}
.pdf-card:active { transform: scale(0.98); }
.pdf-card--orchies {
    border-color: var(--gold);
    background: var(--gold-pale);
}
.pdf-card--orchies:hover { border-color: var(--brown); }
.pdf-card-icon {
    font-size: 28px; flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--green-pale);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.pdf-card--orchies .pdf-card-icon { background: rgba(200,150,60,0.15); }
.pdf-card-body { flex: 1; min-width: 0; }
.pdf-card-num {
    font-size: 10px; font-weight: 700;
    color: var(--gray-400); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 3px;
}
.pdf-card-title { font-size: 15px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.pdf-card-desc  { font-size: 12px; color: var(--gray-600); line-height: 1.45; }
.pdf-card-arrow {
    font-size: 18px; color: var(--green);
    flex-shrink: 0; font-weight: 700;
    transition: transform 0.2s;
}
.pdf-card-quote {
    font-size: 11px; color: var(--gray-400);
    font-style: italic; margin-top: 6px;
    border-left: 2px solid var(--gray-200);
    padding-left: 8px; line-height: 1.4;
}
.pdf-card--orchies .pdf-card-quote { border-left-color: var(--gold); color: var(--brown); }
.histoire-intro { margin-bottom: 0; }

/* Sur desktop, 2 colonnes */
@media (min-width: 900px) {
    .pdf-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Plan interactif ─────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800); color: white;
    padding: 12px 20px; border-radius: 24px;
    font-size: 14px; z-index: 999; white-space: nowrap;
    box-shadow: var(--shadow-md); transition: opacity 0.3s;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ════════════════════════════════════════════════════════════════════
   DESKTOP (≥ 900px)
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

    /* Reset mobile overrides */
    body { overflow: hidden; display: flex; }

    /* ── Sidebar visible ──────────────────────────────────────────── */
    .sidebar {
        display: flex; flex-direction: column;
        width: var(--sidebar-w); flex-shrink: 0;
        background: var(--green-dark);
        height: 100vh; position: sticky; top: 0;
    }
    .sidebar-brand {
        padding: 22px 20px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .sidebar-brand-link {
        display: flex; flex-direction: column; align-items: flex-start;
        text-decoration: none;
        gap: 3px;
        transition: opacity 0.2s;
    }
    .sidebar-brand-link:hover { opacity: 0.8; }
    .brand-orchies {
        font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
        font-size: 17px;
        font-weight: 900;
        color: #ffffff;
        letter-spacing: 0.5px;
        line-height: 1.1;
        white-space: nowrap;
    }
    .brand-sub-text {
        font-size: 10px;
        color: rgba(255,255,255,0.45);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 400;
    }

    .sidebar-nav {
        flex: 1; padding: 16px 12px;
        display: flex; flex-direction: column; gap: 4px;
    }
    .nav-item {
        width: 100%; background: none; border: none;
        display: flex; align-items: center; gap: 12px;
        padding: 10px 12px; border-radius: var(--radius-sm);
        color: rgba(255,255,255,0.65);
        font-size: 14px; font-weight: 500;
        cursor: pointer; text-align: left;
        transition: background 0.15s, color 0.15s;
    }
    .nav-item:hover  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
    .nav-item.active { background: rgba(255,255,255,0.15); color: white; }
    .nav-icon  { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
    .nav-label { flex: 1; }

    .sidebar-footer {
        padding: 20px 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex; justify-content: space-around;
    }
    .sidebar-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
    .s-val { font-size: 18px; font-weight: 700; color: var(--gold-light); }
    .s-lbl { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

    /* ── Main desktop ─────────────────────────────────────────────── */
    .main {
        position: static;
        flex: 1; overflow-y: auto;
        height: 100vh;
    }

    /* ── Sections desktop : pas d'animation latérale ──────────────── */
    .section {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        overflow: visible;
    }
    .section.active { display: block; }

    /* ── Masquer éléments mobile ──────────────────────────────────── */
    .mobile-header { display: none; }
    .mobile-only   { display: none !important; }
    .bottom-nav    { display: none; }

    /* ── Afficher éléments desktop ────────────────────────────────── */
    .desktop-only { display: block !important; }

    /* ── Hero desktop ─────────────────────────────────────────────── */
    .hero {
        min-height: 560px;
        background-position: center center;
        justify-content: flex-end;
    }
    .hero-img-overlay {
        background: linear-gradient(
            to right,
            rgba(30, 15, 5, 0.80) 0%,
            rgba(30, 15, 5, 0.55) 35%,
            rgba(30, 15, 5, 0.10) 60%,
            rgba(30, 15, 5, 0.0)  100%
        );
    }
    .hero::after { height: 28px; }
    .hero-content {
        padding: 36px 52px 44px;
        max-width: 580px;
        gap: 16px;
    }
    .hero-badge-pill { font-size: 12px; padding: 5px 14px; }
    .hero-eyebrow    { font-size: 12px; letter-spacing: 1.5px; }
    .hero-title      { font-size: 46px; margin-bottom: 10px; }
    .hero-subtitle   { font-size: 15px; }
    .hero-stats      { max-width: 360px; }
    .stat-val        { font-size: 20px; }
    .stat-lbl        { font-size: 11px; }

    /* ── Page layout desktop ──────────────────────────────────────── */
    .page-content {
        padding: 32px 48px 48px;
        max-width: 1100px;
    }
    .page-header {
        padding: 36px 48px 0;
        max-width: 1100px;
    }
    .page-title { font-size: 24px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
    .page-desc  { font-size: 15px; color: var(--gray-600); }

    /* ── Two-col desktop ──────────────────────────────────────────── */
    .two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px; align-items: start;
    }

    .col2 {
	width: 120%;
    }

    /* ── Panneau grid desktop ─────────────────────────────────────── */
    .panneau-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* ── Nature grid desktop ──────────────────────────────────────── */
    .nature-grid { grid-template-columns: repeat(4, 1fr); }

    /* ── Timeline desktop max-width ───────────────────────────────── */
    .timeline    { max-width: 700px; }
    .card-feature { max-width: 700px; }

    /* ── Toast desktop ────────────────────────────────────────────── */
    .toast { bottom: 24px; left: calc(var(--sidebar-w) + 24px); transform: none; }
}
