* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* empêche le scroll horizontal */
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ----- HEADER ----- */
.header {
  background-color: #1F3061;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* IMAGE HERO FIXE */
#hero {
  height: 550px;                 /* hauteur du "trou" */
  background-image: url('images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* fixe l'image pendant le scroll */
  width: 100%;
}

#hero-box {
  position: absolute;                /* positionné par rapport au hero */
  top: 50%;                          /* milieu vertical du hero */
  left: 50%;                         /* milieu horizontal */
  transform: translate(-100%, -50%);  /* centre parfaitement */
  max-width: 600px;
  height: 200px;
  background-color: #1F3061;         
  color: white;
  padding: 40px;
  text-align: center;
 
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 10;
 
}

#hero-box h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

#hero-box p {
  font-size: 1rem;
}



.bandeau {
  background-color: #1F3061; /* couleur bleu foncé comme sur l'image */
  color: #fff;               /* texte blanc */
  padding: 3rem 2rem;
  text-align: center;
}

.bandeau-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bandeau-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}





.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.logo-img {
  height: 200px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  font-weight: 500;
  font-size: 20px;
}

.nav-link:hover {
  text-decoration: underline;
}

/* ----- CONTACT ----- */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #1F3061;
  margin-bottom: 3rem;
}

.service-item {
  display: flex;
  align-items: start;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap; /* responsive */
}

.service-images {
  flex: 1;
  max-width: 500px;
  height: 350px;
  overflow: hidden;
  border: 2px solid #1F3061;
  position: relative;
  margin-top: 0px;
}

.image-slider {
  display: flex;
  height: 100%; /* prend toute la hauteur de .service-images */
  align-items: center; /* centre verticalement les images */
  animation: slideImages 8s linear infinite;
}

.image-slider img {
  width: 100%;
  height: 100%; /* force les images à remplir la hauteur */
  object-fit: cover; /* garde le ratio sans déformer */
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.service-text {
  flex: 1;
  min-width: 250px;
}

.service-text h1 {
  color: #1F3061;
  margin-bottom: 1rem;
}

.service-text h2 {
  color: #1F3061;
  margin-bottom: 1rem;
}

.service-text p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-text ul {
  padding-left: 1.2rem;
  margin: 0;
  color: #333;
}

.service-text ul li {
  margin-bottom: 0.5rem;
}

.line {
  height: 2px;
  background-color: #1F3061;
  width: 60px;
  margin: 1rem 0;
}

/* ----- ANIMATION SLIDER ----- */
@keyframes slideImages {
  0% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  75% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
  .service-item {
    flex-direction: column;
    gap: 1.5rem;
  }

  .service-images {
    max-width: 100%;
  }
}

.qualif-images {
  display: flex;
  justify-content: center;       /* centre sur grand écran */
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;               /* par défaut elles passent en ligne si besoin */
}

.qualif-images img {
  max-width: 250px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  display: block;            /* évite les petits décalages inline */
}

.qualif-images img:hover {
  transform: translateY(-10px);
  border-color: #1F3061;
}


.qualite-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 colonnes sur PC */
  gap: 1.5rem;
  justify-items: center;  /* centre les images dans chaque case */
}

.qualite-grid img {
  max-width: 250px;
  height: auto;

  transition: transform 0.3s ease, border-color 0.3s ease;
}

.qualite-grid img:hover {
  transform: translateY(-10px);
  border-color: #1F3061;
}


  
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  justify-content: center;
}

.contact-form .form-group {
  display: flex;
  justify-content: center; /* centre horizontalement */
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #1F3061; /* contour bleu foncé */
  border-radius: 0;          /* coins carrés */
  font-size: 1rem;
  resize: vertical;
  background: #fff;
  outline: none; /* enlève le halo par défaut */
}


.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3c6aff;     /* bleu clair quand on clique dedans */
  box-shadow: 0 0 4px rgba(60,106,255,0.5); /* léger glow bleu */
}

.contact-form textarea {
  min-height: 150px;
}

.form-submit {
  text-align: center;
}

.contact-form button {
  background-color: #1F3061;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #3c4d91;
}

/* ----- FOOTER ----- */
.footer {
  background-color: #1F3061;
  padding: 2rem 3rem;
  font-size: 0.9rem;
  color: #ffffff;
  border-top: 1px solid #eee;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* ----- TOAST NOTIFICATION ----- */
.toast {
  position: fixed;
  top: 20px;
  left: 10%;
  background: #4caf50;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-size: 16px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #f44336;
}



.mentions-legales {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.mentions-legales h2 {
  text-align: center;
  color: #1F3061;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.mentions-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mentions-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mentions-col {
  flex: 1;
  min-width: 250px;
}

.mentions-col h3 {
  color: #1F3061;
  margin-bottom: 0.5rem;
}

.mentions-col p, 
.mentions-col a {
  color: #333;
  line-height: 1.5;
  font-size: 1rem;
}

.mentions-col a {
  color: #1F3061;
  text-decoration: underline;
}
/* ----- RESPONSIVE ----- --------------------------------------------TABLETTE*/
@media (max-width: 992px) {
  .logo-img {
    height: 120px;
  }

  .nav-link {
    font-size: 18px;
  }
}
/* ----- RESPONSIVE ----- --------------------------------------------SMARTPHONE*/
@media (max-width: 600px) {


  .logo-img {
    height: 100px;
  }



  .contact-form {
    width: 90%;
    padding: 0 1rem;
  }

  .footer-content {
    flex-direction: column;  /* éléments empilés verticalement */
    text-align: center;       /* texte centré */
    gap: 1rem;               /* espace entre chaque élément */
  }

  .footer-left,
  .footer-right {
    flex-direction: column;  /* texte et liens à la verticale */
    align-items: center;     /* centrer horizontalement */
    gap: 0.5rem;             /* espacement plus serré pour mobile */
  }

  .footer-right a {
    display: block;           /* chaque lien sur une ligne */
  }

  .footer-left img {
    margin-bottom: 1rem;
    max-width: 150px;
  }



  #hero-box {
  position: absolute;                /* positionné par rapport au hero */
  transform: translate(-50%, 20%);  /* centre parfaitement */ 
  width: 300px;
  padding: 30px;
}



  .qualif-images {
    flex-wrap: nowrap;           /* on force sur une seule ligne */
    overflow-x: auto;            /* permet de scroller sur le côté */
    justify-content: flex-start; /* aligne à gauche pour le scroll */
    gap: 1rem;                   /* espace un peu réduit sur mobile */
    padding: 1rem;               /* petit espace intérieur */
  }

  .qualif-images img {
    flex: 0 0 auto;              /* les images gardent leur taille */
  }



  .qualite-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  }

  .qualite-grid img {
    max-width: 130px; /* un peu plus petit sur mobile */
  }




    .header-content {
    flex-direction: column; /* empile le contenu verticalement */
    align-items: center;
    gap: 0.5rem; /* espace entre les éléments */
    padding: 0.5rem 1rem;
  }

  .header-content img {
    max-width: 400px; /* réduire la taille du logo si besoin */
  }

  .header-content nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem; /* espace entre les liens */
    flex-wrap: wrap; /* pour éviter overflow */
  }
}
