/* 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;
}

/* === NAVIGATION DESKTOP === */
.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;
}

/* === BOUTON MENU MOBILE === */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

/* === MENU MOBILE ANIMÉ (haut → bas) === */
.menu-popup {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 40px 20px;
  transition: top 0.6s ease;
  overflow-y: auto;
}

.menu-popup.show {
  top: 0;
}

/* Animation fade-down */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-links {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.popup-links li {
  margin-bottom: 20px;
  animation: fadeDown 0.5s ease forwards;
  opacity: 0;
}

.popup-links li:nth-child(1) { animation-delay: 0.1s; }
.popup-links li:nth-child(2) { animation-delay: 0.2s; }
.popup-links li:nth-child(3) { animation-delay: 0.3s; }
.popup-links li:nth-child(4) { animation-delay: 0.4s; }
.popup-links li:nth-child(5) { animation-delay: 0.5s; }
.popup-links li:nth-child(6) { animation-delay: 0.6s; }

.popup-links li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: black;
  transition: color 0.3s;
}

.popup-links li a:hover {
  color: #c06b00;
}

/* Bouton fermer */
.close {
  font-size: 30px;
  color: #e48509;
  position: absolute;
  top: 25px;
  right: 30px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== Desktop : sous-menu ===== */
.menu-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  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;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.submenu li a:hover {
  background: #f0f0f0;
  color: #c06b00;
}

/* Hover pour desktop */
.menu-item:hover .submenu {
  display: block;
}

/* ===== Mobile : sous-menu popup ===== */
.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;
  color: black;
  font-weight: 500;
  text-decoration: none;
}

.menu-item-popup .submenu-popup li a:hover {
  background: #f0f0f0;
  color: #c06b00;
}

/* Affiché si ouvert */
.menu-item-popup.open .submenu-popup {
  display: block;
}

/* === HERO === */
.hero {
  background-color: #e7880c;
  padding: 30px 20px;
  width: 100%;
  text-align: center;
}

.heros {
  width: 100%;
}

/* === SECTION SINGLE CARD === */
.single-card-section {
  padding: 60px 5%;
  display: flex;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
}

.single-card {
  width: min(700px, 90%);
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.single-card-header {
  background: #39afe6;
  padding: 18px 20px;
  color: white;
  text-align: center;
}

.single-card-header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
}

.single-card-body {
  padding: 25px 22px;
}

.single-card-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
}

@media (hover: hover) {
  .single-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  }
}

@media (max-width: 480px) {
  .single-card-body {
    padding: 18px;
  }

  .single-card-body p {
    font-size: 0.95rem;
  }
}

/* === LIEN HISTORIQUE === */
.history-link {
  display: inline-block;
  margin-top: 20px;
  color: #39afe6;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid #39afe6;
  padding-left: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.history-link:hover {
  transform: translateX(-3px);
}

/* === STATS === */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 80px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  width: 240px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateX(100px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.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 === */
.formations {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #e0e6f0);
}

.formations h2 {
  color: #004080;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.formation-slider-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  justify-content: center;
}

.formation-slider-track {
  display: flex;
  gap: 20px;
  padding: 10px;
}

.formation-card {
  min-width: 200px;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  scroll-snap-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.formation-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.formation-card h3 {
  color: #0074d9;
  font-size: 1.5rem;
}

.formation-card p {
  font-size: 0.95rem;
  color: #444;
}

/* Scrollbar */
.formation-slider-wrapper::-webkit-scrollbar {
  height: 6px;
}
.formation-slider-wrapper::-webkit-scrollbar-thumb {
  background: #0074d9;
  border-radius: 4px;
}

/* Buttons */
.arrow {
  background: #004080;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 50%;
  transition: background 0.3s;
}

.arrow:hover {
  background: #0074d9;
}

.pagination-dots {
  margin-top: 15px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
}

.dot.active {
  background: #004080;
}

.avis-btn-wrapper {
  margin-top: 20px;
}

.btn-avis {
  background: #004080;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-avis:hover {
  background: #0074d9;
}

/* === GALERIE === */
.galerie {
  text-align: center;
  padding: 60px 20px;
}

.carousel {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel img {
  width: 100%;
}

/* === BROCHURE === */
.brochure {
  text-align: center;
  padding: 50px 20px;
  background: #e6f0ff;
}

.btn-brochure {
  padding: 12px 25px;
  background: #004080;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn-brochure:hover {
  background: #0066cc;
}

/* FIN CSS */


.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;
  }
}

/* === 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);
}

.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);
}



/* 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;
}
.parlement-presentation {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #fef9c3);
  padding: 100px 20px;
  overflow: hidden;
  z-index: 1;
}

.presentation-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.presentation-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  animation: fadeInDown 2s ease;
}

.presentation-intro {
  font-size: 1.2rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 50px;
  animation: fadeInUp 2s ease;
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.presentation-card {
  background: #ffffffb3;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 25px;
  text-align: left;
  backdrop-filter: blur(6px);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.presentation-card h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.presentation-card p,
.presentation-card ul {
  color: #374151;
  line-height: 1.6;
}

.presentation-card ul {
  list-style: "⭐ ";
  padding-left: 20px;
}

.presentation-card[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
}

/* Animation de fond chaotique mais douce */
.animated-bg span {
  position: absolute;
  display: block;
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

.animated-bg span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.animated-bg span:nth-child(2) { top: 60%; left: 10%; animation-delay: 2s; }
.animated-bg span:nth-child(3) { top: 30%; right: 20%; animation-delay: 4s; }
.animated-bg span:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 6s; }
.animated-bg span:nth-child(5) { bottom: 10%; left: 40%; animation-delay: 8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-40px) scale(1.3); opacity: 0.4; }
}

/* Entrées */
@keyframes fadeInDown {
  0% { transform: translateY(-40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .presentation-title { font-size: 2rem; }
  .presentation-intro { font-size: 1rem; }
}

.chiffres-cles {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  text-align: center;
}

.chiffres-cles h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 50px;
}

.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;
  }
  .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;
  }
}

.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 Héro Chaotique === */
.hero-chaotique {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f8ff, #e0eafc);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* meilleure adaptation mobile */
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 0 8vw; /* unités flexibles */
}

/* === Contenu principal === */
.hero-content {
  z-index: 2;
  animation: appearChaos 2s ease forwards;
  width: 100%;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); /* taille fluide selon écran */
  margin-bottom: 15px;
  letter-spacing: 1px;
  animation: floatText 3s ease-in-out infinite alternate;
  color: black;
}

.hero-content p {
  font-size: clamp(1rem, 2.2vw, 1.2rem); /* texte adaptatif */
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
  color: black;
  padding: 0 5vw;
}

/* === Stats dynamiques === */
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap; /* permet d'aller à la ligne sur petit écran */
  margin-top: 20px;
  padding: 10px;
  overflow-x: auto; /* défilement horizontal si trop serré */
  scrollbar-width: none; /* masque la barre sur Firefox */
}

.stats::-webkit-scrollbar {
  display: none; /* masque la barre sur Chrome */
}

.stat {
  background: white;
  border-radius: 15px;
  padding: 20px 25px;
  min-width: 180px; /* taille mini pour la lisibilité */
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
  transform: rotate(calc(-3deg + 6deg * var(--r, 0)));
}

.stat:hover {
  transform: scale(1.1) rotate(0deg);
  background: rgb(88, 11, 231);
}

.stat h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 5px;
  color: black;
}

.stat p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: black;
}

/* === 🧠 Media Queries pour affiner === */
@media (max-width: 900px) {
  .hero-chaotique {
    padding: 40px 6vw;
  }

  .stats {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .hero-chaotique {
    padding: 50px 4vw;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .stat {
    min-width: 150px;
    padding: 15px 20px;
  }
}


/* === Bubbles animées === */
.bubbles span {
  position: absolute;
  bottom: -50px;
  background: rgba(231, 225, 225, 0.87);
  border-radius: 50%;
  animation: floatBubble 8s infinite ease-in;
}

.bubbles span:nth-child(1) { width: 60px; height: 60px; left: 10%; animation-delay: 0s; }
.bubbles span:nth-child(2) { width: 40px; height: 40px; left: 25%; animation-delay: 2s; }
.bubbles span:nth-child(3) { width: 80px; height: 80px; left: 50%; animation-delay: 4s; }
.bubbles span:nth-child(4) { width: 50px; height: 50px; left: 70%; animation-delay: 1s; }
.bubbles span:nth-child(5) { width: 100px; height: 100px; left: 85%; animation-delay: 3s; }

@keyframes floatBubble {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { opacity: 1; }
  100% { transform: translateY(-800px) scale(1.2); opacity: 0; }
}

/* === Animation du texte === */
@keyframes appearChaos {
  0% { opacity: 0; transform: rotate(-5deg) scale(0.9) translateY(50px); }
  50% { opacity: 0.8; transform: rotate(2deg) scale(1.02) translateY(-10px); }
  100% { opacity: 1; transform: rotate(0deg) scale(1) translateY(0); }
}

@keyframes floatText {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .stats { gap: 20px; }
  .stat h3 { font-size: 1.6rem; }
}
.circular-team-section {
  text-align: center;
  padding: 80px 5%;
  background: #021733;
  font-family: "Poppins", sans-serif;
  color: white;
}

.circle-title {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* WRAPPER GLOBAL */
.circle-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
  margin: auto;
  transition: 0.5s ease;
}

/* Animation rotation douce */
.rotating {
  animation: spin 30s linear infinite;
}
.circle-wrapper:hover {
  animation-play-state: paused;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* CARTE CIRCULAIRE */
.circle-item {
  position: absolute;
  width: 140px;
  text-align: center;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: fadeInScale 1.2s forwards;
}

@keyframes fadeInScale {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.circle-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: 0.3s;
}

.circle-item img:hover {
  transform: scale(1.15);
}

/* Texte sous l'image */
.circle-item p {
  margin-top: 10px;
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

/* Cercle du milieu */
.circle-item.center {
  top: 50%;
  left: 50%;
}

/* Positionnement des 6 autour */
.circle-item:nth-child(2) { top: 10%; left: 50%; }
.circle-item:nth-child(3) { top: 25%; left: 85%; }
.circle-item:nth-child(4) { top: 75%; left: 85%; }
.circle-item:nth-child(5) { top: 90%; left: 50%; }
.circle-item:nth-child(6) { top: 75%; left: 15%; }
.circle-item:nth-child(7) { top: 25%; left: 15%; }

/* === RESPONSIVE : téléphone et petit écran === */
@media (max-width: 650px) {
  .circle-wrapper {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 25px;
    justify-items: center;
    padding-bottom: 20px;
    animation: none; /* suppression rotation */
  }

  /* Désactivation position absolue et animation */
  .circle-item,
  .circle-item.center {
    position: static;
    transform: scale(1);
    opacity: 1;
    animation: none;
  }

  .circle-item img {
    width: 150px;
    height: 150px;
  }
}

/* Sur très petits écrans (<480px), 1 image par ligne */
@media (max-width: 480px) {
  .circle-wrapper {
    grid-template-columns: 1fr;
  }

  .circle-item img {
    width: 120px;
    height: 120px;
  }

  .circle-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}


.droits-section-alt {
  padding: 80px 20px;
  background: #ffffff;
}

.section-title-alt {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d1b3d;
  margin-bottom: 50px;
}

/* Wrapper défilable horizontal sur mobile */
.droits-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.droits-wrapper::-webkit-scrollbar {
  height: 6px;
}

.droits-wrapper::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 10px;
}

.droit-item {
  min-width: 300px;
  max-width: 350px;
  background: #f7f9fc;
  border-radius: 18px;
  padding: 25px;
  border: 1px solid #e0e7f1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scroll-snap-align: start;
  transition: 0.3s ease;
}

.droit-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.droit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.droit-number {
  background: #0d47a1;
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.droit-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d1b3d;
}

.droit-item p {
  color: #444;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Responsive téléphone (meilleur affichage vertical) */
@media (max-width: 480px) {
  .section-title-alt {
    font-size: 1.9rem;
  }
}

