/* ================== VARIABLES ================== */
:root {
  --bg-main: #fafafa;
  --bg-box: #ffffff;
  --bg-soft: #f6f6f6;
  --border-light: #e5e5e5;
  --text-main: #222;
  --accent: #f05a28;
  --dark: #141414;
}

/* ================== BASE ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.8;
}

/* ================== HEADER & NAV ================== */
.header {
  background: var(--dark);
  color: white;
}

.nav {
  max-width: 1300px;
  margin: auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

/* MENU */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu a:hover {
  color: var(--accent);
}

/* ================== MENU DÉROULANT ================== */
.dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  list-style: none;
  min-width: 220px;
  display: none;
  z-index: 1000;
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  color: white;
}

.submenu li a:hover {
  background: var(--accent);
}

.dropdown:hover .submenu {
  display: block;
}

.no-link {
  pointer-events: none;
}

/* ================== HERO (FIN & PRO) ================== */
.hero {
  background: linear-gradient(
      rgba(20,20,20,0.65),
      rgba(20,20,20,0.65)
    ),
    url("images/hero.jpg") center / cover no-repeat;

  padding: 50px 20px;
  text-align: center;
}

.hero-overlay {
  max-width: 720px;
  margin: auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: white;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: white;
}

/* BOUTON */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.9rem;
}

.btn:hover {
  background: #d94e22;
}

/* ================== SECTIONS ================== */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

/* ================== SERVICES ================== */
.services {
  background: var(--bg-soft);
}

.services-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 40px;
  text-align: left;
}

.services-container ul {
  list-style: none;
}

.services-container li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.services-container li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ================== SLIDER + TEXTE ================== */
.slider-text-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* SLIDER */
.slider {
  width: 60%;
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  background: #000;
}

/* FLÈCHES */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 26px;
  padding: 10px 14px;
  cursor: pointer;
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }

.slider button:hover {
  background: var(--accent);
}

/* TEXTE À CÔTÉ */
.text-box {
  width: 40%;
  background: var(--bg-box);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.text-box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

.text-box p {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ================== PAGE DEVIS ================== */
.devis {
  max-width: 900px;
  margin: 80px auto;
  padding: 50px;
  background: var(--bg-box);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.devis h2 {
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Playfair Display', serif;
}

.devis form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.devis input,
.devis textarea {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.devis h3 {
  margin-top: 20px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.devis button {
  margin-top: 30px;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
}

.devis button:hover {
  background: #d94e22;
}

/* ================== CONTACT ================== */

.contact-wrapper {
  max-width: 1200px;
  margin: auto;
}

.contact-content {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* Encadrés */
.contact-block {
  flex: 1;
  background: #f9f9f9; /* GRIS TRÈS CLAIR */
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 45px;
  text-align: left;
}

/* Titres */
.contact-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #111;
}

/* Texte */
.contact-block p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #333;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }
}


/* ================== FOOTER ================== */
.footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 80px;
}

/* ================== PRÉSENTATION ================== */

.presentation-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

/* Grille 2x2 */
.presentation-images {
  width: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 2cm;
}

/* CONTENEUR IMAGE (OBLIGATOIRE) */
.presentation-img-box {
  width: calc(50% - 1cm);
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
}

/* IMAGE */
.presentation-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* ================== RÉGLAGES INDIVIDUELS ================== */

.presentation-img-1 {
  object-position: center;
}

.presentation-img-2 {
  transform: scale(1.40);
  object-position: 85% center;
}

.presentation-img-3 {
    transform: scale(1.45); /* zoom contrôlé */
    object-position: center 220%;
}

.presentation-img-4 {
  object-position: center 40%;
}

/* TEXTE */
.presentation-text {
  width: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 45px;
  text-align: left;
}

.presentation-text p {
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .presentation-container {
    flex-direction: column;
  }

  .presentation-images,
  .presentation-text {
    width: 100%;
  }

  .presentation-img-box {
    width: 100%;
  }
}


/* ================== SERVICES + IMAGE ================== */
.services-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

/* Image flamme */
.services-image {
  width: 40%;
}

.services-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .services-wrapper {
    flex-direction: column;
  }

  .services-image {
    width: 100%;
    margin-top: 30px;
  }
}


/* ================== MARQUES ================== */
.marques {
  background: var(--bg-soft);
}

.marques-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.marque-box {
  width: 220px;
  height: 140px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marque-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Effet léger au hover */
.marque-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 800px) {
  .marques-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== SECTION QUALIBOIS DOUBLE FOND – 1 SEUL ENCADRÉ ===== */

.qualibois-row {
  width: 100%;
  display: flex;
  position: relative;
}

/* Fonds gauche / droite */
.qualibois-box {
  width: 50%;
  min-height: 520px; /* hauteur légèrement augmentée */
  background-size: cover;
  background-position: center;
}

/* Images de fond */
.bg-1 {
  background-image: url("images/fond1.jpg");
}

.bg-2 {
  background-image: url("images/fond2.jpg");
}

/* Encadré unique centré sur la séparation */
.qualibois-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.96);
  padding: 50px;
  max-width: 540px;
  border-radius: 12px;
  text-align: center;
  z-index: 2;
}

/* Logo Qualibois */
.qualibois-logo {
  width: 90px;
  margin-top: 25px;
}

/* Responsive */
@media (max-width: 900px) {
  .qualibois-row {
    flex-direction: column;
  }

  .qualibois-box {
    width: 100%;
  }

  .qualibois-content {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin: 30px auto;
  }
}


.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

/* SLIDES */
.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.hero-slides img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* OVERLAY PRO */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* TEXTE */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
}

/* FLÈCHES */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 32px;
  width: 55px;
  height: 55px;
  cursor: pointer;
  border-radius: 50%;
}

.hero-prev { left: 30px; }
.hero-next { right: 30px; }

.hero-prev:hover,
.hero-next:hover {
  background: var(--accent);
}

/* code pour centré à gauche la photo insert2*/
.presentation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image 2 centrée vers la gauche */
.presentation-img-2 {
  object-position: left center;
}

/* ===== RÉGLAGES INDIVIDUELS IMAGES INSERT ===== */

/* Image centrée à droite */
.img-right img {
  object-position: right center;
}

/* Dézoom léger */
.zoom-out img {
  transform: scale(1);
}

/* Dézoom un peu plus */
.zoom-out-strong img {
  transform: scale(1);
}


/* ================== RÉGLAGES IMAGES GRANULÉS ================== */

/* Base images granulés */
.granule-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* GRANULE 2 & 4 : centrage à gauche */
.granule-img-2 img {
  object-position: left center;
}

.granule-img-3 img {
  object-position: right center;
}

/* GRANULE 3 : léger décalage vers la gauche */
.granule-img-3 img {
  object-position: 35% center; /* ajuste entre 30% et 45% si besoin */
}

/* (optionnel) si tu veux conserver le dézoom existant */
.zoom-out-granule img {
  transform: scale(1);
}

.zoom-out-strong-granule img {
  transform: scale(1);
}

/* ================== FIN RÉGLAGES IMAGES GRANULÉS ================== */


/* ================= RÉALISATIONS ================= */

.realisations-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* Ligne contenant 2 blocs */
.realisations-row {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

/* Bloc individuel (cheminées / inserts / etc.) */
.realisation-block {
  width: 48%;
}

/* Titre au-dessus de chaque 2x2 */
.realisation-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

/* Grille 2x2 */
.realisation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Encadré image */
.realisation-img-box {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

/* Images */
.realisation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover léger pro */
.realisation-img-box:hover .realisation-img {
  transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .realisations-row {
    flex-direction: column;
  }

  .realisation-block {
    width: 100%;
  }
}



/* ================== AJUSTEMENTS IMAGES CHEMINÉES ================== */

/* Cheminée 1 : dézoom léger uniquement */
.presentation-img-1 {
  transform: scale(1);
  object-position: center center;
}

/* Cheminée 2 : dézoom + décalage vers la droite */
.presentation-img-2 {
  transform: scale(1.05);
  object-position: 80% center;
}
/* Cheminée 3 : décalage vers le haut uniquement */
.presentation-img-3 {
  transform: scale(1);
  object-position: 100% center;
}

/* Cheminée 4 : décalage vers la droite uniquement */
.presentation-img-4 {
  transform: scale(1);
  object-position: 100% center;
}

/* ================== FIN AJUSTEMENTS ================== */