/* Global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  outline: 1px solid red;
}

/* Responsive typography */
@media (max-width: 768px) {
  html {
    font-size: 95%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 90%;
  }
}
/* === HEADER === */
header {
  background : white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 50px;
}

.logo-text {
  font-size: 24px;
  color: black;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #fffdd0;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

/* === MENU POPUP MOBILE === */
.menu-popup {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
  transition: right 0.5s ease;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  overflow: scroll;
}

.menu-popup.show {
  right: 0;
}

.popup-links {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.popup-links li {
  margin-bottom: 20px;
}

.popup-links li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: black;
}

.popup-links li a:hover {
  color: #c06b00;
}

.close {
  font-size: 30px;
  color: #e48509;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* ===== Desktop : sous-menu Régions ===== */
.menu-item {
  position: relative;
}

.submenu {
  display: none; /* caché par défaut */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 100;
}

.submenu li a {
  display: block;
  padding: 8px 15px;
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.submenu li a:hover {
  background-color: #f0f0f0;
  color: #c06b00;
}

/* Affiche le sous-menu au hover */
.menu-item:hover .submenu {
  display: block;
}

/* ===== Mobile : popup sous-menu Régions ===== */
.menu-item-popup .submenu-popup {
  display: none;
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
}

.menu-item-popup .submenu-popup li a {
  display: block;
  padding: 8px 15px;
  font-weight: 500;
  color: black;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.menu-item-popup .submenu-popup li a:hover {
  background-color: #f0f0f0;
  color: #c06b00;
}

/* Affiche le sous-menu au clic sur mobile */
.menu-item-popup.open .submenu-popup {
  display: block;
}

/* ===== Desktop : sous-menu À propos ===== */
.menu-item {
  position: relative;
}

.submenu {
  display: none; /* caché par défaut */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 100;
}

.submenu li a {
  display: block;
  padding: 8px 15px;
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.submenu li a:hover {
  background-color: #f0f0f0;
  color: #c06b00;
}

/* Affiche le sous-menu au hover */
.menu-item:hover .submenu {
  display: block;
}

/* ===== Mobile : popup sous-menu À propos ===== */
.menu-item-popup .submenu-popup {
  display: none;
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
}

.menu-item-popup .submenu-popup li a {
  display: block;
  padding: 8px 15px;
  font-weight: 500;
  color: black;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.menu-item-popup .submenu-popup li a:hover {
  background-color: #f0f0f0;
  color: #c06b00;
}

/* Affiche le sous-menu au clic sur mobile */
.menu-item-popup.open .submenu-popup {
  display: block;
}


.hero {
  background-color: #e7880c;
  padding: 30px 20px;
  width: 100%;
  text-align: center;
}

.heros {
  width: 100%;
}


.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 80px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  width: 240px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: translateX(100px);
  opacity: 0;
}

.stat-card.visible {
  transform: translateX(0);
  opacity: 1;
}

.stat-card .icon {
  font-size: 50px;
  margin-bottom: 15px;
  color: #004080;
}


.stat-card h3 {
  margin: 10px 0;
  font-size: 32px;
  font-weight: bold;
  color: #004080;
}

.stat-card p {
  font-size: 16px;
  color: #666;
}

@media (max-width: 768px) {
  .stat-card {
    width: 80%;
  }
}.formations {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #e0e6f0);
  overflow: hidden;
}

.formations h2 {
  color: #004080;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.formation-slider-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  justify-content: center;
}

.formation-slider-track {
  display: flex;
  gap: 20px;
  padding: 10px;
  transition: transform 0.3s ease-in-out;
}

.formation-card {
  min-width: 200px;
  flex: 0 0 auto;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  scroll-snap-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  transform: translateY(40px);
}

.formation-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.formation-card h3 {
  color: #0074d9;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.formation-card p {
  font-size: 0.95rem;
  color: #444;
}

/* Scrollbar design */
.formation-slider-wrapper::-webkit-scrollbar {
  height: 6px;
}
.formation-slider-wrapper::-webkit-scrollbar-thumb {
  background: #0074d9;
  border-radius: 4px;
}
.arrow {
  background-color: #004080;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.arrow:hover {
  background-color: #0074d9;
}

.pagination-dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #004080;
}

.avis-btn-wrapper {
  margin-top: 20px;
}

.btn-avis {
  display: inline-block;
  background-color: #004080;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-avis:hover {
  background-color: #0074d9;
}

/* Responsive */
@media (max-width: 600px) {
  .arrow {
    display: none;
  }

  .testimonial-card {
    width: 90%;
  }

  .testimonial-carousel {
    gap: 10px;
  }
}
.galerie {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.carousel {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel img {
  width: 100%;
  height: auto;
}

.brochure {
  text-align: center;
  padding: 50px 20px;
  background-color: #e6f0ff;
}

.btn-brochure {
  display: inline-block;
  padding: 12px 25px;
  background-color: #004080;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-brochure:hover {
  background-color: #0066cc;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 50px;
}

.logo-text {
  font-size: 24px;
  margin: 0;
}


#openMenu {
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
}

.slideshow-section {
  padding: 50px 20px;
  background-color: #e7880c;
  text-align: center;
}

.slideshow-section h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.slideshow {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding: 10px;
}

.slideshow::-webkit-scrollbar {
  display: none; /* masque la barre de scroll */
}

.slide {
  flex: 0 0 auto;
  width: 350px;
  height: 290px;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  
}
.slide.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section Contact ===== */
.contact-section {
  background: linear-gradient(135deg, #004080, #0074d9);
  color: white;
  padding: 70px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.contact-section.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-container {
  max-width: 700px;
  margin: auto;
  padding: 0 15px;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-container p {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: white;
  color: #004080;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
  background-color: #e5e5e5;
  color: #003060;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .contact-container h2 {
    font-size: 1.6rem;
  }

  .contact-container p {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .contact-form button {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 0 10px;
  }

  .contact-form textarea {
    min-height: 120px;
  }
}

/* ===== Section Localisation ===== */
.location-section {
  background: #ffffff;
  padding: 70px 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.location-section.show {
  opacity: 1;
  transform: translateY(0);
}

.location-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.location-container h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.location-container p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #333;
}

.location-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.map-box {
  flex: 1 1 500px;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.address-box {
  flex: 1 1 300px;
  background: #e7880c;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.address-box h3 {
  color: #004080;
  margin-bottom: 15px;
}

.address-box p {
  font-size: 15px;
  margin: 8px 0;
}

/* ===== Responsive Adaptation ===== */
@media (max-width: 768px) {
  .location-content {
    flex-direction: column;
    align-items: center;
  }

  .map-box, .address-box {
    width: 100%;
  }
}

/* === PRELOADER AMPLOULE === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f2027;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  overflow: hidden;
}

.bulb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 2s ease-in-out;
}

.bulb {
  width: 100px;
  height: 150px;
  background: radial-gradient(circle, #fff200 10%, #f0c000 60%, #0f2027 100%);
  border-radius: 50% 50% 40% 40%;
  position: relative;
  box-shadow: 0 0 60px #fff200;
  animation: glow 1.5s infinite alternate;
}

.bulb::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 40%;
  width: 20px;
  height: 40px;
  background: #666;
  border-radius: 5px;
}

.filament {
  position: absolute;
  top: 30%;
  left: 45%;
  width: 10px;
  height: 30px;
  background: #f9f9f9;
  border-radius: 2px;
}

.welcome-text {
  margin-top: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  animation: fadeInText 2s ease forwards;
  opacity: 0;
  text-align: center;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px #fff200;
  }
  to {
    box-shadow: 0 0 60px #fff200, 0 0 80px #fff200;
  }
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.annonce-top {
  width: 100%;
  overflow: hidden;
  background-color: #e60000;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

.annonce-texte {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: defilement 15s linear infinite;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

@keyframes defilement {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #004080;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.footer-section {
  background: #1e88e5;
  color: #fff;
  padding: 60px 20px 20px 20px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.footer-right {
  flex: 2 1 400px;
}

.footer-right h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-right p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #fff;
  margin-right: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffeb3b;
}

.footer-socials a {
  margin-right: 15px;
  display: inline-block;
}

.footer-socials img {
  width: 30px;
  height: 30px;
  filter: brightness(1.2);
  transition: transform 0.3s ease;
}

.footer-socials img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #cfd8dc;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-left, .footer-right {
    flex: 1 1 100%;
    text-align: center;
  }
  .footer-links a {
    display: block;
    margin-bottom: 10px;
  }
  .footer-socials a {
    margin-bottom: 10px;
  }
}



.slider-auto {
  padding: 50px 20px;
  background: linear-gradient(to bottom, #e0f0ff, #ffffff);
  text-align: center;
}

.slider-auto h2 {
  margin-bottom: 30px;
  color: #004080;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 10px;
  animation: scroll-left 30s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .slides {
    flex: 0 0 70vw;
  }
}

@media (max-width: 480px) {
  .slides {
    flex: 0 0 90vw;
  }
}

.nos {
  text-align: center;
}

.slider-track {
  display: flex;
  width: calc(250px * 8 + 20px * 7);
  animation: scroll 40s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}
.slideshow-container {
  max-width: 100%;  /* ou ce que tu veux */
  width: 100%;
  position: relative;
}

.mySlides {
  display: none;
  position: relative; /* référence pour le texte */
  width: 100%;
}

.mySlides img {
  width: 100%;
  height: 90%;
  display: block;
}

.text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  padding: 10px 15px;
  font-size: 30px;
  text-align: center;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.carrousel-filiere {
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
}

.titre-section {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #003366;
}

.conteneur-carrousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.zone-survol {
  cursor: grab;
}

.piste-carrousel {
  display: flex;
  gap: 20px;
  animation: defilement-gauche 40s linear infinite;
  width: max-content;
}

.zone-survol:hover .piste-carrousel,
.zone-survol:focus .piste-carrousel {
  animation-play-state: paused;
}

.nouus {
  text-align: center;
  font-size: 18px;
}

/* SECTION NOUS */
.nous {
  padding: 50px 20px;
  background: #bbb5c9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nouse {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.nous-niveau {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  height: 250px;
  max-width: 320px;
  position: relative;
  flex: 1 1 30%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nous-niveau:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.niveau-img {
  width: 60px;
  position: absolute;
  top: 15px;
  left: 5px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: white;
}

.niveau {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
}

.niveau-texte {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.nous-niveau a {
  display: inline-block;
  background: #007bff;
  color: white;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.nous-niveau a:hover {
  background: #0056b3;
}

/* RESPONSIVE POUR MOBILE */
@media (max-width: 992px) {
  .nouse {
    flex-direction: column;
    align-items: center;
  }

  .niveau-img {
    top: 10px;
    right: 10px;
    width: 50px;
  }

  .niveau {
    text-align: center;
  }

  .niveau-texte {
    text-align: center;
  }

  .nous-niveau {
    max-width: 90%;
  }

  .nous-niveau a {
    display: block;
    text-align: center;
    margin: 0 auto;
  }
}


  /* 🌟 Arrière-plan étoiles animées */
.floating-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-stars span {
  position: absolute;
  color: blue;
  font-size: 20px;
  opacity: 0.4;
  animation: starFloat 15s linear infinite;
}

/* 🌟 Position et vitesse aléatoires */
.floating-stars span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
  font-size: 24px;
}
.floating-stars span:nth-child(2) {
  left: 30%;
  animation-delay: 3s;
  animation-duration: 18s;
  font-size: 18px;
}
.floating-stars span:nth-child(3) {
  left: 50%;
  animation-delay: 6s;
  animation-duration: 15s;
  font-size: 20px;
}
.floating-stars span:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
  animation-duration: 17s;
  font-size: 26px;
}
.floating-stars span:nth-child(5) {
  left: 85%;
  animation-delay: 2s;
  animation-duration: 14s;
  font-size: 22px;
}
.floating-stars span:nth-child(6) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 20s;
  font-size: 28px;
}
.floating-stars span:nth-child(7) {
  left: 60%;
  animation-delay: 5s;
  animation-duration: 16s;
  font-size: 19px;
}

/* 🌟 Animation de montée douce */
@keyframes starFloat {
  0% {
    top: 100%;
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    top: -10%;
    opacity: 0;
    transform: translateY(-100%) rotate(360deg);
  }
}

/* 🌟 Assure que ton contenu reste au-dessus */
.nous {
  position: relative;
  z-index: 1;
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nous-niveau {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards;
}

/* Ajout de délai pour effet en cascade */
.nous-niveau:nth-child(1) {
  animation-delay: 0.2s;
}
.nous-niveau:nth-child(2) {
  animation-delay: 0.4s;
}
.nous-niveau:nth-child(3) {
  animation-delay: 0.6s;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.stat.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.stat i {
  font-size: 40px;
  color: #0077ff;
  margin-bottom: 15px;
}

.label {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 8px;
}

.number {
  font-size: 2rem;
  font-weight: bold;
  color: #111;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.5s;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.7);
  transition: transform 0.5s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

.slide-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.55);
  padding: 25px;
  border-radius: 12px;
  color: #fff;
}

.slide-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 1rem;
  line-height: 1.4;
}

.date {
  font-style: italic;
  opacity: 0.8;
  margin-top: 8px;
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.controls button {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 12px 20px;
  margin: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s, transform 0.3s;
  height: 50%;
}

.controls button:hover {
  background-color: #d62828;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .slide-content {
    padding: 15px;
  }

  .slide-content h3 {
    font-size: 1.3rem;
  }

  .slide img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .slide img {
    height: 220px;
  }

  .slide-content h3 {
    font-size: 1.1rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }
}

.partenaires-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  text-align: center;
}

.partenaires-section h2 {
  font-size: 2.5rem;
  color: #6a1b9a;
  margin-bottom: 20px;
  font-weight: 700;
}

.partenaires-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #4a148c;
}

.partenaires-container {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.partenaire-card {
  min-width: 150px;
  flex: 0 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partenaire-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hover effect */
.partenaire-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Hide scrollbar for Webkit browsers */
.partenaires-container::-webkit-scrollbar {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .partenaires-section h2 {
    font-size: 2rem;
  }
  .partenaire-card {
    min-width: 120px;
    padding: 15px;
  }
}


.documents-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  text-align: center;
}

.documents-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #0288d1;
  font-weight: 700;
}

.documents-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #01579b;
}

.documents-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.document-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  max-width: 300px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.document-card h3 {
  color: #0288d1;
  margin-bottom: 15px;
}

.document-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.download-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0288d1;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-button:hover {
  background-color: #01579b;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .documents-section h2 {
    font-size: 2rem;
  }
  .document-card {
    padding: 20px 15px;
  }
}/* SECTION PRINCIPALE */
.team-dynamique {
  padding: 60px 5%;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  text-align: center;
  overflow: hidden;
}

.entete-dynamique h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}

.entete-dynamique p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* SLIDER HORIZONTAL */
.slider-dynamique {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.slider-dynamique::-webkit-scrollbar {
  height: 8px;
}
.slider-dynamique::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

/* CARTES INDIVIDUELLES */
.carte-membre {
  flex: 0 0 240px;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.carte-membre.show {
  opacity: 1;
  transform: translateY(0);
}

.carte-membre img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.carte-membre h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #222;
}

.carte-membre .poste {
  font-size: 0.95rem;
  color: #777;
}

/* EFFET HOVER */
.carte-membre:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carte-membre {
    flex: 0 0 180px;
  }

  .carte-membre img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .entete-dynamique h2 {
    font-size: 1.5rem;
  }
  .carte-membre {
    flex: 0 0 160px;
  }
  .carte-membre img {
    height: 180px;
  }
}



.bureau-national-chaotique {
  background: radial-gradient(circle at top left, #eff6ff, #dbeafe, #bfdbfe);
  padding: 100px 10%;
  overflow: hidden;
}

.bureau-national-chaotique .bn-header {
  text-align: center;
  margin-bottom: 60px;
}

.bureau-national-chaotique .bn-header h2 {
  font-size: 2.5rem;
  color: #1d4ed8;
  margin-bottom: 10px;
  text-shadow: 2px 2px #c7d2fe;
}

.bureau-national-chaotique .bn-header p {
  color: #334155;
  font-size: 1.1rem;
}

.bn-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
}

.bn-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.bn-card.reverse {
  flex-direction: row-reverse;
  transform: rotate(1deg);
}

.bn-card img {
  width: 50%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bn-card:hover img {
  transform: scale(1.08);
}

.bn-text {
  padding: 40px;
  flex: 1;
}

.bn-text h3 {
  color: #1e3a8a;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.bn-text p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Animation chaotique */
.bn-card[data-scroll] {
  opacity: 0;
  transform: translateY(100px) scale(0.95) rotate(-3deg);
  transition: all 1s ease-out;
}

.bn-card[data-scroll].active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
}

/* Responsive */
@media (max-width: 900px) {
  .bn-card, .bn-card.reverse {
    flex-direction: column;
    transform: none;
  }

  .bn-card img {
    width: 100%;
    height: 250px;
  }

  .bn-text {
    text-align: center;
  }
}
/* SECTION PRINCIPALE */
.bazar-chaotique {
  background: radial-gradient(circle at top left, #f9fafb, #e9ebee);
  padding: 60px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.entete-bazar h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: #111;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.entete-bazar p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #555;
  margin-bottom: 40px;
}

/* GALERIE HORIZONTALE */
.galerie-chaotique {
  display: flex;
  gap: 30px;
  overflow-x: auto; /* on remet le scroll pour mobile */
  scroll-behavior: smooth;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.galerie-chaotique::-webkit-scrollbar {
  height: 8px;
}
.galerie-chaotique::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 8px;
}

/* CARTES CHAOTIQUES */
.carte-chaos {
  flex: 0 0 clamp(160px, 25vw, 240px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 15px;
  transform: rotate(var(--rot)) scale(var(--scale)) translateY(0);
  transition: all 0.4s ease;
  scroll-snap-align: start;
  opacity: 0;
}
a {
  text-decoration: none;
  color: #008080;
}

.carte-chaos.visible {
  opacity: 1;
  animation: rebondir 0.6s ease;
}

.carte-chaos img {
  width: 100%;
  height: clamp(160px, 30vw, 240px);
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.carte-chaos h3 {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 5px;
  color: #333;
}

.carte-chaos p {
  color: #777;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

/* HOVER EFFET */
.carte-chaos:hover {
  transform: rotate(0deg) scale(1.08);
  z-index: 5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ANIMATION D’APPARITION */
@keyframes rebondir {
  0% { transform: translateY(40px) rotate(var(--rot)) scale(var(--scale)); opacity: 0; }
  100% { transform: translateY(0) rotate(var(--rot)) scale(var(--scale)); opacity: 1; }
}

/* FLÈCHES */
.fleche-gauche, .fleche-droite {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fleche-gauche:hover, .fleche-droite:hover {
  background: #ffcc00;
  color: #111;
  transform: scale(1.1);
}

.fleche-gauche {
  left: 10px;
}

.fleche-droite {
  right: 10px;
}

/* RESPONSIVE SPÉCIFIQUE */
@media (max-width: 768px) {
  .fleche-gauche, .fleche-droite {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  /* sur mobile on laisse glisser au doigt, donc on cache les flèches */
  .fleche-gauche, .fleche-droite {
    display: none;
  }
}

/* ===== SECTION INTRO ===== */
.intro-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 80px 7%;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.intro-content {
  max-width: 600px;
  animation: fadeInLeft 1.2s ease forwards;
  opacity: 0;
}

.intro-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #004080;
  margin-bottom: 20px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
}

/* Button */
.btn-intro {
  display: inline-block;
  padding: 12px 25px;
  background-color: #004080;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s;
}

.btn-intro:hover {
  background-color: #0074d9;
  transform: translateY(-3px);
}

/* Image */
.intro-image-container {
  animation: fadeInRight 1.2s ease forwards;
  opacity: 0;
}

.intro-image {
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transform: scale(0.95);
  transition: transform 0.5s ease;
}

.intro-image:hover {
  transform: scale(1);
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .intro-section {
    flex-direction: column;
    text-align: center;
  }

  .intro-image {
    margin-top: 20px;
  }
}


.mot-dg {
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  padding: 60px 20px;
  text-align: center;
}

.dg-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.dg-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #004080;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.dg-image img:hover {
  transform: scale(1.05);
}

.dg-message {
  max-width: 600px;
  text-align: left;
}

.dg-message h2 {
  font-size: 28px;
  color: #004080;
  margin-bottom: 20px;
}

.dg-message p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.dg-name {
  margin-top: 20px;
  font-style: italic;
  font-weight: bold;
  color: #004080;
}

/* Responsive pour téléphones */
@media (max-width: 768px) {
  .dg-message {
    text-align: center;
  }
}

.mot-dg {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.mot-dg.visible {
  opacity: 1;
  transform: translateY(0);
}


/* SECTION PRINCIPALE */
.team-dynamique {
  padding: 60px 5%;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  text-align: center;
  overflow: hidden;
}

.entete-dynamique h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}

.entete-dynamique p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* SLIDER HORIZONTAL */
.slider-dynamique {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.slider-dynamique::-webkit-scrollbar {
  height: 8px;
}
.slider-dynamique::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

/* CARTES INDIVIDUELLES */
.carte-membre {
  flex: 0 0 240px;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.carte-membre.show {
  opacity: 1;
  transform: translateY(0);
}

.carte-membre img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.carte-membre h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #222;
}

.carte-membre .poste {
  font-size: 0.95rem;
  color: #777;
}

/* EFFET HOVER */
.carte-membre:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carte-membre {
    flex: 0 0 180px;
  }

  .carte-membre img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .entete-dynamique h2 {
    font-size: 1.5rem;
  }
  .carte-membre {
    flex: 0 0 160px;
  }
  .carte-membre img {
    height: 180px;
  }
}


  .partenaires-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  text-align: center;
}

.partenaires-section h2 {
  font-size: 2.5rem;
  color: #6a1b9a;
  margin-bottom: 20px;
  font-weight: 700;
}

.partenaires-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #4a148c;
}

/* 🎯 NEW : enveloppe fixe */
.partenaires-scroll {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* === Animation en continu === */
.partenaires-container {
  display: flex;
  gap: 30px;
  align-items: center;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* Ajuste selon la taille du contenu */
  }
}

/* === Cards === */
.partenaire-card {
  min-width: 180px;
  flex: 0 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partenaire-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

/* Hover */
.partenaire-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .partenaires-section h2 {
    font-size: 2rem;
  }
  .partenaire-card {
    min-width: 140px;
    padding: 15px;
  }
  /* vitesse adaptée mobile */
  .partenaires-container {
    animation-duration: 35s;
  }
}