/* =========================================
   SURFSENSE - STYLE FINAL (CLEAN & FAST)
   ========================================= */

:root {
  color-scheme: dark;
  --bg: #04060c;
  --panel: rgba(12, 14, 24, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #2a7bff;
  --live-red: #ff304a;
  --text: #e9efff;
  --muted: #98a6c6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #04060c;
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* --- HEADER & NAVIGATION --- */
.hero { padding: 20px 4vw 60px; }
.hero--photo { background: radial-gradient(circle at 50% 0%, rgba(42, 123, 255, 0.15), transparent 60%), #04060c; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; border-radius: 16px; margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-links { display: flex; gap: 24px; font-size: 0.9rem; color: var(--muted); }
.logo { font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 24px; }

.primary, .ghost, .cta {
  border: none; padding: 10px 24px; border-radius: 99px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.primary { background: #fff; color: #000; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }
.ghost { background: transparent; border: 1px solid var(--line); color: #fff; }
.cta { background: rgba(255, 48, 74, 0.1); color: #ff6b81; border: 1px solid rgba(255, 48, 74, 0.3); }

/* --- HERO ANIMÉ --- */
.hero-content--center {
  min-height: 50vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin: 24px 0;
  background: linear-gradient(to bottom, #ffffff, #999999); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.badge--live {
  padding: 6px 14px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  background: rgba(255, 48, 74, 0.1); color: var(--live-red); border: 1px solid rgba(255, 48, 74, 0.4);
  box-shadow: 0 0 25px rgba(255, 48, 74, 0.3); display: inline-flex; align-items: center; gap: 8px;
}
.badge--live::before {
  content: ""; width: 6px; height: 6px; background: var(--live-red); border-radius: 50%;
  box-shadow: 0 0 10px var(--live-red); animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ANIMATION CASCADE */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-1, .animate-2, .animate-3, .animate-4 { opacity: 0; animation: fadeSlideUp 0.8s ease forwards; }
.animate-1 { animation-delay: 0.1s; } .animate-2 { animation-delay: 0.3s; }
.animate-3 { animation-delay: 0.5s; } .animate-4 { animation-delay: 0.7s; }

/* =========================================================
   LAYOUT CARTE + LISTE
   ========================================================= */
.section { padding: 0 4vw 80px; }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px; /* Liste fixe à droite */
  gap: 20px;
  height: 550px; /* Hauteur fixe */
  align-items: stretch;
}

/* CARTE */
.map-container-wrapper {
  position: relative; width: 100%; height: 100%;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  background: #000;
}
#surf-map { width: 100%; height: 100%; background: #000; z-index: 1; }

/* MARQUEURS PINS (CORRECTION) */
.leaflet-marker-icon { background: none; border: none; } /* Reset Leaflet */
.leaflet-marker-wrapper { background: none !important; border: none !important; }

.spot-marker {
  width: 30px; height: 30px;
  background: #cdfcff; /* Cyan Pin */
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 15px rgba(100, 240, 255, 0.8);
  position: absolute; top: 0; left: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.spot-marker::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
  background: #000; border-radius: 50%; transform: translate(-50%, -50%);
}
.spot-marker:hover, .spot-marker--active {
  background: #fff; transform: rotate(-45deg) scale(1.3) translateY(-10px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 1);
  z-index: 10000 !important; /* Force au-dessus de tout */
}

/* BADGE FLOTTANT */
.map-floating-badge {
  position: absolute; top: 20px; left: 20px; z-index: 500;
  background: rgba(10, 10, 15, 0.85); padding: 10px 16px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.badge-title { color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.badge-subtitle { color: #999; font-size: 0.7rem; margin-top: 2px; }

/* LISTE DE DROITE */
.spot-panel {
  background: rgba(15, 17, 26, 0.8);
  border: 1px solid var(--line); border-radius: 24px; padding: 20px;
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  backdrop-filter: blur(10px);
}
.spot-panel-header { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.spot-panel-header h3 { margin: 0; color: #fff; font-weight: 700; }

.spot-search {
  display: flex; background: rgba(255,255,255,0.05); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.spot-search input { background: none; border: none; color: #fff; width: 100%; outline: none; font-size: 0.9rem; }

.spot-list {
  overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 8px; padding-right: 4px;
}
.spot-list::-webkit-scrollbar { width: 3px; }
.spot-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* STYLE CARTE LISTE + LIVE ROUGE */
.spot-card {
  background: transparent; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 14px 16px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.2s;
}
.spot-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.spot-card.is-active { border-color: var(--live-red); background: rgba(255, 48, 74, 0.05); box-shadow: inset 0 0 20px rgba(255, 48, 74, 0.1); }

.spot-card-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.spot-name { margin: 0; font-size: 0.95rem; color: #fff; font-weight: 700; }
.spot-region { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }

/* Badge LIVE Rouge Néon */
.spot-live-badge {
  font-size: 0.65rem; font-weight: 800; color: #fff;
  padding: 4px 10px; border-radius: 8px;
  background: #ff304a; /* Rouge pur */
  box-shadow: 0 0 12px rgba(255, 48, 74, 0.6); /* Lueur */
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

/* POPUP CARTE PREMIUM */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #0b0d14 !important; border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important; border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}
.spot-popup.compact-popup { width: 200px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.spot-popup h4 { margin: 10px 0 5px; font-size: 1.1rem; }
.popup-close { position: absolute; top: 8px; right: 8px; background: none; border: none; color: #999; cursor: pointer; font-size: 1.2rem; }
.popup-btn {
  display: block; width: 100%; padding: 8px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; text-decoration: none; cursor: pointer; margin-bottom: 5px;
}
.popup-btn--primary { background: #fff; color: #000; border: none; }
.popup-btn--primary:hover { transform: scale(1.05); }
.popup-btn--fav { background: transparent; color: #999; border: none; }
.popup-btn--fav:hover { color: var(--live-red); }

/* LOADER & MODAL */
#app-loader { position: fixed; inset: 0; background: #04060c; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-hidden { opacity: 0; visibility: hidden; }

.modal { display: none; position: fixed; inset: 0; z-index: 2000; justify-content: center; align-items: center; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.modal-content { background: #111; padding: 30px; border-radius: 24px; border: 1px solid var(--line); width: 400px; position: relative; }
.modal-form input { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 8px; margin-bottom: 10px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .spot-panel { height: 400px; }
  #surf-map { height: 450px; }
  .map-floating-badge { display: none; }
}

/* =========================================
   NOUVEAU DESIGN CONDITIONS (DASHBOARD)
   ========================================= */

/* Layout Global */
.cond-container {
  padding: 0 4vw 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.cond-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 30px;
}
.cond-titles h1 { font-size: 2.5rem; margin: 10px 0 5px; line-height: 1; }
.sub-text { color: #888; font-size: 0.9rem; margin: 0; }

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 350px; /* Grille Principale + Sidebar */
  gap: 24px;
}

/* Cartes "Glassmorphism" */
.card-panel {
  background: #12141c; /* Fond très sombre unifié */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.card-header-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.card-header-row h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }

/* Bandeau Statut (À SURVEILLER) */
.status-banner {
  background: rgba(40, 40, 45, 0.6);
  border: 1px solid rgba(255, 165, 0, 0.5); /* Bordure Orange */
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
/* Styles Status Banner NÉON (Mis à jour) */
.status-banner.is-good {
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2) inset;
}
.status-banner.is-good .status-icon-circle, .status-banner.is-good h3 { color: #4ade80; }

.status-banner.is-epic {
  border-color: #d946ef;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.2) inset;
}
.status-banner.is-epic .status-icon-circle, .status-banner.is-epic h3 { color: #d946ef; }

.status-banner.is-warning {
  border-color: #ff9800;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.2) inset;
}
.status-banner.is-warning .status-icon-circle, .status-banner.is-warning h3 { color: #ff9800; }

.status-banner.is-bad {
  border-color: rgba(255, 255, 255, 0.1);
}
.status-banner.is-bad .status-icon-circle, .status-banner.is-bad h3 { color: #aaa; }

.status-icon-circle {
  width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); 
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  font-size: 2.5rem; line-height: 1; filter: drop-shadow(0 0 10px currentColor); animation: pulse-glow 2s infinite ease-in-out;
}
.status-content h3 { margin: 0; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; text-shadow: 0 0 10px currentColor; }
.status-content p { margin: 0; font-size: 0.9rem; color: #ccc; }

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Grille des 6 Stats */
.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 12px;
  margin-bottom: 24px;
}
.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column;
}
.stat-label { font-size: 0.8rem; color: #888; margin-bottom: 5px; font-weight: 600; }
.stat-value { font-size: 1.4rem; color: #fff; font-weight: 700; }
.stat-value small { font-size: 0.9rem; color: #666; font-weight: 400; margin-left: 2px; }

/* Barres Info (Prochain créneau / Marée) */
.info-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure violette légère */
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.info-label { font-weight: 600; color: #ddd; }
.info-value { color: #fff; font-weight: 700; }

/* Sidebar */
.sidebar-map {
  width: 100%; height: 200px; border-radius: 12px; background: #222; margin-bottom: 10px;
}
.map-caption { font-size: 0.8rem; color: #666; margin: 0; }

.premium-body { font-size: 0.95rem; line-height: 1.5; color: #ccc; margin-bottom: 15px; }
.premium-tags { display: flex; gap: 8px; margin-bottom: 15px; }
.tag { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; background: #333; }
.premium-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; margin-top: 10px; font-size: 0.8rem; color: #666; }
.premium-link a { display: block; margin-top: 10px; font-size: 0.85rem; color: #aaa; text-decoration: underline; }

/* Boutons "Pill" */
.primary-pill, .ghost-pill {
  padding: 8px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
}
.primary-pill { background: #ff304a; color: #fff; border: none; }
.ghost-pill { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.1); margin-right: 8px; }

.badge-pill {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; background: #fff; color: #000; font-weight: 800; margin-left: 10px; vertical-align: middle;
}

/* Responsive Mobile Dashboard */
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .cond-header { flex-direction: column; align-items: flex-start; gap: 15px; }
  .cond-actions { width: 100%; display: flex; justify-content: space-between; }
}

/* --- COULEURS DYNAMIQUES LISTE --- */
.spot-live-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: all 0.3s ease;
}
.spot-live-badge.is-live {
  background: rgba(74, 222, 128, 0.1); color: #4ade80; border: 1px solid #4ade80;
}
.spot-live-badge.is-simu {
  background: rgba(250, 204, 21, 0.1); color: #facc15; border: 1px solid #facc15;
}

/* --- LÉGENDE DES STATUTS --- */
.status-legend {
  margin-top: auto; padding: 15px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.2);
}
.status-legend h4 { margin: 0 0 10px 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.legend-item { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.8rem; color: #ccc; }
.legend-item strong { font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--live { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.6); }
.dot--simu { background: #ff9800; box-shadow: 0 0 6px rgba(255, 152, 0, 0.6); }
.dot--wait { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }

/* --- LAYOUT 7 JOURS : BARRE TOTAL LARGEUR (STYLE FINAL) --- */

.forecast-scroller {
  /* On remplace l'affichage horizontal par une liste verticale */
  display: flex; flex-direction: column; gap: 12px;
  overflow-x: hidden; height: auto; padding-bottom: 10px;
}

.day-row {
  display: block; /* Prend 100% de la largeur du conteneur parent */
  margin-bottom: 0;
}

.day-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #555;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Couleurs Status */
.day-card.is-epic { border-left-color: #d946ef; background: linear-gradient(90deg, rgba(217,70,239,0.08), transparent); }
.day-card.is-good { border-left-color: #4ade80; background: linear-gradient(90deg, rgba(74,222,128,0.08), transparent); }
.day-card.is-medium { border-left-color: #facc15; }
.day-card.is-bad { border-left-color: #ef4444; }

/* EN-TÊTE (La ligne principale) */
.day-header {
  display: grid;
  grid-template-columns: 90px 80px auto 1fr auto 30px; 
  align-items: center;
  padding: 0 20px;
  height: 75px; 
  gap: 20px;
}

/* 1. Date */
.day-date {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  text-transform: capitalize;
}

/* 2. Badge */
.quality-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 0;
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  text-align: center;
  width: 100%;
}

/* 3. Stats Surf (Vagues + Vent) */
.surf-stats-group {
  display: flex;
  flex-direction: column;
}
.surf-primary { 
  color: #fff; 
  font-weight: 800; 
  font-size: 1.1rem; 
  letter-spacing: 0.5px;
}
.surf-secondary { 
  color: #aaa; 
  font-size: 0.8rem; 
  margin-top: 2px;
}

/* 5. Stats Météo */
.weather-stats-group {
  display: flex;
  gap: 15px;
}
.weather-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.w-icon { font-size: 1.1rem; }
.w-val { font-weight: 600; color: #eee; font-size: 0.9rem; }

/* 6. Flèche */
.day-arrow {
  color: #666;
  justify-self: end;
  transition: transform 0.3s;
}

/* --- DÉTAILS ACCORDÉON (STYLE TUILES) --- */

.day-details {
  display: none; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 12px; 
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.day-card.is-open .day-details {
  display: grid;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LE STYLE DES ENCADRÉS (TUILES) */
.detail-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 12px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
}

.detail-box:hover {
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px); 
}

/* Le titre */
.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777; 
  margin-bottom: 6px;
  font-weight: 600;
}

/* La valeur */
.detail-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff; 
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Adaptation Mobile pour les détails */
@media (max-width: 500px) {
  .day-details {
    grid-template-columns: repeat(2, 1fr); 
  }
  .detail-box:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* --- PAGE CAMÉRAS --- */

/* Filtres (Pillules) */
.cam-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.85rem;
}

.filter-pill:hover, .filter-pill.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Grille Vidéo */
.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
  gap: 24px;
}

/* Carte Caméra */
.cam-card {
  background: #12141c;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Conteneur Vidéo (Ratio 16:9) */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0.8; 
  transition: opacity 0.3s;
}

.cam-card:hover iframe { opacity: 1; }

/* Badge "EN DIRECT" sur la vidéo */
.cam-live-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 48, 74, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(255, 48, 74, 0.5);
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blinkRed 1s infinite;
}

@keyframes blinkRed { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Infos sous la vidéo */
.cam-info {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cam-name { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.cam-region { font-size: 0.75rem; color: #888; text-transform: uppercase; margin-top: 2px; }

.cam-status {
  font-size: 0.8rem;
  color: #4ade80; /* Vert */
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile */
@media (max-width: 600px) {
  .cam-grid { grid-template-columns: 1fr; }
}

/* --- PAGE CAMÉRAS : NOUVEAU DESIGN --- */

/* Conteneur principal de la visionneuse */
.cam-viewer-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px; /* Hauteur mini assurée */
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Le contenu intérieur (Image + Overlay) */
.cam-viewer-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Voile sombre par dessus l'image pour que le texte ressorte */
.cam-viewer-content::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Assombrit l'image de fond */
  backdrop-filter: blur(5px); /* Effet flou classe */
  z-index: 1;
}

/* Le contenu texte/bouton (au dessus du voile) */
.cam-overlay-data {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.cam-big-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.cam-big-region {
  font-size: 1rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  display: block;
}

/* Le Gros Bouton Action */
.btn-external-cam {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  padding: 16px 32px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-external-cam:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

/* Message "Flux Privé" */
.cam-warning {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Responsive Mobile */
@media (max-width: 900px) {
  .cam-viewer-container { min-height: 350px; }
  .cam-big-title { font-size: 1.8rem; }
}

/* --- PAGE FAVORIS --- */
.fav-card {
  border-left: 4px solid var(--accent);
}

.fav-stats {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.fav-stat-item {
  display: flex;
  flex-direction: column;
}

.fav-stat-label {
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
}

.fav-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.modal-footer-text {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

.modal-footer-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* Style quand on est connecté */
.user-logged-in .nav-actions .cta {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* --- STYLE AUTH --- */
.modal-footer-text {
  margin-top: 25px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.modal-footer-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
}

.modal-footer-text a:hover {
  text-decoration: underline;
}

/* État visuel quand l'utilisateur est connecté */
.user-is-logged .nav-actions .cta {
  background: rgba(74, 222, 128, 0.15); /* Vert transparent */
  color: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

/* --- GUIDE ÉQUIPEMENT --- */
.gear-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.gear-icon { font-size: 1.5rem; }

.gear-text {
  display: flex;
  flex-direction: column;
}

.gear-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 800;
}

.gear-value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

/* --- WIDGET MARÉE & SWELL ALERT --- */
.spot-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.75rem;
}

.tide-tag {
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.swell-alert-badge {
  background: linear-gradient(90deg, #d946ef, #8b5cf6);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  animation: pulse-swell 2s infinite;
}

@keyframes pulse-swell {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(217, 70, 239, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 70, 239, 0); }
}

/* --- ACCUEIL : STATS BAR --- */
.quick-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.02) 100%);
}

.stat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bubble-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bubble-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

/* --- PAGE ACTUS (HERO & FEED) --- */

/* Conteneur du Hero */
.news-hero-section {
    padding: 0 4vw 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* La grosse carte "À la une" */
.hero-news-card {
    position: relative;
    width: 100%;
    height: 500px; /* Grande hauteur pour l'impact */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end; /* Texte en bas */
}

/* L'image de fond du Hero */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease; /* Effet de zoom très lent et classe */
}
.hero-news-card:hover .hero-bg {
    transform: scale(1.05);
}

/* Le dégradé noir pour lire le texte */
.hero-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* Le Tag "À la une" */
.hero-tag {
    background: #ff304a;
    color: #fff;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 48, 74, 0.5);
}

/* Le Gros Titre */
.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive : Gros sur PC, moyen sur mobile */
    margin: 0;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 900px;
}

.hero-desc {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limite à 2 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-btn {
    margin-top: 10px;
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.hero-btn:hover {
    transform: scale(1.05);
}

/* Section Feed (Le reste) */
.news-feed-section {
    padding: 20px 4vw 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.feed-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
    color: #fff;
}

/* Responsive Mobile Hero */
@media (max-width: 768px) {
    .hero-news-card { height: 400px; }
    .hero-overlay { padding: 20px; }
    .hero-desc { display: none; } /* On cache la description sur mobile pour gagner de la place */
}

/* --- SECTION ACTUS (VERSION PERFORMANCE / ANTI-CRASH) --- */
.news-section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    color: #fff;
    font-weight: 700;
}

#news-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARTE SIMPLE ET STABLE */
.news-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    /* Suppression des transitions lourdes pour éviter le crash */
}

/* Effet survol ultra-léger (juste la bordure, pas de mouvement) */
.news-card:hover {
    border-color: #4ade80; 
}

.news-img-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Suppression du zoom au survol pour éviter le crash */
}

.news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #4ade80;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.news-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-content h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #f1f5f9;
}

.news-btn {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    align-self: flex-start;
}

.news-btn:hover {
    color: #4ade80;
    text-decoration: underline;
}

/* --- LE HUB DES 5 ROBOTS INTELLIGENTS --- */
.robots-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Auto-responsive */
    gap: 15px;
    margin-bottom: 25px;
}

.ai-robot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.ai-robot-card:hover {
    background: rgba(74, 222, 128, 0.05);
    border-color: #4ade80;
    transform: translateY(-3px);
}

.robot-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.robot-info {
    display: flex;
    flex-direction: column;
}

.robot-name {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.robot-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 2px;
}

.robot-desc {
    font-size: 0.6rem;
    color: #666;
}

/* --- LE POPUP TECH / ROBOTS --- */
.tech-modal {
    max-width: 650px !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.8) !important;
}

.tech-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.tech-header h2 { margin: 0 0 10px 0; color: #fff; }

.tech-label {
    font-size: 0.7rem;
    color: #4ade80;
    letter-spacing: 2px;
    border: 1px solid #4ade80;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tech-item {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tech-item strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.tech-item p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.tech-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.status-ok {
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 800;
    animation: blink 2s infinite;
}

@media (max-width: 600px) {
    .tech-grid { grid-template-columns: 1fr; }
}

/* --- LEAFLET CLUSTERING (CUSTOM NEON) --- */

/* Le cercle du cluster */
.surf-cluster {
    background: rgba(12, 14, 24, 0.9); /* Fond sombre vitré */
    border: 1px solid rgba(74, 222, 128, 0.5); /* Bordure verte néon */
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3); /* Lueur */
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Au survol du cluster */
.surf-cluster:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
    transform: scale(1.1);
    z-index: 9999 !important;
}

/* Le chiffre à l'intérieur */
.surf-cluster-marker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.surf-cluster-marker span {
    font-size: 1rem;
    color: #4ade80; /* Texte vert néon */
}

/* =========================================
   NOUVELLES SECTIONS ACCUEIL (RADAR + TECH)
   ========================================= */

/* --- 1. RADAR TRENDING --- */
.radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 4vw 20px; /* Marges latérales */
    max-width: 1400px;
    margin: 0 auto;
}

.radar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radar-card:hover {
    background: rgba(74, 222, 128, 0.05);
    border-color: #4ade80;
    transform: translateY(-5px);
}

.radar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.radar-live-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: blink 1.5s infinite;
}

.radar-status {
    font-size: 0.7rem;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 1px;
}

.radar-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
}

.radar-region {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

/* Animation Vague Stylisée */
.radar-wave {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    height: 30px;
    align-items: flex-end;
}

.wave-line {
    width: 6px;
    background: #2a7bff;
    border-radius: 4px;
    animation: waveEqualizer 1.2s infinite ease-in-out;
}

@keyframes waveEqualizer {
    0%, 100% { height: 10px; opacity: 0.5; }
    50% { height: 25px; opacity: 1; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
}

/* --- 2. TECH SHOWCASE (MARKETING) --- */
.tech-banner {
    background: linear-gradient(90deg, rgba(12,14,24,0.95), rgba(4,6,12,0.95)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0 4vw;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.tech-text { flex: 1; }

.tech-label {
    color: #d946ef;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.tech-text h2 {
    font-size: 2rem;
    margin: 0 0 15px 0;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-text p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
}

.tech-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.tech-visual {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visual-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 240px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: floatCard 4s infinite ease-in-out;
}

.visual-card--2 { margin-left: 30px; animation-delay: 1s; border-color: rgba(74,222,128,0.3); }
.visual-card--3 { animation-delay: 2s; }

.vc-icon { font-size: 1.5rem; }
.visual-card strong { color: #fff; display: block; font-size: 0.9rem; }
.visual-card small { color: #888; font-size: 0.75rem; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
    .tech-banner { flex-direction: column; padding: 30px; text-align: center; }
    .tech-text h2 { font-size: 1.8rem; }
    .tech-pills { justify-content: center; }
    .tech-visual { display: none; } /* On cache le visuel complexe sur mobile */
}

/* =========================================
   SECTIONS WORKFLOW & NEWSLETTER
   ========================================= */

/* --- WORKFLOW (STEPS) --- */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0 4vw;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(42, 123, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 20px rgba(42, 123, 255, 0.2);
}

.step-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.step-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2a7bff, transparent);
    margin-top: 70px; /* Aligné avec les icones */
}

@media (max-width: 900px) {
    .steps-container { flex-direction: column; align-items: center; }
    .step-connector { width: 2px; height: 50px; background: linear-gradient(180deg, transparent, #2a7bff, transparent); margin: 0; }
}

/* --- NEWSLETTER CLUB --- */
.newsletter-box {
    background: linear-gradient(135deg, rgba(20,20,30,0.95), rgba(4,6,12,0.95));
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.05);
}

.newsletter-content h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #fff;
}

.newsletter-content p {
    color: #aaa;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #4ade80;
}

.newsletter-form button {
    padding: 14px 30px;
    border-radius: 99px;
    border: none;
    background: #4ade80;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
}

/* =========================================
   NOUVEAUTÉS ACCUEIL (PARTNERS & MOBILE)
   ========================================= */

/* --- 1. BANDEAU PARTENAIRES (TRUST) --- */
.partners-strip {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 4vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    flex-wrap: wrap;
}

.partner-logos {
    display: flex;
    gap: 30px;
}

.p-logo {
    color: #444;
    font-weight: 800;
    text-transform: uppercase;
    transition: color 0.3s;
    cursor: default;
}

.p-logo:hover { color: #fff; }

/* --- 2. MOBILE PROMO SECTION --- */
.mobile-promo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border-radius: 24px;
    padding: 60px;
    margin: 0 4vw;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.mobile-content h2 {
    font-size: 2.5rem;
    margin: 10px 0 20px 0;
    line-height: 1.1;
    color: #fff;
}

.mobile-content p {
    color: #999;
    margin-bottom: 30px;
    line-height: 1.6;
}

.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,255,255,0.2); }

/* Visuel Téléphone CSS (Pas d'image externe) */
.mobile-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 550px;
    background: #000;
    border: 8px solid #333;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover { transform: rotate(0deg) scale(1.05); }

.phone-screen {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 25px;
    background: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-app-preview {
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-header-preview {
    color: #fff;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.app-card-preview {
    background: rgba(255,255,255,0.1);
    height: 100px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

/* Indicateur Live dans le téléphone */
.app-card-preview::after {
    content: "LIVE";
    position: absolute;
    top: 10px; right: 10px;
    font-size: 0.6rem;
    color: #4ade80;
    border: 1px solid #4ade80;
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .mobile-promo-container { flex-direction: column; text-align: center; padding: 40px 20px; }
    .mobile-content { margin-bottom: 40px; }
    .store-buttons { justify-content: center; }
    .phone-mockup { transform: rotate(0); height: 400px; width: 220px; }
}

/* =========================================
   PAGE FAVORIS (PREMIUM CARDS)
   ========================================= */

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 4vw 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.fav-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

/* Glow Effect selon la qualité */
.fav-card.is-epic { border-color: #d946ef; box-shadow: 0 10px 40px rgba(217, 70, 239, 0.15); }
.fav-card.is-good { border-color: #4ade80; box-shadow: 0 10px 40px rgba(74, 222, 128, 0.15); }
.fav-card.is-medium { border-color: #facc15; }
.fav-card.is-bad { border-color: #ef4444; opacity: 0.8; }

.fav-card:hover { transform: translateY(-5px) scale(1.02); }

.fav-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.fav-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    max-width: 85%;
}

.fav-remove-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.fav-remove-btn:hover { color: #ef4444; }

.fav-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.fav-stat-main { display: flex; align-items: baseline; gap: 5px; }
.fs-val { font-size: 2rem; font-weight: 800; color: #fff; }
.fs-label { font-size: 1rem; color: #aaa; }

.fav-stat-secondary { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.fs-wind { font-size: 0.85rem; color: #ccc; }

.quality-pill {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

.fav-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   PAGE CAMERAS (SECURITY ROOM)
   ========================================= */

.cam-dashboard {
    display: flex;
    gap: 20px;
    height: 80vh;
    min-height: 600px;
}

/* SIDEBAR LISTE */
.cam-sidebar {
    width: 320px;
    background: #0b0d14;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.cam-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cam-sidebar-header h3 { margin: 0; color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.blink-dot { width: 8px; height: 8px; background: #ff304a; border-radius: 50%; animation: blink 1s infinite; }
.signal-ok { font-size: 0.65rem; color: #4ade80; border: 1px solid #4ade80; padding: 2px 6px; border-radius: 4px; }

.cam-list { overflow-y: auto; flex: 1; }

.cam-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.cam-item:hover, .cam-item.active { background: rgba(255, 255, 255, 0.05); }
.cam-item.active { border-left: 3px solid #ff304a; }

.cam-thumb {
    width: 80px; height: 50px;
    background-size: cover; background-position: center;
    border-radius: 6px;
    opacity: 0.7;
}
.cam-item.active .cam-thumb { opacity: 1; border: 1px solid #fff; }

.cam-info h4 { margin: 0 0 4px 0; font-size: 0.9rem; color: #fff; }
.cam-status { font-size: 0.65rem; color: #4ade80; font-weight: 700; }

/* MAIN SCREEN */
.cam-main-view { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.cam-screen-wrapper {
    flex: 1;
    background: #000;
    border-radius: 16px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.cam-screen {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    position: relative;
}

/* OVERLAYS ECRAN */
.cam-overlay-top, .cam-overlay-bottom {
    position: absolute; left: 20px; right: 20px;
    display: flex; justify-content: space-between;
    font-family: monospace; font-weight: 700; color: #fff;
    text-shadow: 0 2px 4px #000;
    pointer-events: none;
}
.cam-overlay-top { top: 20px; font-size: 1.2rem; }
.cam-overlay-bottom { bottom: 20px; font-size: 0.9rem; opacity: 0.8; }
.cam-rec { color: #ff304a; animation: blink 1.5s infinite; }

.cam-overlay-center {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s;
}
.cam-screen:hover .cam-overlay-center { background: rgba(0,0,0,0.4); }

/* BOUTON PLAY CENTRAL */
.cam-play-btn {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255, 48, 74, 0.9);
    padding: 15px 30px; border-radius: 12px;
    color: #fff; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 30px rgba(255, 48, 74, 0.4);
}
.cam-play-btn:hover { transform: scale(1.05); box-shadow: 0 0 50px rgba(255, 48, 74, 0.6); background: #ff304a; }
.cam-play-btn span:first-child { font-size: 1.5rem; }

/* EFFETS VINTAGE */
.cam-scan-line {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 51%);
    background-size: 100% 4px;
    pointer-events: none;
}
.cam-noise {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjUiLz48L3N2Zz4=');
    pointer-events: none;
}

/* CONTROLS BAS */
.cam-controls {
    background: #111; border: 1px solid #333; border-radius: 16px; padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.cam-meta h2 { margin: 0 0 5px 0; font-size: 1.4rem; color: #fff; }
.cam-meta p { margin: 0; color: #888; font-size: 0.9rem; }

.cam-stats-row { display: flex; gap: 30px; }
.cs-item { display: flex; flex-direction: column; align-items: center; }
.cs-label { font-size: 0.7rem; color: #666; text-transform: uppercase; }
.cs-val { font-size: 1.2rem; font-weight: 700; color: #fff; }

@media (max-width: 900px) {
    .cam-dashboard { flex-direction: column; height: auto; }
    .cam-sidebar { width: 100%; height: 200px; order: 2; }
    .cam-main-view { height: 400px; order: 1; }
    .cam-controls { flex-direction: column; text-align: center; gap: 15px; }
}

/* =========================================
   FIX DESIGN PAGE ACTUS (GRID COMPACTE)
   ========================================= */

/* 1. Transformer la liste en Grille */
#full-news-grid {
    display: grid;
    /* Crée autant de colonnes que possible avec une largeur min de 260px */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding-top: 20px;
}

/* 2. Rendre les cartes plus élégantes et compactes */
#full-news-grid .news-card {
    height: 100%; /* Pour que toutes les cartes aient la même hauteur */
    background: #12141c; /* Fond unifié sombre */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s;
}

#full-news-grid .news-card:hover {
    transform: translateY(-5px);
    border-color: #4ade80;
}

/* 3. Réduire la hauteur de l'image */
#full-news-grid .news-img-wrapper {
    height: 150px; /* Plus petit (était 180px ou plus) */
}

/* 4. Ajuster la typo pour que ça fasse moins "gros pavé" */
#full-news-grid .news-content {
    padding: 15px;
}

#full-news-grid .news-content h3 {
    font-size: 0.95rem; /* Titre plus fin */
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limite le titre à 2 lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#full-news-grid .news-btn {
    font-size: 0.75rem;
    margin-top: auto; /* Pousse le bouton vers le bas */
}

/* =========================================
   PAGE CAMERAS (SECURITY ROOM - FIXED)
   ========================================= */

.cam-dashboard {
    display: flex;
    gap: 20px;
    height: 80vh;
    min-height: 600px;
    margin-top: 20px;
}

/* SIDEBAR LISTE */
.cam-sidebar {
    width: 320px;
    background: #0b0d14;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure complète */
    border-radius: 16px; /* Arrondi */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Pour respecter l'arrondi */
}

.cam-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
}

.cam-sidebar-header h3 { 
    margin: 0; 
    color: #fff; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.blink-dot { 
    width: 8px; 
    height: 8px; 
    background: #ff304a; 
    border-radius: 50%; 
    animation: blink 1s infinite; 
}

.signal-ok { 
    font-size: 0.65rem; 
    color: #4ade80; 
    border: 1px solid #4ade80; 
    padding: 2px 6px; 
    border-radius: 4px; 
}

.cam-list { 
    overflow-y: auto; 
    flex: 1; 
}

/* Scrollbar stylisée */
.cam-list::-webkit-scrollbar { width: 5px; }
.cam-list::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.cam-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.cam-item:hover { background: rgba(255, 255, 255, 0.05); }
.cam-item.active { 
    background: rgba(255, 48, 74, 0.1); 
    border-left: 3px solid #ff304a; 
}

.cam-thumb {
    width: 80px; 
    height: 50px;
    background-size: cover; 
    background-position: center;
    border-radius: 6px;
    opacity: 0.7;
    background-color: #000;
}

.cam-item.active .cam-thumb { 
    opacity: 1; 
    border: 2px solid #fff; 
}

.cam-info h4 { 
    margin: 0 0 4px 0; 
    font-size: 0.9rem; 
    color: #fff; 
}

.cam-status { 
    font-size: 0.65rem; 
    color: #4ade80; 
    font-weight: 700; 
}

/* MAIN SCREEN */
.cam-main-view { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.cam-screen-wrapper {
    flex: 1;
    background: #000;
    border-radius: 16px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.cam-screen {
    width: 100%; 
    height: 100%;
    background-size: cover; 
    background-position: center;
    position: relative;
}

/* OVERLAYS ECRAN */
.cam-overlay-top, .cam-overlay-bottom {
    position: absolute; 
    left: 20px; 
    right: 20px;
    display: flex; 
    justify-content: space-between;
    font-family: monospace; 
    font-weight: 700; 
    color: #fff;
    text-shadow: 0 2px 4px #000;
    pointer-events: none;
    z-index: 2;
}

.cam-overlay-top { top: 20px; font-size: 1.2rem; }
.cam-overlay-bottom { bottom: 20px; font-size: 0.9rem; opacity: 0.8; }

.cam-rec { 
    color: #ff304a; 
    animation: blink 1.5s infinite; 
}

.cam-overlay-center {
    position: absolute; 
    inset: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s;
    z-index: 1;
}

.cam-screen:hover .cam-overlay-center { background: rgba(0,0,0,0.5); }

/* BOUTON PLAY CENTRAL (SMART REDIRECT) */
.cam-play-btn {
    display: flex; 
    align-items: center; 
    gap: 15px;
    background: rgba(255, 48, 74, 0.9);
    padding: 15px 30px; 
    border-radius: 12px;
    color: #fff; 
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 0 30px rgba(255, 48, 74, 0.4);
    pointer-events: auto; /* Important pour le clic */
}

.cam-play-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 50px rgba(255, 48, 74, 0.6); 
    background: #ff304a; 
}

.cam-play-btn span:first-child { font-size: 1.5rem; }

/* EFFETS VINTAGE (Scanlines) */
.cam-scan-line {
    position: absolute; 
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 0;
}

/* CONTROLS BAS */
.cam-controls {
    background: #111; 
    border: 1px solid #333; 
    border-radius: 16px; 
    padding: 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.cam-meta h2 { margin: 0 0 5px 0; font-size: 1.4rem; color: #fff; }
.cam-meta p { margin: 0; color: #888; font-size: 0.9rem; }

.cam-stats-row { display: flex; gap: 30px; }
.cs-item { display: flex; flex-direction: column; align-items: center; }
.cs-label { font-size: 0.7rem; color: #666; text-transform: uppercase; }
.cs-val { font-size: 1.2rem; font-weight: 700; color: #fff; }

@media (max-width: 900px) {
    .cam-dashboard { flex-direction: column; height: auto; }
    .cam-sidebar { width: 100%; height: 250px; order: 2; }
    .cam-main-view { height: 400px; order: 1; }
    .cam-controls { flex-direction: column; text-align: center; gap: 15px; }
    .cam-stats-row { width: 100%; justify-content: space-around; }
}

/* =========================================
   NOUVELLE DA : PAGE VERSUS (DARK NEON)
   ========================================= */

.versus-page {
    background-color: #04060c;
    /* Petit dégradé de fond subtil */
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #04060c 60%);
    min-height: 100vh;
}

.versus-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vs-header {
    text-align: center;
    margin-bottom: 50px;
}

.vs-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.vs-header p {
    color: #64748b;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* --- ARENE DE COMBAT (GRID) --- */
.battle-arena {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    position: relative;
    margin-bottom: 60px;
}

/* --- CARTES JOUEURS --- */
.fighter-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.fighter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.corner-label {
    display: block;
    font-size: 0.7rem;
    color: #4ade80; /* Vert néon */
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* --- SELECTEURS STYLISÉS --- */
.select-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.select-wrapper select {
    width: 100%;
    background: #0f172a;
    color: #fff;
    border: 1px solid #334155;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    appearance: none; /* Cache la flèche moche par défaut */
    cursor: pointer;
    outline: none;
    transition: border 0.3s;
}

.select-wrapper select:focus {
    border-color: #4ade80;
}

/* Ajout d'une fausse flèche CSS */
.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.8rem;
}

/* --- SCORES & STATS --- */
.main-score {
    text-align: center;
    font-size: 3.5rem; /* TRES GROS */
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-box.full-width {
    grid-column: 1 / -1;
}

.stat-box .label {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-box .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* --- BADGE VS CENTRAL --- */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
}

.vs-circle {
    background: #ff304a; /* Rouge SurfSense */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-style: italic;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 48, 74, 0.6);
    z-index: 2;
    border: 4px solid #04060c; /* Contour pour détacher du fond */
}

/* --- VERDICT WINNER --- */
.winner-box {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.05));
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: popIn 0.5s ease;
}

.trophy-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

#verdict-text {
    font-size: 1.3rem;
    color: #fff;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 800px) {
    .battle-arena {
        flex-direction: column;
        gap: 30px;
    }
    
    .vs-divider {
        width: 100%;
        height: 40px;
    }
    
    .vs-circle {
        width: 50px; height: 50px;
        font-size: 1rem;
    }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* S'assurer que le modal recouvre tout l'écran et bloque le scroll */
#gatekeeper-modal.is-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000; /* Doit être au-dessus du loader et de la nav */
}

/* Style spécifique pour les boutons du protocole */
#gatekeeper-modal .primary {
    background: #4ade80 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

#gatekeeper-modal .ghost:hover {
    background: rgba(255, 48, 74, 0.1);
    border-color: #ff304a;
}

/* --- MODAL GATEKEEPER LARGE --- */
.tech-modal {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    padding: 40px;
    width: 90%;
    max-width: 850px; /* On passe de 600px à 850px pour le mode large */
    border-radius: 4px; /* Plus carré pour le côté industriel */
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(42, 123, 255, 0.1);
}

/* Grille interne pour diviser le contenu en deux colonnes */
.gatekeeper-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .gatekeeper-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Décoration Brackets (Coins technologiques) */
.tech-modal::before, .tech-modal::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
}
.tech-modal::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.tech-modal::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.gate-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.gate-feature-list {
    list-style: none;
    padding: 0;
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

.gate-feature-list li {
    margin-bottom: 15px;
    position: relative;
}

.gate-feature-list li b { color: var(--text); }

.agent-avatar {
    box-shadow: 0 0 15px rgba(42, 123, 255, 0.2);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.profile-box {
    transition: transform 0.3s ease;
}

.profile-box:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

#profile-status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 5px;
}

/* =========================================
   SURFSENSE - MODAL UI (VERSION TECH)
   ========================================= */

/* FOND DU MODAL (BACKDROP) */
.modal-backdrop {
    background: rgba(4, 6, 12, 0.85); /* Plus sombre */
    backdrop-filter: blur(8px); /* Effet flou derrière */
}

/* LA BOÎTE (LE CONTENEUR) */
.modal-content {
    background: linear-gradient(160deg, rgba(20, 24, 40, 0.95) 0%, rgba(8, 10, 18, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 1px rgba(42, 123, 255, 0.1), /* Lueur subtile bleue */
        0 20px 50px rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

/* EFFET DE "SCAN" DÉCORATIF EN HAUT */
.modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.7;
}

/* TYPOGRAPHIE */
.modal h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #98a6c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
    font-family: monospace; /* Touche tech */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CHAMPS DE SAISIE (INPUTS) */
.modal-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(42, 123, 255, 0.05);
    box-shadow: 0 0 20px rgba(42, 123, 255, 0.15);
}

.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* BOUTON D'ACTION */
.modal-form button.primary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(42, 123, 255, 0.4);
}

.modal-form button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(42, 123, 255, 0.6);
}

/* LIENS BAS DE PAGE */
.modal-footer-text {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

.modal-footer-text a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px dotted var(--accent);
}

/* --- STYLE SPÉCIFIQUE : PROFIL (LA CARTE D'AGENT) --- */
.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a2d3d, #151725);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(42, 123, 255, 0.3);
}

.profile-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(74, 222, 128, 0.2);
    margin-bottom: 20px;
}

.quota-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.quota-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.quota-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.quota-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    width: 0%; /* Sera rempli par JS */
    transition: width 1s ease;
}

.btn-logout {
    background: rgba(255, 48, 74, 0.1);
    color: #ff304a;
    border: 1px solid rgba(255, 48, 74, 0.3);
    padding: 12px;
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 48, 74, 0.2);
    box-shadow: 0 0 15px rgba(255, 48, 74, 0.2);
}

/* ==========================================================================
   📱 OPTIMISATION MOBILE (RESPONSIVE DESIGN)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. NAVIGATION ET HEADER */
    .nav {
        flex-wrap: wrap;
        padding: 10px;
    }
    .nav-links {
        order: 3; /* Passe les liens en dessous */
        width: 100%;
        display: flex;
        overflow-x: auto; /* Permet de scroller les liens de gauche à droite */
        padding-top: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    
    .hero-title {
        font-size: 2.2rem; /* Titre plus petit */
    }

    /* 2. BARRE DE STATISTIQUES (BULLLES) */
    .quick-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 colonnes au lieu de 4 */
        gap: 10px;
        padding: 15px;
    }

    /* 3. SECTION CARTE & LISTE DES SPOTS */
    .map-layout {
        flex-direction: column; /* Empile la carte et la liste */
    }
    .map-container-wrapper {
        height: 50vh; /* La carte prend la moitié de l'écran */
        min-height: 350px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .spot-panel {
        width: 100%;
        height: auto;
        max-height: 50vh; /* La liste prend l'autre moitié */
    }

    /* 4. LE GATEKEEPER (MODALE D'ACCÈS) */
    .gatekeeper-grid {
        grid-template-columns: 1fr !important; /* Une seule colonne */
        gap: 15px !important;
    }
    .tech-header h2 {
        font-size: 1.5rem;
    }

    /* 5. PROFIL ET MODALES */
    .profile-grid {
        grid-template-columns: 1fr !important; /* Empile les infos de compte */
    }
    .modal-content {
        padding: 25px 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto; /* Permet de scroller si la modale est trop grande */
    }
    .tech-footer {
        flex-direction: column; /* Boutons Accepter/Refuser l'un sur l'autre */
    }
    .tech-footer button {
        width: 100%;
    }

    /* 6. RADAR & TECHNOLOGIE & NEWS */
    .radar-grid,
    .news-preview-grid,
    #full-news-grid {
        grid-template-columns: 1fr; /* Une seule colonne pour les grilles */
    }
    
    .tech-banner, 
    .mobile-promo-container {
        flex-direction: column;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }
    .step-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }

    /* 7. RECADRAGE DES POPUPS SUR LA CARTE */
    .leaflet-popup-content-wrapper {
        width: 250px; /* Plus petit pour ne pas sortir de l'écran */
    }
}

/* ==========================================================================
   📱 CORRECTIF ACCORDÉON MÉTÉO (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .day-header {
        padding: 12px 10px; /* On réduit l'espace intérieur */
        gap: 5px; /* On utilise un petit gap auto */
    }

    /* La colonne de la date (Mar 10) */
    .day-header > div:first-child {
        min-width: 50px !important; 
    }
    .day-date {
        font-size: 0.85rem;
    }

    /* Le badge "MAUVAIS / BON" */
    .quality-badge {
        font-size: 0.65rem;
        padding: 4px 6px;
        letter-spacing: 0;
    }

    /* Le bloc central (Houle & Vent) */
    .surf-stats-group {
        margin-left: 0 !important; /* On retire la marge de 20px qui écrasait tout */
        flex: 1;
        min-width: 0; /* Permet au texte de ne pas déborder */
    }

    /* Ligne Principale : 1.8m | 35 km/h */
    .surf-primary {
        font-size: 0.85rem !important;
        white-space: nowrap; /* 🔥 LE SECRET : Force sur une seule ligne */
    }

    /* Ligne Secondaire : Période & Énergie */
    .surf-secondary {
        font-size: 0.65rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Ajoute "..." si c'est trop long */
        display: block;
    }

    /* La pilule météo (Température) */
    .weather-pill {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .day-arrow {
        margin-left: 5px;
    }
}