/* ===========================
   EXPLOR'ÎLES — V1 STYLESHEET
   Design: Tropical Adventure
   Fonts: Syne (headings) + DM Sans (body)
=========================== */

:root {
  --green: #1D5C3A;
  --green-2: #2E7D52;
  --green-3: #3B9E6A;
  --green-pale: #E8F5EE;
  --teal: #0A7B6C;
  --teal-pale: #E0F5F2;
  --sand: #F5F0E8;
  --sand-2: #EDE8DF;
  --sand-3: #E2DBCF;
  --amber: #D97706;
  --amber-pale: #FEF3C7;
  --red: #DC2626;
  --red-pale: #FEE2E2;
  --blue-pale: #EEF2FF;
  --blue: #3730A3;
  --text: #1A1A1A;
  --text-2: #4A4A4A;
  --text-3: #7A7A7A;
  --text-hint: #A0A0A0;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.07);
  --border-2: rgba(0,0,0,0.12);
  --yellow: #F5C400;
  --yellow-dark: #7A5E00;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --nav-h: 68px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ===== SPLASH ===== */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background:
    linear-gradient(to bottom, rgba(29,92,58,0.78) 0%, rgba(29,92,58,0.88) 100%),
    url('splash-bg.jpg') center 35% / cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
  animation: splashFadeOut 0.5s ease 2.2s forwards;
}
@keyframes splashFadeOut { to { opacity: 0; pointer-events: none; } }

.splash-logo {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: splashIn 0.6s ease 0.2s both;
}
@keyframes splashIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.splash-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.splash-text h1 {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 800;
  color: white; text-align: center; letter-spacing: -0.5px;
}
.splash-text p { color: rgba(255,255,255,0.65); font-size: 13px; text-align: center; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; }

.splash-loader {
  width: 120px; height: 2px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden;
  animation: splashIn 0.3s ease 0.5s both;
}
.splash-progress {
  height: 100%; width: 0; background: rgba(255,255,255,0.8); border-radius: 2px;
  animation: progress 1.8s ease 0.5s forwards;
}
@keyframes progress { to { width: 100%; } }

/* ===== APP ===== */
#app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--sand);
  animation: appIn 0.4s ease 2.5s both;
}
@keyframes appIn { from { opacity:0; } to { opacity:1; } }
.hidden { display: none !important; }

/* ===== SCREENS ===== */
.screen {
  display: none; position: absolute; inset: 0; bottom: var(--nav-h);
  overflow-y: auto; overflow-x: hidden;
  background: var(--sand);
  -webkit-overflow-scrolling: touch;
}
.screen.active { display: block; }

/* ===== HERO ===== */
.hero {
  background: var(--green);
  padding: 52px 20px 0;
  position: relative; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; top: 0; right: -20px;
  width: 180px; height: 180px; opacity: 0.06;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 16px 16px;
}
.hero-inner { padding: 0 20px; }
.hero-topbar {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;
}
.hero-brand {}
.hero-logo { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: white; letter-spacing: -0.3px; display: block; }
.hero-tagline { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 1.2px; text-transform: uppercase; display: block; margin-top: 2px; }
.hero-actions { display: flex; align-items: center; gap: 8px; }

.btn-lang {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 500; font-family: var(--font-body);
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn-lang:active { background: rgba(255,255,255,0.25); }
.btn-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white;
}

/* Weather card */
.weather-card {
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 0;
}
.weather-main { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.weather-loc { color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.4px; display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.weather-temp { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: white; line-height: 1; }
.weather-temp span { font-size: 22px; font-weight: 400; opacity: 0.7; }
.weather-desc { color: rgba(255,255,255,0.75); font-size: 13px; margin-top: 4px; }
.weather-icon-wrap { opacity: 0.9; }

.weather-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  font-size: 10px; padding: 4px 9px; border-radius: 10px;
  display: flex; align-items: center; gap: 4px;
}
.chip.warn { background: rgba(245,196,0,0.25); color: #FFE066; }

/* Hero bottom curve */
.hero::after {
  content: '';
  display: block;
  height: 20px;
  background: var(--sand);
  border-radius: 20px 20px 0 0;
  margin: 16px -20px 0;
}

/* ===== OFFLINE BAR ===== */
.offline-bar {
  background: #1E3A5F;
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* ===== ALERT ===== */
.alert-banner {
  background: #FEF3C7;
  border-left: 3px solid var(--amber);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #92400E; font-weight: 500;
  margin: 0 16px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.alert-close { margin-left: auto; color: #92400E; opacity: 0.5; font-size: 12px; padding: 2px; }

/* ===== CONTENT ===== */
.content { padding: 0 16px 20px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; text-transform: uppercase; }
.see-all { font-size: 12px; color: var(--teal); font-weight: 500; }

/* ===== TRAIL CARDS ===== */
.trail-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}
.trail-card:active { transform: scale(0.985); }

.trail-img {
  height: 130px; position: relative;
  display: flex; align-items: flex-end; padding: 10px 12px;
}
.trail-img-forest { background: linear-gradient(150deg, #1D5C3A 0%, #2E7D52 60%, #0A7B6C 100%); }
.trail-img-coast  { background: linear-gradient(150deg, #0A4A7C 0%, #1D7C8C 60%, #0A7B6C 100%); }
.trail-img-volcano{ background: linear-gradient(150deg, #4A1D00 0%, #7C3A00 50%, #3A5C1D 100%); }
.trail-img-jungle { background: linear-gradient(150deg, #1D3A0A 0%, #2E5C1D 60%, #0A5C3A 100%); }

.trail-img-decor {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.1;
  background-image: radial-gradient(ellipse at 70% 30%, white 0%, transparent 60%);
}

.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 10px;
  font-size: 10px; font-weight: 500;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  position: relative; z-index: 1;
}
.s-ok   { background: rgba(209,250,229,0.9); color: #065F46; }
.s-warn { background: rgba(254,243,199,0.9); color: #92400E; }
.s-no   { background: rgba(254,226,226,0.9); color: #991B1B; }

.trail-body { padding: 12px 14px; }
.trail-name { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.trail-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.trail-meta-item { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-3); }
.diff-dots { display: flex; gap: 2px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
.dot.on-easy   { background: #10B981; }
.dot.on-medium { background: #F59E0B; }
.dot.on-hard   { background: #EF4444; }
.trail-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { background: var(--green-pale); color: var(--green); font-size: 10px; padding: 2px 8px; border-radius: 8px; font-weight: 500; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 52px 16px 14px;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
}
.page-header h2 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); }
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sand); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}

/* ===== VUE TOGGLE (liste / carte) ===== */
.view-toggle {
  display: flex; gap: 3px; background: var(--bg);
  border-radius: 8px; padding: 3px;
  border: 0.5px solid var(--border);
}
.view-btn {
  width: 30px; height: 30px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.view-btn.active { background: var(--green); color: white; }

/* ===== CARTE GLOBALE ===== */
#global-map-wrap { display: none; }
#global-map {
  height: calc(100vh - 190px);
  min-height: 300px;
}

/* ===== SURVEILLANCE VOLCANIQUE ===== */
.webcam-card { padding: 0; overflow: hidden; }
.webcam-header {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 0.5px solid var(--border);
}
.webcam-live-badge { font-size: 16px; flex-shrink: 0; line-height: 1; }
.webcam-title { font-size: 13px; font-weight: 600; flex: 1; }
.webcam-footer {
  padding: 7px 14px; font-size: 11px; color: var(--text-3);
  border-top: 0.5px solid var(--border);
}
.webcam-source-link { color: var(--green); text-decoration: none; font-weight: 500; }

/* Contenu monitoring */
.volcano-monitor { padding: 16px 14px; }
.volcano-alert-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text-1);
}
.volcano-alert-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; background: #F59E0B;
  animation: volcano-pulse 2s ease-in-out infinite;
}
@keyframes volcano-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
  50%       { box-shadow: 0 0 0 7px rgba(245,158,11,0.06); }
}
.volcano-desc-text {
  font-size: 12px; color: var(--text-3); line-height: 1.55;
  margin: 0 0 14px;
}
.volcano-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.volcano-btn-primary {
  padding: 8px 16px; background: var(--green); color: white;
  border-radius: 20px; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: opacity 0.15s;
}
.volcano-btn-primary:hover { opacity: 0.85; }
.volcano-btn-secondary {
  padding: 8px 16px; background: transparent; color: var(--text-2);
  border: 0.5px solid var(--border); border-radius: 20px;
  font-size: 12px; font-weight: 500;
  text-decoration: none; transition: background 0.15s;
}
.volcano-btn-secondary:hover { background: var(--bg); }

/* ===== FAUNE & FLORE ===== */
.nature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.nature-item { display: flex; gap: 12px; align-items: flex-start; }
.nature-icon {
  font-size: 26px; flex-shrink: 0; width: 38px; text-align: center;
  line-height: 1.1; padding-top: 1px;
}
.nature-info { flex: 1; }
.nature-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.nature-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; padding: 5px 16px; overflow-x: auto; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar.filter-region  { padding-top: 12px; }
.filter-bar.filter-diff    { padding-bottom: 10px; }
.filter-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--white); border: 0.5px solid var(--border);
  color: var(--text-3); white-space: nowrap;
  transition: all 0.15s; font-family: var(--font-body);
}
.filter-btn.active { background: var(--green); color: white; border-color: var(--green); }
/* Couleur accent par groupe de filtre */
.filter-activity .filter-btn.active { background: #0A7B6C; border-color: #0A7B6C; }
.filter-diff .filter-btn.active     { background: #2563EB; border-color: #2563EB; }

/* ===== DETAIL HERO ===== */
.detail-hero {
  padding: 52px 20px 20px;
  position: relative; overflow: hidden; min-height: 200px;
  background: var(--green);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.back-btn-white {
  position: absolute; top: 52px; left: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.detail-hero-content { position: relative; z-index: 1; }
.detail-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.detail-hero-content h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: white; margin-bottom: 12px; line-height: 1.15; }
.detail-stats-row { display: flex; gap: 8px; }
.d-stat { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 8px 12px; text-align: center; }
.d-stat-val { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: white; }
.d-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 1px; }

/* ===== MAP ZONE ===== */
.map-zone { position: relative; height: 160px; background: #B8DEB8; overflow: hidden; }
.map-inner { width: 100%; height: 100%; }
.map-3d-btn {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border-radius: 8px;
  padding: 5px 10px; font-size: 11px; font-weight: 500;
  color: var(--green); display: flex; align-items: center; gap: 5px;
  border: 0.5px solid var(--border);
}

/* ===== DETAIL CARDS ===== */
.detail-card {
  background: var(--white); border-radius: var(--radius);
  border: 0.5px solid var(--border);
  padding: 16px; margin-bottom: 12px; margin-top: 12px;
}
.card-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 12px; }
.detail-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.detail-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* Partner card */
.partner-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--amber); padding: 14px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.partner-badge { background: var(--amber-pale); color: var(--amber); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; writing-mode: vertical-lr; transform: rotate(180deg); flex-shrink: 0; }
.partner-info { flex: 1; }
.partner-name { font-size: 13px; font-weight: 500; color: var(--text); }
.partner-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.partner-cta { background: var(--amber); color: white; padding: 7px 12px; border-radius: 8px; font-size: 11px; font-weight: 500; flex-shrink: 0; font-family: var(--font-body); }

/* Comments */
.comment { padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.comment:last-of-type { border-bottom: none; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.comment-author { font-size: 12px; font-weight: 500; color: var(--text); }
.comment-date { font-size: 11px; color: var(--text-hint); }
.comment-stars { color: #F59E0B; font-size: 11px; margin-bottom: 4px; }
.comment-text { font-size: 12px; color: var(--text-2); line-height: 1.55; }
.comment-lang { font-size: 9px; color: var(--text-hint); margin-top: 3px; }

.add-comment-btn {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 10px 0; font-size: 13px; color: var(--teal); font-weight: 500;
  border-top: 0.5px solid var(--border); margin-top: 8px; font-family: var(--font-body);
}
.report-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 14px; font-size: 13px; color: var(--text-2);
  width: 100%; margin-bottom: 12px; font-family: var(--font-body);
}
.start-track-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: white; border-radius: var(--radius);
  padding: 15px; font-size: 14px; font-weight: 500; width: 100%;
  font-family: var(--font-body); transition: background 0.15s;
}
.start-track-btn:active { background: var(--green-2); }

/* ===== TRACKER ===== */
.tracker-hero {
  background: var(--green); padding: 52px 20px 20px;
}
.tracker-topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.tracker-trail-name { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: white; }
.tracker-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.85)} }

.stop-btn {
  background: rgba(239,68,68,0.25); border: 1px solid rgba(239,68,68,0.4);
  color: #FCA5A5; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 500;
  font-family: var(--font-body);
}
.tracker-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.t-stat { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px; text-align: center; }
.t-val { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: white; }
.t-lbl { font-size: 9px; color: rgba(255,255,255,0.55); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.3px; }

/* Elevation */
.elevation-card {
  background: var(--white); border-radius: var(--radius); border: 0.5px solid var(--border);
  padding: 14px; margin-bottom: 12px; margin-top: 12px;
}
.elev-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-hint); margin-bottom: 8px; }
.elev-chart { width: 100%; }
.elev-footer { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--text-hint); }
.elev-you { color: var(--green); font-weight: 500; }

/* SOS */
.sos-card {
  background: #DC2626; border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; margin-bottom: 12px; transition: background 0.15s;
}
.sos-card:active { background: #B91C1C; }
.sos-icon-wrap { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sos-text {}
.sos-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: white; }
.sos-sub { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* Saved traces */
.saved-section { margin-top: 4px; }
.saved-trace {
  background: var(--white); border-radius: var(--radius); border: 0.5px solid var(--border);
  padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
}
.saved-trace-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.saved-trace-name { font-size: 14px; font-weight: 500; color: var(--text); }
.saved-trace-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ===== BADGES ===== */
.xp-bar-card {
  background: var(--white); border-radius: var(--radius); border: 0.5px solid var(--border);
  padding: 16px; margin-bottom: 16px; margin-top: 12px;
}
.xp-level-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.xp-level-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--green); }
.xp-level-num { font-size: 12px; color: var(--text-3); }
.xp-bar-track { height: 6px; background: var(--sand-2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.xp-bar-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.6s ease; }
.xp-bar-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-hint); }

.badges-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.badge-card {
  background: var(--white); border-radius: var(--radius); border: 0.5px solid var(--border);
  padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.badge-card.locked { opacity: 0.4; }
.badge-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.badge-name { font-size: 12px; font-weight: 500; color: var(--text); }
.badge-cond { font-size: 10px; color: var(--text-hint); margin-top: 1px; line-height: 1.4; }
.badge-earned { font-size: 9px; color: var(--green); font-weight: 500; background: var(--green-pale); padding: 2px 8px; border-radius: 8px; }

/* ===== SUBMIT TRACE ===== */
.submit-steps {
  display: flex; align-items: center; padding: 16px 0; margin-bottom: 4px;
}
.submit-step { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--sand-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  font-family: var(--font-head);
}
.submit-step.active .step-num { background: var(--green); color: white; }
.submit-step span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.submit-step.active span { color: var(--green); }
.step-line { flex: 0 0 30px; height: 1px; background: var(--border-2); }

.form-card {
  background: var(--white); border-radius: var(--radius); border: 0.5px solid var(--border);
  padding: 16px; margin-bottom: 12px;
}
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; margin-top: 14px; }
.form-label:first-child { margin-top: 0; }
.form-input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); font-size: 14px; color: var(--text);
  background: var(--sand); outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--green); background: white; }
.form-textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); font-size: 13px; color: var(--text);
  background: var(--sand); outline: none; resize: none; line-height: 1.6;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--green); background: white; }
.form-hint { font-size: 11px; color: var(--text-hint); margin-top: 8px; line-height: 1.5; }

.diff-selector { display: flex; gap: 8px; }
.diff-btn {
  flex: 1; padding: 8px 0; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); font-size: 12px; font-weight: 500;
  color: var(--text-3); background: var(--sand); font-family: var(--font-body);
  transition: all 0.15s;
}
.diff-btn.active { background: var(--green); color: white; border-color: var(--green); }

.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 2px; }
.photo-add {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-2); background: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 10px; color: var(--text-hint); cursor: pointer;
}
.photo-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  font-size: 28px; position: relative;
}
.photo-del { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); color: white; font-size: 10px; display: flex; align-items: center; justify-content: center; }

.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: white; border-radius: var(--radius);
  padding: 15px; font-size: 14px; font-weight: 500; width: 100%;
  font-family: var(--font-body); transition: background 0.15s; margin-bottom: 12px;
}
.submit-btn:active { background: var(--green-2); }
.submit-info {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-3); line-height: 1.55;
  background: var(--sand-2); padding: 12px; border-radius: var(--radius-sm);
}

/* ===== PROFILE ===== */
.profile-hero {
  background: var(--white); padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 0.5px solid var(--border);
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: white;
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); }
.profile-edit { font-size: 12px; color: var(--teal); margin-top: 3px; font-family: var(--font-body); }

.profile-stats-row { display: grid; grid-template-columns: repeat(3,1fr); background: var(--white); border-bottom: 0.5px solid var(--border); }
.p-stat { padding: 14px 8px; text-align: center; border-right: 0.5px solid var(--border); }
.p-stat:last-child { border-right: none; }
.p-val { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--green); }
.p-lbl { font-size: 10px; color: var(--text-hint); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.3px; }

.plus-banner {
  background: var(--yellow); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; margin: 0;
}
.plus-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.plus-content {}
.plus-title { font-size: 13px; font-weight: 500; color: var(--yellow-dark); }
.plus-sub { font-size: 11px; color: rgba(0,0,0,0.45); margin-top: 1px; }

.menu-list { background: var(--white); margin-top: 8px; }
.menu-section-label { padding: 12px 20px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-hint); background: var(--sand); }
.menu-item {
  display: flex; align-items: center; padding: 13px 20px;
  border-bottom: 0.5px solid var(--border); width: 100%;
  background: var(--white); color: var(--text); gap: 12px;
  transition: background 0.1s; font-family: var(--font-body);
}
.menu-item:last-of-type { border-bottom: none; }
.menu-item:active { background: var(--sand); }
.menu-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-icon.green  { background: var(--green-pale); color: var(--green); }
.menu-icon.teal   { background: var(--teal-pale); color: var(--teal); }
.menu-icon.amber  { background: var(--amber-pale); color: var(--amber); }
.menu-icon.blue   { background: var(--blue-pale); color: var(--blue); }
.menu-icon.gray   { background: var(--sand-2); color: var(--text-3); }
.menu-label { flex: 1; font-size: 14px; color: var(--text); text-align: left; }
.menu-value { font-size: 13px; color: var(--text-hint); }
.menu-badge-count { background: var(--green); color: white; font-size: 10px; padding: 2px 8px; border-radius: 10px; }

.signout-zone { padding: 16px 20px; background: var(--white); margin-top: 8px; text-align: center; border-top: 0.5px solid var(--border); }
.signout-btn { font-size: 14px; color: var(--text-3); font-family: var(--font-body); }
.version-label { text-align: center; padding: 10px; font-size: 10px; color: var(--text-hint); background: var(--sand-2); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-top: 0.5px solid var(--border);
  display: flex; align-items: stretch;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-hint); transition: color 0.15s;
  font-family: var(--font-body);
}
.nav-item.active { color: var(--green); }
.nav-item span { font-size: 9px; letter-spacing: 0.2px; text-transform: uppercase; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal {
  background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0));
  max-height: 80vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform:translateY(40px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.modal-handle { width: 36px; height: 4px; background: var(--border-2); border-radius: 2px; margin: 0 auto 18px; }
.modal-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 16px; }

/* Comment form in modal */
.star-selector { display: flex; gap: 8px; margin-bottom: 14px; }
.star-btn { font-size: 24px; opacity: 0.3; transition: opacity 0.15s; cursor: pointer; background: none; border: none; }
.star-btn.active { opacity: 1; }
.modal-textarea { width: 100%; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); font-size: 14px; font-family: var(--font-body); color: var(--text); background: var(--sand); resize: none; outline: none; }
.modal-textarea:focus { border-color: var(--green); background: white; }
.modal-submit { background: var(--green); color: white; border-radius: var(--radius); padding: 13px; font-size: 14px; font-weight: 500; width: 100%; font-family: var(--font-body); margin-top: 12px; }

/* Report options */
.report-option { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--border); cursor: pointer; }
.report-option:last-child { border-bottom: none; }
.report-option-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--red-pale); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 16px; flex-shrink: 0; }
.report-option-label { font-size: 14px; color: var(--text); }
.report-option-sub { font-size: 11px; color: var(--text-hint); margin-top: 1px; }

/* ===== SOS OVERLAY ===== */
.sos-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(185,28,28,0.95);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.sos-modal { text-align: center; padding: 40px 30px; color: white; position: relative; }
.sos-pulse-ring {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  animation: sosRing 1.5s infinite;
}
@keyframes sosRing { 0%{transform:translateX(-50%) scale(0.8);opacity:1} 100%{transform:translateX(-50%) scale(1.4);opacity:0} }
.sos-modal-icon { font-family: var(--font-head); font-size: 52px; font-weight: 900; color: white; margin-bottom: 16px; letter-spacing: -2px; }
.sos-modal h2 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.sos-modal p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; }
.sos-coords { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 28px; font-family: monospace; }
.sos-cancel { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.4); color: white; padding: 12px 32px; border-radius: 20px; font-size: 13px; font-family: var(--font-body); }

/* ===== MAP & GPS ===== */
.map-zone { position: relative; height: 180px; overflow: hidden; }
.map-inner { width: 100%; height: 100%; background: #E8F0E8; }
.map-nav-fab {
  position: absolute; bottom: 12px; right: 12px; z-index: 500;
  display: flex; align-items: center; gap: 6px;
  background: var(--green); color: white;
  padding: 9px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(29,92,58,0.4);
}
.approach-card { padding: 14px 16px 16px; }
.approach-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.approach-title { font-size: 13px; font-weight: 600; color: var(--green); }
.approach-text { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 10px; }
.approach-coords {
  font-size: 11px; color: var(--text-hint); font-family: monospace;
  background: var(--sand-2); padding: 6px 10px; border-radius: 6px;
  margin-bottom: 12px; letter-spacing: 0.3px;
}
.trail-nav-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: white; border-radius: var(--radius);
  padding: 12px; font-size: 13px; font-weight: 600;
}
.trail-nav-btn:active { opacity: 0.85; }

/* ===== AUTH OVERLAY ===== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.25s ease;
}
.auth-sheet {
  width: 100%; max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 12px 24px 44px;
  position: relative;
  animation: slideUp 0.3s ease;
}
.auth-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border-2); margin: 0 auto 20px;
}
.auth-close-btn {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sand-2); color: var(--text-3);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-logo-wrap {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--green-pale); border: 1.5px solid rgba(29,92,58,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.auth-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: var(--green); margin-bottom: 4px;
}
.auth-subtitle { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.auth-tabs {
  display: flex; background: var(--sand-2); border-radius: 10px;
  padding: 3px; margin-bottom: 16px; gap: 2px;
}
.auth-tab {
  flex: 1; padding: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  transition: all 0.2s;
}
.auth-tab.active { background: white; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.google-sign-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: var(--radius);
  border: 1.5px solid var(--border-2);
  font-size: 14px; font-weight: 500; color: var(--text);
  background: white; margin-bottom: 14px;
  transition: background 0.15s;
}
.google-sign-btn:active { background: var(--sand); }
.auth-sep {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--text-hint); font-size: 12px;
}
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }
.auth-error { font-size: 12px; color: var(--red); margin: 6px 0; min-height: 14px; }
.auth-field-gap { margin-bottom: 10px; }
.profile-initials-text { display: block; }

/* ===== SEARCH BAR ===== */
.search-bar-wrap { padding: 12px 16px 4px; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 10px 14px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--green); }
.search-bar svg { color: var(--text-hint); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 14px; color: var(--text); font-family: var(--font-body);
}
.search-input::placeholder { color: var(--text-hint); }
.search-clear {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--border-2); color: var(--text-3);
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== SAFETY SCREEN ===== */
.safety-hero {
  background: var(--red); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.safety-hero-icon { font-size: 28px; flex-shrink: 0; }
.safety-hero-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: white; }
.safety-hero-sub { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 2px; line-height: 1.4; }
.safety-sos-btn {
  margin-left: auto; flex-shrink: 0;
  background: white; color: var(--red);
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  padding: 10px 18px; border-radius: 12px;
  text-decoration: none; display: block;
}

.safety-section { margin-bottom: 4px; }
.safety-section-label {
  padding: 12px 4px 6px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-hint);
}
.safety-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius);
  border: 0.5px solid var(--border);
  padding: 14px; margin-bottom: 8px;
  text-decoration: none; color: var(--text);
  transition: background 0.15s;
}
.safety-item:active { background: var(--sand); }
.safety-icon { font-size: 22px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--green-pale); border-radius: 10px; flex-shrink: 0; }
.safety-info { flex: 1; }
.safety-name { font-size: 14px; font-weight: 500; color: var(--text); }
.safety-desc { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.safety-number { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--green); margin-right: 4px; }

.safety-tips-card {
  background: var(--amber-pale); border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--radius); padding: 16px; margin-top: 4px; margin-bottom: 16px;
}
.safety-tips-title {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--amber); text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 12px;
}
.safety-tip {
  font-size: 12px; color: #78350F; line-height: 1.5;
  padding: 5px 0; border-bottom: 0.5px solid rgba(217,119,6,0.12);
}
.safety-tip:last-child { border-bottom: none; padding-bottom: 0; }

.menu-icon.red { background: var(--red-pale); color: var(--red); }

/* ===== ITINÉRAIRE PAS À PAS — ACCORDÉON ===== */
.steps-card { padding: 0; overflow: hidden; }

.steps-toggle {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 16px; background: none; border: none; cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.steps-toggle:active { background: rgba(0,0,0,0.03); }
.steps-toggle-left {
  display: flex; align-items: center; gap: 10px;
}
.steps-toggle-icon { font-size: 18px; }
.steps-toggle-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--text-1);
}
.steps-toggle-right {
  display: flex; align-items: center; gap: 8px;
}
.steps-count-badge {
  background: #E8F4EE; color: var(--green);
  font-size: 11px; font-weight: 600; font-family: var(--font-body);
  border-radius: 20px; padding: 3px 10px;
}
.steps-chevron {
  color: var(--text-3); flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Corps de l'accordéon : fermé par défaut */
.steps-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 1px solid transparent;
}
.steps-body.open {
  max-height: 2000px; /* valeur large pour l'animation */
  border-top-color: var(--border);
}

.steps-list { padding: 16px 16px 8px; }

.step-item {
  display: flex; gap: 12px; margin-bottom: 4px;
}
.step-num-wrap {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 28px;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 11px; font-weight: 700; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-line {
  width: 2px; flex: 1; min-height: 16px;
  background: #D8EDE2; margin: 4px 0;
}
.step-content {
  padding-bottom: 16px; flex: 1;
}
.step-icon {
  font-size: 14px; margin-right: 6px;
}
.step-text {
  font-size: 13px; color: var(--text-2);
  line-height: 1.65; margin: 2px 0 0;
}

.steps-footer {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 10px 16px 14px;
  background: #FAFAF8; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3); line-height: 1.5;
}

/* ===== UTILS ===== */
.mt-12 { margin-top: 12px; }

/* ===== HOME GREETING ===== */
.home-greeting-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.home-greeting {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}
.home-greeting-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== QUICK ACCESS BUTTONS ===== */
.quick-access-row {
  display: flex; gap: 10px; margin-bottom: 0; padding: 16px 0 4px;
}
.quick-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: white; border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px; padding: 14px 4px 12px;
  cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  font-family: var(--font-body);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.quick-btn:active { transform: scale(0.96); box-shadow: none; }
.quick-btn-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ===== TRACKER — ÉTAT INACTIF ===== */
.tracker-idle-hero {
  background: linear-gradient(135deg, var(--green) 0%, #2E7D52 100%);
  padding: 40px 24px 36px;
  display: flex; align-items: center; justify-content: center;
}
.tracker-idle-inner {
  text-align: center; max-width: 280px;
}
.tracker-idle-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.tracker-idle-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: white; margin-bottom: 8px;
}
.tracker-idle-sub {
  font-size: 13px; color: rgba(255,255,255,0.7);
  line-height: 1.6; margin-bottom: 20px;
}
.tracker-idle-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: white; color: var(--green);
  border: none; border-radius: 24px;
  padding: 11px 22px; cursor: pointer;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.tracker-idle-cta:active { transform: scale(0.97); }

/* ===== PROFILE — LOGIN BANNER ===== */
.profile-login-banner {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #E8F4EE 0%, #F0F8F4 100%);
  border: 1px solid rgba(29,92,58,0.15);
  border-radius: 14px; padding: 16px;
  display: flex; align-items: flex-start; gap: 12px; flex-direction: column;
}
.profile-login-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--green); margin-bottom: 4px;
}
.profile-login-sub {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
}
.profile-login-btn {
  background: var(--green); color: white; border: none;
  border-radius: 10px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; align-self: flex-start; margin-top: 4px;
  transition: background 0.2s;
}
.profile-login-btn:hover { background: #2E7D52; }

/* Scrollbar hide */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* =============================================
   DESKTOP NAV — masquée sur mobile
============================================= */
.desktop-nav { display: none; }

/* =============================================
   RESPONSIVE — DESKTOP (≥ 900px)
   Vrai layout web : nav top, grille, pleine largeur
============================================= */
@media (min-width: 900px) {

  /* ── Document flow normal ── */
  html, body {
    overflow: auto;
    height: auto;
    min-height: 100%;
    background: var(--sand);
  }

  /* ── App : conteneur pleine page ── */
  #app {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    display: block;
    background: var(--sand);
  }

  /* ── Masquer la nav mobile ── */
  .bottom-nav { display: none; }

  /* ── Navigation desktop ── */
  .desktop-nav {
    display: flex;
    align-items: center;
    position: sticky; top: 0; z-index: 200;
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
    padding: 0 40px;
    height: 60px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    gap: 0;
  }

  .dnav-brand {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; margin-right: 40px; flex-shrink: 0;
    text-decoration: none;
  }
  .dnav-logo {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
  }
  .dnav-title {
    font-family: var(--font-head); font-size: 17px; font-weight: 800;
    color: var(--green); letter-spacing: -0.3px;
  }

  .dnav-links {
    display: flex; align-items: center; gap: 4px; flex: 1;
  }
  .dnav-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-3);
    transition: all 0.15s; font-family: var(--font-body);
    white-space: nowrap;
  }
  .dnav-item:hover { background: var(--sand); color: var(--text); }
  .dnav-item.active { background: var(--green-pale); color: var(--green); font-weight: 600; }

  .dnav-actions {
    display: flex; align-items: center; gap: 10px; margin-left: auto;
  }
  .dnav-lang {
    background: var(--sand); border: 1px solid var(--border-2);
    color: var(--text-2); padding: 6px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
  }
  .dnav-urgences {
    display: flex; align-items: center; gap: 6px;
    background: var(--red-pale); color: var(--red);
    padding: 7px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600; font-family: var(--font-body);
  }

  /* ── Écrans : flux normal ── */
  .screen {
    position: relative;
    inset: auto;
    overflow: visible;
    background: var(--sand);
    min-height: calc(100vh - 60px);
  }
  .screen.active { display: block; }

  /* Masquer le hero mobile (hero garde son style, juste padding réduit) */
  .hero { padding: 32px 0 0; }
  .hero::after { margin: 16px 0 0; }
  /* Boutons EN + Profil du hero : redondants avec la nav desktop */
  .hero-actions { display: none; }

  /* Quick access centré desktop */
  .quick-access-row { max-width: 1100px; margin: 0 auto; padding: 16px 40px 4px; }
  .quick-btn { max-width: 120px; }

  /* Tracker idle desktop */
  .tracker-idle-hero { min-height: 260px; }

  /* Profile login banner desktop */
  #screen-profile .profile-login-banner { margin: 0 auto 16px; max-width: 700px; }

  .page-header    { padding: 24px 40px 16px; }
  .tracker-hero   { padding: 24px 40px 24px; }
  .detail-hero    { padding: 32px 40px 28px; min-height: 240px; }
  .back-btn-white { top: 32px; left: 40px; }

  /* ── Wrapper max-width pour le contenu ── */
  .desktop-wrap {
    max-width: 1100px; margin: 0 auto; padding: 0 40px;
  }
  #screen-home  .content,
  #screen-explore .content { max-width: 1100px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
  .search-bar-wrap,
  .filter-bar { max-width: 1100px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
  .filter-bar { overflow-x: visible; flex-wrap: wrap; }
  .filter-bar.filter-region  { padding-top: 14px; }
  .filter-bar.filter-diff    { padding-bottom: 12px; }

  /* ── Carte globale desktop ── */
  #global-map { height: calc(100vh - 160px); max-height: 720px; }
  #global-map-wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

  /* ── Hero météo élargi ── */
  .hero-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0 40px;
  }
  .weather-card { max-width: 440px; }

  /* ── Grille 2 colonnes pour les sentiers ── */
  .trails-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  #screen-explore .trails-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Trail card images plus hautes sur desktop */
  .trail-img { height: 160px; }

  /* ── Détail : contenu centré max 800px ── */
  #screen-detail .content { max-width: 800px; margin: 0 auto; }
  .map-zone { height: 260px; }

  /* ── Profile & autres écrans ── */
  #screen-profile .content,
  #screen-badges  .content,
  #screen-submit  .content,
  #screen-tracker .content,
  #screen-safety  .content { max-width: 700px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

  #screen-profile .profile-hero,
  #screen-profile .profile-stats-row,
  #screen-profile .plus-banner,
  #screen-profile .menu-list,
  #screen-profile .signout-zone,
  #screen-profile .version-label { max-width: 700px; margin-left: auto; margin-right: auto; }

  /* ── Modals centrées ── */
  .modal-overlay { justify-content: center; }
  .modal { max-width: 480px; width: 100%; }
  .auth-overlay { justify-content: center; }
  .auth-sheet { max-width: 480px; width: 100%; }

  /* ── Alerte bannière ── */
  .alert-banner { margin: 0 40px 16px; max-width: calc(1100px - 80px); }
  #screen-home .alert-banner {
    max-width: 1020px; margin: 0 auto 16px; width: calc(100% - 80px);
  }

  /* ── Offline bar ── */
  .offline-bar { padding: 8px 40px; }
}
