/* =====================
RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  overflow-x: hidden;
  background: #fff;
  scroll-behavior: smooth;
}

/* =====================
CONTAINER GLOBAL
===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* =====================
HEADER
===================== */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #2d5b23;
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* =====================
HERO (SLIDER PRO PREVENT FLASH)
===================== */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #000;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

/* slides crossfade */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  animation: fadeSlide 12s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }

@keyframes fadeSlide {
  0% { opacity: 0; transform: scale(1.1); }
  10% { opacity: 1; }
  45% { opacity: 1; transform: scale(1); }
  55% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.1); }
}

/* overlay texte */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: grid;
  place-items: center;
  text-align: center;

  color: #fff;
  background: rgba(0, 80, 30, 0.35);
}
.btn{
  display:inline-block;
  padding:12px 26px;
  background:#1f4d2a;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border-radius:6px;
  transition:0.25s ease;
}

.btn:hover{
  background:#16381f;
  transform:translateY(-2px);
}
/* IMPORTANT : chaque texte est superposé */
.hero-text-item {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);

  animation: heroTextFade 12s infinite;
}

/* timing 2 slides */
.hero-text-item:nth-child(1) {
  animation-delay: 0s;
}

.hero-text-item:nth-child(2) {
  animation-delay: 6s;
}

@keyframes heroTextFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  50% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 0;
  }
}

.hero-text h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.hero-text h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 15px;
}

.hero-text button {
  margin-top: 18px;
  padding: 12px 26px;
  background: #1f4d2a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.hero-text button:hover {
  background: #16381f;
  transform: translateY(-2px);
}

/* =====================
SECTION SERVICES
===================== */
.section-grey {
  background: #f2f2f2;
}

.cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;

  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;

  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card p {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.4;
}

.card button {
  margin-top: 15px;
  padding: 10px;
  background: #2d5b23;
  color: #fff;
  border: none;
  cursor: pointer;
}


/* =====================
GALLERY INDEX
===================== */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* =====================
LIGHTBOX
===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 85%;
  max-height: 85%;
}

/* =====================
FOOTER
===================== */
footer {
  background: #1f4d2a;
  padding: 50px 20px;
  color: #fff;
}

.footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* =====================
PAGE ENTREPRISE SPLIT
===================== */
.split {
  display: flex;
  align-items: center;
  gap: 40px;
}

.split-img img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.split-text h2 {
  color: #1f4d2a;
  margin-bottom: 10px;
}

.split-text p {
  line-height: 1.6;
  margin-bottom: 10px;
}
.nice-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.nice-list li {
  position: relative;
  padding-left: 20px;
  margin: 6px 0;
}
.nice-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2d5b23;
  font-weight: bold;
}

.team-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.team-list li {
  position: relative;
  padding-left: 20px;
  margin: 6px 0;
}

.team-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2d5b23;
  font-weight: bold;
}
.intro-section{
  background:#fff;
  text-align:center;
  padding:5px 20px;
}

.intro-content{
  max-width:800px;
  margin:0 auto;
}
.intro-divider{
  width:120px;
  height:2px;
  margin:35px auto 0;
  border-radius:2px;
  background:linear-gradient(90deg, transparent, #2d5b23, transparent);
}

/* petit badge */
.intro-badge{
  display:inline-block;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#2d5b23;
  background:rgba(45,91,35,0.08);
  padding:6px 12px;
  border-radius:20px;
  margin-bottom:15px;
}

/* titre principal */
.intro-section h1{
  font-size:38px;
  line-height:1.2;
  color:#111;
  margin-bottom:20px;
}

.intro-section h1 span{
  color:#2d5b23;
  font-weight:600;
}

/* texte */
.intro-section p{
  font-size:16px;
  line-height:1.7;
  color:#444;
}
/* =====================
2 IMAGES ENTREPRISE
===================== */
.gallery-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 60px 0;
}

.gallery-2 img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 10px;
}

/* =====================
RESPONSIVE
===================== */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =====================
SERVICES
===================== */

.services-section{
  background:#f2f2f2;
  padding:80px 20px;
}

/* GRID 3x3 */
.services-grid{
  max-width:1200px;
  margin:0 auto;

  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:25px;
}

/* CARD */
.service-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,0.06);
  transition:0.3s ease;

  display:flex;
  flex-direction:column;
}

.service-card:hover{
  transform:translateY(-5px);
}

/* IMAGE */
.service-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  cursor:pointer;
}

/* TEXTE */
.service-card p{
  padding:15px;
  font-size:17px;
  color:#333;
  text-align:center;
}
.service-card h2{
  padding:15px;
  font-size:20px;
  color:#333;
  text-align:center;

}

/* LIGHTBOX */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

.lightbox img{
  max-width:85%;
  max-height:85%;
}

/* RESPONSIVE */
@media(max-width:900px){
  .services-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .services-grid{
    grid-template-columns:1fr;
  }
}
/* =====================
BURGER BUTTON
===================== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;

  position: absolute;
  right: 20px;
  top: 30px;
  z-index: 2000;
}

.burger span {
  width: 28px;
  height: 3px;
  background: #1f4d2a;
  border-radius: 3px;
}

/* =====================
MOBILE MENU (HIDDEN BY DEFAULT)
===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100vh;

  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  padding: 100px 30px;
  gap: 20px;

  transition: 0.35s ease;
  z-index: 1500;
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
}

/* ACTIVE STATE */
.mobile-menu.active {
  right: 0;
}

/* =====================
RESPONSIVE
===================== */
@media (max-width: 900px) {

  .menu {
    display: none; /* menu desktop caché */
  }

  .burger {
    display: flex;
  }
}
/* =====================
OVERLAY (FOND APPLE)
===================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);

  /* Safari fix */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 1400;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 85%;
  max-width: 360px;
  height: 100vh;

  background: rgba(255,255,255,0.98);

  /* Safari fix */
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);

  z-index: 1500;

  transform: translate3d(110%, 0, 0); /* IMPORTANT iOS */
  opacity: 0;

  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
              opacity 0.3s ease;
}

.mobile-menu.active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* BURGER SAFE TOUCH */
.burger {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* =====================
SECTION PDF
===================== */
.pdf-section{
  text-align:center;
  padding:20px 20px 60px;
}

.btn-pdf{
  display:inline-block;
  padding:15px 30px;

  background:#1f4d2a;
  color:#fff;
  text-decoration:none;

  font-size:17px;
  font-weight:600;

  border-radius:8px;

  transition:0.3s ease;
}

.btn-pdf:hover{
  background:#16381f;
  transform:translateY(-2px);
}

/* =====================
PAGE BOIS DE FEU
===================== */
.split-text h2{
  font-size:34px;
  margin-bottom:20px;
}

.split-text .lead{
  font-size:20px;
  font-weight:500;
  line-height:1.8;
  margin-bottom:20px;
}

.split-text p{
  font-size:17px;
  line-height:1.8;
}
/* =====================
GALERIE PAGE
===================== */

.gallery-page{
  padding:70px 20px;
}

.gallery-grid{
  max-width:1200px;
  margin:0 auto;

  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.gallery-grid img{
  width:100%;
  height:280px;
  filter:brightness(0.97);
  object-fit:cover;

  border-radius:12px;
  cursor:pointer;

  transition:0.3s ease;

  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.gallery-grid img:hover{
  transform:scale(1.03);
	  filter:brightness(1);
}

/* TABLETTE */
@media(max-width:900px){

  .gallery-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

/* MOBILE */
@media(max-width:600px){

  .gallery-grid{
    grid-template-columns:1fr;
  }

  .gallery-grid img{
    height:250px;
  }

}
/* =====================
CONTACT GRID
===================== */
.contact-section{
  background:#f2f2f2;
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

/* colonnes */
.contact-info h2,
.contact-form h2{
  margin-bottom:20px;
  color:#1f4d2a;
}

/* infos */
.contact-info p{
  margin-bottom:15px;
  line-height:1.6;
  color:#333;
}

/* FORM */
.contact-form form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  padding:12px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:14px;
  outline:none;
}

.contact-form textarea{
  resize:none;
}

/* bouton réutilise ton style global */
.btn{
  display:inline-block;
  padding:12px 26px;
  background:#1f4d2a;
  color:#fff;
  border:none;
  border-radius:6px;
  font-weight:600;
  cursor:pointer;
  transition:0.25s;
}

.btn:hover{
  background:#16381f;
  transform:translateY(-2px);
}

/* MAP */
.map-section iframe{
  display:block;
}

/* RESPONSIVE */
@media(max-width:900px){
  .contact-grid{
    grid-template-columns:1fr;
  }
}