:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #4fc3f7;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
}



/* Variables */
:root {
    --header-height: 70px;
    --primary-color: #4a6fa5;
    --dark-bg: #2c3e50;
}

/* Header fixe */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--dark-bg), #1a2a3a);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Navigation principale - Toujours visible */
.main-nav {
    display: flex;
    gap: 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Version mobile - Menu scrollable horizontal */
@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
        overflow-x: auto; /* Permet le défilement horizontal */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
    }
    
    .main-nav {
        gap: 8px;
        padding: 0 10px;
    }
    
    .main-nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* Cache la scrollbar pour une apparence plus propre */
    .header-content::-webkit-scrollbar {
        display: none;
    }
}

/* Ajoute un espace pour le header fixe */
body {
    padding-top: var(--header-height);
}

/* Contenu principal */
.container-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Styles pour le carrousel */
#mainCarousel {
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.carousel-img {
  height: 600px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.8);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 10px;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
}

.carousel-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f8f9fa;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 60%;
}

/* Animation de transition */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-img {
    height: 400px;
  }
  
  .carousel-caption {
    bottom: 15%;
    width: 90%;
    padding: 1rem;
  }
  
  .carousel-title {
    font-size: 1.5rem;
  }
  
  .carousel-text {
    font-size: 1rem;
  }
}

/* Section actualités */
.actualite-section {
  background-color: #fff;
  padding: 4rem 0;
}

.actualite-item {
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
}

.actualite-item:hover {
  transform: translateY(-5px);
}

.actualite-titre {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.actualite-contenu {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.actualite-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.actualite-img:hover {
  transform: scale(1.02);
}

/* Styles pour le footer */
footer {
  font-family: 'Roboto', sans-serif;
}

footer h5 {
  color: #fff;
  font-weight: 500;
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 10px;
  display: inline-block;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #5a6268;
  transform: translateY(-3px) scale(1.2);
  opacity: 0.8;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  color: #e9ecef;
}

/* Vérification Font Awesome */
body::after {
  content: "Font Awesome loaded";
  position: absolute;
  left: -9999px;
  color: transparent;
}

/* Style des icônes */
.fab, .fas {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400;
}

/* Modal zoom */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.zoom-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.zoom-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  #logo {
    align-items: center;
  }
  #main-nav {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  .actualite-section {
    padding: 2rem 0;
  }
  .actualite-titre {
    font-size: 1.5rem;
  }
  
  
  
  
  