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;
  }
  #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*/
    

.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: #004080;
}

.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é */
}





    /*Cadrant de chaque formation*/
.formations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .formation {
    width: 250px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    display: none;
    text-align: center;
    transition: 0.3s;
  }

  .formation.active {
    display: block;
  }

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

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

  .formation a {
    text-decoration: none;
    color: inherit;
  }

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

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

  .nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  .nav-buttons button {
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
  }

  .nav-buttons button:hover {
    background: #0056b3;
  }



  /* 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%;
  }
}

