/* ===== PAGE  ===== */
/* HERO PAGE */
.hero-page{padding:36px 0;background-color:#f7f8f8;}
.hero-page__inner{display:grid;grid-template-columns: 1fr; gap:48px; align-items:center; justify-items: center; max-width:var(--container);  margin:0 auto;}
.hero-page__content{display:flex; flex-direction:column; align-items:center; text-align:center;}
.hero-page__title{font-family:var(--font-title); font-size:27px; font-weight:800; 
    text-transform:uppercase; line-height:1.15; letter-spacing:.01em; margin:0 0 18px;}
.hero-page__title p{margin:8px 0 0;}
.hero-page__text{font-size:18px;line-height:1.6;margin:20px 0 0;}
.hero-page__text p{margin:0;}

/* CONTENT */
.content{margin: 40px 0 ;}



/* ===== PAGE CHANTIERS ===== */
/* HERO CHANTIER */
.hero-chantier{padding:36px 0;background-color:#f7f8f8;}
.hero-chantier__inner{display:grid;grid-template-columns: 1fr; gap:48px; align-items:center; justify-items: center; max-width:var(--container);  margin:0 auto;}
.hero-chantier__content{display:flex; flex-direction:column; align-items:center; text-align:center;}
.hero-chantier__title{font-family:var(--font-title); font-size:27px; font-weight:800; 
    text-transform:uppercase; line-height:1.15; letter-spacing:.01em; margin:0 0 18px;}
.hero-chantier__title p{margin:8px 0 0;}
.hero-chantier__text{font-size:18px;line-height:1.6;margin:20px 0 0;}
.hero-chantier__text p{margin:0;}

/* Responsive */
@media (max-width:1024px){
  .hero__inner{gap:32px}
  .hero__title{font-size:clamp(28px,5vw,42px)}
}
@media (max-width:860px){
  .hero__inner{grid-template-columns:1fr; gap:28px}
}
@media (max-width: 640px){
  .hero__content{text-align: center;}
  .hero__title{font-size: 16px; }
}

.page-chantiers{padding: 48px 0;}

/* FILTERS */
.chantier-filters{ display:flex; flex-wrap:wrap; gap:10px; margin:16px auto 20px; justify-content: flex-start; width: fit-content;}
.btn-filter{
  display:inline-block; padding:8px 12px; border-radius:8px;
  border:1px solid #2c921b; color:#2c921b; text-decoration:none; font-weight:600;
}
.btn-filter:hover{ background:#2c921b; color:#fff; }
.btn-filter.is-active{ background:#2c921b; color:#fff; }

.chantier-item{ border-bottom:1px solid #eee; padding:16px 0; }
.chantier-title{ margin:0 0 8px; }

/* LIST */
.ch-grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(3,1fr);
  margin: 45px 0 0;
}
.ch-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 24px rgba(0,0,0,.08);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.ch-media{ position:relative; --ch-img-h: 240px; background:#f5f5f5; }
.ch-img{ display:block; width:100%; height:var(--ch-img-h); object-fit:cover; }

/* ---- AVANT / APRES : base ---- */
.ba{ position:relative; height:var(--ch-img-h, 240px); --split:50%; overflow:hidden; user-select:none; border-radius:12px }
.ba__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ba__img--before{ z-index:1; }            
.ba__img--after{z-index:2; clip-path: inset(0 0 0 var(--split));   /* top right bottom left */}

/* la ligne centrale: une seule, propre */
.ba::before{
  content:"";
  position:absolute; top:0; bottom:0;
  left:var(--split);
  width:2px; transform:translateX(-1px);
  background:#fff; box-shadow:0 0 0 1px rgba(0,0,0,.15);
  z-index:4; pointer-events:none;
}

/* le “handle” (rond) sans border-left qui créait la 2e barre */
.ba__handle{
  position:absolute; top:50%; left:var(--split); transform:translate(-50%,-50%);
  z-index:5; width:38px; height:38px; border:0; border-radius:50%;
  background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.25); cursor:ew-resize; cursor: grab;
}
.ba__handle:focus{ outline: 2px solid #2ea44f; outline-offset: 2px; }

/* badges */
.ba__badge{
  position:absolute; top:10px; padding:6px 12px; border-radius:10px;
  font-weight:700; color:#fff; font-size:14px; z-index:6; background:#111; opacity:.95;
}
.ba__badge--left{ left:10px; }
.ba__badge--right{ right:10px; }

/* mise en valeur (vert) du côté majoritaire */
.ba.is-more-before .ba__badge--left{ background:#21a453; }
.ba.is-more-after  .ba__badge--right{ background:#21a453; }

/* range invisible mais accessible */
.ba__range{ position:absolute; inset:0; width:100%; height:100%; opacity:0; z-index:7; cursor:ew-resize; }

/* Corps */
.ch-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:10px; }

.ch-header{min-height: 73px;}
.ch-title{margin:0; font-size:1.05rem; font-family: var(--font-title);}
.ch-loc{margin-top: 10px; font-size:.93rem; color:#444; display:flex; align-items:center; gap:6px; }

.ch-meta{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin: 10px 0 0;}
.ch-chip{ display:inline-block; padding:4px 8px; background:var(--color-secondary); color:#fff;
  font-size:.78rem; font-weight:600; text-transform:uppercase;
}
.ch-rge{ display:inline-flex; align-items:center; gap:8px; margin-left: 20px;}
.ch-rge__l{display:inline-flex; align-items:center; justify-content:center;
  min-width:26px; height:26px; padding:0 6px; border-radius:4px; font-size:.78rem; 
  color:#111; background:var(--rge, #ddd); font-weight:700;
}
.ch-rge__arrow{ color:#999; font-size:.9rem; }

.ch-infos{ display:flex; gap:20px; flex-wrap:wrap; font-size:.92rem; color:#222; margin: 15px 0;}

.ch-foot{ margin-top:auto; display:flex; align-items:center; justify-content:flex-start; gap:10px; position:relative;}
.ch-video{ font-size:20px; color:#111; opacity:.9; }
.ch-video:hover{ opacity:1; }
.chantier__link{margin: 0 0 0 auto; display:flex; align-items:center; gap:6px;}
.link-arrow__icon{font-weight:900; display:inline-block;}
.chantier__link span.link{text-transform: uppercase; font-weight: 700; font-family: var(--font-title)}

@media (max-width: 1130px){ .ch-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 640px){  .ch-grid{grid-template-columns:1fr} }

/*  PAGINATION  */
.pagination{ display: flex; justify-content: center; gap: 6px; margin-top: 20px;}
.pagination .page-numbers{
  display:inline-block; min-width:36px; height:36px; line-height:36px; text-align:center;
  margin:0 4px 4px 0; border-radius:8px; text-decoration:none; padding:0 6px;
  background:#fff; border:1px solid #e1e4e8; color:#111; font-weight:700;
}
.pagination .page-numbers:hover{ border-color:#2c921b; color:#2c921b; }
.pagination .page-numbers.current{
  background:#2c921b; color:#fff; border-color:#2c921b;
}
.pagination .prev, .pagination .next{ padding:0 10px; }














/* ===== SINGLE CHANTIER (layout comme ta capture) ===== */
.chantier-single-top{ padding: 26px 0 20px; background:#fff; }
.chantier-back{ margin:0 0 14px; font-weight:600; font-size:14px; }
.chantier-back a{ text-decoration:none; color:#222; display:inline-flex; align-items:center; gap:8px; }
.chantier-back a:hover{ text-decoration:underline; }

.chantier-cat{
  margin:0 0 10px;
  display:inline-block;
  padding:4px 8px;
  background:var(--color-secondary);
  color: #fff;
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
}

.chantier-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 14px;
}
.chantier-title{
  margin:0;
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: 26px;
  max-width: 900px;
}
.chantier-loc{
  display:flex; align-items:center; gap:8px;
  font-weight:700;
  white-space:nowrap;
}

.chantier-media{ margin: 10px 0 16px;}
.ba--single{ --ch-img-h: 440px; height: var(--ch-img-h); border-radius:16px; }
.chantier-imgwrap{ border-radius:16px; overflow:hidden; background:#f5f5f5; }
.chantier-img{ width:100%; height:340px; object-fit:cover; display:block; }

.chantier-badges{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin: 0 0 6px;
}
.chantier-badge{
  border:1px solid #d8d8d8;
  border-radius:8px;
  padding:10px 12px;
  min-width: 170px;
  background:#fff;
  text-align: center;
}
.chantier-badge__label{ font-size:12px; color:#666; margin-bottom:4px; font-weight:600; }
.chantier-badge__value{ font-weight:800; }

.chantier-badge--rge{background:#2d9345; border-color:#2d9345; color:#fff;}
.chantier-badge--rge .chantier-badge__label{ color:rgba(255,255,255,.85); }
.chantier-badge--rge .ch-rge__arrow{ color:rgba(255,255,255,.85); }
.ch-rge__2{display:inline-flex; align-items:center; justify-content:center;
  min-width:26px; height:26px; padding:0 6px; border-radius:4px; font-size:.98rem; 
  color:#fff; font-weight:700;}

.chantier-video{display:inline-flex; align-items:center; gap:10px; font-family: var(--font-title); color: #fff;
  background-color: var(--color-primary); border-radius: 8px; padding:23px 15px; }
  .chantier-video:hover{color: #fff; }


.chantier-single-content{ padding: 10px 0 52px; }
.chantier-single-content p{ line-height:1.8; }

.chantier-others{background:#eaf5eb; padding: 48px 0;} 
.single-chantiers__title{text-align:center; font-family: var(--font-title); font-weight: 800; 
    text-transform: uppercase; line-height: 1.25; margin: 0 0 14px; position: relative;}

/* ===== SECTION FAQ  ===== */
.home-faq{ background:#f7f8f8; padding:48px 0 }
.home-faq__title{text-align:center; font-family: var(--font-title); font-weight: 800; 
    text-transform: uppercase; line-height: 1.25; margin: 0 0 14px; position: relative;}
.home-faq__title p{ margin: 8px 0 0;}
.home-faq__subtitle{ text-align:center; font-size: 22px;}

.section-link{ margin: 40px 0 0; justify-content: center; text-align: center; }


@media (max-width: 900px){
  .chantier-head{ flex-direction:column; }
  .chantier-loc{ white-space:normal; }
  .ba--single, .chantier-img{ height: 280px; }
}
