/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0f0f0f;
  color: #f1f1f1;
  scroll-behavior: smooth;
}


  
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/logo_trans.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.02;
  z-index: -1;
  pointer-events: none;
  filter: blur(1px);
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #111;
  padding: 15px 10%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00adee;
}

/* Sous-menu */
.sousmenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  padding: 10px 0;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 10;
}

.sousmenu li {
  padding: 8px 20px;
  white-space: nowrap;
  list-style: none;
}

.sousmenu li a {
  color: #f1f1f1;
  text-decoration: none;
}

.sousmenu li a:hover {
  color: #00adee;
}

.menu:hover .sousmenu {
  display: block;
}

/* Hero */
header.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

header.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

header.hero p {
  font-size: 1.2rem;
  color: #ffffff;
}

/* Sections */
section {
  padding: 50px 0%;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slideshow */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.slideshow-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
  pointer-events: none;
}

/* Contact */
.socials a {
  color: #00adee;
  text-decoration: none;
}

.socials a:hover {
  color: #fff;
}

.socials p {
  margin-top: 25px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  font-size: 0.9rem;
  color: #666;
}


.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #00adee;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 173, 238, 0.4);
  transition: all 0.3s ease;
  opacity: 0.6;
  z-index: 999;
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

.clim img {
  position: absolute;
  width: 300px;
  border-radius: 10px;
  margin-left: 1080px;
  margin-top: -32px;
}

.vs img {
  position: absolute;
  width: 300px;
  border-radius: 10px;
  margin-left: 1080px;
  margin-top: -45px;
}
.devis {
  padding: 80px 10%;
  max-width: 800px;
  margin: 100px auto;
  background-color: #1a1a1a;
  border-radius: 10px;
}

#devis-form {
  display: flex;
  flex-direction: column;
}

#devis-form label {
  margin: 10px 0 5px;
}

#devis-form input,
#devis-form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #0f0f0f;
  color: #f1f1f1;
  margin-bottom: 15px;
}

#devis-form button {
  background-color: #00adee;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#devis-form button:hover {
  background-color: #008bbd;
}


.merci {
  margin-top: 150px;
  text-align: center;
  padding: 80px 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background-color: #1a1a1a;
  border-radius: 10px;
}

.merci h1 {
  font-size: 2.5rem;
  color: #00adee;
  margin-bottom: 20px;

}

.merci p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f1f1f1;
}

.merci .avis-button {
  display: inline-block;
  background-color: #00adee;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.merci .avis-button:hover {
  background-color: #008bbd;
}

.page-merci {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footermerci {
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.avis-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-avis {
  background-color: #00adee;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 173, 238, 0.2);
}

.btn-avis:hover {
  background-color: #008bbd;
  transform: scale(1.05);
}

/* === Responsive mobile (max-width: 768px) === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 5px;
    right: 0px;
    z-index: 1001;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; /* s'affiche juste sous .navbar */
  left: 0;
  width: 100%;
  background-color: #111;
  z-index: 999;
  padding: 30px;
  margin: 0;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;

  border-radius: 5%;
}

.nav-links.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

  .nav-links li {
    border-top: 1px solid #ddd;
    padding: 1px 0;
    width: 100%;
    text-align: center;
  }

  /* Sous-menu adaptatif */
  .sousmenu {
    display: none;
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  .menu:hover .sousmenu {
    display: none; /* Plus de hover sur mobile */
  }

  /* Hero */
  header.hero {
    padding-top: 80px;
    height: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  header.hero h1 {
    font-size: 2rem;
  }

  header.hero p {
    font-size: 1rem;
  }

  /* Sections */
  section {
    padding: 30px 15px;
    max-width: 100%;
  }

  section h2 {
    font-size: 1.5rem;
  }

  /* Images */
  .clim img {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
    border-radius: 10px;
  }

  .vs img {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
    border-radius: 10px;
  }

  /* Devis */
  .devis {
    padding: 30px 15px;
    max-width: 100%;
    margin: 50px auto;
  }

  #devis-form input,
  #devis-form textarea {
    font-size: 1rem;
  }

  /* Merci */
  .merci {
    padding: 40px 15px;
    max-width: 100%;
    margin-top: 80px;
  }

  .merci h1 {
    font-size: 1.8rem;
  }

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

  /* Back to top */
  .back-to-top {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  /* Slideshow adjustments */
  .slideshow-container {
    position: relative;
    height: 300px; /* hauteur réduite pour mobiles */
  }
}

/* === Petits écrans encore plus étroits (max-width: 400px) === */
@media (max-width: 400px) {
  header.hero h1 {
    font-size: 1.5rem;
  }
  header.hero p {
    font-size: 0.9rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  #devis-form button {
    font-size: 0.9rem;
    padding: 10px;
  }
}



.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.socials {
  flex: 1;
  min-width: 250px;
}

.map-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  display: block;
}

