/* Enlève le soulignement sur tous les liens du pied de page, tous supports */
footer a {
  text-decoration: none !important;
}
/* Footer: marge de sécurité horizontale sur mobile */
footer {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  footer {
    padding-left: 0;
    padding-right: 0;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { overflow-x: hidden; }

body {
  font-family: 'Outfit', sans-serif;
  background: white;
  color: #0e2036;
  overflow-x: hidden; /* éviter tout scroll horizontal parasite */
}

/* Mobile-first petits ajustements de respiration latérale */
@media (max-width: 640px) {
  section { padding-left: 1rem; padding-right: 1rem; }
  .hero-content { padding-left: 1rem !important; padding-right: 1rem !important; }
  /* Donner de l'air aux carrousels sur mobile */
  .marques-carousel-container,
  .avis-carousel-container { padding-left: 12px; padding-right: 12px; }
  .marques-carousel { gap: 1.2rem !important; }
  .avis-carousel { gap: 1rem !important; }
}

/* HEADER */
header {
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.2rem;
  background: #fff;
  color: #0e2036;
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 1000 !important;
  box-shadow: 0 2px 12px #0001;
  /* Pour éviter que le contenu passe sous la nav */
}

body {
  padding-top: 110px !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000 !important;
  box-shadow: 0 2px 12px #0001;
}
/* Gouttières horizontales supplémentaires sur desktop pour toutes les sections centrées */
@media (min-width: 1024px) {
  /* Tous les wrappers typés "max-width:900px;margin:auto" reçoivent un petit padding latéral */
  div[style*="max-width:900px"][style*="margin:auto"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Footer: ajouter une marge de sécurité gauche/droite sur toutes les largeurs */
footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: #0e2036;
  text-decoration: none;
}
.logo img {
  height: 84px;
  width: 84px;
  object-fit: contain;
  border-radius: 8px;
  background: #e6f7fa;
}

/* NAV */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 25px !important;
}
.desktop-nav .dropdown { position: relative; }
.desktop-nav .dropdown-toggle {
  cursor: pointer;
  position: relative;
  width: auto;
  display: inline-block;
  text-align: center;
  padding: 0.3rem 0.9rem;
  box-sizing: border-box;
  white-space: nowrap;
}
.desktop-nav .dropdown-menu {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  min-width: 120px;
  max-width: 160px;
  width: max-content;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px #0001;
  z-index: 10;
  padding: 0;
  border-top: 2px solid #119fa9;
  animation: fadeInDownCentered 0.25s;
  border-left: 1px solid #e6f7fa;
  border-right: 1px solid #e6f7fa;
  overflow: hidden;
  text-align: center;
  transform: translateX(-50%);
}
.desktop-nav .dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 0.7rem 1.5rem;
  color: #0e2036;
  background: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  box-sizing: border-box;
}
.desktop-nav .dropdown-menu li a:hover { background: #119fa9; color: #0e2036; }
.desktop-nav .dropdown.open .dropdown-menu,
.desktop-nav .dropdown:hover .dropdown-menu { display: block; }

@keyframes fadeInDownCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 900px) {
  .desktop-nav .dropdown-menu { left: 0; right: auto; min-width: 140px; transform: none; }
}

.burger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 30;
  position: relative;
  overflow: visible; /* très important */
}

.burger div {
  height: 4px; /* ou 2.5px si tu veux encore plus fin */
  background-color: #0e2036;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
}

/* L'état "croix" */
.burger.open div:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 10px;
  left: 0;
  width: 30px;
}

.burger.open div:nth-child(2) {
  opacity: 0;
}

.burger.open div:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 10px;
  left: 0;
  width: 30px;
}




/* Mobile nav */
.mobile-nav {
  position: absolute;
  top: 80px; /* même que le header */
  left: 0;
  width: 100%;
  background: #fff;
  color: #0e2036;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  z-index: 20;
}

.mobile-nav.open {
  max-height: 500px; /* ajustable */
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
  padding: 2rem 1rem;
}

.mobile-nav ul li {
  margin: 1rem 0;
}

.mobile-nav ul li a {
  color: #0e2036;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
}

.btn-devis {
  background: #119fa9;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  border: 2px solid #119fa9;
  transition: all 0.2s;
  box-shadow: 0 2px 8px #119fa91a;
  vertical-align: middle;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.btn-devis:hover, .desktop-nav .btn-devis:hover {
  background: #fff !important;
  color: #0e2036 !important;
  border: 2px solid #119fa9 !important;
}


a.btn-devis {
  text-decoration: none;
  color: white;
  font-weight: 700; /* C'était probablement 700 avant (bold) */
  font-family: 'Outfit', sans-serif; /* Pour être sûr que la police reste cohérente */
}



.btn-devis:hover {
  background: #fff !important;
  color: #0e2036 !important;
  border: 2px solid #119fa9 !important;
}

/* HERO */
.hero {
  height: 90vh;
  background: url('chs.png') no-repeat center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow-x: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,32,54,0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 650px;
  padding: 3.5rem 2.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #119fa9;
}

.hero p {
  font-size: 1.1rem;
}

/* SERVICE CARDS */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

.card {
  background: #119fa9;
  color: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h3 a {
  text-decoration: none; /* Enlève le soulignement */
  color: inherit;         /* Utilise la même couleur que le texte parent */
  font-weight: inherit;   /* Garde la même graisse */
}


.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 1rem;
}

/* RESPONSIVE : tablette et desktop */
@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
  .burger {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
    .desktop-nav ul { gap: 16px !important; }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }

  .burger {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

/* Rappel (desktop): conserver le même écart */
.desktop-nav ul { gap: 2.3rem; }

.desktop-nav ul li a {
  color: #0e2036;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  padding: 0.3rem 0.9rem;
    padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}

.desktop-nav .btn-devis {
  background: #119fa9;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  line-height: 1.2; /* plus de décalage vertical pour un alignement uniforme */
  margin-left: 16px !important;
}



  .desktop-nav .btn-devis:hover {
    background: #0e2036;
    border: 2px solid #119fa9;
  }
}
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 25;
  line-height: 1;
  padding: 0;
}

/* Empêche tout scroll horizontal provoqué par les sections plein écran */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: hidden;
}

/* Sécurité absolue: sur mobile, garantir des gouttières dans le footer
   même si un style inline a mis padding-left/right: 0. */
@media (max-width: 900px) {
  footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}