/* ========== GLOBAL ========== */

/* Structure de base et typographie */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: "Work Sans", sans-serif;
  color: #fff;
}

/* Image de fond fixe et floutée */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/site/cheminee.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* Voile sombre par-dessus l'image de fond */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
  pointer-events: none;
}

/* Espace principal du site */
main {
  flex: 1 0 auto;
  padding: 4rem 2rem 2rem 2rem; /* ⬆️ Haut élargi à 4rem */
}

/* ========== HEADER ========== */

/* Effet de flou sur l'arrière-plan du header */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* Header en page d'accueil plein écran */
.fullscreen-header {
  flex: 1; /* ✅ Permet de prendre tout l'espace restant si seul */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

/* Header version compacte quand une section est active */
.compact-header {
  padding: 2rem 1rem;
  display: block;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Réinitialisation de la navigation en version compacte */
.compact-header nav {
  position: static;
  transform: none;
  margin-top: 2rem;
}

/* Titres et sous-titres */
header h1,
header p {
  font-weight: 400;
  text-align: center;
}

/* Titre principal */
header h1 {
  font-family: "Cardo", serif;
  font-size: 3rem;
  margin: 0;
}

/* Sous-titres */
header p {
  margin: 1rem 0 0.5rem;
  font-size: 1.4rem;
  font-style: italic;
}

header p:last-of-type {
  margin-top: 0.25rem;
}

/* Logo centré */
.logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;

  /* ✅ Ombre très subtile pour détacher du fond */
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}


/* ========== NAVIGATION ========== */

/* Position de la navigation dans le header fullscreen */
.nav-bottom nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* Navigation principale */
nav {
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
}

/* Liens de navigation */
nav a {
  color: #ffcc66;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* Survol des liens */
nav a:hover {
  color: #ff9966;
}

/* Lien actif */
nav a.active {
  color: #ccc;
  pointer-events: none;
}

/* ========== CONTENT ========== */

/* Contenu général des sections */
section {
  background-color: rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Titres des sections */
section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ========== ANIMATIONS ========== */

/* Animation d’apparition douce */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* ========== LISTES ========== */
ul {
  list-style: disc;
  padding-left: 1.5rem;
}

/* ========== PAGE QUI SUIS-JE ? ========== */

/* Conteneur de sections alignées */
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Chaque encadré individuel */
.about-section {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

/* Titres dans les encadrés */
.about-section h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Mise en ligne texte + image */
.about-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* Texte aligné à gauche */
.about-text {
  flex: 1 1 50%;
  text-align: left;
}

/* Paragraphes */
.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Bloc image */
.about-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image adaptée */
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
/* ========== PAGE POURQUOI RAMONER ? ========== */
.section-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#pourquoi-ramoner h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ffcc66;
}

#pourquoi-ramoner .about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.legal-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ffcc66;
  text-decoration: underline;
}

.legal-link:hover {
  color: #fff;
}

/* ========== PAGE SERVICES ET TARIFS ========== */
.service-category {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffcc66;
}

.tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tarif-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tarif-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #ffcc66;
  margin-top: 1rem;
}

.cta-container {
  margin-top: 2rem;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background-color: #ffcc66;
  color: #000;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e6b84f;
}

/* ========== PAGE GALERIE ========== */
.galerie-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
/* Avant Après */
.galerie-grid-paired {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.gallery-pair {
  text-align: center;
}

.gallery-pair h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ff9966;
}

.gallery-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.gallery-images figure {
  margin: 0;
  text-align: center;
}

.gallery-images img {
  width: 100%;
  cursor: pointer;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.gallery-images video {
  width: 300px;
  max-height: 400px; /* ✅ limite la hauteur comme les images */
  object-fit: cover; /* ✅ recadre si nécessaire */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.gallery-images figcaption {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #ddd;
}

/* Images simples */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.galerie-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galerie-grid img:hover {
  transform: scale(1.05);
}

/* ========== PAGE CONTACT ========== */
#contact {
  max-width: 1000px;       /* ✅ largeur globale plus contenue */
  margin: 0 auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;     /* ✅ aligne les hauteurs des deux colonnes */
}

.contact-intro {
  text-align: center;
  font-size: 1.15rem;
  margin: 1rem auto 2rem;
  max-width: 700px;
}

.contact-infos,
.contact-map {
  flex: 1 1 48%;            /* ✅ même largeur */
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-infos a {
  color: #ffcc66;
  text-decoration: none;
}

.contact-infos a:hover {
  text-decoration: underline;
}

.reseaux {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.reseaux a {
  font-size: 1.4rem;
  margin-right: 1.2rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.reseaux a:hover {
  transform: scale(1.2);
}

.reseaux i {
  transition: transform 0.2s;
}

.reseaux i:hover {
  transform: scale(1.2);
}

.fa-google {
  background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.fa-facebook {
  color: #74C0FC;
}

/* Responsive iframe (carte) */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 45%;  /* entre 16:9 et carré – plus haut que 33%, mais pas trop */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.cta-container {
  margin-top: 2rem;
  text-align: center;
}

.cta-button {
  display: inline-block;
  text-align: center;
  background-color: #ffcc66;
  color: #000;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #e6b84f;
}

/* ========== FOOTER ========== */

footer {
  text-align: center;
  padding: 1rem;
  height: 60px;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

/* ========== LIGHTBOX ========== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  width: auto;
  max-width: 90vw;  /* largeur max = 90% de la fenêtre */
  max-height: 90vh; /* hauteur max = 90% de la fenêtre */
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  padding: 0.2em 0.6em;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ========== UTILITAIRES ========== */

.hidden {
  display: none;
}

/* ========== RESPONSIVE (MOBILE) ========== */

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
  font-size: 0.95rem;
  line-height: 1;
  }

  header p:last-of-type {
  margin-top: 0.25rem;
  }

  .fullscreen-header {
    min-height: 100vh;
    padding: 1rem 0.5rem;
    justify-content: flex-start; /* ou center si tu préfères centré */
    padding-top: 3rem; /* pousse un peu le contenu vers le bas */
  }
  .fullscreen-header.nav-bottom {
    min-height: auto;
    height: auto;
    padding: 2rem 1rem;
    justify-content: center;
  }
  .nav-bottom nav {
    position: static;
    transform: none;
    margin-top: 2rem;
  }

  .about-section h2 {
    font-size: 1.3rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  h3.service-category {
    font-size: 1.1rem;
  }

  
  .about-text p,
  .section-intro,
  .tarif-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  }
  .logo {
    max-width: 150px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* ========== PAGE QUI SUIS-JE ? ========== */
  /* Empile les encadrés en colonne */
  .about-wrapper {
    flex-direction: column;
  }

  .about-section {
    flex: 1 1 100%;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-image img {
    max-width: 200px;
  }

  /* ========== PAGE POURQUOI RAMONER ? ========== */
  #pourquoi-ramoner h3 {
  font-size: 1.1rem;
  text-align: left;
  }

  #pourquoi-ramoner .about-section p {
  font-size: 0.95rem;
  text-align: left;
  }

  /* ========== PAGE SERVICES ET TARIFS ========== */
  #services-et-tarifs h2 {
    text-align: center;
  }
 /* ========== PAGE GALERIE ========== */
  .gallery-pair h4 {
  font-size: 1.1rem;
}
  /* ========== PAGE CONTACT ========== */

  #contact p {
    font-size: 0.95rem;

  }

  .contact-infos,
  .contact-map {
    width: 100%;
    flex: none;
    box-sizing: border-box;
    padding: 0 0.5rem;
  }

  .map-container {
    max-width: 90%; /* ✅ Réduit la largeur à 90% de l’écran */
    padding-bottom: 40%; /* ✅ Hauteur proportionnelle */
    margin: 0 auto;
  }

  .reseaux a {
  font-size: 1.2rem;
  margin-right: 0.6rem;
  } 
  
}