/* =========================
   BASE UNIFIÉE
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    /* On enlève overflow: hidden qui bloque tout */
    overflow-x: hidden; 
    font-family: Arial, sans-serif;
    background: #000;
    /* On permet le scroll mais on le rend fluide */
    scroll-behavior: smooth; 
}

body {
    display: block;
    min-height: 100vh;
}

/* On crée un espace pour que le contenu ne soit pas caché SOUS le header fixe */
main, .main-container {
    padding-top: 0px; /* Ajustez selon la hauteur de votre header */
}

/* =========================
   HEADER (Fixé en haut)
   ========================= */
   
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto; /* Laisse left/right gérer la largeur proprement */
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
/* =========================
   NAVIGATION
========================= */

.nav-center {
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-center a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s, transform 0.2s;
}

.nav-center a:hover {
    color: #007BFF;
    transform: scale(1.05);
}

.nav-center a span.active {
    color: #0078d4;
    font-weight: 600;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Item dropdown */
.dropdown {
  position: relative;
   z-index: 2000; 
}

.dropdown-toggle:hover {
  color: #007BFF; /* même effet que les liens */
}

/* Style quand actif */
.dropdown-toggle.active {
  color: #007BFF; /* si tu veux un fond comme sur les liens actifs */
  transform: scale(1.05);
  
}

/* Sous-menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  padding: 8px 0;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: none;
  z-index: 3000;
}

/* Liens sous-menu */
.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  white-space: nowrap;
  color: #000;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
}

/* Hover desktop */
.dropdown.open .dropdown-menu {
  display: block;
}

/* =========================
   SOCIAL
========================= */

.social {
   display: flex;
   gap: 20px;
   right: 40px;
}

.social a {
  color: #333;
  font-size: 18px;
  transition: color 0.3s, transform 0.2s;
}

.social a:hover {
  color: #007BFF;
  transform: scale(1.1);
}

/* =========================
   Modal image
   ========================= */
#slider-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 20000;
}

#slider-modal {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 5px;
  max-width: 100vw;
  max-height: 100vh;
}

#slider-modal-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

#slider-modal-close {
  position: fixed;   /* Pour qu'elle soit au même endroit que l'autre */
  top: 0px;        /* Sous le header */
  right: 35px;
  color: #f1f1f1;
  font-size: 60px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 20001;   /* Un cran au-dessus du modal news (qui est à 20000) */
  line-height: 1;
}

#slider-modal-close:hover {
  color: #ff4d4d;
  transform: scale(1.1);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    width: 100%;
    margin-top: auto; /* Force le footer à rester tout en bas de l'écran */
    background: linear-gradient(90deg, #65C7F7 0%, #0052D4 100%);
    color: #fff;
    text-align: center;
    padding: 20px 0px; /* Plus compact pour ne pas déborder */
    flex-shrink: 0; /* Interdit au footer de s'écraser */
    position: relative;
    z-index: 9000;
}

.footer-social {
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  margin: 0 10px;
  border-radius: 50%;
  background: #fff;       /* cercle blanc autour de l'icône */
  color: #0052D4;         /* icône bleu foncé */
  font-size: 20px;
  transition: all 0.3s;
}

.footer-social a:hover {
  transform: translateY(-5px); /* flottement au survol */
  background: #ffd700;          /* survol doré */
  color: #fff;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffd700;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.8;
}


