/* ----------------------------------------
   Base / Police / Couleurs
---------------------------------------- */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------------
   Header sticky avec logo + menu + burger
---------------------------------------- */
.logo {
  display: block;
  margin: 0 auto;
}
.logo-img {
  width: 500px;
  max-width: 100%;
  height: auto;
  max-height: 40px;
  display: block;
  margin: 0 auto;
}

.header-slim {
  background-color: #2e8b8b;
  padding: 0px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.btn-header-contact {
  background-color: #f1c40f;
  color: #2e8b8b;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-left: auto;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-header-contact:hover {
  background-color: #ddb90e;
  transform: scale(1.05);
}

.top-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 150px;
}

.logo h1 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  margin: 0 auto; /* Centrage horizontal */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #f1c40f;
  color: #2e8b8b;
}

/* Menu mobile (hidden by default) */
nav#main-nav {
  transition: max-height 0.3s ease-out;
}

nav#main-nav.show {
  display: block;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  nav {
    width: 100%;
    order: 1;
  }
  nav ul {
    flex-direction: column;
    background-color: #2e8b8b;
    max-height: 0;
    overflow: hidden;
  }
  nav#main-nav.show ul {
    max-height: 300px;
  }
  nav ul li a {
    display: block;
    padding: 12px 20px;
  }
}

/* ----------------------------------------
   Hero Image avec superposition
---------------------------------------- */
.hero-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.3rem;
}

/* ----------------------------------------
   Bouton principal
---------------------------------------- */
.btn-primary {
  background-color: #f1c40f;
  color: #2e8b8b;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #ddb90e;
  transform: scale(1.05);
  outline: none;
}

/* ----------------------------------------
   Sections et contenu
---------------------------------------- */
.intro-services {
  padding: 60px 0;
  font-size: 1.2rem;
  color: #222;
  max-width: 900px;
  margin: 0 auto;
}

.services-global {
  background-color: #fff;
  padding: 60px 0;
}

.services-global h3 {
  font-size: 1.8rem;
  color: #2e8b8b;
  margin-bottom: 20px;
  text-align: center;
}

.services-global p {
  font-size: 1.2rem;
  color: #444;
  text-align: center;
  margin-bottom: 30px;
}

.services-list {
  list-style-type: disc;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
}

.services-list li {
  margin-bottom: 15px;
}

.note-particulier {
  background-color: #eef9f9;
  border-left: 5px solid #2e8b8b;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px auto 0 auto;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.note-particulier p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.note-icon {
  font-size: 1.5rem;
  color: #2e8b8b;
  flex-shrink: 0;
}


/* ----------------------------------------
   Bloc Devis bouton (centré)
---------------------------------------- */
.devis-section {
  background-color: #eaf8f8;
  padding: 60px 0;
  text-align: center;
}

.devis-section h3 {
  font-size: 1.8rem;
  color: #2e8b8b;
  margin-bottom: 20px;
}

/* ----------------------------------------
   Sections en quinconce
---------------------------------------- */
.quinconce-global {
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fafafa;
  padding: 30px 40px;
  max-width: 1000px;
  margin: 0 auto 60px auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quinconce-container {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.image-side {
  flex: 0 0 30%;
}

.image-side img {
  width: 100%;
  height: auto;              /* ← respecte les proportions */
  max-height: 200px;         /* ← limite la hauteur */
  object-fit: contain;       /* ← évite de couper l’image */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}


.text-side {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
  padding-left: 20px;
}

.text-side h3 {
  font-size: 1.2rem;
  color: #2e8b8b;
  margin-bottom: 10px;
}

.text-side p,
.text-side ul,
.text-side ol {
  margin: 6px 0;
}

/* ----------------------------------------
   Section Contact
---------------------------------------- */
.contact-section {
  background-color: #e7f0f0;
  padding: 60px 0;
  text-align: center;
}

.contact-section h3 {
  font-size: 1.8rem;
  color: #2e8b8b;
  margin-bottom: 20px;
}

.contact-section form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section input,
.contact-section textarea {
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: 'Montserrat', sans-serif;
}

.contact-section input:focus,
.contact-section textarea:focus {
  outline: none;
  border-color: #2e8b8b;
  box-shadow: 0 0 5px #2e8b8b;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
footer {
  background-color: #2e8b8b;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

footer a {
  color: #f1c40f;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* ----------------------------------------
   Responsive Design
---------------------------------------- */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .hero-image {
    height: 300px;
  }

  .hero-overlay h2 {
    font-size: 2rem;
  }

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

  .quinconce-container {
    flex-direction: column !important;
    text-align: center;
  }

  .image-side img {
    height: auto;
  }

  .services-list {
    padding-left: 20px;
    text-align: left;
  }

  nav ul {
    max-height: 0;
    overflow: hidden;
  }

  nav#main-nav.show ul {
    max-height: 500px;
  }
}

/* ----------------------------------------
   Scroll margin pour corriger l'ancrage
---------------------------------------- */
section[id] {
  scroll-margin-top: 160px; /* ajuste selon hauteur de ton header */
}

@media (max-width: 480px) {
  footer p {
    word-break: break-word;
    text-align: center;
    padding: 0 10px;
  }
}
footer p {
  white-space: normal;
}
/* ----------------------------------------
   ✅ Correctifs mobile et footer
---------------------------------------- */

/* Empêche tout débordement horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* S'assure qu'aucun élément ne dépasse */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Garde le numéro de téléphone sur une seule ligne */
footer span.phone {
  white-space: nowrap;
}

/* Un peu plus d'air autour du footer sur mobile */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 1rem;
  }
  footer p {
    padding: 0 10px;
  }
}
