:root{
  --blue:#004aad;
  --accent:#e6b800;
  --muted:#777;
  --bg:#f7f8fb;
  --rouge: #FF0000;
  --blanc:white;
  --max:1100px;
  --radius:8px;
}

main {
  max-width: var(--max);  /* largeur max déjà définie dans tes variables */
  margin: 0 auto;         /* centre le contenu */
}


*{box-sizing:border-box}
body{font-family: 'Open Sans', sans-serif;margin:0;color:black;background:var(--bg);line-height:1.6}
.logo{width:56px;height:56px;border-radius:50%;object-fit:cover}

.brand-text h1{margin:0;font-size:1.2rem}
.slogan{margin:0;font-size:0.80rem; font-weight: 600; color:var(--blanc)}




.hero {
  background: 
              url('../assets/hero.jpg') center/cover no-repeat;
  height: 80vh; /* 90% de la hauteur de l’écran */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  font-family:'Poppins', sans-serif;
}


/* Section Hero */
  .heros {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #000;
     z-index: 1; /* base */
  }

  

  /* Slides avec background */
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1; /* base */
  }

  /* Images */
  .slide:nth-child(1) {
    background-image: url("../galerie/photo/photo51.jpg");
  }
  .slide:nth-child(2) {
    background-image: url("../galerie/photo/photo36.jpg");
  }
  .slide:nth-child(3) {
    background-image: url("../galerie/photo/photo50.jpg");
  }
  .slide:nth-child(4) {
    background-image: url("../galerie/photo/photo51.jpg");
  }
  .slide:nth-child(5) {
    background-image: url("../galerie/photo/photo52.jpg");
  }

  .slide.active {
    opacity: 1;
    z-index: 2;
  }

  .slide:not(.active) {
    z-index: 1;
  }

  /* Contenu superposé */
  .heros-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 100px 120px;
    border-radius: 10px;
    z-index: 2;
  }

  .heros-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .heros-content p {
    font-size: 0.5rem;
    margin-bottom: 20px;
  }

  .heros-content a {
    text-decoration: none;
    background: #ffcc00;
    color: #000;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
  }

  .heros-content a:hover {
    background: #e6b800;
  }

  @media (max-width: 768px) {
    .heros-content h1 {
      font-size: 1.8rem;
    }
    .heros-content p {
      font-size: 1rem;
    }
    .heros-content a {
      font-size: 0.8rem;
      padding: 10px 10px;
    }
  }


/*Une autre session*/
.intro{padding:2rem 0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;;margin-top:1rem}
.card{background:#fff; margin-bottom: 15px; padding:1rem;border-radius:var(--radius);box-shadow:0 6px 18px rgba(16,24,40,.06)}
.card:hover {
  transform: translateY(-5px);
}
.card a{color: black; text-decoration: none;}

.testimonials{padding:2rem 0}
.muted{color:var(--muted)}

.site-footer{background: #00BFFF;padding:1.4rem 1.4rem;margin-top:2rem;border-top:1px solid #eee}
.footer-inner{display:flex;justify-content:space-around;gap:1rem;align-items:center}
.footer-nav a{margin-left:1rem;text-decoration:none;color:black}

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

.footer-container h3 {
  color: black(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%);
}

.contact-form{max-width:640px;background:#fff;padding:1rem;border-radius:8px;box-shadow:0 6px 18px rgba(16,24,40,.06)}
.contact-form label{display:block;margin-top:.8rem}
.contact-form input,
.contact-form textarea{width:100%;padding:.6rem;margin-top:.3rem;border:1px solid #e6e6e6;border-radius:6px}

.annexes-list{list-style:none;padding:0}
.annexes-list li{background:#fff;padding:.6rem;border-radius:6px;margin:.4rem 0}




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


/* Header */
header {
  background: #00BFFF;  
  padding: 1px 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;
  font-weight: bold;
}

.btn {
  background: #ffcc00;
  color: black;
  padding: 5px 10px;
  border-radius: 30px;
  text-decoration: none;
}

/* 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: #00BFFF;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
  }
  #menu-toggle:checked + .menu-icon + ul {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

/*Flyers et telechargement du descriptif*/

.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);
}

.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-text {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.download-btn {
  padding: 15px 25px;
  background: #28a745;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  border-radius: 30px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #218838;
}

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

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

/* Liste des formations - grille PC et slider mobile */

.formations-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ PC : 4 colonnes */
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

/* ✅ Tablette : 3 colonnes */
@media (max-width: 1024px) {
  .formations-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ✅ Mobile : 1 colonne */
@media (max-width: 768px) {
  .formations-list {
    grid-template-columns: 1fr;
  }
}

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

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

.card h2 {
  margin: 10px 0;
  color: #004080;
}

.card h3 {
  margin: 10px 0;
  color: #004080;
}

.card p {
  margin: 8px 0;
  font-size: 15px;
  color:black;
}

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




  /* Page des formations*/

  .image-text-container {
  display: flex;
  flex-direction: row;       /* ✅ image à gauche, texte à droite */
  align-items: flex-start;   /* aligne en haut */
  gap: 40px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.image-half {
  flex: 0 0 50%;             /* largeur fixe 50% sur PC */
}

.image-half img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.text-half {
  flex: 0 0 50%;             /* largeur fixe 50% sur PC */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* texte aligné en haut */
  text-align: center;
}

.intro-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #000;;
  text-align: justify;
}

.download-text {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
  text-align: center;
}

.download-btn {
  padding: 10px 20px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 8px;
  border-radius: 30px;
  cursor: pointer;
}

.download-btn:hover {
  background-color: #0066cc;
}

/* Responsive : mobile = image au-dessus du texte */
@media (max-width: 768px) {
  .image-text-container {
    flex-direction: column;   /* empile image + texte */
    align-items: center;      /* centre horizontalement */
  }

  .image-half,
  .text-half {
    flex: 1 1 100%;
    text-align: center;
  }

  .text-half {
    margin-top: 20px;
  }
}


/* Carte cliquable directeur et Formateurs*/


.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card-link .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


/* Style de base de l'image du directeur et des eleves*/
.directeur-eleve {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .directeur-eleve:hover {
    transform: scale(1.02);
  }

  /* Fenêtre plein écran (overlay) */
  .lightbox {
    display: none; /* caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
  }

  /* Curseur pour indiquer qu’on peut fermer */
  .lightbox img:hover {
    cursor: zoom-out;
  }





  /* Section Actualités */
.actualites {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.actualites h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #222;
}

.actualites p {
  color: #555;
  margin-bottom: 40px;
}

.actualites-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
}

.actualite {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 300px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actualite:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.actualite img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.actualite-content {
  padding: 20px;
}

.actualite-content h3 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
}

.actualite-content small {
  color: #777;
  display: block;
  margin-bottom: 10px;
}

.actualite-content p {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

.actualite-content a {
  display: inline-block;
  margin-top: 10px;
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
}

.actualite-content a:hover {
  text-decoration: underline;
}


.img-formateurs {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/*Bouttons En savoir plus et Envoyer de Contact*/

.card .bout {
  display: inline-block;
  background-color: #004080; /* bleu principal */
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

.bount {
  display: inline-block;
  background-color: #004080; /* bleu principal */
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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


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




.intro-text,
.download-text {
  background-color: #f2f2f2; /* gris clair */
  padding: 20px;
  border-radius: 10px;
  line-height: 1.7;
  color: #333;
  margin: 15px 0;
}




    /*Annexes  #004080*/
    

.annexes-container {
  display: grid;
  grid-template-columns: repeat(2, 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: black;
  font-weight: bold;
}

.annexes-container a {
  text-decoration: none;
}

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

.bt {
  background-color: #004080;
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: white;
  text-decoration: none;
  border-radius: 30px;
}


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