/* Variables CSS */
:root {
  /* Couleurs */
  --primary-red: #E53E3E;
  --secondary-blue: #2A3B4C;
  --accent-azure: #3B82F6;
  --neutral-white: #FFFFFF;
  --neutral-light-gray: #F7FAFC;
  --neutral-medium-gray: #CBD5E0;
  --neutral-dark-gray: #4A5568;
  --success-green: #48BB78;
  --warning-orange: #ED8936;
  --accent-rose: #f472b6;
  --accent-violet: #7c3aed;
  --accent-neon: #14b8a6;
  --accent-amber: #fdd835;
  --gradient-dawn: linear-gradient(135deg, rgba(231, 77, 130, 0.15), rgba(59, 130, 246, 0.15));
  --gradient-header: linear-gradient(120deg, rgba(14, 165, 164, 0.95), rgba(14, 116, 144, 0.95));
  --gradient-accent: linear-gradient(135deg, #f97316, #ec4899, #7c3aed);
  --gradient-animate-angle: 120deg;
  
  /* Typographie */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', 'Lato', sans-serif;
  
  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Bordures */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Ombres */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mode sombre : surcharge des variables quand html[data-theme="dark"] est actif */
html[data-theme="dark"] {
  --primary-red: #f97373;
  --secondary-blue: #E2E8F0;
  --accent-azure: #60a5fa;
  --neutral-white: #0f172a;
  --neutral-light-gray: #020617;
  --neutral-medium-gray: #64748b;
  --neutral-dark-gray: #cbd5f5;
  --success-green: #4ade80;
  --warning-orange: #fdba74;
  --accent-rose: #fb7185;
  --accent-violet: #a855f7;
  --accent-neon: #2dd4bf;
  --accent-amber: #facc15;
  --gradient-dawn: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,64,175,0.8));
  --gradient-header: linear-gradient(120deg, rgba(15,23,42,0.98), rgba(30,64,175,0.98));
  --gradient-accent: linear-gradient(135deg, #fb923c, #f472b6, #6366f1);
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  color: #E5E7EB;
}

html[data-theme="dark"] .section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .domain-card,
html[data-theme="dark"] .testimonial-content,
html[data-theme="dark"] .legal-content {
  background-color: #020617;
  border-color: rgba(148, 163, 184, 0.5);
  color: #E5E7EB;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .section-title {
  color: #F9FAFB;
}

html[data-theme="dark"] a {
  color: var(--accent-azure);
}

html[data-theme="dark"] a:hover {
  color: var(--accent-rose);
}

/* Renfort de lisibilité global en mode sombre */
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .hero-subheadline,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb a,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer p,
html[data-theme="dark"] .footer a {
  color: #E5E7EB;
}

/* Fond plus sombre pour certains blocs en mode sombre pour garder le contraste */
html[data-theme="dark"] .stats {
  background-color: #020617;
  color: #E5E7EB;
}

html[data-theme="dark"] .hero {
  color: #F9FAFB;
}

/* Appliquer un fond sombre uniforme aux grandes sections sur toutes les pages */
html[data-theme="dark"] main,
html[data-theme="dark"] .section,
html[data-theme="dark"] .page-header,
html[data-theme="dark"] .intro-section,
html[data-theme="dark"] .donation-options,
html[data-theme="dark"] .donation-methods,
html[data-theme="dark"] .tax-benefits,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .values-section,
html[data-theme="dark"] .team-section,
html[data-theme="dark"] .testimonials-section,
html[data-theme="dark"] .news-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .legal-section,
html[data-theme="dark"] .gallery-section,
html[data-theme="dark"] .videos-section {
  background-color: #020617;
  color: #E5E7EB;
}

/* Cartes et blocs de contenu sur toutes les pages */
html[data-theme="dark"] .card,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .domain-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .testimonial-item,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .donation-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .legal-content {
  background-color: #020617;
  color: #E5E7EB;
  border-color: rgba(148, 163, 184, 0.5);
}

/* Formulaires en mode sombre */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: #020617;
  color: #E5E7EB;
  border-color: #64748b;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #94a3b8;
}

/* Boutons en mode sombre : contraste renforcé */
html[data-theme="dark"] .btn {
  background-color: #0f172a;
  color: #F9FAFB;
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-donate-desktop {
  background: linear-gradient(135deg, #fb923c, #f97373, #6366f1);
  color: #0f172a;
  border-color: transparent;
}

html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-donate-desktop:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
}

/* Liens de type "lire la suite" et CTA en mode sombre */
html[data-theme="dark"] .read-more,
html[data-theme="dark"] .page-link,
html[data-theme="dark"] .browser-instructions a {
  color: #93c5fd;
}

html[data-theme="dark"] .read-more:hover,
html[data-theme="dark"] .page-link:hover {
  color: #facc15;
}

/* Bannières légales / cookies en mode sombre */
html[data-theme="dark"] .page-banner {
  background: radial-gradient(circle at top, #020617, #020617);
  color: #E5E7EB;
}

html[data-theme="dark"] .page-banner h1,
html[data-theme="dark"] .page-banner .breadcrumb a {
  color: #F9FAFB;
}

/* Textes sur images (overlays, catégories) en mode sombre */
html[data-theme="dark"] .gallery-overlay,
html[data-theme="dark"] .gallery-category,
html[data-theme="dark"] .news-category {
  color: #F9FAFB;
}

html[data-theme="dark"] .gallery-category,
html[data-theme="dark"] .news-category {
  background-color: rgba(248, 113, 113, 0.95);
}

html[data-theme="dark"] .gallery-title,
html[data-theme="dark"] .gallery-date,
html[data-theme="dark"] .video-title,
html[data-theme="dark"] .video-meta,
html[data-theme="dark"] .video-views {
  color: #E5E7EB;
}

/* Bouton de toggle du thème */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: #1f2933;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.theme-toggle i {
  font-size: 1.1rem;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

/* Réinitialisation et styles de base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Taille de police de base augmentée pour une meilleure lisibilité */
  -webkit-text-size-adjust: 100%; /* Empêche le redimensionnement automatique du texte sur iOS */
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--secondary-blue);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.4)), var(--neutral-light-gray);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-dawn);
  opacity: 0.08;
  pointer-events: none;
  transform: scale(1.2);
  filter: blur(40px);
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--secondary-blue);
}

a {
  color: var(--accent-violet);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--accent-rose);
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.45);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Padding réduit pour les petits écrans */
}

/* Conteneur plus large pour les grands écrans */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--secondary-blue);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.1);
  backdrop-filter: blur(4px);
  border-width: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Effet de vague au clic */
.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Styles spécifiques pour les petits écrans */
@media (max-width: 576px) {
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    min-width: 100px;
  }
  
  /* Boutons en pleine largeur sur mobile */
  .btn-block-mobile {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Désactiver l'animation de vague pour les appareils qui n'ont pas besoin d'animation (améliore les performances) */
@media (prefers-reduced-motion: reduce) {
  .btn:after {
    display: none;
  }
  
  .btn {
    transition: none;
  }
}

.btn-primary {
  background-color: var(--primary-red);
  color: white;
  letter-spacing: 0.05em;
  border: 2px solid var(--primary-red);
}

.btn-primary:hover {
  background-color: #c53030;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c53030;
}

/* En-tête */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--gradient-header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 60px rgba(14, 116, 144, 0.35);
  z-index: 1000;
  padding: 0.85rem 0;
  color: white;
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
}

.header.scrolled {
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-blue);
  z-index: 1002;
}

.logo-img {
  height: 45px;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  margin: 0;
}

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.35s ease, text-shadow 0.35s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-amber);
  text-shadow: 0 0 12px rgba(253, 216, 53, 0.4);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: var(--secondary-blue);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

/* Hamburger en mode sombre : barres très visibles sur fond foncé */
html[data-theme="dark"] .hamburger .bar {
  background-color: #facc15; /* jaune vif pour un bon contraste */
}

.btn-donate-desktop {
  display: none;
  background: var(--gradient-accent);
  color: white;
  border: none;
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.35);
}

.btn-donate-desktop:hover {
  box-shadow: 0 15px 45px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px) scale(1.02);
}

@media (min-width: 993px) {
  .btn-donate-desktop {
    display: inline-flex;
  }
}

/* Styles pour le menu mobile */
@media (max-width: 992px) {
  .header-container {
    padding: 0 1rem;
    height: 60px;
    position: relative;
  }

  /* Garder le bouton de thème et le hamburger bien alignés côte à côte sur mobile */
  .header-buttons {
    gap: 0.5rem;
  }

  .theme-toggle {
    flex-shrink: 0;
  }

  .hamburger {
    flex-shrink: 0;
  }

  /* Afficher le bouton hamburger sur mobile */
  .hamburger {
    display: flex;
  }

  /* Animation du bouton hamburger */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Menu mobile */
  .nav-menu {
    display: block;
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: white;
    padding: 2rem 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  /* Animation en cascade pour les éléments du menu */
  .nav-menu.active .nav-item {
    animation: fadeInRight 0.4s ease forwards;
  }

  .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.35s; }
  .nav-menu.active .nav-item:nth-child(7) { animation-delay: 0.4s; }
  .nav-menu.active .nav-item:nth-child(8) { animation-delay: 0.45s; }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-red);
    background-color: rgba(197, 48, 48, 0.05);
    border-radius: 4px;
  }

  /* Empêcher le défilement du corps lorsque le menu est ouvert */
  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }
}

/* Animation pour l'apparition des éléments du menu */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Disposition spécifique pour les petits écrans */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    height: 50px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 35px;
  }

  .hamburger {
    padding: 0.9rem;
    margin-left: 0.5rem;
  }

  .hamburger .bar {
    width: 22px;
    height: 2.5px;
    margin: 4px 0;
  }
}

/* Styles pour les très petits écrans */
@media (max-width: 480px) {
  .hamburger {
    padding: 0.4rem;
  }

  .hamburger .bar {
    width: 20px;
    height: 2px;
    margin: 3.5px 0;
  }
}

/* Styles pour les écrans mobiles */
@media (max-width: 767px) {
  /* Ajustements de base pour les petits écrans */
  html {
    font-size: 12px;
  }
  
  /* En-tête */
  .header {
    padding: 0.5rem 0;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .logo-img {
    height: 32px;
  }
  
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }
  
  .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
  }
  
  /* Boutons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  
  /* Conteneur */
  .container {
    padding: 0 15px;
  }
  
  /* Sections */
  section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  /* Grilles */
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Cartes */
  .card {
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }
  
  /* Formulaires */
  .form-group {
    margin-bottom: 1rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  /* Pied de page */
  .footer {
    text-align: center;
    padding: 1.5rem 0;
  }

  .footer-logo {
    margin-bottom: 1rem;
  }
  
  .footer-links {
    margin-bottom: 1rem;
  }
  
  .social-links {
    justify-content: center;
    margin-bottom: 1rem;
  }

  /* Grille du footer en colonne et bloc Contactez-nous centré sur mobile */
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .footer-contact {
    text-align: center;
  }
  
  /* Bouton de retour en haut */
  .back-to-top {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1rem;
  }
  
  /* Ajustements pour les très petits écrans */
  @media (max-width: 360px) {
    .container {
      padding: 0 10px;
    }
    
    .section-title {
      font-size: 1.5rem;
    }
    
    .btn {
      padding: 0.7rem 0.8rem;
      font-size: 0.85rem;
    }
  }
}

.btn-secondary {
  background-color: var(--secondary-blue);
  color: white;
}

.btn-secondary:hover {
  background-color: #1a202c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--accent-azure);
  border: 2px solid var(--accent-azure);
}

.btn-tertiary:hover {
  background-color: var(--accent-azure);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover{
  color: blue;
  background-color: #13a1a1;
}

/* En-tête */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  box-shadow: 0 25px 45px rgba(14, 116, 144, 0.12);
  z-index: 1000;
  padding: 0.85rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-blue);
  text-decoration: none;
}

.logo img {
  height: 50px;
  margin-right: 1rem;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  margin-left: 0;
}

.nav-link {
  font-weight: 600;
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.35s ease, text-shadow 0.35s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-violet);
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.35);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

/* Menu mobile */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--secondary-blue);
  transition: all 0.3s ease;
}

/* Section Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(34, 64, 129, 0.6), rgba(163, 35, 46, 0.6)), url('../images/IMG-20251116-WA0028.jpg') no-repeat center center/cover;
  color: var(--neutral-white);
  text-align: center;
  padding: 0 var(--space-md);
  margin-top: 80px; /* Hauteur du header */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--neutral-white);
  animation: shimmerText 6s ease-in-out infinite;
}

.hero-subheadline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.hero-subheadline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.animate-gradient {
  position: relative;
  overflow: hidden;
}

.animate-gradient::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at var(--gradient-animate-angle), rgba(124, 58, 237, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.animate-gradient:hover::after {
  opacity: 1;
  animation: pulseGlow 6s linear infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.section {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.85));
  position: relative;
  overflow: hidden;
  animation: sectionPulse 16s ease-in-out infinite alternate both;
  animation-delay: var(--section-delay, 0s);
}

.section:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.8);
  --section-delay: 1.2s;
}

.section::after {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 32px;
  filter: blur(60px);
  z-index: -1;
  animation: sectionGlow 15s ease-in-out infinite;
}

.section:nth-of-type(2) {
  --section-delay: 1.5s;
}

.section:nth-of-type(3) {
  --section-delay: 2.4s;
}

.section:nth-of-type(4) {
  --section-delay: 3.3s;
}

.section:nth-of-type(5) {
  --section-delay: 4.1s;
}

.section:nth-of-type(6) {
  --section-delay: 5.2s;
}

.section:nth-of-type(7) {
  --section-delay: 5.9s;
}

.hero {
  animation: heroGlow 18s ease-in-out infinite alternate;
}

.page-header {
  animation: headerSweep 12s ease-in-out infinite;
}

@keyframes sectionPulse {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0.25));
  }
  50% {
    transform: translateY(-6px) scale(1.01);
    filter: drop-shadow(0 20px 40px rgba(17, 24, 39, 0.25));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0));
  }
}

@keyframes heroGlow {
  0% {
    background-position: 20% 30%;
  }
  50% {
    background-position: 80% 70%;
  }
  100% {
    background-position: 20% 30%;
  }
}

@keyframes headerSweep {
  0% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(-2px);
  }
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--secondary-blue);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: var(--space-sm) auto 0;
  border-radius: 999px;
  background: var(--gradient-accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card, .callout {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: var(--space-lg);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.soft-entry {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.soft-entry.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmerText {
  0% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); }
  50% { text-shadow: 0 0 25px rgba(255, 255, 255, 0.65); }
  100% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); }
}
.card:hover, .callout:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.15);
}

.card h3, .callout h3 {
  margin-bottom: var(--space-sm);
  color: var(--secondary-blue);
}

.link-accent {
  color: var(--accent-amber);
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-accent:hover {
  color: var(--accent-rose);
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.4);
}

.floating-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--accent-rose);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  box-shadow: 0 15px 35px rgba(244, 114, 182, 0.4);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--neutral-light-gray);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-buttons .btn {
  border: 0;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(124, 58, 237, 0.95));
  color: white;
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 35px rgba(124, 58, 237, 0.5);
}

/* Section Valeurs */
.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-red);
  margin: var(--space-sm) auto 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: var(--space-md);
}

/* Section Statistiques */
.stats {
  background-color: var(--secondary-blue);
  color: var(--neutral-white);
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--neutral-light-gray);
}

/* Section Mission */
.mission {
  background-color: var(--neutral-white);
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-list {
  text-align: left;
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

.mission-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.mission-icon {
  color: var(--primary-red);
  margin-right: var(--space-sm);
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

/* Section Domaines d'action */
.domains {
  background-color: var(--neutral-light-gray);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.domain-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.domain-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.domain-content {
  padding: var(--space-lg);
}

.domain-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--secondary-blue);
}

/* Appel à l'action */
.cta,
.cta-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(245, 158, 11, 0.85));
  color: var(--neutral-white);
  text-align: center;
  padding: var(--space-xl) calc(var(--space-md) * 1.5);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-section::after,
.cta::after {
  content: '';
  position: absolute;
  inset: 15% 10% auto;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 60%);
  filter: blur(20px);
  animation: pulseGlow 8s ease-in-out infinite;
}

.footer {
  background: linear-gradient(135deg, rgba(45, 98, 255, 0.85), rgba(14, 116, 144, 0.95));
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-xl) 0;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.footer h3, .footer h4 {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.footer-links ul {
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--accent-rose);
}

.footer-newsletter {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-bottom {
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer .btn {
  width: fit-content;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.9), rgba(14, 165, 164, 0.9));
  color: white;
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.35);
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.45);
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.cta h2 {
  color: var(--neutral-white);
  margin-bottom: var(--space-md);
}

.cta p {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-buttons .btn {
  border-radius: 999px;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(236, 72, 153, 0.95));
  color: white;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(244, 114, 182, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: buttonLift 4s ease-in-out infinite;
}

.cta-buttons .btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 55px rgba(236, 72, 153, 0.5);
}

.cta-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.cta-link:hover {
  color: white;
}

@keyframes pulseGlow {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes buttonLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Pied de page */
.footer {
  background-color: black;
  color: var(--neutral-light-gray);
  padding: var(--space-x) 0 var(--space-xl);
}

footer h3{
  color: rgba(0, 255, 242, 0.774);
  padding-left: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-md);
  padding-top: 50px;
}

.footer-logo img {
  height: 70px;
  margin-bottom: var(--space-sm);
}

.footer-about p {
  margin-bottom: var(--space-md);
  color: var(--neutral-medium-gray);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--neutral-white);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(0, 255, 242, 0.226);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.25rem;
  color: rgba(0, 255, 242, 0.774);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  padding-top: 50px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--neutral-medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-red);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary-red);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(0, 255, 242, 0.774);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: var(--neutral-white);
    width: 100%;
    height: calc(100vh - 80px);
    padding: var(--space-lg);
    transition: 0.3s;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-lg) 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Styles pour la bannière de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-blue);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-message h3 {
  margin-top: 0;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cookie-message p {
  margin: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cookie-preferences {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-options {
  margin: 1rem 0;
}

.cookie-option {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: auto;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: background-color 0.3s;
}

.toggle-switch:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

input[type="checkbox"]:checked + label + .toggle-switch {
  background-color: var(--accent-azure);
}

input[type="checkbox"]:checked + label + .toggle-switch:after {
  transform: translateX(20px);
}

input[type="checkbox"]:disabled + label + .toggle-switch {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.cookie-pref-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Styles pour la notification de cookies */
.cookie-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--secondary-blue);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  max-width: 320px;
}

.cookie-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Styles pour les pages légales */
.legal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  margin: 2rem 0;
  line-height: 1.7;
  color: var(--neutral-dark-gray);
}

.legal-content h1 {
  color: var(--secondary-blue);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.legal-content h2 {
  color: var(--secondary-blue);
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.legal-content h3 {
  color: var(--secondary-blue);
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.legal-content h4 {
  color: var(--secondary-blue);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.legal-content p {
  margin: 1rem 0;
  color: var(--neutral-dark-gray);
}

.legal-content ul, .legal-content ol {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.legal-content a {
  color: var(--accent-azure);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.legal-content address {
  font-style: normal;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--neutral-light-gray);
  border-left: 4px solid var(--accent-azure);
  border-radius: 0 4px 4px 0;
}

.legal-content .last-update {
  font-size: 0.9rem;
  color: var(--neutral-medium-gray);
  font-style: italic;
  margin-bottom: 2rem;
  display: block;
}

/* Styles spécifiques pour la page des préférences de cookies */
.browser-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.browser {
  background-color: var(--neutral-light-gray);
  border-radius: 6px;
  padding: 1.25rem;
  border: 1px solid var(--neutral-medium-gray);
}

.browser h4 {
  margin-top: 0;
  color: var(--secondary-blue);
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--neutral-medium-gray);
}

.browser ol {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
}

.browser li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Styles pour les boutons de la bannière de cookies */
#accept-all-cookies,
#save-preferences,
#save-cookie-preferences {
  background-color: var(--accent-azure);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

#accept-all-cookies:hover,
#save-preferences:hover,
#save-cookie-preferences:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

#customize-cookies,
#cancel-preferences,
#reject-all-cookies {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

#customize-cookies:hover,
#cancel-preferences:hover,
#reject-all-cookies:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .cookie-pref-buttons {
    flex-direction: column;
  }
  
  .legal-content {
    padding: 1.5rem;
  }
  
  .browser-instructions {
    grid-template-columns: 1fr;
  }
}

/* Styles pour le body lorsque la bannière est visible */
body.cookie-banner-visible {
  padding-bottom: 200px;
}

/* Styles pour les liens du footer */
.footer-legal {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.footer-legal a {
  color: var(--neutral-medium-gray);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.footer-legal span {
  color: var(--neutral-medium-gray);
  font-size: 0.9rem;
  display: none; /* On cache les séparateurs car on utilise gap */
}

/* Ajustements pour la page des cookies */
.cookie-preferences-page .page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.cookie-preferences-page .page-title {
  color: var(--secondary-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

.cookie-preferences-page .page-description {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--neutral-dark-gray);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Témoignages - styles spécifiques */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  padding: 1rem;
}

.testimonial-content {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-content p {
  font-size: 1rem;
  color: var(--secondary-blue);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--neutral-medium-gray);
}

/* Responsive Témoignages */
@media (max-width: 768px) {
  .testimonial-content {
    padding: 1.5rem;
  }

  .testimonial-author {
    gap: 0.75rem;
  }

  .testimonial-author img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .testimonial-content {
    padding: 1.2rem;
  }

  .testimonial-content p {
    font-size: 0.95rem;
  }

  .testimonial-author img {
    width: 52px;
    height: 52px;
  }
}
