body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}


* {margin:0; padding:0; box-sizing:border-box; font-family:'Poppins', sans-serif;}
body {line-height:1.6; color:#333;}

/*Forme Ronde du Logo*/
.logo-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;  /* masque l’extérieur */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit sans déformation */
}



/* Header */
header h3 {
  display: flex;
  align-items: center;
  gap: 10px; /* espace entre logo et texte */
  font-family:'Poppins', sans-serif;
}


/* Hero */

.banner-image {
  width: 100%;       /* prend toute la largeur du conteneur */
  height: auto;      /* hauteur s’ajuste pour garder les proportions */
  display: block;    /* supprime l’espace blanc sous l’image */
}



/* Header */
header {
  background: #0056b3;
  padding: 10px 20px;
  color: #fff;
  font-family:'Poppins', sans-serif;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

.btn {
  background: #fff;
  color: #0056b3;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Responsive menu */
#menu-toggle {
  display: none;
}
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
@media(max-width:768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #0056b3;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    z-index: 9999;
  }
  #menu-toggle:checked + .menu-icon + ul {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

/* Sections */
section {
  padding: 40px 20px;
  text-align: center;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  padding: 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
footer a { color: #fff; text-decoration: none; }
.socials a { margin-right: 10px; font-size: 20px; }

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 25px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}




    /*Annexes  #004080*/
    

.annexes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* colonnes flexibles */ 
  gap: 20px;
  padding: 20px;
}

.annexes {
  
  background: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}

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


.annexes-container h3 {
  margin: 10px 0;
  color: #0056b3;
}

.annexes-container p {
  margin: 8px 0;
  font-size: 15px;
  color: #555;
}

/* ✅ Tablette : 2 colonnes */
@media (max-width: 1023px) {
  .annexes-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ✅ Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
  .annexes-container {
    grid-template-columns: 1fr;
  }
}


footer {
  background: #0056b3; /* Bleu professionnel */ 
  padding: 30px 20px;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 20px;
}

.footer-container h3 {
  color: hsl(0, 0%, 100%);
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-container p, 
.footer-container a {
  color: black;
  text-decoration: none;
  font-size: 16px;
}

.footer-container a:hover {
  color: hsl(0, 0%, 100%);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.socials a {
  font-size: 20px;
  color: black;
  transition: color 0.3s;
}

.socials a:hover {
  color: hsl(0, 0%, 100%);
}

.copyright {
  text-align: center;
  font-size: 16px;
  color: black;
  border-top: 1px solid black;
  padding-top: 15px;
}


/*Texte defilant sur la page d'accueil*/

.texte-defilant-container {
  width: 100%;
  overflow: hidden;       /* ✅ cache le texte qui dépasse */
  box-sizing: border-box;
}

.texte-defilant {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;      /* commence complètement à droite */
  animation: defilement 20s linear infinite;
  font-weight: bold;
  font-size: 1.2em;
  color: black;
}

@keyframes defilement {
  0% {
    transform: translateX(0);    /* texte commence hors de l’écran à droite */
  }
  100% {
    transform: translateX(-100%); /* texte sort complètement à gauche */
  }
}

/* Responsive : texte plus petit sur mobile */
@media (max-width: 768px) {
  .texte-defilant {
    font-size: 1em;
    padding-left: 100%;
  }
}



/* Contact */
.contact form {display:flex; flex-direction:column; gap:15px; max-width:500px; margin:20px auto;}
input, textarea {padding:12px; border:1px solid #ccc; border-radius:10px;}


/* Boutons */


.btn {background:#ffcc00; color:#000; padding:12px 25px; border:none; border-radius:40px; font-weight:600; cursor:pointer; text-decoration:none;}
.btn:hover {background:#ffc107;}


/* Page d'inscription*/


 body {
      font-family: 'Poppins', sans-serif;
      background: #f4f7fb;
      margin: 0;
      padding: 0;
    }

    .form-container {
      max-width: 600px;
      margin: 40px auto;
      padding: 20px;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .form-container h2 {
      text-align: center;
      color: #0a3d91;
      margin-bottom: 20px;
    }

    .form-group {
      margin-bottom: 15px;
    }

    .form-group label {
      display: block;
      margin-bottom: 6px;
      color: #333;
      font-weight: 600;
    }

    .form-group input,
    .form-group select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1em;
    }

    .form-group input:focus,
    .form-group select:focus {
      border-color: #0a3d91;
      outline: none;
    }

    .btn-submit {
      display: block;
      width: 100%;
      padding: 12px;
      background: #0a3d91;
      color: #fff;
      font-size: 1.1em;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
    }

    .btn-submit:hover {
      background: #062c6d;
    }


/*Image a l'accueil*/

.download-section {
  display: flex;
  align-items: flex-start; /* 🔹 aligne le texte en haut de l'image */
  justify-content: center;
  gap: 80px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* Image */
.download-img {
  width: 50%; /* moitié gauche sur PC */
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

/* Texte + bouton */
.download-content {
  flex: 1;  /* prend le reste de la largeur */
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  text-align: justify; /* 🔹 justification du texte */
  width: 40px;
  text-decoration: none;
}

/* Bouton style */
.download-btn {
  background: #28a745;
  color: #fff;
  padding: 20px 40px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px; /* 🔹 taille du texte plus grande */
  font-weight: bold; /* 🔹 texte en gras pour plus de visibilité */
  text-decoration: none; /* 🔹 supprime tout soulignement */
}

.download-btn:hover {
  background: #218838;
}
.download-content a {
  text-decoration: none; /* enlève soulignement sur le lien */
}

/* Responsive : mobile */
@media (max-width: 768px) {
  .download-section {
    flex-direction: column; /* image au-dessus, texte en dessous */
    text-align: center;
  }

  .download-img {
    width: 100%;
    margin-bottom: 20px;
  }

  
  .download-content {
    width: 100%;
    text-align: justify; /* justification conservée sur mobile */
  }
}

.download-btn {
  display: block;
  margin: 20px auto 0 auto; /* auto à gauche/droite = centré */
}





 /* Conteneur général */
.formations-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr)); /* 4 colonnes fixes */
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Centre la ou les cartes pour éviter qu'une seule colle à gauche */
.formations-container > * {
  justify-self: center;
}

/* Carte formation */
.formation {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%; /* reste dans sa cellule */
  max-width: 250px; /* contrôle la largeur réelle */
}

.formation:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formation img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.formation h3 {
  font-size: 18px;
  color: #333;
  margin: 10px 0 8px;
}

.formation p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* Bouton "En savoir plus" */
.btnd {
  display: inline-block;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s;
}

.btnd:hover {
  background: #0056b3;
}




@media (max-width: 768px) {
  .formations-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .formations-container {
    grid-template-columns: 1fr;
  }
}






  /* Bouton de téléchargement de la fiche d'inscription*/
.btn-download-fiche {
  display: inline-block;
  padding: 12px 25px;
  background-color: #007BFF; /* bleu vif */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 10px;
}

.btn-download-.btn-download-fiche {
  background-color: #0056b3; /* bleu plus foncé au survol */
  transform: scale(1.05);
}


.gallery video {
  pointer-events: none;   /* empêche les clics sur la vidéo elle-même */
}

.gallery video[onclick] {
  pointer-events: auto;   /* mais autorise le clic pour la lightbox */
}

.gallery video::-webkit-media-controls {
  display: none !important; /* masque les contrôles sur Chrome/Safari */
}


/* Bouton pour la consulatation des notes et des anciennes épreuves*/

.btn-notes-epreuves {
  display: inline-block;
  margin: 10px auto; 
  padding: 12px 25px;
  background-color: #007BFF; /* bleu vif */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 10px;
}

.btn-notes-epreuves {
  background-color: #0056b3; /* bleu plus foncé au survol */
  transform: scale(1.05);
}

.btn-notes-epreuves p{
  text-align: center;
}



/*Image a l'accueil*/

.image-container {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  gap: 40px;               /* espace entre l’image et le bloc texte/bouton */
  margin: 40px auto;
}

.image-container img {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .image-container {
    flex-direction: column;
    gap: 20px;
  }

  .image-container img {
    width: 80%;
  }
}

/* === Structure globale === */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

/* === Carte d'image === */
.image-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.image-card img {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  object-fit: contain; /* garde les proportions naturelles */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.image-card img.active {
  opacity: 1;
  position: relative;
}




/* === Partie droite === */
.hero-right {
  flex: 1;
  min-width: 280px;
}

.hero-right h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 12px;
}

.hero-right .slogan {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.boutn {
  padding: 12px 20px;
  background: #1a73e8;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.boutn:hover {
  background: #0d57c3;
}

.boutn-outline {
  background: transparent;
  border: 2px solid #1a73e8;
  color: #1a73e8;
}

.boutn-outline:hover {
  background: #1a73e8;
  color: #fff;
}

/* === Responsive mobile === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-right {
    margin-top: 20px;
  }

  .image-card {
    max-width: 90%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}


.kicker .bien {
  color: #1a73e8;
}

.kicker .cab {
  color: #1a73e8;
}



/* Fermeture du menu sur mobile */

.menu-icon .fa-times {
  display: none;
}

/* Quand le menu est ouvert (checkbox cochée) */
#menu-toggle:checked + .menu-icon .fa-bars {
  display: none;
}

#menu-toggle:checked + .menu-icon .fa-times {
  display: inline;
}


/*Boutton En savoir plus*/

.formation .bout {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.formation .bout:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.formation .bout {
  padding: 6px 12px;
  font-size: 13px;
}


/*Domaines des formations   #0073b1   */


.dformations {
  padding: 60px 20px;
  text-align: center;
}

.dformations h2 {
  font-size: 2rem;
  color: black;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.dcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dcard-link {
  text-decoration: none;
}

.dcard {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  color: #0056b3;
}

.dcard:hover {
  transform: translateY(-6px);
  background: #0056b3; 
  color: white;
}

.dcard h3 {
  font-size: 1.1rem;
  margin: 0;
  color: inherit;
}

.dcard i {
  margin-right: 8px;
  color: inherit;
}





/* === Section Statistiques === */
.stats-section {
  background: #f5f9ff;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.stats-section .section-title {
  color: #0056b3;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Conteneur du slider */
.stats-slider {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: slideLeft 50s linear infinite;
}

/* Cartes individuelles */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Titre filière */
.stat-card h3 {
  color: #0056b3;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Nombre d'inscrits */
.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: #0056b3; 
}

/* Animation de défilement vers la gauche */
@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* défilement moitié du contenu (cartes dupliquées) */
}

/* Pause au survol */
.stats-slider:hover {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
  .stat-card {
    min-width: 220px;
    padding: 20px;
  }
}