/* RESET GÉNÉRAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}


:root {
  --primary-color: #6c63ff;
  --secondary-color: #ffffff;
  --dark-color: #1c1c1c;
  --text-color: #333;
  --gray-color: #f0f0f0;

  --title-lg: 2.5em;
  --title-md: 1.8em;
  --title-sm: 1.2em;
}

/* HEADER */
header {
  background-color: #f7f6ff;
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* NAV */
header nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 24px;
}

/* Conteneur du logo */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80px;
  /* la hauteur du header */
  overflow: hidden;
}

/* Le logo lui-même */
.logo-container img {
  height: 80px;

  width: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  header nav a {
    font-size: 18px;
    margin: 8px;
  }

  .logo-container img {
    height: 90px;
  }
}


/* HERO SECTION */
.hero {
  position: relative;
  height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/Page-daccueil.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  transition: background-image 1s ease-in-out;
  padding: 0 20px;
  /*le texte touche les bords sur mobile */

}

.hero h1 {
  font-size: 4em;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeUp 1.5s ease-out forwards;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  animation: fadeUp 2s ease-out forwards;
}

.hero a.button {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 20px 35px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: fadeUp 2.5s ease-out forwards;
}

.hero a.button:hover {
  transform: scale(1.05);
  background-color: #eee;
}


.animate-text {
  animation: fadeSlide 0.7s ease-in-out;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ANIMATION */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3em;
  }

  .hero p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero p {
    font-size: 1em;
  }

  .hero a.button {
    padding: 15px 25px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 0.95em;
  }

  .hero a.button {
    padding: 12px 20px;
    font-size: 0.95em;
  }
}

/*button slide */
/* Glass-style Buttons with modern arrows */
.slider-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  transform: translateY(-50%);
  z-index: 3;
}

.slider-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: black;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Modern Arrow Icons */
.arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.left {
  transform: rotate(-135deg);
}

.right {
  transform: rotate(45deg);
}



/* SECTION QUI SOMMES-NOUS */
.texte-indente {
  text-indent: 1.8em;
  
}

.about {
  display: flex;
  justify-content: center;
  padding: 50px 5px;
  background-color: #fff;
}

.about-box {
  background-color: #f9f9f9;
  border-radius: 70px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.about-box h4 {
  font-size: 2.5em;
  font-weight: bold;
  margin: 30px 0 20px;
  text-align: left;
  padding-left: 5%;

  color: #333;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
  font-size: 1.3em;
  line-height: 1.7;
  color: #444;
  text-align: justify;

}

.about-img {
  flex: 1.3;
}

.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-box h4 {
    font-size: 2em;
    text-align: center;
    padding-left: 0;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .about-text,
  .about-img {
    flex: 1 1 100%;
    width: 100%;
    padding: 0 10px;
  }

  .about-img img {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .about-box h4 {
    font-size: 1.8em;
  }

  .about-text p {
    font-size: 1em;
  }
}

@media (min-width: 769px) {
  .about-text {
    padding: 0 50px;
    /* Espace plus large sur desktop */
  }
}



/* SECTION POURQUOI NOUS CHOISIR */
.why-choose {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;

}

.why-choose h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.why-choose p {
  color: #414141;
  font-size: 1.3em;
  margin-bottom: 50px;

}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  align-items: stretch;
}

.feature-card {
  background-color: #f8f8ff;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 60px 40px;
  width: 360px;
  /*  Taille fixe */
  height: 420px;
  /*  Hauteur fixe (ajuste selon le contenu) */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 10px;
  /*  Espacement régulier autour des cartes */
  box-sizing: border-box;
  /*  Inclus padding dans la taille */

}


.feature-card:hover {
  transform: translateY(-5px);
  background-color: #e0e0ff;
  cursor: pointer;
}

.feature-card i {
  font-size: 2.3em;
  margin-bottom: 30px;
  color: #000;
}

.feature-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.feature-card p {
  font-size: 1.2em;
  color: #444;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: normal;
}

@media screen and (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* Réduit l'espacement entre les cartes */
  }

  .feature-card {
    margin: 0 auto;
    /* Centre horizontalement */
    width: 90%;
    /* Prend presque toute la largeur sur mobile */
    max-width: 350px;
    /* Garde une limite */
  }
}


/* Section générale : marge intérieure et fond blanc */
.formations {
  padding: 50px 20px;
  background-color: #ffffff;
  text-align: center;
  /* Centrer tout le contenu */
}

/* Conteneur central pour limiter la largeur */
.formations-box {
  max-width: 1200px;

  margin: 0 auto;
  /* Centrer horizontalement */
}

/* Titre principal */
.formations h2 {
  font-size: 2.7em;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Texte de description en-dessous du titre */
.formation-subtitle {
  font-size: 1.4em;
  color: #444;
  margin-bottom: 90px;
}

/* Grille des cartes de formation */


.formation-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* Permet de passer à la ligne si l'écran est petit */
  gap: 70px;
  /* Espacement entre les cartes */
  margin-top: 20px;
  /*  espace avec le titre */
  margin-bottom: 40px;


}

/* Style de chaque carte de formation */
.formation-card {
  width: 350px;
  /* même largeur pour toutes les cartes */
  text-align: center;
  background: rgb(249, 249, 249);
  padding: 60px 20px;
  border-radius: 9px;

  box-shadow: 0 4px 20px rgba(240, 240, 240, 0.1);
}

/* Image de la carte : taille, coins arrondis et ombre */
.formation-card img {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Titre de chaque carte */
.formation-card h4 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}



/* Animation à l'apparition */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideUp 0.8s ease forwards;
}

/* Animation au survol (hover zoom) */
.formation-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.formation-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 
   SECTION : FORMATIONS EN GRILLE  derniere partie
   */
.formation-grid {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: 40px 20px;
  background-color: #fff;
}

/* Pour chaque bloc */
.formation-ithem {
  width: 100%;
}

/* Ligne image + texte */
.formation-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
}

/* Bloc image */
.formation-img-text {
  position: relative;
  flex: 1;
  min-width: 300px;
  height: 600px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.formation-img-text img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  max-height: 600px;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  padding: 0 10px;
  line-height: 1.4;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Bloc texte */
.formation-description {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  font-size: 1.1em;
  color: #333;
}

.formation-description h1 {
  font-size: 1.6em;
  text-align: center;
}

.formation-description p {
  font-size: 1.4em;
  line-height: 1.6;
  text-align: justify;
  color: #333;
  margin-bottom: 20px;
}

.inscrire-btn {
  display: inline-block;
  align-self: center;
  padding: 12px 40px;
  background-color: #f0f0ff;
  color: black;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.inscrire-btn:hover {
  background-color: #e0e0ff;
  transform: scale(1.05);
  cursor: pointer;
}


@media screen and (max-width: 768px) {
  .technicien-bloc .formation-item {
    flex-direction: column-reverse;
  }
}



@media screen and (max-width: 992px) {
  .formation-item {
    flex-direction: column;
    align-items: center;
  }

  .formation-img-text {
    aspect-ratio: 4 / 3;
  }

  .overlay-text {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 600px) {
  .formation-img-text {
    aspect-ratio: 1 / 1;
  }

  .overlay-text {
    font-size: 1.5em;
  }

  .formation-description p {
    font-size: 1em;
  }

  .inscrire-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}

/* RESPONSIVE POUR TRÈS PETITS ÉCRANS < 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 0.95em;
  }

  .hero a.button {
    padding: 15px 25px;
    font-size: 0.95em;
  }

  .about-box h4 {
    font-size: 1.8em;
    padding-left: 5%;
  }

  .feature-card {
    padding: 30px 15px;
  }

  .feature-card h3 {
    font-size: 1.2em;
  }

  .formation-card {
    width: 90%;
  }

  .formation-description h4 {
    font-size: 1.3em;
  }

  .formation-description p {
    font-size: 1.1em;
  }

  .inscrire-btn {
    padding: 10px 30px;
    font-size: 1em;
  }

  .overlay-text {
    font-size: 1.5em;
  }

  .contact-section h2 {
    font-size: 1.8em;
  }
}

/* Animation à l'apparition */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideUp 0.8s ease forwards;
}

/* Animation quand la souris passe sur une carte */
.formation-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.formation-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


/* SECTION CONTACTEZ-NOUS */
.contact-section {
  background-color: #f2f2ff;
  text-align: center;
  padding: 60px 20px;

}

.contact-section h2 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #333;
}

.contact-box {
  background-color: #000;
  color: white;
  border-radius: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;

}

.contact-box h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-box ul {
  list-style: none;
  padding: 0;
  text-align: center;


}

.contact-box li {
  margin-bottom: 15px;
  font-size: 1em;
}

.contact-box a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: justify;
}

.contact-box a:hover {
  color: #d8d8ff;
  /* Changement de couleur au survol */
}

/* FOOTER */
.main-footer {
  background-color: #000;
  color: white;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 50px;
  font-family: 'Poppins', sans-serif;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}

.footer-col h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col li {
  font-size: 0.95em;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: white;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}




/* RESPONSIVE GLOBAL POUR ÉCRANS MOINS DE 768px */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  header nav a {
    font-size: 20px;
    margin: 10px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
    padding: 0 20px;
  }




  .features {
    flex-direction: column;
    gap: 40px;
  }

  .formation-cards {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .formation-grid {
    gap: 40px;
  }

.formation-img-text {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 600px;
}
  .formation-description,
  .formation-img-text {
    width: 100%;
  }

  .formation-img-text {
    height: 300px;
  }

  .overlay-text {
    font-size: 1.8em;
    padding: 0 10px;
  }

  .contact-box {
    width: 100%;
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 2em;
  }

  .main-footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-col {
    margin: 10px 0;
  }
}
