/* Polices auto-hébergées (plus de dépendance à Google Fonts : ni requête
   externe, ni IP visiteur envoyée à Google — cf. CGU §7). Poids manquants
   (300, 700 pour Inter) : le navigateur retombe automatiquement sur le
   poids déclaré le plus proche (algorithme de matching CSS Fonts). */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --bg-soft: #0b0f16;
  --text: #e9eef4;
  --muted: #8b97a5;
  --accent: #6ee7ff;
  --accent-soft: rgba(110, 231, 255, 0.22);
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  --glass-border: rgba(140, 220, 255, 0.20);
  --glow: 0 0 16px rgba(110, 231, 255, 0.16), inset 0 1px 0 rgba(255,255,255,0.08);
  --glow-strong: 0 0 22px rgba(110, 231, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* Fond bleu nuit en dégradé, fixé au viewport, derrière tout le contenu.
   Le globe (disque #07090d) reste plus sombre que ce fond : les îles et
   contours lumineux se détachent nettement. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 90% at 70% -10%, rgba(46, 46, 92, 0.55) 0%, rgba(24, 24, 48, 0.25) 45%, transparent 70%),
    linear-gradient(180deg, #15152e 0%, #0b0b18 55%, #040406 100%);
}

h1, h2, h3, .brand { font-family: 'Space Grotesk', sans-serif; font-weight: 500; }

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ===== Révélation au scroll ===== */
/* Discret fade + léger glissement vers le haut à l'entrée dans le viewport
   (piloté par IntersectionObserver dans main.js, classe .in-view ajoutée une
   seule fois). Léger décalage entre éléments successifs pour un effet cascade. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

.etapes-section > .reveal:nth-child(2) { transition-delay: 0.08s; }
.etapes-section > .reveal:nth-child(3) { transition-delay: 0.16s; }
.charte-section > .reveal:nth-child(2) { transition-delay: 0.08s; }
.charte-section > .reveal:nth-child(3) { transition-delay: 0.16s; }

.mission-timeline li:nth-child(1) { transition-delay: 0s; }
.mission-timeline li:nth-child(2) { transition-delay: 0.1s; }
.mission-timeline li:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  #open-avis { animation: none; box-shadow: 0 0 10px 1px rgba(110, 231, 255, 0.25); }
}

/* ===== Glass ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glow);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glow);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.glass-btn:hover {
  box-shadow: var(--glow-strong);
  border-color: rgba(140, 220, 255, 0.45);
  transform: translateY(-1px);
}

.glass-btn.big { padding: 16px 28px; font-size: 1rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(7,9,13,0.85), rgba(7,9,13,0));
}

.brand {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }

.nav-actions { display: flex; gap: 12px; }
.nav-btn { padding: 8px 16px; font-size: 0.82rem; }

/* CTA principal : un halo bleu qui respire doucement, pour signaler que ce
   bouton compte, sans mouvement qui tourne autour. */
#open-avis {
  animation: avis-glow 3s ease-in-out infinite;
}
@keyframes avis-glow {
  0%, 100% { box-shadow: 0 0 8px 0px rgba(110, 231, 255, 0.18); }
  50% { box-shadow: 0 0 14px 1px rgba(110, 231, 255, 0.32); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  /* pas d'overflow:hidden ici : il tronquait le menu déroulant de recherche */
  overflow: visible;
}

#globe-container {
  position: relative;
  width: 72%;
  height: 100%;
}

/* touch-action:none — indispensable pour le pincement (zoom île) sur mobile */
#globe-canvas { display: block; width: 100%; height: 100%; touch-action: none; }

#globe-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

#markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ===== Side panel (recherche) ===== */
.side-panel {
  width: 28%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 90px 64px 40px 20px;
  z-index: 10;
}

.side-panel h1 { font-size: 1.9rem; line-height: 1.2; }

.tagline { color: var(--muted); font-size: 0.95rem; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.search-box input::placeholder { color: var(--muted); }

/* Liste déroulante sous la barre de recherche */
.search-wrap { position: relative; }

/* Filtres : icône (3 curseurs) tout à droite de la barre de recherche +
   panneau multi-sélection à plat (pas de sous-groupe « Saison » séparé). */
.filters-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0 -4px 0 4px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.filters-btn:hover,
.filters-btn[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.filters-btn.has-active { color: var(--accent); }
.filters-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #041014;
  font-size: 0.62rem;
  font-weight: 700;
}

#filters-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 26;
  width: 250px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filters-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-option {
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.filter-option:hover { color: var(--text); border-color: rgba(140,220,255,0.45); }
.filter-option.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(110, 231, 255, 0.08);
  box-shadow: var(--glow);
}
.filters-reset {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#destinations-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 25;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 10px;
}

.dest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glow);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.dest-item:hover { box-shadow: var(--glow-strong); border-color: rgba(140,220,255,0.45); }
.dest-item.active { border-color: var(--accent); box-shadow: var(--glow-strong); }

.dest-item .dest-info { display: flex; flex-direction: column; gap: 2px; }
.dest-item .dest-region { font-size: 0.72rem; color: var(--muted); }

.dest-badge {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.dest-badge.soon { color: var(--muted); border-color: rgba(139,151,165,0.3); }

/* ===== Bouton reset vue ===== */
#reset-view {
  position: absolute;
  top: 92px;
  left: 36px;
  z-index: 20;
}

/* ===== Zoom vue île ===== */
#zoom-controls {
  position: absolute;
  top: 150px;
  left: 36px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#zoom-controls .glass-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

/* ===== Marqueurs hôtels ===== */
/* Le bouton est un point d'ancrage 0x0 : le point reste à la position exacte
   de l'hôtel, l'étiquette est décalée verticalement (style inline top). */
.hotel-marker {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  /* opacité et pointer-events pilotés en inline par le globe (fondu image
     par image) — pas de transition CSS ici pour éviter tout figement */
  opacity: 0;
}

.marker-dot {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.marker-pill {
  position: absolute;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.hotel-marker:hover .marker-pill { box-shadow: var(--glow-strong); border-color: var(--accent); }

.marker-score { color: var(--accent); font-weight: 500; }

/* Mise en avant d'un filtre actif : les autres hôtels s'effacent, le mieux
   classé clignote. On ne touche jamais à .hotel-marker (transform/opacity
   pilotés en inline par le globe, image par image) — seulement ses enfants. */
.hotel-marker.marker-dimmed { opacity: 0.22 !important; }
.hotel-marker.marker-dimmed .marker-pill { box-shadow: none; }
.hotel-marker.marker-pulse .marker-dot {
  background: #ffd166;
  box-shadow: 0 0 10px #ffd166;
  animation: marker-blink 1.1s ease-in-out infinite;
}
.hotel-marker.marker-pulse .marker-pill { border-color: #ffd166; box-shadow: 0 0 14px rgba(255, 209, 102, 0.35); }
@keyframes marker-blink {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 8px #ffd166; }
  50% { transform: translate(-50%, -50%) scale(1.6); box-shadow: 0 0 18px #ffd166; }
}

/* ===== Hotspots de la vue globale (survol = nom, clic = ouvre le lieu) ===== */
.globe-spot {
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.globe-spot.visible { opacity: 1; pointer-events: auto; }

.globe-spot-name {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 14px);
  transform: translateX(-50%);
  padding: 5px 11px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.globe-spot:hover .globe-spot-name { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Spots de saison (vue pays) ===== */
.spot-dot {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.spot-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.55);
  animation: spot-pulse 2.4s ease-out infinite;
}
@keyframes spot-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

.spot-pill {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: 14px;
  padding: 8px 14px;
}
.spot-name { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; }
.spot-meta { font-size: 0.66rem; color: var(--muted); white-space: nowrap; }

/* ===== Étiquettes de lieux (vue région) ===== */
.place-label { pointer-events: none; }
.place-name {
  position: absolute;
  left: 0;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Nom de département : grand, centré, en filigrane derrière les marqueurs */
.place-big .place-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(233, 238, 244, 0.30);
}

/* ===== Fiche hôtel : modal centré ===== */
#hotel-modal,
#avis-modal {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh; /* suit la zone réellement visible (barre d'adresse mobile) */
  z-index: 80; /* au-dessus de la notif bêta (70), sinon elle masque la croix */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: 720px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  animation: card-in 0.32s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Carrousel --- */
.modal-carousel {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
/* voile sombre en haut : améliore la lisibilité de la croix sur les photos claires */
.modal-carousel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(4, 5, 9, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.carousel-slide.placeholder {
  background: linear-gradient(135deg, rgba(110,231,255,0.08), rgba(46,46,92,0.18));
  color: var(--muted);
}
.carousel-slide .ph-icon { font-size: 1.8rem; opacity: 0.7; }
.carousel-slide .ph-text { font-size: 0.82rem; letter-spacing: 0.04em; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-arrow:hover { background: rgba(7,9,13,0.8); border-color: var(--accent); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.carousel-dot {
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }

/* --- Corps du modal --- */
.modal-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-top: 6px;
}
.modal-section h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.tag-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tag-list li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.tag-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-soft);
}

/* ===== Fenêtre « Donner un avis » (formulaire) ===== */
.avis-card { width: 980px; }
.avis-card .modal-body { padding: 26px 28px 28px; }
#avis-title { font-size: 1.5rem; margin: 4px 0 6px; }
.avis-intro { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 20px; }

#avis-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- Sections numérotées (schéma en 2 colonnes) ---
   Chaque colonne est un flux indépendant (pas une grille par ligne) : la
   hauteur d'une section ne dépend jamais de sa voisine d'en face, ce qui
   évite les grands vides quand les sections n'ont pas la même hauteur. */
.avis-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.avis-col { display: flex; flex-direction: column; gap: 20px; }
/* Les conteneurs flex imbriqués (star-row, section-header, field…) ont par
   défaut min-width: auto, donc leur contenu texte les empêche de rétrécir
   sous leur largeur de contenu : sur mobile la colonne déborde alors à
   droite au lieu de se caler dans la carte. On force tout à pouvoir
   rétrécir normalement. */
.avis-card * { min-width: 0; }
.avis-section {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.015);
}
.avis-section .section-header {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
}
.avis-section .section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.avis-section .section-note { color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.avis-section .section-hint { color: var(--muted); font-size: 0.78rem; margin-top: -6px; }

/* --- Boutons radio en pilules (Oui / Non / …) --- */
.pill-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pill-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Avantages (saisis librement par le visiteur) --- */
.avantages-fieldset {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px 16px;
}
.avantages-fieldset legend {
  padding: 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag-input-row { display: flex; gap: 10px; }
.tag-input-row input {
  flex: 1;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}
.tag-input-row input::placeholder { color: rgba(139, 151, 165, 0.7); }
.tag-input-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.glass-btn.small { padding: 9px 16px; font-size: 0.8rem; white-space: nowrap; }
.avantage-tags { display: flex; flex-flow: row wrap; gap: 8px; margin-top: 12px; }
.avantage-tags:empty { margin-top: 0; }
.avantage-tags .tag-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text);
}
.avantage-tags .tag-chip button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.avantage-tags .tag-chip button:hover { background: rgba(255, 106, 106, 0.35); }

/* --- Logement --- */
.logement-extra { display: flex; flex-direction: column; gap: 14px; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
  cursor: pointer;
}
.checkbox-item input { margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.checkbox-item.declaration { font-size: 0.82rem; }
.checkbox-item a { color: var(--accent); }

/* --- Zone de dépôt de fichiers --- */
.field-hint { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  border: 1px dashed var(--glass-border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover,
.dropzone.dragover { border-color: var(--accent); background: rgba(110, 231, 255, 0.05); }
.dropzone-icon { color: var(--accent); }
.dropzone-text { font-size: 0.85rem; color: var(--text); line-height: 1.4; }
.dropzone-hint { font-size: 0.72rem; color: var(--muted); }
.file-list { display: block; font-size: 0.76rem; color: var(--accent); margin-top: 2px; }
.file-list:empty { display: none; }

/* --- Encadrés d'information --- */
.info-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(110, 231, 255, 0.05);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.info-box-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.info-box strong { display: block; color: var(--text); font-size: 0.82rem; margin-bottom: 3px; }
.info-box a { color: var(--accent); }
.moderation-box { background: rgba(255, 255, 255, 0.02); }

.avis-thanks { text-align: center; font-size: 0.8rem; color: var(--muted); }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.field .req { color: var(--accent); }
.field .field-label { display: inline-flex; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238b97a5'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%238b97a5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.field select option { background: #12151b; color: var(--text); }
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(139, 151, 165, 0.7); }
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* notation par étoiles */
.star-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.star-row .sr-label { font-size: 0.85rem; color: var(--text); }
.star-row .sr-stars { display: flex; gap: 3px; }
.star-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(139, 151, 165, 0.5);
  transition: color 0.12s ease, transform 0.12s ease;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.on { color: var(--accent); text-shadow: 0 0 8px var(--accent-soft); }

#avis-submit { justify-content: center; margin-top: 4px; }
#avis-submit[disabled] { opacity: 0.6; cursor: default; }
.avis-status { font-size: 0.82rem; text-align: center; min-height: 1em; }
.avis-status.ok { color: var(--accent); }
.avis-status.err { color: #ff9a9a; }

#card-close,
#avis-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5; /* au-dessus du carrousel, sinon la photo masque la croix */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(7, 9, 13, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#card-close:hover,
#avis-close:hover { background: rgba(7,9,13,0.85); border-color: var(--accent); }

.card-area { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
#card-name { font-size: 1.3rem; margin: 4px 0 10px; }

.card-overall { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
#card-score { font-size: 1.5rem; font-weight: 600; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; }
#card-reviews { font-size: 0.78rem; }

.rating-row {
  display: grid;
  grid-template-columns: 130px 1fr 30px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.rating-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.rating-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110,231,255,0.5), var(--accent));
  box-shadow: 0 0 6px var(--accent-soft);
}
.rating-val { text-align: right; color: var(--muted); font-size: 0.75rem; }

.demo-note { font-size: 0.68rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* --- Chiffres clés (salaire, recommandation, logement fourni) --- */
.card-key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.key-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}
.key-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}
.key-stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.card-logement-detail { font-size: 0.82rem; color: var(--text); line-height: 1.5; margin: 10px 0 0; }
.tag-list li.tag-empty { color: var(--muted); font-style: italic; }
.tag-list li.tag-empty::before { display: none; }

/* --- Retours par service (fiche hôtel) --- */
/* Cartes cliquables + pastilles plutôt que des barres de progression :
   plus lisible en un coup d'œil, et plus ludique qu'une pile de jauges. */
.modal-section-services { margin-top: 22px; }
.modal-section-services h4 { margin-bottom: 12px; }

.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.department-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 6px 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.department-card:hover { border-color: rgba(140,220,255,0.45); transform: translateY(-1px); }
.department-card.active { border-color: var(--accent); box-shadow: var(--glow); }
.department-card-icon { font-size: 1.05rem; line-height: 1; }
/* min-height sur 2 lignes : les notes restent alignées entre elles, que le
   nom du service tienne sur une ou deux lignes (« Service technique »…). */
.department-card-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3em;
  font-size: 0.64rem;
  color: var(--muted);
  line-height: 1.15;
}
.department-card-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
}
.department-card.active .department-card-name { color: var(--text); }

.department-detail {
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}
.department-score-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.department-score-row #card-department-score {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}
.department-score-row #card-department-reviews { font-size: 0.76rem; }
.department-empty { font-size: 0.8rem; line-height: 1.5; margin-bottom: 4px; }

.department-stat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.department-stat-pill {
  padding: 6px 12px;
  background: rgba(110, 231, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--muted);
}
.department-stat-pill strong {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  margin-right: 5px;
}

.department-quote {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-soft);
}
.department-quote p {
  font-size: 0.83rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 4px;
}
.department-quote cite {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.75;
}

/* ===== Liste d'un groupe d'hôtels (station) ===== */
/* Centrée au milieu de la fenêtre (fixed = indépendant du scroll) */
#group-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 75; /* au-dessus de la notif bêta (70), sinon un panneau haut la masque */
  width: 380px;
  max-width: calc(100vw - 48px);
  padding: 24px;
  animation: panel-in 0.3s ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

#group-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}
#group-close:hover { color: var(--text); }

#group-title { font-size: 1.15rem; }
#group-meta { font-size: 0.75rem; margin: 2px 0 14px; }

#group-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 40vh;
  overflow-y: auto;
}

.group-hotel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.group-hotel:hover { border-color: var(--accent); box-shadow: var(--glow-strong); }

.gh-name { flex: 1; }
.gh-rating { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.gh-stars { color: var(--accent); letter-spacing: 1px; font-size: 0.78rem; }

/* ===== Top 5 (filtre actif sans hôtel épinglé à l'écran) ===== */
#top5-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 75; /* au-dessus de la notif bêta (70), sinon un panneau haut la masque */
  width: 380px;
  max-width: calc(100vw - 48px);
  padding: 24px;
  animation: panel-in 0.3s ease;
}
#top5-panel h3 { font-size: 1.15rem; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
#top5-scope { font-size: 0.78rem; font-weight: 400; }
#top5-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}
#top5-close:hover { color: var(--text); }
#top5-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-height: 50vh;
  overflow-y: auto;
}
.top5-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.top5-item:hover { border-color: var(--accent); box-shadow: var(--glow-strong); }
.top5-rank {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.1);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
}
.top5-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.top5-info .top5-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5-info .top5-dest { font-size: 0.7rem; color: var(--muted); }
.top5-metric { flex-shrink: 0; color: var(--accent); font-size: 0.78rem; white-space: nowrap; }
.top5-empty { font-size: 0.82rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* ===== Toast ===== */
#toast {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  font-size: 0.85rem;
  z-index: 40;
}

/* ===== Sections ===== */
.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 34px 36px;
}

.section h2 { font-size: 1.8rem; margin-bottom: 14px; }

/* ===== Comment donner un avis (vidéo explicative) ===== */
.etapes-section { text-align: center; }
.etapes-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.etapes-eyebrow::before { content: '◆ '; }
.etapes-section h2 .accent-text { color: var(--accent); }

/* Le dégradé de fond, visible en fin liseré (padding), tient lieu de contour ;
   la vidéo (ou son placeholder) vient occuper le rectangle intérieur. */
.video-frame {
  max-width: 760px;
  margin: 8px auto 0;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.4), rgba(185, 168, 255, 0.18), rgba(110, 231, 255, 0.4));
  box-shadow: var(--glow);
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: rgba(6, 8, 12, 0.65);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.video-play svg { margin-left: 2px; }
.video-placeholder-text { font-size: 0.85rem; color: var(--muted); }

/* ===== Charte de notation (centrée) ===== */
.charte-section { text-align: center; }
.charte-section p { color: var(--muted); max-width: 560px; line-height: 1.6; margin: 0 auto 26px; }

footer {
  padding: 36px 36px 50px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-logo-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.78rem;
}
.footer-logo-btn:hover .footer-logo { color: var(--accent); }
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.2s ease;
}
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent); }
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-icon:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }

.footer-legal {
  max-width: 1060px;
  margin: 22px auto 0;
  padding-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-legal .footer-link + .footer-link {
  position: relative;
  padding-left: 22px;
}
.footer-legal .footer-link + .footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.18);
}

@media (max-width: 880px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { justify-content: flex-start; }
}

/* ===== Pages légales (CGU / mentions) ===== */
.legal { max-width: 820px; margin: 0 auto; padding: 110px 24px 70px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 34px; }
.legal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  margin: 36px 0 12px;
  padding-top: 6px;
}
.legal h3 { font-size: 1rem; margin: 20px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 0.9rem; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 500; }
.legal .back { display: inline-block; margin-top: 40px; }

/* ===== Notification version bêta ===== */
#beta-notice {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 70;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px 18px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#beta-notice.show { opacity: 1; transform: translateY(0); }
#beta-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
#beta-close:hover { color: var(--text); }
.beta-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}
.beta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  margin-bottom: 5px;
}
.beta-text { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  /* Le bloc recherche est collé en bas de l'écran (min-height sur le viewport
     réel côté iOS) pour qu'aucune section suivante ne dépasse au chargement.
     Le globe reçoit une marge auto au-dessus ET en dessous : il se centre
     tout seul entre la barre de nav (padding-top) et le bloc recherche. */
  .hero { flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; padding-top: 70px; }
  #globe-container { width: 100%; height: 50vh; margin-top: auto; margin-bottom: auto; }
  .side-panel { width: 100%; padding: 10px 24px 40px; }
  /* marges sécurisées : la fiche ne passe plus sous la barre d'adresse / l'encoche */
  #hotel-modal,
  #avis-modal {
    padding: 14px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .modal-card { max-height: calc(100dvh - 28px); }
  .avis-card { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .avis-sections { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-key-stats { grid-template-columns: 1fr; gap: 8px; }
  .modal-carousel { height: 190px; }
  /* Cartes de service plus grandes qu'en desktop : les pouces visent mieux
     de plus grandes cibles, et le texte reste confortable à lire. */
  .department-grid { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px; }
  .department-card { padding: 14px 8px 12px; gap: 4px; border-radius: 16px; }
  .department-card-icon { font-size: 1.35rem; }
  .department-card-name { font-size: 0.72rem; }
  .department-card-score { font-size: 1rem; }
  /* croix nettement plus visible sur mobile : plus grande, fond plein, ombrée */
  #card-close,
  #avis-close {
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    background: var(--bg);
    border-color: var(--accent-soft);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    font-size: 1.15rem;
  }
  #group-panel { width: calc(100vw - 32px); }
  /* Panneau de filtres centré comme une modale, plus pratique au pouce
     qu'un petit menu ancré au bouton sur un écran étroit. */
  #filters-panel {
    position: fixed;
    top: 50%; left: 50%; right: auto;
    transform: translate(-50%, -50%);
    z-index: 75; /* au-dessus de la notif bêta (70), sinon elle masque le panneau */
    width: calc(100vw - 48px);
    max-width: 320px;
    animation: panel-in 0.3s ease;
  }
  #reset-view { top: 80px; left: 20px; }
  #zoom-controls { top: 134px; left: 20px; }
  #zoom-controls .glass-btn { width: 38px; height: 38px; }
  .navbar { padding: 14px 20px; gap: 10px; }
  .brand { font-size: 1rem; }
  .nav-btn { padding: 7px 11px; font-size: 0.72rem; white-space: nowrap; }
  /* Sur petit écran les étiquettes gardent le nom complet, juste un peu
     plus compactes */
  .marker-pill { font-size: 0.7rem; padding: 5px 10px; }
  /* Centrée au milieu de l'écran sur mobile (plus lisible qu'en haut à
     droite, où elle chevauchait le globe et les panneaux). */
  #beta-notice {
    top: 50%;
    left: 50%;
    right: auto;
    width: calc(100vw - 48px);
    max-width: 360px;
    transform: translate(-50%, calc(-50% - 10px));
  }
  #beta-notice.show { transform: translate(-50%, -50%); }
  /* Même échelle réduite que le bloc « Notre mission » pour les deux
     sections suivantes (vidéo explicative + charte). */
  .section { padding: 28px 20px; }
  .section h2 { font-size: 1.35rem; margin-bottom: 10px; }
  .etapes-eyebrow { margin-bottom: 8px; }
  .charte-section p { font-size: 0.88rem; }
  .video-placeholder-text { font-size: 0.78rem; }
}

/* ===== Numéros d'arrondissements (vue Paris) ===== */
.arr-label { pointer-events: none; }
.arr-num {
  position: absolute;
  left: 0;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(191, 230, 255, 0.55);
  text-shadow: 0 0 8px rgba(7, 9, 13, 0.9);
  white-space: nowrap;
}

/* ===== Section mission / objectifs (mise en page éditoriale) ===== */
.mission {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 36px;
}
/* liseré lumineux en haut pour démarquer la section */
.mission::before {
  content: '';
  position: absolute;
  top: 0; left: 36px; right: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
}
.mission-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.mission-eyebrow::before { content: '◆ '; }
.mission-lead h2 { font-size: 2.1rem; line-height: 1.18; margin-bottom: 20px; }
.mission-lead p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; max-width: 440px; }
.mission-lead em { color: var(--text); font-style: italic; }
.mission-accent {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--text) !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem !important;
}

/* frise verticale : ligne + pastilles numérotées, pas de cartes */
.mission-timeline {
  list-style: none;
  position: relative;
  padding-left: 8px;
}
.mission-timeline::before {
  content: '';
  position: absolute;
  left: 26px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(110,231,255,0.05));
}
.mission-timeline li {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 0 34px 0;
}
.mission-timeline li:last-child { padding-bottom: 0; }
.mt-step {
  flex-shrink: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-soft);
  box-shadow: 0 0 14px rgba(110,231,255,0.18);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
}
.mt-body h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.mt-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 880px) {
  .mission { padding: 40px 24px; }
  .mission-inner { grid-template-columns: 1fr; gap: 28px; }
  .mission-eyebrow { margin-bottom: 10px; }
  .mission-lead h2 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 12px; }
  .mission-lead p { max-width: none; font-size: 0.88rem; }
  .mission-accent { margin-top: 12px; font-size: 0.9rem !important; }
  .mission-timeline li { gap: 16px; padding-bottom: 24px; }
  .mt-step { width: 32px; height: 32px; font-size: 0.74rem; }
  .mt-body h3 { font-size: 1rem; margin: 2px 0 6px; }
  .mt-body p { font-size: 0.84rem; }
}

/* ===== Visionneuse photo plein écran ===== */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
#lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  animation: lightbox-in 0.22s ease;
}
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(7, 9, 13, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#lightbox-close:hover { background: rgba(7,9,13,0.9); border-color: var(--accent); }

@media (max-width: 640px) {
  #lightbox { padding: 16px; }
  #lightbox-close { top: 14px; right: 14px; }
}
