.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Assure qu'il passe au-dessus des autres éléments */
  background-color: #012767; /* Nécessaire pour éviter la transparence */
}




/* Applique une police propre et enlève marges/paddings */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white ; /* Fond général */
  color: #ffbd59; /* Couleur du texte principal */
}


/* Sections du site (accueil, services, contact) */
section {
  padding: 1rem;
  border-bottom: 2px solid #ddd;
}

/* Titres de section */
section h2 {
  color: #012767;
}

/* Style des champs de formulaire */
form input,
form textarea {
  display: block;
  margin: 10px 0;
  padding: 8px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Style du bouton envoyer */
button {
  padding: 10px 20px;
  background-color: #012767;
  color: #ffbd59;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #001c4e;
}

/* Pied de page centré */


.carousel-container {
  width: 100%;
  overflow: hidden;
  background-color: #001c4e;
  padding: 20px 0;
}

.carousel-slider {
  display: flex;
  width: max-content;
  animation: defilement-logos 25s linear infinite;
}

.carousel-slider img {
  height: 80px;
  margin: 0 20px;
  transition: transform 0.3s;
}

.carousel-slider img:hover {
  transform: scale(1.1);
}

@keyframes defilement-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* Section hero avec image de fond */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 60px 40px;
  background-color: #f5f5f5;
}

.hero-left {
  flex: 1;
  max-width: 50%;
}

.hero-left h2 {
  font-size: 2em;
  color: #012767;
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #444;
}

.hero-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color:  #012767;
  color: #ffbd59;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  z-index: 3;
  position: relative;
}

.hero-cta:hover {
  background-color: #e0a842;
}

.hero-right {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
}

.hero-right img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
}

@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }

  .hero-left, .hero-right {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-left h2 {
    font-size: 1.6em;
  }

  .hero-left p {
    font-size: 1em;
    line-height: 1.4;
  }

  .hero-cta {
    font-size: 0.95em;
    padding: 10px 20px;
  }

  .hero-right img {
    max-width: 85%;
    height: auto;
    margin-top: 20px;
  }

  .hero-left, .hero-right {
    margin-bottom: 20px;
  }
}  



/*horizontal timeline étudier*/
.timeline-horizontal {
  background-color: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
}

.timeline-horizontal h2 {
  color: #012767;
  margin-bottom: 40px;
  font-size: 1.8rem;
}

/*lien référencer mon etab*/

/* Conteneur de la frise bien centré et ajusté */
.timeline-container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  position: relative;
  padding: 20px 0;
}

/* Barre horizontale centrée derrière les icônes */
.timeline-container::after {
  content: '';
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #d4a017;
  z-index: 1;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 48px;
  right: -10px; /* légère sortie à droite */
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #d4a017; /* même couleur que la ligne */
  z-index: 1;
}

/* Étape individuelle */
.timeline-step {
  text-align: center;
  flex: 0 1 130px;
  position: relative;
  z-index: 2;
}

/* Icône */
.icon-timeline {
  width: 80px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1px;
  position: relative;
  top: -55px; /* soulève l’image au-dessus de la barre */
  z-index: 3;
  transition: transform 0.3s ease;
}

.icon-timeline:hover {
  transform: scale(1.1);
}

/* Texte */
.timeline-step p {
  font-size: 0.9rem;
  margin-top: -20px;
  color: #012767;
}

@media screen and (max-width: 1000px) {
  .timeline-container {
    flex-direction: column;
    align-items: center;
  }

  .timeline-container::after {
    display: none;
  }

  .timeline-step {
    margin-bottom: 30px;
  }
}


/*avantage pour les écoles */
.tudize-avantages-ecoles {
  background-color: f5f5f5;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #012767;
}

.avantages-title {
  text-align: left;
  margin-left: 30px;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 30px;
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.avantage-etape {
  background-color: white;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.avantage-etape:hover {
  transform: translateY(-5px);
}

.etape-num {
  background-color: #012767;
  color: white;
  font-weight: bold;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 35px;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.avantage-etape p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/*tudize partenaires in stitutionelles*/
.tudize-partenaires-logos {
  padding: 120px 60px;
  background-color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.tudize-partenaires-title {
  font-size: 30px;
  color: #012767;
  margin-bottom: 40px;
  text-align: left;
  margin-left: 40px;
}

.tudize-partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.tudize-partenaire-card {
  background-color: #f5f5f5ff;
  border-radius: 12px;
  border: 2px solid #012767;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.tudize-partenaire-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.tudize-partenaire-card img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}



/* parcours d'installation*/
.parcours-installation-serpentine {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.parcours-installation-serpentine h2 {
  color: #012767;
  font-size: 2em;
  margin-bottom: 60px;
  text-align: center;
  /* <-- Supprimé le décalage négatif */
   /* Un petit padding si tu veux un léger retrait */
}
.timeline-serpentine {
  position: relative;
  padding: 40px 0;
}

.timeline-serpentine::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #012767;
  transform: translateX(-50%);
}

.step {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.step.left {
  left: 0;
  text-align: right;
}

.step.right {
  left: 50%;
  text-align: left;
}

.step .install-card {
  position: relative;
  background: white;
  border: 2px solid #012767;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: inline-block;
  max-width: 400px;
  transition: transform 0.3s ease;
}

.step .install-card:hover {
  transform: translateY(-5px);
}

.step::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #012767;
  border: 4px solid white;
  border-radius: 50%;
  z-index: 2;
}

.step.left::before {
  right: -10px;
}

.step.right::before {
  left: -10px;
}

.install-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.install-card h3 {
  color: #012767;
  font-size: 1.2rem;
  margin: 10px 0 5px;
}

.install-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .parcours-installation-serpentine h2 {
    font-size: 1.6em;
    text-align: center;
    padding-left: 0;
    margin-bottom: 40px;
  }
  .step, .step.left, .step.right {
    width: 100%;
    text-align: center;
    left: 0;
  }

  .timeline-serpentine::before {
    left: 20px;
  }

  .step::before {
    left: 12px;
  }

  .step .install-card {
    margin: 0 auto;
  }
}



/*texte notre histoire style*/
.notre-histoire {
  background-color:#f5f5f5 ;
  padding: 60px 20px;
}

.container-histoire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.texte-histoire {
  flex: 1 1 500px;
  font-family: 'Segoe UI', sans-serif;
  color: #012767;
}

.texte-histoire h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #0e2450;
}

.texte-histoire p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.image-histoire {
  flex: 1 1 400px;
  text-align: center;
}

.image-histoire img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* style partie 2 qui sommes nous*/
.tudize-valeurs-mission {
  background-color:#f5f5f5 ;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.tudize-container-valeurs, .tudize-container-mission {
  max-width: 1200px;
  margin: auto;
  margin-bottom: 50px;
  text-align: center;
}

.tudize-container-valeurs h2,
.tudize-container-mission h2 {
  color: #012767;
  font-size: 32px;
  margin-bottom: 30px;
}

.tudize-valeurs-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.tudize-card {
  background-color:#f5f5f5 ;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid  #012767;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tudize-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.tudize-card h3 {
  color: #0e2450;
  margin-top: 15px;
}

.tudize-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.tudize-icon img {
  width: 50px;
  height: 50px;
}

.tudize-mission-texte p {
  font-size: 20px;
  color: #012767;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* service section title*/
.services-title {
  text-align: center;
  font-size: 25px;
  margin-bottom: 40px;
  color: #012767;
  font-family: 'Segoe UI', sans-serif;
}


/*formulaire style */
/* Style des cases à cocher dans le formulaire */

form p {
  margin-top: 20px;
  font-weight: bold;
  color: #012767;
}

form label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #012767;
}

form input[type="checkbox"] {
  accent-color: #012767; /* Couleur personnalisée */
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
/* Animation de zoom quand on coche une case */
form input[type="checkbox"] {
  accent-color: #012767;
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

form input[type="checkbox"]:checked {
  transform: scale(1.2);
}

/* Masque les sections dynamiques par défaut */
.hidden {
  display: none;
}

.dynamic-section {
  margin-top: 15px;
  padding: 10px;
  border-left: 3px solid #012767;
  background-color: #f2f2f2;
}

/* Responsive mobile */
@media screen and (max-width: 600px) {
  form input,
  form select,
  form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

}





.temoignage-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 1px 0;
  background-color: #f5f5f5;
}

.temoignage-carousel-slider {
  display: flex;
  width: max-content;
  animation: defilement-temoignages 40s linear infinite;
  gap: 10px;
}

.temoignage-card {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: white;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}

.temoignage-photo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #012767;
}

.temoignage-card p {
  font-style: italic;
  color: #333;
  font-size: 0.75em;
  margin-bottom: 10px;
}

.temoignage-card strong {
  color: #012767;
  font-size: 0.8em;
}

.temoignage-carousel-container:hover .temoignage-carousel-slider,
.temoignage-carousel-container:active .temoignage-carousel-slider {
  animation-play-state: paused;
}

@keyframes defilement-temoignages {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .temoignage-carousel-container {
    width: 90vw;                /* prend toute la largeur de l'écran */
    margin-left: -50px;          /* compense le padding éventuel du body */
    padding: 1px 0;
  }

  .temoignage-carousel-slider {
    gap: 16px;                   /* un peu plus d'espace entre les cartes */
    padding-left: 10px;
    padding-right: 10px;
  }

  .temoignage-card {
    flex: 0 0 60vw;              /* chaque carte prend ~85% de la largeur */
    max-width: 60vw;
  }
}



/*section post présentation*/
.section-tudize {
  text-align: center;
  padding: 60px 20px;
  background-color: white;
}

.section-tudize .intro-phrase {
  color: #ffbd59;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.section-tudize h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #012767;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.section-tudize .trait {
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 3px;
  background-color: #ffbd59;
  margin-right: 15px;
}

.section-tudize .highlight {
  background-color:#012767;
  color: #ffbd59;
  padding: 0 6px;
  border-radius: 2px;
}

.section-tudize .description {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}



.services-tudize {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.service-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 280px;
  padding: 30px 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.service-card img {
  width: 40px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.service-card h3 {
  margin: 0 0 10px;
  color: #012767;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.service-card.active {
  border: 2px solid #ffbd59;
  position: relative;
}

.service-card.active::after {
  content: "→";
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: white;
  background-color: #ffbd59;
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 0 0 5px 0;
}



/*section Timeline s'installer en france*/

.timeline-container {
  padding: 30px 20px;
  background-color: #f5f5f5;
  font-family: Arial, sans-serif;
}

.timeline-container h2 {
  color: #012767;
  border-left: 5px solid #e0a842;
  padding-left: 10px;
  margin-bottom: 20px;
}

.timeline-container .intro {
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  margin-left: 30px;
  border-left: 4px solid #e0a842;
}

.timeline-step {
  position: relative;
  margin-bottom: 40px;
  padding-left: 25px;
}

.timeline-step .dot {
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #012767;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.timeline-step h3 {
  color: #012767;
  margin-bottom: 10px;
}

.timeline-step ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.timeline-step ul li {
  margin-bottom: 5px;
}

/*section services,(notre équipe) */

.services-section {
  display: flex;
  gap: 40px;
  padding: 60px 10%;
  background: linear-gradient(to right, #f5f5f5, #f5f5f5);
  justify-content: center;
  flex-wrap: wrap;
}

.service {
  background-color: white;
  border-radius: 16px;
  border: 2px solid #012767;
  padding: 30px;
  flex: 1 1 200px;
  max-width: 300px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
}

.icon {
  width: 150px;
  margin-bottom: 15px;
   border-radius: 16px; /* Arrondit les coins */
}


h3 {
  color: #012767;
  margin-bottom: 15px;
}

.btn-contact {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #012767;
  color: #e0a842;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: #0140a3;
}


/* Pied de page centré */

.tudize-footer {
  background-color: #012767;
  color: white;
  padding: 60px 20px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 220px;
  margin: 20px;
}

.footer-col h4 {
  border-left: 4px solid #ffffff;
  padding-left: 10px;
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
}


.footer-col p {
  color: #f5f5f5;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 10px;
}

.footer-slogan {
  font-style: italic;
  font-size: 14px;
  margin-bottom: -30px;
}

.footer-address,
.footer-contact,
.footer-email {
  font-size: 14px;
  margin: 5px 0;
}

.footer-social a img {
  width: 26px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.footer-social a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  border-top: 1px solid #fff2;
  padding-top: 15px;
}

.footer-bottom a {
  color: #e0a842;
  text-decoration: none;
}
