/* ═══════════════════════════════════════════════════════════
   site.css — Alpine Environments
   Shared styles for all site pages (dent-du-geant, etc.)
   ═══════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-site-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.80);
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-map-name {
    font-size: 42px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    margin: 0;
    line-height: 1.1;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #0d1b2a;
    margin: 36px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #0d1b2a;
}

/* ── INTRO BLOCK ──────────────────────────────────────────── */
.intro-block {
    background: white;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 10px;
    line-height: 1.75;
    color: #333;
}
.intro-block p { margin-bottom: 10px; }

/* ── COORDINATES GRID ─────────────────────────────────────── */
.coords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}
.coord-card {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    border-left: 4px solid #0d1b2a;
}
.coord-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 6px;
}
.coord-card .value {
    font-size: 15px;
    font-weight: bold;
    color: #0d1b2a;
    font-family: 'Courier New', monospace;
}
.coord-card .sub {
    font-size: 12px;
    color: #aaa;
    margin-top: 3px;
}

/* ── TABS ─────────────────────────────────────────────────── */
.tab-bar { display: flex; gap: 0; }
.tab-btn {
    background: #dce3ea;
    color: #555;
    border: none;
    padding: 11px 22px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transition: background .2s, color .2s;
}
.tab-btn.active          { background: #0d1b2a; color: white; }
.tab-btn:hover:not(.active) { background: #c5cdd6; }
.tab-content             { display: none; border-radius: 0 8px 8px 8px; overflow: hidden; }
.tab-content.active      { display: block; }

/* ── IGN MAP ──────────────────────────────────────────────── */
#map { width: 100%; height: 800px; }
.map-controls {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #f0f3f6;
    flex-wrap: wrap;
    align-items: center;
}
.map-controls button {
    background: #0d1b2a;
    color: white;
    border: none;
    padding: 7px 13px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.map-controls button:hover  { background: #1b263b; }
.map-controls button.active { background: #415a77; }
#kml-status {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-left: auto;
}

/* ── MAP LABEL ────────────────────────────────────────────── */
.leaflet-div-icon-none {
    background: transparent !important;
    border: none !important;
}

/* ── DOWNLOAD BAR ─────────────────────────────────────────── */
.dl-bar {
    background: #f0f3f6;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.dl-bar a.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0d1b2a;
    color: white;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}
.dl-bar a.btn-dl:hover { background: #1b263b; }

/* ── GOOGLE EARTH NOTE ────────────────────────────────────── */
.ge-note {
    background: #f0f3f6;
    padding: 18px 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.ge-note a { color: #0d1b2a; font-weight: bold; }

/* ── 3D VIEWER ────────────────────────────────────────────── */
#viewer-wrap {
    position: relative;
    width: 100%;
    height: 800px;
    background: #444;
}
#viewer-wrap canvas { display: block; }
#viewer-ui {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    color: white;
    pointer-events: none;
    padding-top: 12px;
}
#viewer-ui h2 {
    font-size: 18px;
    margin: 0;
    text-shadow: 1px 1px 4px black;
}
.viewer-panel {
    position: absolute;
    background: rgba(255,255,255,.92);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
}
#vp-color  { top: 10px; left: 10px; }
#vp-help   { bottom: 10px; left: 10px; line-height: 1.6; }
#vp-rotate { top: 10px; right: 10px; }
#vp-rotate button {
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: #0d1b2a;
    color: white;
    border-radius: 4px;
}
#vp-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,.45);
}

/* ── INFO PANEL ───────────────────────────────────────────── */
.info-panel {
    background: white;
    border-radius: 10px;
    border-left: 4px solid #415a77;
    margin-top: 18px;
    overflow: hidden;
}
.info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: #f7f9fb;
    border-bottom: 1px solid #e8ecf0;
}
.info-panel-header:hover { background: #edf1f5; }
.info-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    letter-spacing: 0.03em;
}
.info-panel-arrow {
    font-size: 12px;
    color: #888;
    transition: transform 0.25s;
}
.info-panel.open .info-panel-arrow { transform: rotate(180deg); }
.info-panel-body {
    display: none;
    padding: 24px 28px;
    color: #444;
    font-size: 14px;
    line-height: 1.75;
}
.info-panel.open .info-panel-body { display: block; }
.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 8px 20px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.info-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-term {
    font-weight: 700;
    color: #0d1b2a;
    font-size: 13px;
}
.info-def { color: #555; }
.info-def code {
    background: #f0f3f6;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #0d1b2a;
}
.info-intro {
    background: #f0f3f6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.65;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    background: #0d1b2a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px 20px;
    font-size: 13px;
    margin-top: 50px;
    line-height: 1.8;
}
.site-footer strong {
    color: white;
    font-size: 14px;
}
.site-footer .footer-school {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
