/*
 * Cerfaos – Style Unifié
 *
 * Ce fichier combine le design moderne du tracker avec le style du site principal
 * pour créer une expérience utilisateur cohérente et professionnelle.
 */

/* Variables CSS pour le thème unifié */
:root {
  /* Couleurs de base */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-0: #0b0b0f;
  --bg-1: #15151b;

  /* Couleurs d'accent */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --accent-violet: #7e5bef;
  --accent-cyan: #0ed2f7;
  --accent-orange: #ff7f50;
  --accent-rose: #ff589e;
  --accent-gold: #ffd700;
  --accent-amber: #ff8c00;
  --accent-coral: #ff6b6b;

  /* Couleurs de texte */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #a7a7b7;

  /* Couleurs d'état */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Ombres et effets */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.08);

  /* Bordures et rayons */
  --border-radius: 20px;
  --border-radius-small: 12px;
  --radius-large: 20px;
  --radius-small: 8px;

  /* Espacements */
  --spacing-1: 0.5rem;
  --spacing-2: 1rem;
  --spacing-3: 2rem;

  /* Transitions et animations */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 250ms;

  /* Vitesses d'animation */
  --animation-slow: 20s;
  --animation-medium: 8s;
}

/* Support du mode clair */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f9f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f5;
    --bg-0: #f9f9fc;
    --bg-1: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --text-primary: #1a1a23;
    --text-secondary: #555568;
    --text-muted: #666677;
  }
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Container principal avec effet de parallaxe */
.app-container {
  min-height: 100vh;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(6, 182, 212, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.app-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Header avec effet glassmorphism intensifié */
header {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

header:hover {
  background: rgba(26, 26, 26, 0.6);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Layout du header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-3);
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo stylisé */
.logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Navigation */
header nav {
  display: flex;
  gap: var(--spacing-2);
}

header nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-small);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

header nav a:hover,
header nav a:focus {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  outline: none;
}

/* Boutons avec effets améliorés */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--border-radius-small);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: white;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn.alt {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn.alt:hover {
  background: var(--accent-primary);
  color: white;
}

/* Effet glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-3);
}

/* Grille de cartes */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-3);
  margin: var(--spacing-3) 0;
}

/* Grille d'informations */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2);
  margin: var(--spacing-3) 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-2);
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.info-card h3 {
  color: var(--accent-primary);
  margin-bottom: var(--spacing-1);
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-2);
}

.card h3 {
  margin-bottom: var(--spacing-1);
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-1);
}

/* Section héroïque */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Overlay spécifique pour les articles - plus subtil que la page d'accueil */
.hero.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* S'assurer que l'image de fond est visible dans les articles */
.hero.article-hero img {
  z-index: 0 !important;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.hero-overlay {
  text-align: center;
  color: white;
  z-index: 3;
  position: absolute;
  bottom: 12rem;
  right: 2rem;
  max-width: 400px;
  padding: var(--spacing-2);
}

.hero-overlay h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0;
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-amber),
    var(--accent-coral)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: hidden;
  white-space: nowrap;
  animation: typingVapor 10s ease-in-out 0.5s forwards,
    continuousFade 6s ease-in-out 10.5s infinite;
  margin: 0;
  max-width: fit-content;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  filter: blur(2px);
  transition: all 0.3s ease;
}

.hero-overlay h1:hover {
  filter: drop-shadow(0 0 15px var(--accent-gold));
  transform: scale(1.02);
}

.hero-overlay p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Slogan artistique positionné juste en dessous du titre */
.hero-slogan {
  position: absolute;
  bottom: 9rem;
  right: 2rem;
  z-index: 3;
  pointer-events: none;
}

.slogan-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: sloganFadeIn 2s ease-out 1s forwards;
  transition: all 0.3s ease;
}

.slogan-word {
  position: relative;
  transition: all 0.3s ease;
}

.slogan-word:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.slogan-text:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Flèche indicatrice vers la section Articles */
.slogan-text::after {
  content: "↓";
  position: absolute;
  bottom: -1.5rem;
  right: 50%;
  transform: translateX(50%);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  opacity: 0.6;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(50%) translateY(3px);
  }
}

.slogan-word:nth-child(1) {
  animation: wordFloat 3s ease-in-out 2s infinite;
}
.slogan-word:nth-child(3) {
  animation: wordFloat 3s ease-in-out 2.2s infinite;
}
.slogan-word:nth-child(5) {
  animation: wordFloat 3s ease-in-out 2.4s infinite;
}

/* Animation d'apparition du slogan */
@keyframes sloganFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation vaporeuse sur 10 secondes avec fade-in et fade-out longs */
@keyframes typingVapor {
  0% {
    width: 0;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(2px);
  }
  10% {
    opacity: 0.15;
    filter: blur(1.8px);
  }
  20% {
    opacity: 0.3;
    filter: blur(1.5px);
  }
  30% {
    opacity: 0.45;
    filter: blur(1.2px);
  }
  40% {
    opacity: 0.6;
    transform: translateY(20px) scale(0.91);
    filter: blur(1px);
  }
  50% {
    opacity: 0.75;
    transform: translateY(15px) scale(0.93);
    filter: blur(0.8px);
  }
  60% {
    opacity: 0.85;
    transform: translateY(10px) scale(0.95);
    filter: blur(0.6px);
  }
  70% {
    opacity: 0.95;
    transform: translateY(5px) scale(0.97);
    filter: blur(0.4px);
  }
  80% {
    opacity: 1;
    transform: translateY(2px) scale(0.99);
    filter: blur(0.2px);
  }
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  100% {
    width: 100%;
    opacity: 0.7;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Animation de fade continu après l'animation principale */
@keyframes continuousFade {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Animation de flottement des mots */
@keyframes wordFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Sections */
section {
  padding: var(--spacing-3) 0;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-3);
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Filtres */
.filter {
  display: flex;
  justify-content: center;
  gap: var(--spacing-1);
  margin-bottom: var(--spacing-3);
  flex-wrap: wrap;
}

.filter button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter button:hover,
.filter button.active {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  text-align: center;
  padding: var(--spacing-3);
  margin-top: var(--spacing-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tableaux */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-2) 0;
}

th,
td {
  padding: var(--spacing-1);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Aperçu de carte */
.map-preview {
  height: 200px;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  margin-bottom: var(--spacing-2);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--spacing-2);
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-medium);
  transform: translateX(100%);
  transition: var(--transition);
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  transform: translateX(0);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--bg-secondary);
  margin: 5% auto;
  padding: var(--spacing-3);
  border-radius: var(--border-radius);
  width: 80vw;
  max-width: 1200px;
  height: 80vh;
  max-height: 800px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-content h3 {
  margin-bottom: var(--spacing-2);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Styles spécifiques pour les modales de cartes */
.modal-content .map-container {
  flex: 1;
  min-height: 400px;
  max-height: 600px;
  border-radius: var(--radius-small);
  overflow: hidden;
  margin: var(--spacing-2) 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .map-container.fullscreen {
  min-height: 70vh;
  max-height: none;
}

/* Mode plein écran pour la modale entière */
.modal.fullscreen .modal-content {
  width: 95vw;
  height: 95vh;
  max-width: none;
  max-height: none;
  margin: 2.5% auto;
}

.modal.fullscreen .map-container {
  min-height: 80vh;
  max-height: none;
}

.modal-content .modal-actions {
  display: flex;
  gap: var(--spacing-2);
  justify-content: flex-end;
  margin-top: var(--spacing-2);
  flex-shrink: 0;
  padding-top: var(--spacing-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .btn-fullscreen {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: var(--transition);
}

.modal-content .btn-fullscreen:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-2);
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay {
    bottom: 10rem;
    right: 1rem;
    max-width: 300px;
    padding: var(--spacing-1);
  }

  /* Slogan responsive sur mobile */
  .hero-slogan {
    bottom: 7rem;
    right: 1rem;
  }

  .slogan-text {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    gap: 0.3rem;
  }

  /* Flèche responsive sur mobile */
  .slogan-text::after {
    bottom: -1.2rem;
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2);
  }

  .filter {
    flex-direction: column;
    align-items: center;
  }

  .filter button {
    width: 100%;
    max-width: 200px;
  }

  /* Modales responsives sur mobile */
  .modal-content {
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .modal-content .map-container {
    min-height: 70vh;
    max-height: none;
  }

  .modal-content .modal-actions {
    flex-direction: column;
    gap: var(--spacing-1);
  }

  .modal-content .btn-fullscreen,
  .modal-content .btn {
    width: 100%;
    text-align: center;
  }
}

/* Responsive design pour très petits écrans */
@media (max-width: 480px) {
  header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo img {
    height: 32px;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  header nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .hero-overlay {
    bottom: 8rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .hero-slogan {
    bottom: 5rem;
    right: 0.5rem;
    left: 0.5rem;
  }

  .slogan-text {
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
    text-align: center;
  }

  .cards-grid {
    gap: 1rem;
    padding: 0 1rem;
  }

  .card {
    margin: 0;
  }

  .filter button {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  section {
    margin-bottom: 2rem;
  }

  /* Tailles de titres adaptées pour mobile */
  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.4rem !important;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  h3 {
    font-size: 1.2rem !important;
    line-height: 1.3;
    margin-bottom: 0.6rem;
  }

  .lead {
    font-size: 1rem !important;
    line-height: 1.4;
  }
}

/* Responsive design pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  header {
    padding: 1.5rem 2rem;
  }

  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .filter {
    gap: 1rem;
  }

  .filter button {
    padding: 1rem 1.5rem;
  }

  /* Tailles de titres adaptées pour tablettes */
  h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  .lead {
    font-size: 1.1rem !important;
    line-height: 1.5;
  }
}

/* Cache le bouton hamburger sur desktop */
.nav-toggle {
  display: none;
}

/* Amélioration de la navigation mobile avec menu hamburger */
@media (max-width: 768px) {
  .nav-toggle {
    display: block !important;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
  }

  header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(40px);
    border-radius: var(--border-radius-small);
    padding: 1rem;
    margin-top: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  header nav.active {
    display: flex;
  }

  header nav a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
    width: 100%;
  }

  header nav a:last-child {
    border-bottom: none;
  }

  header nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
  }
}

/* Amélioration des cartes sur mobile */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card img {
    height: 120px;
  }
}

/* Amélioration des modales sur très petits écrans */
@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
  }

  .modal-content h3 {
    font-size: 1.3rem;
  }

  .modal-content .map-container {
    min-height: 60vh;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.8s ease forwards;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 5px;
  border: 2px solid rgba(26, 26, 26, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-tertiary)
  );
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Sélection */
::selection {
  background: var(--accent-primary);
  color: white;
}

::-moz-selection {
  background: var(--accent-primary);
  color: white;
}


/* Responsive tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 520px; }
