/* Reset de base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #00a0dd;
  --dark: #3f3f38;
  --light: #ffffff;
  --text: #1f1f1f;
  --max-width: 1200px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
}

#bloc_page {
  width: 100%;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ======================
   HEADER
====================== */

.site-header {
  background-color: var(--dark);
  position: relative;
  z-index: 100;
 border-bottom: 1px solid #000;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 100%;
  height: 30px;
  pointer-events: none;

  background: linear-gradient(
      to bottom,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,0.3) 50%,
      rgba(0,0,0,0) 100%
    ) top / 100% 30px no-repeat;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0rem 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 120px; /* desktop */
  width: auto;
  display: block;
}

/* Navigation */
.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link-1 {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-link-1:hover {
  color: var(--light);
}

/* Bouton contact */
.nav-cta {
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
}

.nav-cta:hover {
  background-color: var(--primary);
  color: var(--dark);
}

/* ======================
   MENU MOBILE
====================== */

/* Bouton hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light);
  margin: 5px 0;
  transition: 0.3s;
  z-index: 1000;
}

/* ======================
   Banière
====================== */

#banniere_image {
    width: 100%;
    height: 60vh; /* ou 80vh selon la taille que tu veux */
    background-image: url('../img/voiture.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; /* centre verticalement le contenu */
    justify-content: center; /* centre horizontalement */
    position: relative;
    border-top:1px solid #000;
    
}
#banniere_image::after {
  content: "";
  position: absolute;
  inset: 0; /* top/right/bottom/left = 0 */
  pointer-events: none;

  background:
    /* Vignettage haut */
    linear-gradient(
      to bottom,
      rgba(0,0,0,1),
      rgba(0,0,0,0)
    ) top / 100% 50px no-repeat,

    /* Vignettage bas */
    linear-gradient(
      to top,
      rgba(0,0,0,1),
      rgba(0,0,0,0)
    ) bottom / 100% 50px no-repeat;
}

/* Container pour liste + carte */

#presentation {
  background-image: url('../img/Fond.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 10% auto;
}

#domaines-carte {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
    flex-wrap: wrap; /* pour mobile */
}

#liste-domaines {
    flex: 1 1 300px; /* prend tout l'espace disponible */
}

#liste-domaines p {
    margin-bottom: 1rem;
}

#liste-domaines ul {
    list-style: disc inside;
}

#liste-domaines li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#demande {
  max-width: var(--max-width);
  text-align: center;
  margin: auto;
  padding: 2rem 1rem;
}

#demande p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

#demande .nav-cta {
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: var(--dark);
}

#demande .nav-cta:hover {
  background-color: var(--primary);
  color: var(--dark);
}

#gestion .nav-cta {
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: var(--dark);
}

#gestion .nav-cta:hover {
  background-color: var(--primary);
  color: var(--dark);
}

/* Carte */
#carte-container {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carte {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: rgba(0, 160, 222, 0.5) 0px 7px 29px 0px;
}

/* A LA UNE */

#alaune {
  padding: 30px 20px;
  text-align: center;
  background: rgba(63,63,56,0.05);
}

.alaune-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.alaune-card {
  background: rgba(63,63,56,0.1);
  border-radius: 8px;
  padding: 25px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
}

.alaune-card img {
  height: 5em;
  object-fit: contain;
  margin-bottom: 15px;
}

.alaune-card h3 {
  margin-bottom: 10px;
}

.alaune-card a {
  margin-top: auto;
}

.alaune-card .nav-cta {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
  text-align: center;
}

.alaune-card .nav-cta:hover {
  background: var(--primary);
  color: white;
}


/* AVIS */

#avis {
  margin-top: 20px;
  padding: 30px 20px;
  text-align: center;
  background-color: rgba(63,63,56,0.05);
  margin-bottom: 20px;
}

.avis-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.google-avis {
  text-decoration: none;
  font-weight: bold;
  color: var(--primary);
}

.stars {
  color: var(--primary);
  margin-left: 5px;
}

.avis-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

blockquote {
  max-width: 400px;
  font-style: italic;
  background: rgba(63,63,56,0.1);
  padding: 20px;
  border-radius: 6px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
}

.contact-group {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.contact-group h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}


/* conteneur des cartes */

.contact-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* cartes */

.contact-card {
  background: rgba(63, 63, 56, 0.1);
  border-radius: 12px;
  padding: 2rem;
  flex: 1 1 280px;
  max-width: 360px;
  text-align: center;

  border: 1px solid #e5e5e5;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* lien */

.contact-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}


/* icone */

.contact-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}


/* texte */

.contact-card strong {
  display: block;
  margin-bottom: 8px;
}

.contact-card p {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary);
}

.service-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 50px 0;
  background-color: rgba(63, 63, 56, 0.1);
  padding: 10px;
}

.service-section.reverse {
  flex-direction: row-reverse;
}

/* Texte */

.service-text {
  flex: 1;
  padding: 20px 30px;
}

.service-text h2 {
  margin-bottom: 20px;
}

.service-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
}

.service-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: justify;
}

.borne-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.borne-text {
  flex: 1;
}

.certification {
  max-width: 160px;
  height: auto;
}

/* Carrousel */

.service-slider {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  height: 350px;
  background: #f5f5f5; /* fond discret si l'image ne remplit pas tout */
}

.service-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.service-slider img.active {
  display: block;
}

.service-slider::before,
.service-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.service-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.25), transparent);
}

.service-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.25), transparent);
}

/* Flèches */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Bannière partenaires */
#partenaires {
    position: relative;
    background-color: var(--dark);
    color: var(--light);
    padding: 2rem 1rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 1rem;
}

#partenaires::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    /* haut */
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0)
    ) top / 100% 30px no-repeat,

    /* bas */
    linear-gradient(
      to top,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0)
    ) bottom / 100% 30px no-repeat;
}


#partenaires h2 {
    margin-bottom: 1.5rem;
}

.logos-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.logos-partners img {
    max-height: 80px;
    object-fit: contain;
}

/* Footer général */
footer {
    display: flex;
    flex-wrap: wrap;           /* pour mobile */
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary); /* couleur de ton choix */
    color: white;
    padding: 1.5rem 2rem;
    gap: 1rem;
}

/* Texte et liens */
footer p {
    font-size: 0.8em;
    margin: 0;
}

#legal {
    margin-left: auto;           /* bloc à droite */
    display: flex;
    flex-direction: column;      /* 2 lignes */
    align-items: flex-end;       /* ALIGNÉ À DROITE */
    font-size: 0.8em;
    color: white;
    gap: 0.4rem;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-link {
    color: white;
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

.legal-copy {
    white-space: nowrap;
}

/* Réseaux sociaux */
#reseaux {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.img-reseau {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: white;
    object-fit: contain;
}

.img-reseau:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
  .logo img {
    height: 60px;
  }
   .nav-toggle {
    display: block;
  }

  .main-nav {
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-link {
    display: block;
    padding: 1rem;
  }

  .nav-cta {
    margin: 1rem;
    text-align: center;
  }

  .service-section {
    flex-direction: column;
    gap: 30px;
  }

  .service-section.reverse {
    flex-direction: column;
  }

  .borne-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .certification {
    margin-top: 10px;
  }


  footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #legal {
        justify-content: center;
        margin-top: 1rem;
    }

    #reseaux {
        justify-content: center;
        margin-bottom: 1rem;
    }
    .nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.img-reseau {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    background-color: white;
    object-fit: contain;
  }

  .bg-triangle {
    top: 50vh;
    left: -30%;
    width: 120%;
    height: 50vh;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  #demande {
    text-align: center;
  }

  #demande .nav-cta {
    display: inline-block;
  }
}