 /* Reset global */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+Condensed:wght@100;200;300;400;500;600;700;800;900&family=Orbitron:wght@400..900&family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Tektur:wght@400..900&display=swap');

 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;


  }

  body {
    font-family: "Oswald", sans-serif;
    background-color: #f7f7f7;
    color: #333333;
    font-family: "Encode Sans Condensed", sans-serif;
    font-weight: 400;
    font-style: normal
}


  header,
  .navbar {
    width: 100%;
  }

  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
   padding: 11px 11px;
    background: #373636;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
  }

   .navbar nav{
    width: 75%;

   }
    .navbar .logo{
width: 25%;
    }

  nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
     flex-wrap: wrap;
   justify-content: space-evenly;
   align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a,
nav ul li {
  display: block;
  padding: 15px 5px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;

}

nav ul li:hover {
 background: #646161;
}

nav ul li a:hover {
  color: #ddd;
}

.conteneur_outil {
  position: relative;
}

.conteneur_enfant_outil, .conteneur_enfant_outil_footer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #373636;
  min-width: 280px;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);

}

.conteneur_enfant_outil li a, .conteneur_enfant_outil_footer li a  {
  display: block;
  color: white;
  padding: 8px 20px;
  font-size:15px;
  padding-left: 05px; /* ✅ décalage visuel des enfants */
}



.conteneur_outil:hover .conteneur_enfant_outil {
  display: block;
    background: #373636;
}
.conteneur_outil:hover .conteneur_enfant_outil_footer {
  display: block;
    background: #373636;
}
 .conteneur_enfant_outil li a:hover {
   background: #646161;
 }

  .conteneur_enfant_outil_footer li a:hover {
   background: transparent;
 }

.conteneur_outil:hover {
   background: #373636;
}


@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar .logo {
    width: 80%;
    margin-bottom: 10px;
  }

  .navbar nav {
    width: 60%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
     width: 60%;
  }

  nav ul li {
    width: 100%;
    padding: 10px 0;
  }

  .conteneur_enfant_outil,  .conteneur_enfant_outil_footer {
    display: none; /* caché par défaut */
    position: static;
    background: #373636;
    padding: 0;
    box-shadow: none;
    margin-left: 15%;
    margin-top: 5px;
  }

  .conteneur_outil.active .conteneur_enfant_outil,  .conteneur_outil.active .conteneur_enfant_outil_footer {
    display: block;
  }

  .conteneur_enfant_outil li, .conteneur_enfant_outil_footer li {
    padding: 8px 0;
  }

  .conteneur_enfant_outil li a,  .conteneur_enfant_outil_footer li a {
    display: block;
    color: white;
    padding: 8px 20px;
  }
}







  /* Section actualités accueil*/
  .actualites {
    width: 100%;
    background-color: white;
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
  }

  .actualites > .overlay {
    width: 100%;
    text-align: center;
  }

  .actualites > .overlay > h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
  }

  .grid-accueil {
     display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}






/* general */
  .grid-accueil2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    width: 100%;
  }


  .card-content h3 {
    margin-top: 0;
    font-size: 1rem;
  }

  .card-content .date {
    font-size: 0.875rem;
    color: #888;
    margin-top: 0.5rem;
  }

  .btn-wrapper {
      display: flex;
      justify-content: center; /* centré horizontalement */
      gap: 10px; /* espace entre les boutons */
      flex-wrap: wrap; /* au cas où sur mobile */
      margin-top: 20px;
  }

  .hidden-slide {
  opacity: 0;
  transform: translateX(200px);  /* de gauche à droite  */
  transition: all 1s ease-out;
}

  .hidden-slide2 {
  opacity: 0;
  transform: translateX(-200px);  /* de droite à gauche */
  transition: all 1s ease-out;
}


.slide-in {
  opacity: 1;
  transform: translateX(0);
}


  /* Cartes - même style pour toutes */
  .card-accueil {
    background-color: #ffffff;
    color: #333333;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
    transition: transform 0.3s ease;
    width: 30%;

    flex-wrap: wrap; /* Pour que ça reste responsive sur petit écran */
     transition: transform 0.3s ease; /* pour une animation fluide */
  }

  .card-accueil img {
    width: 100%;
    height: 280px;
    object-fit: cover;

  }

  .img-date-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
     background: #373636;
  color: white;
  padding: 0;
}


.img-date-wrapper .date {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
    background: #373636;
color: white;
padding: 10px 5px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

}
 .img-date-wrapper-art {
  display: flex;
  flex-direction: row;
  align-items: start;
     background: #373636;
  color: white;
  width: 50%;

}

.img-date-wrapper-art .date {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
    background: #373636;
color: white;
padding: 10px 5px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

}
.img-container {
  flex: 1;

  object-fit: cover;
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.img-container-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


  .card-content {
    padding: 1.5rem;
    padding-top: 0rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;

  }


  .card-content-actu {
    padding: 1.5rem;
    padding-top: 0rem;
        padding-bottom: 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;

  }


  .card-accueil h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #2d2d2d;
    text-align: center;
    font-weight: bold;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
  }
    .card-content h3
  {
    margin-top: 20px;
    font-size: 1rem;
    color: #2d2d2d;
    text-align: center;
    font-weight: bold;
    align-items: center;
  }

  .card-content p
   {
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    text-align: justify;

  }

    .card-accueil p {
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    text-align: justify;



  }

  .card-accueil .date {
    writing-mode: vertical-rl;
  transform: rotate(180deg);
    background: #373636;
color: white;
padding: 10px 5px;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  }

/* .card-accueil:hover {
  transform: translateY(-10px) scale(1.05);
} */


  .section-cards {
    display: flex;

    justify-content: center;
    padding: 20px;
  }

  /* Titres */
  .presentation > h2,
  .outils > h2,
  .programmes > h2,
  .graphique > h2, .overlay>h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2d2d2d;
    font-weight: 700;
  }

  .outils{
    background-color: white;
  }

  .carousel-caption {
    font-size: 0.95rem;
  }

  .carousel-inner img {
    height: 300px;
    object-fit: cover;
  }

  .presentation,
  .outils, .actualites,
  .programmes,
  .graphique {
    padding: 4rem 2rem;
    max-width: 100%;
    flex-wrap: wrap; /* Pour que ça reste responsive sur petit écran */
  }

  .div1 img{
    transition: transform 0.3s ease;
  }

   .div1 img:hover{
    transform: scale(1.05);
  }

  .mobile{
transition: transform 0.3s ease;
  }

    .mobile:hover{
  transform: scale(1.05);
  }

.btn {
  background-color: #fff;
  color: #555;
  border-color:#555;
  font-size:14px;

  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;

  margin-top: 1rem;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease; /* Transition ciblée et rapide */
}

.btn-fin {
background-color:rgb(218, 82, 82);
  color: #ffffff;
  font-size:14px;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
  text-align: center;

}

.btn-dash{
  background-color:rgb(55, 141, 74);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
  margin-left: 25%;
  margin-bottom: 20px;
}

.btn:hover {
  background-color: #242121; /* Couleur plus foncée */
  color: #e0e0e0; /* Optionnel : léger changement de texte */
}


@media (max-width: 768px) {
  .card-accueil{
  width: 100%;
  }

}



.bouge2{

  opacity: 0;
  transition: opacity 1.5s ease;

}
.bouge2.visible{
  opacity:1
}
.bouge3{
transform:translateX(50px);
  opacity: 0;
  transition: opacity 1.5s ease, transform 0.9s ease-in;

}
.bouge3.visible3{
  transform:translateX(0);
  opacity:1
}






   /* Section presentation outils accueil */

   .presentation, .programmes{

    background-color: #f9f9f9;
   }

   .presentation p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
  }


/* css page outil.php */

    h1.actualites-section-title {
      text-align: center;
      font-weight: 700;
      font-size: 2.5rem;
      margin: 60px 0 20px;
      color: #004e89;
      letter-spacing: 0.04em;
      text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
    }

    .main-outil>p {
      text-align: justify;
      padding: 0 30px 40px;
      font-size: 1.1rem;
      line-height: 1.6;
      color: #34495e;
    }

    .timeline-container-outil {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 30px;
    }

    .timeline-container-outil::before {
      content: "";

      position: absolute;
      top: 40px;
      bottom: 40px;
      left: 50%;
      width: 6px;
      background: linear-gradient(180deg, #005fa3 0%, #0077cc 100%);
      border-radius: 10px;
      transform: translateX(-50%);
      box-shadow: 0 0 8px rgba(0, 119, 204, 0.5), inset 0 0 15px rgba(0, 119, 204, 0.7);
      z-index: 0;
      animation: pulseLine 2.5s ease-in-out infinite alternate;
    }

    @keyframes pulseLine {
      0% {
        box-shadow: 0 0 8px rgba(0, 119, 204, 0.5), inset 0 0 15px rgba(0, 119, 204, 0.7);
      }

      100% {
        box-shadow: 0 0 15px rgba(0, 119, 204, 0.8), inset 0 0 25px rgba(0, 119, 204, 1);
      }
    }

    .timeline-item-outil {
      position: relative;
      width: 65%;
      background: white;
      border-radius: 20px;
      padding: 35px 40px;
      margin-bottom: 90px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07), 0 0 12px rgba(0, 0, 0, 0.03);
      transition: all 0.35s ease;
      cursor: default;
      z-index: 1;
      filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.06));
      font-size: 1.1rem;
      color: #2b3a4a;
      display: flex;
      flex-direction: column;
    }

    .timeline-item-outil:hover {
      transform: scale(1.03);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 119, 204, 0.25);
      filter: drop-shadow(0 12px 15px rgba(0, 119, 204, 0.18));
    }

    .timeline-item-outil:nth-child(odd) {
      margin-right: auto;
    }

    .timeline-item-outil:nth-child(even) {
      margin-left: auto;
    }

    .timeline-dot {
      position: absolute;
      top: 40px;
      width: 32px;
      height: 32px;
      background: #0077cc;
      border: 7px solid white;
      border-radius: 50%;
      z-index: 5;
    }

    .timeline-item-outil:nth-child(odd) .timeline-dot {
      right: -56px;
      box-shadow: 0 0 15px #004e89, inset 0 0 18px #5dade2;
    }

    .timeline-item-outil:nth-child(even) .timeline-dot {
      left: -56px;
      box-shadow: 0 0 15px #004e89, inset 0 0 18px #5dade2;
    }

    .timeline-title-outil {
      font-size: 1.8rem;
      font-weight: 700;
      color: #004e89;
      margin: 0 0 22px 0;
      padding-left: 18px;
      padding-bottom: 10px;
      text-align: start;
      border-left: 6px solid #0077cc;
      letter-spacing: 0.03em;
    }

    .timeline-body-outil {
      display: flex;
      gap: 30px;
      align-items: center;
      flex-wrap: nowrap;
      width: 100%;
      align-items: stretch;
      /* <-- assure que les enfants prennent la même hauteur */
    }

    .timeline-body-outil img {
      height: 100%;
      /* <-- image prend toute la hauteur */
      width: 100%;
      /* prend toute la largeur du conteneur */
      object-fit: cover;
      /* garde un bon cadrage */
      border-radius: 5px;
      max-height: none;
      /* retire la hauteur max pour permettre le stretch */
      box-shadow:
        0 15px 28px rgba(0, 0, 0, 0.12),
        inset 0 0 10px rgba(255, 255, 255, 0.35);
      transition: transform 0.35s ease;
      flex-shrink: 0;
    }


    .text-outil {
      width: 52%;
      color: #34495e;
      line-height: 1.7;
      font-weight: 400;
      align-items: center;


    }

    .text-outil p {
      margin: 0 0 16px 0;
      font-size: 1.05rem;
      text-align: justify;
      max-height: 200px;
      overflow-y: auto;
      padding-right: 10px;
    }

    .text-outil a {
      display: inline-block;
      padding: 12px 22px;
      background: #0077cc;
      color: white;
      text-decoration: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 1rem;
      box-shadow: 0 6px 18px rgba(0, 119, 204, 0.4);
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    .text-outil a:hover {
      background: #005fa3;
      box-shadow: 0 10px 24px rgba(0, 95, 163, 0.7);
    }

    /* Responsive */
    @media (max-width: 950px) {
      .timeline-container-outil::before {
        left: 15px;
      }

      .timeline-item-outil {
        width: 100% !important;
        margin: 0 0 70px 0 !important;
        padding-left: 55px;
        padding-right: 30px;
      }

      .timeline-item-outil:nth-child(odd),
      .timeline-item-outil:nth-child(even) {
        margin: 0 auto !important;
      }

      .timeline-dot {
        top: 32px !important;
        left: 15px !important;
        right: auto !important;
      }

      .timeline-body-outil {
        flex-direction: column;
      }

      .timeline-body-outil img,
      .text {
        width: 100%;
      }

      .timeline-body-outil img {
        margin-bottom: 18px;
        max-height: 360px;
        object-fit: cover;
      }
    }







   /* Section projet R&D accueil */

/* Section générale */
.programmes {
  padding: 4em 2em;
  text-align: center;
}


/* Première carte horizontale */
.card-programme1 {
  display: flex;
    flex-direction: row; /* texte à gauche, image à droite */
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 80vh;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Pour que ça reste responsive sur petit écran */
   transition: transform 0.3s ease; /* pour une animation fluide */


}



.card-programme1 img {
  width: 50%;
  height: 80vh;
  border-radius: 05px;
  object-fit: cover;
  overflow: hidden;
}


.card-programme1 img:hover{
    transform:  scale(1.05);

}

.card-programme1 .card-content p {
  text-align: justify;
 width: 100%;
 padding: 10px;
  max-height: 300px;
  overflow-y: auto;

}

.card-programme1 .card-content h3{
  font-weight: bold;
}









/* Grille des deux cartes */
.cards-row {
  display: flex;
  gap: 120px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.card-programme2,
.card-programme3 {
  background-color: white;
  width: 100%;
  max-width: 45%;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card-programme2:hover,
.card-programme3:hover {
  transform:  scale(1.05);
}

.card-programme2 img,
.card-programme3 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}



/* Popups */
.content-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  z-index: 9999;
  padding: 40px 20px;
}

.content-wrapper.active {
  display: block;
}

.content-wrapper img {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}

.text-content {
  background-color: white;
  margin: 40px auto;
  padding: 30px;
  max-width: 800px;
  border-radius: 10px;
  text-align: left;
  height: 50vh;
}

.text-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.text-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Responsive */
/* Tablette (1024px et moins) */
@media (max-width: 1024px) {
  .card-programme1 {
    flex-direction: column;
    height: auto;
  }

  .card-programme1 img {
    width: 100%;
    height: 300px;
    margin-top: 20px;
     order: -1; /* place l’image au-dessus */
  }


/*

  /* .card-programme1 .card-content {
    width: 100%;
    text-align: justify;
    order: 1; /* place le texte en dessous */



  .cards-row {
    gap: 40px;
  }

  .card-programme2,
  .card-programme3 {
    max-width: 80%;
  }

  .text-content {
    padding: 20px;
  }
}

/* Mobile (768px et moins) */
@media (max-width: 768px) {
  .card-programme1 {
    flex-direction: column;
    height: auto;
  }

  .card-programme1 img {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .card-programme1 .card-content {
    width: 100%;
    text-align: justify;
    overflow-x: auto;  /* scroll horizontal */

  }

  .cards-row {
    flex-direction: column;
    gap: 30px;
  }

  .card-programme2,
  .card-programme3 {
    max-width: 100%;
  }

  .text-content {
    padding: 16px;
  }

  .text-content h2 {
    font-size: 1.4rem;
  }

  .text-content p {
    font-size: 0.95rem;
  }

  .close-modal {
    font-size: 2rem;
    top: 10px;
    right: 20px;
  }
}






  /* graphique */
 .graphique>h2{
  margin-bottom: 0;
 }

 .graphique{
  max-width: 100%;

  margin: auto;
  background-color: white;

 }

 .graphique div {

  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  text-align: justify;
}





      /* Images cliquable */
   #image70186, #image009, #image0010, #image007,#image008, #rect50624,    #image180, #image688 {
    cursor: pointer;
   }

   .overlay-message  {
    display: none;
    position: absolute;
    transform: translateX(-50%);
    background: #c83d3d;
    color: rgb(255, 255, 255);

    border-radius: 8px;
    z-index: 100000;
    font-size: 14px;
    width: 650px;
    max-height:600px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 15px;

  }

  /* Positions individuelles */
  .overlay-message1  { top: 300px; left: 42%; }
  .overlay-message2  { top: 380px; left: 22%; }
  .overlay-message3  { top: 400px; left: 50%; }
  .overlay-message4  { top: 230px; left: 23%; }
  .overlay-message5  { top: 230px; left: 50%; }
  .overlay-message6  { top: 270px; left: 15%; }
  .overlay-message7  { top: 270px; left: 50%; }
  .overlay-message8  { top: 380px; left: 50%; }
  .overlay-message9  { top: 500px; left: 40%; }
  .overlay-message10 { top: 120px; left: 48%; }
  .overlay-message11 { top: 120px; left: 72%; }
  .overlay-message12 { top: 240px; left: 60%; }
  .overlay-message13 { top: 310px; left: 69%; }
  .overlay-message14 { top: 310px; left: 75%; }
  .overlay-message15 { top: 290px; left: 84%; }
  .overlay-message16 { top: 180px; left: 50%; }
  .overlay-message17 { top: 130px; left: 60%; }








  svg{
    margin-top: 2em;
    background-color: #ffffff;
    padding-top: 0;
    padding-bottom: 0;
    padding: 0;
    width: 100%;
  }
  .graphique{
    position: relative;
    margin-bottom: 0;
    width: 100%;
  }
  /* Bouton retour en haut */
  .scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d9534f;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }


  /* RESPONSIVE - TABLETTE */
  @media (max-width: 992px) {
    .presentation > h2,
    .outils > h2,
    .programmes > h2,
    .actualites > .overlay > h2,
    .graphique > h2 {
      font-size: 2rem;
    }

    .card-accueil h3,
    .card-content h3 {
      font-size: 1.1rem;
    }

  }

  /* RESPONSIVE - MOBILE */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;

      align-items: center;
    }
/* .navbar div .logo{
  align-items: center;
} */

    .presentation > h2,
    .outils > h2,
    .programmes > h2,
    .actualites > .overlay > h2,
    .graphique > h2 {
      font-size: 1.5rem;
    }


      .row.align-items-center {
        flex-direction: column !important;
        align-items: center;
      }

      .row.align-items-center > div {
        max-width: 100% !important;
        width: 100%;
        text-align: center;
      }







    .gauche{
      display: none;
      margin-top: 0;
    }
    .card-accueil h3,
    .card-content h3 {
      font-size: 1rem;
    }

    .card-content p,
    .card-accueil p {
      font-size: 0.9rem;
    }
    .mobileheight{
     width: fit-content;
    }
    .navbar nav {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .navbar nav a {
      margin: 8px 0; /* Espacement vertical entre les liens */
      padding: 8px 0; /* Ajoute un peu de padding pour le toucher */
      width: 100%; /* Prend toute la largeur disponible */
      text-align: center; /* Centre le texte */
    }
  }








/* Mobile - Version verticale (portrait) */
@media (max-width: 767px) and (orientation: portrait) {
  [class^="overlay-message"] {
    left: 50% !important;
    transform: translateX(-50%);
    width: 80%;
    top: auto !important;
    bottom: 10vh;
    margin-bottom: 10px;
  }

  /* Positionnement spécifique pour mobile */
  .overlay-message1 { bottom: 80vh; }
  .overlay-message2, .overlay-message3 { bottom: 80vh; }
  .overlay-message4, .overlay-message5 { bottom: 80vh; }
  .overlay-message6, .overlay-message7 { bottom: 80vh; }
  .overlay-message8, .overlay-message9,
  .overlay-message10, .overlay-message11 { bottom: 80vh; }
  .overlay-message12, .overlay-message13 { bottom: 80vh; }
  .overlay-message14, .overlay-message15 { bottom: 80vh; }
  .overlay-message16, .overlay-message17 { bottom: 80vh; }
}

/* Tablette - Version horizontale (paysage) */
@media (min-width: 768px) and (max-width: 1024px) {
  [class^="overlay-message"] {
    font-size: 15px;
    padding: 14px 18px;
  }

  /* Ajustements de position pour tablette */
  .overlay-message1 { top: 55%; left: 40%; }
  .overlay-message2 { top: 60%; left: 25%; }
  .overlay-message3 { top: 60%; left: 15%; }
  .overlay-message4, .overlay-message5 { top: 45%; }
  .overlay-message6, .overlay-message7 { top: 30%; }
  .overlay-message8, .overlay-message9,
  .overlay-message10, .overlay-message11 { top: 40%; }
  .overlay-message12 { top: 50%; left: 60%; }
  .overlay-message13 { top: 65%; left: 70%; }
  .overlay-message14, .overlay-message15 { top: 55%; }
  .overlay-message16 { top: 45%; left: 80%; }
  .overlay-message17 { top: 30%; left: 80%; }
}

/* Grandes tablettes et petits ordinateurs portables */
@media (min-width: 1025px) and (max-width: 1280px) {
  [class^="overlay-message"] {
    font-size: 16px;
  }

  /* Ajustements supplémentaires pour plus grands écrans */
  .overlay-message1 { top: 600px; }
  .overlay-message2, .overlay-message3 { top: 670px; }
  .overlay-message4, .overlay-message5 { top: 480px; }
  .overlay-message6, .overlay-message7 { top: 310px; }
  .overlay-message8, .overlay-message9,
  .overlay-message10, .overlay-message11 { top: 390px; }
  .overlay-message12 { top: 490px; }
  .overlay-message13 { top: 650px; }
  .overlay-message14, .overlay-message15 { top: 590px; }
  .overlay-message16 { top: 470px; }
  .overlay-message17 { top: 300px; }
}










/* Styles globaux pour le footer */
.footer {
    background-color: #2c2c2c;
    color: white;
    padding: 3rem 5.5rem;

  }

  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-evenly;
    align-items: flex-start;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    margin-bottom: 0;
    padding-bottom: 0;
  }

  .footer-logo .logo {
    max-width: 480px;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Applique l’effet cover */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }




  .footer-logo .logo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }



 .conteneur_enfant_outil_footer:hover li{
  background-color: transparent;
 }





  .footer-section {
    flex: 1 1 250px;

  }

  .footer-section h4 {
    margin-bottom: 0.5rem;
  }

  .footer-section p,
  .footer-section a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;

  }

  .footer-section a:hover {
    color: #00aaff;
    text-decoration: underline;
  }

  .footer-section ul {
    list-style: none;
    padding-left: 0;
    line-height: 2.3;

  }



  #map {
    height: 210px;
    border-radius: 8px;
    margin-top: 0.5rem;
    width: 100%;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
    font-size: 0.9rem;
  }

  .footer-bottom a {
    color: #00aaff;
    text-decoration: none;
  }

  .footer-bottom a:hover {
    text-decoration: underline;
  }
  .fa-facebook{
    color: white;
  }

  /* Centrage sur mobile et tablette */
  @media (max-width: 768px) {
    .footer-container {
        display: flex; /* nécessaire ici aussi */
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .footer-section {
        max-width: 400px;
        width: 100%;
      }

      .footer-section ul {
        margin-bottom: 1rem;
        padding: 0;
      }

      .footer-logo img {
        margin-bottom: 1.5rem;
      }
      .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre horizontalement */
        text-align: center;
      }

      .footer-section ul {
        margin: 0 0 1rem 0;
        padding: 0;
      }

      .footer-section li {
        list-style: none;
      }

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




  /* popup plateforme.css */
  .main-plateforme {
    padding: 40px 20px;
    background: #f2f2f2;
    min-height: 100vh;
  }

  .connexion-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }

  .content-plateforme {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
  }

  .section-plateforme {
    flex: 1 1 300px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }



  .section-plateforme h3 {
    margin-bottom: 15px;
    background: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
  }

  .section-plateforme:nth-child(2) h3 {
    background: #007BFF;
  }

  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }

  .btn-plateforme {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
  }


  .footer-plateforme {
    margin-top: 20px;
    text-align: center;
  }

  .footer-plateforme a {
    color: #007BFF;
    text-decoration: none;
  }



  .custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;

  }

  .custom-modal-content {
    background: #fff;
    padding: 5rem;
    width: 90%;
    max-width: 900px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 5px;
    position: relative;
  }

   .custom-modal-content .date-pop{
    margin-left: 3%;
    color: rgb(218, 82, 82);;
    font-weight: bold;
    font-size: 20px;
   }

  .custom-modal-content p{
     padding: 0 2rem 0 2rem;
  }

  .custom-modal-content  .btn-wrapper{
    padding-bottom: 2rem;
  }

  .custom-modal-content img{
    max-height: 70vh;
    width: 100%;
    object-fit: cover;
  }



  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }








  /* popup projets page accueil */
/* Carte verticale (popup) */
.content-wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  height: 98vh;
  background: white;
  display: none; /* Cache par défaut */
  justify-content: center;
  align-items: flex-start;
  z-index: 9999;
  margin: 0 auto;
  flex-direction: column;
  padding: 2rem;
  padding-bottom: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Bouton de fermeture */
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.content-wrapper div{
  width: 100%;
 padding: 0;
}
.content-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 300px;
}

/* Texte défilant en dessous du carrousel */
#valleeCarousel1 .text-content,
#valleeCarousel2 .text-content,
#valleeCarousel3 .text-content {
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

#valleeCarousel1 .text-content h2,
#valleeCarousel2 .text-content h2,
#valleeCarousel3 .text-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

#valleeCarousel1 .text-content p,
#valleeCarousel2 .text-content p,
#valleeCarousel3 .text-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}


/* Bouton en bas */
#valleeCarousel1 .btn-wrapper,
#valleeCarousel2 .btn-wrapper,
#valleeCarousel3 .btn-wrapper {

    display: flex;
    justify-content: center; /* centré horizontalement */
    gap: 10px; /* espace entre les boutons */
    flex-wrap: wrap; /* au cas où sur mobile */
    margin-top: 20px;

}

#valleeCarousel1 .btn-wrapper .btn,
#valleeCarousel2 .btn-wrapper .btn,
#valleeCarousel3 .btn-wrapper .btn {
  background-color:#4A4A4A;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  text-align: center;
  display: inline-block;
}

#valleeCarousel1 .btn-wrapper .btn:hover,
#valleeCarousel2 .btn-wrapper .btn:hover,
#valleeCarousel3 .btn-wrapper .btn:hover {
  background-color:#4A4A4A;
}




/* projet europeens . css */

.projet-section-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 2rem 0 1rem;
  color: #1a1a1a;
  font-weight: bold;
}
.projet-section-description{
  font-size: 1.5rem;
  width: 90%;
  padding: 20px;
   text-align: justify;
   margin: 0 auto
}

.projet-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.projet-card {
  flex: 0 0 calc(50% - 1rem); /* 2 cartes par ligne */
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: justify;
}

.projet-card:hover {

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.projet-card-img {
  width: 100%;
  height: 420px; /* Fixe une hauteur identique pour toutes */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.projet-card-title {
  font-size: 1.25rem;
  margin: 1rem;
  color: #222;
  text-align: center;
}

.projet-card-text {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 1rem 1.5rem;
  text-align: justify;
  display: block;
  line-height: 2em;
}
@media (max-width: 768px) {
  .projet-card {
    flex: 0 0 100%; /* Une seule carte par ligne */
  }
}






/* page actualites.php */

/* Styles généraux */

  .art-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  /* Titre et description */
  .actualites-section-title-art {
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 60px 0 20px;
    color: #004e89;
    letter-spacing: 0.04em;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
  }

  .actualites-section-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Filtres */
  .filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 10px 20px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    color: #34495e;
    transition: all 0.3s ease;
  }

  .filter-btn:hover,
  .filter-btn.active {
    background-color: #3498db;
    color: white;
  }

  /* Cartes */
  .first-horizontal-card-art {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
  }

  .vertical-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
  }

  .news-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease;
  }

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





  .card-content-art {
    padding: 20px;
    width: 50%;

  }

  .card-content-vert {
    padding: 20px;
    width: 100%;

  }

  .card-content-art p {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
    text-align: justify;
  }

  .card-content-vert p {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 10px;
    text-align: justify;
  }

  .card-content-art h3 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding: 0;
  }

  .card-content-vert h3 {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    padding: 0;
    margin-top: 0;
  }

  .card-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    width: auto;
  }

  .category-pedagogique {
    background-color: #f39c12;
    color: white;
  }

  .category-intervention {
    background-color: #2ecc71;
    color: white;
  }

  .category-recherche {
    background-color: #9b59b6;
    color: white;
  }

  .category-tourisme {
    background-color: #3498db;
    color: white;
  }

  .card-title {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #2c3e50;
  }

  .card-excerpt {
    color: #7f8c8d;
    margin-bottom: 15px;
  }

  .card-date {
    font-size: 0.9rem;
    color: #95a5a6;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .first-horizontal-card-art {
      flex-direction: column;
      width: 100%;
    }

    .img-date-wrapper-art {
      display: flex;
      flex-direction: row;
      align-items: start;
      background: #373636;
      color: white;
      width: 100%;

    }

    .card-content-art {
      padding: 20px;
      width: 100%;

    }

    .actualites-section-title-art {

      font-size: 1.5rem;
      margin-bottom: 0;

    }

    .vertical-cards-container {
      grid-template-columns: 1fr;
    }
  }






/* dashboard.css */
.welcome-section {
  padding: 3rem 2rem;
  text-align: center;
}

.welcome-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.welcome-section p {
  font-size: 1.2rem;
  color: #555;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.quick-links {
  padding: 1rem;
  padding-left: 0.5;
  padding-right: 0.5;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
 gap: 1px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.quick-link-admin{
padding: 1rem;
background-color: #fff;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quick-link, .quick-link-admin {
  background-color: #e9f0f9;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  width: 250px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-link:hover, .quick-link-admin:hover {
  background-color: #d0e3f5;
  transform: translateY(-5px);
}

.quick-link h3, .quick-link-admin h3 {
  font-size: 1.2rem;
  color: #004080;
  margin-bottom: 0.5rem;
}
.gestion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;

}

.gestion-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gestion-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

/* Nouvelle classe stylisée pour les liens */
.panel-entry {
  display: block;
  padding: 0.75rem 1rem;
  background-color: #f0f4f8;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.panel-entry:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive : 2 colonnes sur tablette, 1 sur mobile */
@media (max-width: 1024px) {
  .gestion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gestion-grid {
    grid-template-columns: 1fr;
  }
}


.logout-section {
  margin: 2rem auto;
  text-align: center;
}

.logout-btn {
  padding: 0.6rem 1.2rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #bb2d3b;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;

}


.popup_gestion {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  overflow-y: auto;

}

.hidden-dash {
  display: none;
}

.close-btn-dash {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: #eee;
  padding: 10px;
  border: none;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.accordion-header:hover {
  background-color: #ddd; /* Couleur plus foncée au survol */
}

.accordion-header .arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 15px;
  border-top: 1px solid #ccc;
  text-align: justify;

}

.accordion-content.open {
  display: block;
}

.accordion-content.active {
  display: block;
}
.accordion-header.open .arrow {
  transform: rotate(180deg);
}

.accordion-content i{
  color: #27ae60;
  padding-right: 5px;
}
.half-width {
  flex: 1 1 calc(50% - 0.5rem);
  text-align: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.half-width:hover {
  background: #e6f3ff;
}



/* Tablette : jusqu'à 1024px */
@media screen and (max-width: 1024px) {

  .quick-link, .quick-link-admin {
   margin-bottom: 5px;
  }
  .popup {
    width: 95%;
    max-height: 90vh;
    padding: 16px;
  }

  .accordion-header {
    font-size: 16px;
    padding: 8px;
  }

  .accordion-content {
    font-size: 14px;
    padding: 8px;
  }

  .close-btn-dash {
    font-size: 20px;
    top: 8px;
    right: 12px;
  }
}


.popup form {
  display: flex;
  flex-direction: column;
}

.popup form label {
  margin-top: 10px;
  font-weight: bold;
}

.popup form input {
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  width: 100%;
}


/* Mobile : jusqu'à 768px */
@media screen and (max-width: 768px) {
  .quick-link, .quick-link-admin {
    margin-bottom: 5px;
   }
  .popup {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 14px;
    overflow-y: auto;
  }

  .popup h3 {
    font-size: 18px;
  }

  .popup form label,
  .popup form input,
  .popup form textarea,
  .popup form button {
    width: 100%;
    font-size: 14px;
  }

  .accordion-header {
    font-size: 15px;
  }

  .accordion-content {
    font-size: 13px;
  }

  .close-btn-dash {
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
}









/* incription.css */


.form-container {
  width: 500px;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 10px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.form-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #555;
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}



.form-button:hover {
  background-color: #45a049;
}









/* Reset email */

.reset-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f0f2f5;
}
.reset-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}


.reset-form {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}


.reset-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}


.reset-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}


.reset-button {
  width: 100%;
  padding: 12px;
  background-color: #4caf50;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reset-button:hover {
  background-color: #43a047;
}









/* admin.css */
.preview-img-wrapper {
  position: relative;
  margin-right: 10px;
  margin-bottom: 10px;
  display: inline-block;
}


.remove-image-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  line-height: 18px;
  padding: 0;
}




.admin-section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  margin-top: 30px;
}

.admin-project-form {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.admin-card-block {
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  background-color: #fcfcfc;
}

.admin-card-title {
  font-size: 1.6rem;
  color: #34495e;
  margin-bottom: 1rem;
}

.admin-label {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
}

.admin-input-text,
.admin-input-date,
.admin-input-file,
.admin-textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s;
}

.admin-input-text:focus,
.admin-input-date:focus,
.admin-textarea:focus {
  border-color: #4caf50;
  outline: none;
}

.admin-textarea {
  resize: vertical;
  min-height: 100px;
}

.admin-button-group {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.admin-btn-add {
  background-color: #3498db;
  color: white;
}

.admin-btn-add:hover {
 background-color: #4caf50;
}

.admin-btn-save {
  background-color: #27ae60;
  color: white;
}

.admin-btn-save:hover {
  background-color: #1e8449;
}



/* css js admin */

.modif{
color: green;
align-items: center;
margin-left: 20px;
}

.suprim{
  color: red;
  align-items: center;
  margin-left: 25px;
  }

  .ajout{
    background-color: green;
    margin-bottom: 20px;
    margin-left: 84%;
  }

  .ajout:hover{
  background-color: #4caf50;

  }


  .ajout-projet, .ajout-actu{
   background-color: #4caf50;
    margin-bottom: 20px;
    margin-left: 80%;
  }

  .ajout-projet:hover, .ajout-actu:hover {
   background-color: #4caf50;

  }
  .formulaire{
    width: 70%;
    margin: auto;
    margin-top: 20px;
  }

  .btn-primary{
  background-color: #4caf50;
    color: #ffffff;
    border-color: black;

      }

  .btn-primary:hover{
background-color: #1a1a1a;
color: #ffffff;
border-color: black;
  }

  .alerte{
    color: red;
    font-weight: bold;
    margin-bottom: 50px;
  }
.panneau_sup{
  display: none;
  position: absolute;
  top: 50vh;
  left: 70%;
  height: 25vh;
  background-color: white;
  border-color: #333;
  border-style: solid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.texte_sup{
  width: 80%;
  margin: auto;
  text-align: center;
}
.btn_sup{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.btn_oui_non{
  color: white;
  background-color: firebrick ;
  padding: 5px;
  margin: 10px;
  width: 40%;
  text-align: center;
  transition:0.4s;
  text-decoration: none;
}

.btn_oui_non:hover{
  color:  firebrick;
  background-color: white;

}







/* css actualités */
/* Styles généraux */


.actualites-section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.actualites-section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #555;
  line-height: 1.6;
}

/* Première carte horizontale */
.first-horizontal-card {
  display: flex;
  background: white;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto 4rem;
  max-width: 1280px;
  transition: transform 0.3s ease;
  height: 500px;
  flex-wrap: wrap;
  display: flex;
  gap: 1rem;
  align-items: center;
}



.first-card-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}





.first-card-media {
  flex: 1;
  height: 500px;


}

.first-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;

}

.first-card-media img:hover {
 transform: scale(1.05) rotateZ(0.2deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}





.first-card-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  line-height: 1.3;
}

.first-card-text {
  padding-right: 0.5em;
  flex-grow: 1;
  margin-bottom: 5px;
  color: #555;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  font-size: 1.1rem;
  scrollbar-width: thin;
  overflow: auto;
  max-height: 200px; /* Limite l'affichage */
}
.first-card-text::-webkit-scrollbar {
  width: 6px;
}
.first-card-text::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}



/* Conteneur des cartes verticales */
.vertical-cards-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}



/* Cartes verticales */
.vertical-card {

  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;

  transition: all 0.3s ease;
  flex: 1 1 calc(50% - 1rem); /* deux cartes côte à côte par défaut */


  box-sizing: border-box;
}
.vertical-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vertical-card:hover {
  transform: translateY(-05px) scale(1.03);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.vertical-card-media {
  aspect-ratio: 16 / 9; /* ou autre ratio souhaité */
  overflow: hidden;
}

.vertical-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.vertical-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.vertical-card-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  line-height: 1.3;
}

.vertical-card-text {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  max-height: 300px; /* Limite d'affichage */
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}
.vertical-card-text::-webkit-scrollbar {
  width: 6px;
}
.vertical-card-text::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.date {
  color: #7f8c8d;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .first-card-content {
    padding: 2rem;
  }

  .first-card-title {
    font-size: 1.6rem;
  }

  .vertical-card-media {
    height: 250px;
  }
}

@media (max-width: 992px) {
  .first-horizontal-card {
    flex-direction: column;
  }

  .first-card-media {
    min-height: 300px;
    order: -1;
  }

  .vertical-cards-row {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .vertical-card-media {
    height: 300px;
  }
}




@media (max-width: 768px) {

  .vertical-card {
    flex: 1 1 100%;
    width: 100%;
  }
  .first-horizontal-card {
    flex-direction: column;
    height: auto;
    align-items: stretch;
    padding: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .first-card-content {
    padding: 1.5rem;
  }
  .first-horizontal-card {
    flex-direction: column;
    height: auto; /* hauteur auto pour s’adapter */
    align-items: stretch;
  }

  .first-horizontal-card .first-card-content,
  .first-horizontal-card .first-card-media {
    width: 100%;
  }

  .first-horizontal-card .first-card-media img {
    width: 100%;
    height: auto;
  }

  .vertical-card-content {
    padding: 1.5rem;
  }

  .first-card-title {
    font-size: 1.4rem;
  }

  .vertical-card-title {
    font-size: 1.3rem;
  }
}





/* popup actualité accueil */

.custom-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

}

.custom-modal-content {
  background: white;
  padding: 02px;
  border-radius: 16px;
  width: 100%;

  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  text-align: justify;
}
.custom-modal-content h3{
  font-size: 20px;
  text-align: center;
}
.custom-modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 10px;
}

.custom-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}








/* projet.css */

/* --- Timeline des projets récents --- */
.main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;

}

/* Titles */
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1e3a8a;
}

/* ---------------- TIMELINE ---------------- */
#timeline-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  border-left: 3px solid #1e3a8a;
  border-right: 3px ;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 80px;
  background-color: white;
}


.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  justify-content: space-between;
}


.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: #1e3a8a;
  border-radius: 50%;
}

.timeline-img img {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}


.timeline-item h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
  text-align: center;
}

.timeline-item p {
  margin: 5px 0;
  font-size: 0.95rem;
  text-align: justify;
}

.timeline-text {
  max-width: 600px;
}

.timeline-item time {
  font-size: 0.85rem;
  color: #64748b;
}
.timeline-item.right-img {
  flex-direction: row-reverse;
}

/* ---------------- SEARCH ---------------- */
#search-projects {
  width: 100%;
  padding: 10px 15px;
  font-size: 1rem;
  margin-bottom: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

/* ---------------- ACCORDION ---------------- */
#projects-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #1e3a8a;
}

.accordion-header-projet {
  background: #e2e8f0;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #1e293b;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header-projet:hover {
  background: #cbd5e1;
}

.accordion-body-projet {
  display: none;
  padding: 15px 20px;
  background: #fff;
}

.accordion-body-projet.open {
  display: block;
}

.accordion-img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  float: left;
  margin: 0 20px 10px 0;
  border-radius: 6px;
  object-fit: cover;
}

.accordion-body-projet p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  text-align: justify;
  align-items: center;
}


/* Responsive */
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-img {
    width: 100%;
    height: auto;
  }

  .accordion-img {
    float: none;
    width: 100%;
    margin: 0 0 15px 0;
  }
}



/* mentions légales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
}



.legal-header {
  background: #373636;
  color: white;
  padding: 5rem 0;
  margin-bottom: 3rem;
  text-align: center;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

.legal-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title-legal {
  color: var(--primary-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.section-title-legal p{
  text-align: justify;
}

.section-title-legal i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.highlight-legal {
  color: var(--accent-color);
  font-weight: 600;
}