/* =========================================================
   RCS Paysagiste & Jardinier — Var / Provence
   Feuille de style principale
   ========================================================= */

:root {
  --green-dark: #1f4a1a;      /* vert du logo "RCS" */
  --green: #4f7f1a;           /* vert principal (boutons, accents) */
  --green-light: #7fae2a;     /* vert feuille */
  --green-panel: rgba(86, 136, 28, .88);
  --earth: #7b5a32;
  --charcoal: #33372f;
  --footer: #3a3e37;
  --footer-dark: #2c2f29;
  --text: #4a4f47;
  --muted: #7d8279;
  --bg: #ffffff;
  --bg-alt: #f4f5f0;
  --line: #e3e6de;
  --font-head: "PT Sans", "Trebuchet MS", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --container: 1200px;
  --shadow: 0 10px 30px rgba(20, 30, 15, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.text-center { text-align: center; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 28px; border: 2px solid var(--green);
  background: var(--green); color: #fff; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--white { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 100;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0));
  transition: background .3s, box-shadow .3s;
}
.site-header.is-fixed {
  position: fixed;
  background: rgba(31, 40, 27, .97);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  animation: slideDown .35s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }

.header-inner { display: flex; align-items: flex-start; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.logo {
  flex-shrink: 0; display: block; width: 150px; height: 150px;
  margin-top: 22px; background: none; padding: 0;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.45));
  transition: width .3s, height .3s, margin .3s;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.is-fixed .logo { width: 76px; height: 76px; margin: 6px 0; }

.header-main { flex: 1; display: flex; flex-direction: column; }
.topbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 22px;
  padding: 12px 0 0; font-size: 12.5px; color: #fff;
}
.topbar a { color: #fff; opacity: .92; }
.topbar a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.topbar .socials { display: flex; gap: 12px; align-items: center; }
.topbar .socials a { display: inline-flex; font-size: 15px; }
.topbar .tel { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .03em; }
.is-fixed .topbar { display: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; justify-content: flex-end; }
.main-nav a {
  position: relative; display: block; padding: 34px 0 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 3px; width: 0;
  background: #fff; transition: width .3s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 42px; }
.main-nav a:hover { color: #fff; }
.main-nav .nav-cta { color: #fff; }
.main-nav .nav-cta span { background: var(--green); padding: 8px 16px; transition: background .2s; }
.main-nav .nav-cta:hover span { background: var(--green-light); }
.main-nav .nav-cta::after { display: none; }
.is-fixed .main-nav a { padding: 30px 0 26px; }
.is-fixed .main-nav a::after { bottom: 18px; }

.burger { display: none; margin-left: auto; margin-top: 44px; width: 46px; height: 46px; border: 0; background: var(--green); color: #fff; cursor: pointer; font-size: 24px; align-items: center; justify-content: center; }
.is-fixed .burger { margin-top: 21px; }

/* =========================================================
   HERO / BANDEAU PHOTO
   ========================================================= */
.hero { position: relative; min-height: 640px; height: 100vh; max-height: 900px; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.08) 70%); pointer-events: none; }

.page-hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--charcoal); color: #fff; padding: 190px 0 110px; }
.page-hero .hero__bg { position: absolute; inset: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.page-hero .container { position: relative; z-index: 2; width: 100%; }

/* Panneau vert incliné (inspiré du modèle) */
.hero-panel { position: relative; max-width: 600px; margin-left: 34%; padding: 64px 70px 70px; color: #fff; z-index: 2; }
.hero-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-panel);
  clip-path: polygon(0 7%, 97% 0, 100% 93%, 4% 100%);
}
.hero-panel h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: .2em; }
.hero-panel .subtitle { font-family: var(--font-head); text-transform: uppercase; font-size: 19px; letter-spacing: .03em; margin-bottom: 1.2em; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .8em; }
.hero-panel p { font-size: 15px; }
.hero-panel .panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; font-size: 13.5px; line-height: 1.6; }
.hero-panel .panel-cols strong { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.hero-panel a { color: #fff; }
.hero-panel a:hover { text-decoration: underline; }
.hero-panel .panel-person { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); font-size: 13.5px; }
.hero-panel .panel-person h3 { color: #fff; font-size: 18px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }

/* Carrés décoratifs */
.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco span { position: absolute; background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.deco--right { right: 4%; bottom: 12%; width: 180px; height: 260px; }
.deco--right span:nth-child(1) { width: 26px; height: 26px; top: 0; right: 30px; transform: rotate(-12deg); }
.deco--right span:nth-child(2) { width: 34px; height: 34px; top: 50px; right: 0; transform: rotate(8deg); }
.deco--right span:nth-child(3) { width: 40px; height: 40px; top: 90px; right: 60px; transform: rotate(-4deg); opacity: .8; }
.deco--right span:nth-child(4) { width: 70px; height: 70px; bottom: 0; right: 10px; transform: rotate(14deg); }
.deco--right span:nth-child(5) { width: 18px; height: 18px; top: 150px; right: 120px; transform: rotate(22deg); opacity: .7; }

/* ---------- Carrousel accueil ---------- */
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide .hero__bg { transform: scale(1.08); transition: transform 7s ease; }
.slide.is-active .hero__bg { transform: scale(1); }
.slide__content { position: absolute; z-index: 3; inset: 0; padding: 180px 0 100px; display: flex; align-items: center; }
.slide__content .container { max-width: 1280px; width: 100%; }
.hero .deco { z-index: 4; }

/* Diapositive avec photo verticale (prise au téléphone) */
.slide--portrait .hero__bg,
.slide--portrait.is-active .hero__bg { filter: blur(22px) brightness(.5) saturate(1.15); transform: scale(1.15); }
.slide__portrait {
  position: absolute; z-index: 2; right: 10%; top: 150px; bottom: 120px;
  height: calc(100% - 270px); width: auto; aspect-ratio: 3 / 5; object-fit: cover; object-position: center 30%;
  border: 8px solid #fff; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transform: rotate(2.5deg) translateY(20px); opacity: 0; transition: transform 1s ease .2s, opacity 1s ease .2s;
}
.slide--portrait.is-active .slide__portrait { transform: rotate(2.5deg); opacity: 1; }
.slide--portrait .slide__title, .slide--portrait .slide__text { max-width: 50%; }
.slide--tilt-left .slide__portrait { transform: rotate(-2.5deg) translateY(20px); }
.slide--tilt-left.is-active .slide__portrait { transform: rotate(-2.5deg); }
.tag {
  display: inline-block; background: var(--green-light); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px;
}
.slide__title { color: #fff; font-size: clamp(34px, 5vw, 64px); margin: 14px 0 12px; max-width: 780px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide__text { font-size: 17px; max-width: 560px; margin-bottom: 26px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.slider-tabs { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; }
.slider-tabs ul { list-style: none; margin: 0 auto; padding: 0 24px; max-width: 1280px; display: grid; grid-template-columns: repeat(4, 1fr); }
.slider-tabs button {
  width: 100%; text-align: left; background: rgba(20, 28, 18, .45); color: #fff; border: 0;
  border-top: 1px solid rgba(255,255,255,.25); padding: 18px 22px 22px; cursor: pointer;
  font-family: var(--font-head); position: relative; transition: background .3s;
}
.slider-tabs button:hover { background: rgba(20, 28, 18, .65); }
.slider-tabs button small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #cfe3a5; }
.slider-tabs button b { display: block; font-size: 16px; text-transform: uppercase; }
.slider-tabs button::before { content: ""; position: absolute; top: -1px; left: 0; height: 4px; width: 0; background: var(--green-light); }
.slider-tabs button.is-active { background: rgba(20, 28, 18, .75); }
.slider-tabs button.is-active::before { animation: progress 7s linear forwards; }
@keyframes progress { to { width: 100%; } }

/* =========================================================
   ONGLETS BLANCS (navigation interne)
   ========================================================= */
.tabs-nav { position: relative; z-index: 10; margin-top: -48px; }
.tabs-nav ul { list-style: none; padding: 0; margin: 0 auto; max-width: 1280px; display: flex; }
.tabs-nav li { flex: 1; }
.tabs-nav a, .tabs-nav button {
  width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; gap: 18px;
  background: #fff; color: var(--charcoal); border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 8px 22px rgba(0,0,0,.12); position: relative; transition: color .2s, background .2s;
}
.tabs-nav li + li a, .tabs-nav li + li button { box-shadow: -8px 8px 22px rgba(0,0,0,.12); }
.tabs-nav .icon { font-size: 34px; stroke-width: 1.3; color: var(--charcoal); transition: color .2s; }
.tabs-nav a:hover, .tabs-nav button:hover, .tabs-nav .is-active { color: var(--green); font-weight: 700; }
.tabs-nav a:hover .icon, .tabs-nav button:hover .icon, .tabs-nav .is-active .icon { color: var(--green); }
.tabs-nav .is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 3px; margin-left: -30px; background: var(--green); }

/* =========================================================
   SECTIONS & TITRES
   ========================================================= */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 60px 0; }
.anchor { scroll-margin-top: 90px; }

.sec-title { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 0; padding: 0 20px 34px; text-align: left; }
.sec-title .icon { font-size: 84px; color: var(--green-light); stroke-width: 1.5; }
.sec-title h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.sec-title h2 small { display: block; font-size: .5em; color: var(--green); letter-spacing: .08em; margin-top: 4px; }

.notch-bar { position: relative; height: 20px; background: var(--charcoal); box-shadow: 0 10px 20px rgba(0,0,0,.08); margin-bottom: 70px; }
.notch-bar::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border-style: solid; border-width: 30px 64px 0 64px; border-color: var(--charcoal) transparent transparent transparent; }
.notch-bar--green { background: var(--green); }
.notch-bar--green::after { border-top-color: var(--green); }

.lead { font-size: 18px; line-height: 1.75; color: var(--charcoal); max-width: 860px; margin: 0 auto 1.2em; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--green); font-weight: 700; font-size: 13px; display: block; margin-bottom: 8px; }
.quote { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); color: var(--green-dark); font-style: italic; margin-bottom: .4em; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 90px; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.split__media::before { content: ""; position: absolute; width: 60%; height: 70%; background: var(--green-light); opacity: .18; z-index: -1; left: -24px; bottom: -24px; }
.split--reverse .split__media::before { left: auto; right: -24px; }
.split h3 { font-size: 28px; text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--green-light); border-bottom: 2.5px solid var(--green-light); transform: rotate(-45deg); }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line); }
.stat { text-align: center; padding: 34px 16px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 50px; line-height: 1; color: var(--green); }
.stat span { font-family: var(--font-head); text-transform: uppercase; font-size: 13.5px; letter-spacing: .05em; color: var(--charcoal); }

/* ---------- Cartes services (photo) ---------- */
.service-card { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.05; color: #fff; background: var(--charcoal); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(15, 25, 10, .85)); transition: background .4s; }
.service-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px; }
.service-card h3 { color: #fff; text-transform: uppercase; font-size: 21px; margin-bottom: 4px; }
.service-card p { font-size: 14px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s; }
.service-card .more { display: inline-block; margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--green-light); }
.service-card:hover { color: #fff; }
.service-card:hover img { transform: scale(1.08); }
.service-card:hover::after { background: linear-gradient(rgba(40, 70, 15, .25), rgba(30, 60, 12, .92)); }
.service-card:hover p { max-height: 120px; opacity: 1; }

/* ---------- Cartes simples (valeurs) ---------- */
.feature { background: #fff; padding: 38px 32px; box-shadow: var(--shadow); border-top: 4px solid var(--green-light); height: 100%; }
.feature .icon { font-size: 52px; color: var(--green); stroke-width: 1.4; margin-bottom: 14px; }
.feature h3 { text-transform: uppercase; font-size: 19px; }
.feature p { margin: 0; font-size: 14.5px; }
.feature .tag { margin-bottom: 10px; }

/* ---------- Bandeau Services à la personne ---------- */
.sap-band { background: linear-gradient(120deg, var(--green-dark), #2f6420); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.sap-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 40px solid rgba(255,255,255,.06); transform: rotate(20deg); }
.sap-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center; }
.sap-logo { width: 170px; background: #fff; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.sap-logo img { width: 100%; height: auto; }
.sap-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: .3em; }
.sap-band p { margin: 0; opacity: .92; }
.sap-badge { text-align: center; font-family: var(--font-head); line-height: 1; }
.sap-badge b { display: block; font-size: 76px; color: #cfe89a; }
.sap-badge span { text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }
.sap-note { font-size: 12px; opacity: .75; margin-top: 10px !important; }

/* ---------- Tableau (inspiré du tableau produits du modèle) ---------- */
.table-wrap { overflow-x: auto; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; min-width: 640px; }
.table th { background: var(--charcoal); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px; text-align: left; padding: 16px 18px; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:nth-child(even) td { background: var(--bg-alt); }
.table td:first-child { font-weight: 600; color: var(--charcoal); }
.yes { color: var(--green); font-weight: 700; }

/* ---------- Actualités / blog ---------- */
.news-card { background: #fff; display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; color: var(--text); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,30,15,.18); color: var(--text); }
.news-card__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__img .tag { position: absolute; left: 18px; top: 18px; }
.news-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card time { font-size: 12.5px; color: var(--muted); letter-spacing: .05em; }
.news-card h3 { text-transform: uppercase; font-size: 18px; margin: 6px 0 10px; }
.news-card p { font-size: 14px; flex: 1; }
.news-card .more { font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--green); letter-spacing: .05em; }
.news-card--featured { display: grid; grid-template-columns: 1.3fr 1fr; }
.news-card--featured .news-card__img { aspect-ratio: auto; min-height: 360px; }
.news-card--featured h3 { font-size: 26px; }
.news-card--featured .news-card__body { padding: 44px; justify-content: center; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filters button { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; padding: 10px 20px; border: 2px solid var(--line); background: #fff; color: var(--charcoal); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--green); color: var(--green); }
.filters button.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Tuiles CTA (bas de page) ---------- */
.cta-tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.cta-tile { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--charcoal); }
.cta-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: transform .7s, opacity .4s; }
.cta-tile:nth-child(2) { background: var(--green-dark); }
.cta-tile__body { position: relative; z-index: 2; padding: 30px; }
.cta-tile small { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: #cfe89a; margin-bottom: 8px; }
.cta-tile strong { display: block; font-family: var(--font-head); font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.cta-tile .plus { display: inline-flex; margin-top: 16px; width: 46px; height: 46px; border: 2px solid #fff; align-items: center; justify-content: center; font-size: 28px; transition: background .3s, color .3s; }
.cta-tile:hover { color: #fff; }
.cta-tile:hover img { transform: scale(1.08); opacity: .3; }
.cta-tile:hover .plus { background: #fff; color: var(--green-dark); }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: stretch; }
.map { width: 100%; min-height: 420px; height: 100%; border: 0; box-shadow: var(--shadow); filter: saturate(.85); }
.zone-list { columns: 2; list-style: none; padding: 0; margin: 0 0 24px; }
.zone-list li { padding: 6px 0 6px 26px; position: relative; break-inside: avoid; border-bottom: 1px dashed var(--line); }
.zone-list li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; background: var(--green-light); transform: rotate(45deg); }
.legend { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 12px; }
.legend .icon { font-size: 22px; color: var(--green); }

/* ---------- Galerie réalisations ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.gallery-item { position: relative; overflow: hidden; cursor: zoom-in; background: var(--charcoal); aspect-ratio: 4/3; border: 0; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .4s; }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 20px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(10,20,8,.85)); transform: translateY(35%); opacity: 0; transition: all .35s; }
.gallery-item figcaption b { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 17px; }
.gallery-item figcaption span { font-size: 13px; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover figcaption { transform: none; opacity: 1; }
.gallery-item.is-hidden { display: none; }
.gallery-item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 14, 9, .94); display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox img { max-height: 82vh; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox p { color: #fff; text-align: center; font-family: var(--font-head); text-transform: uppercase; margin-top: 16px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; padding: 10px 16px; }
.lightbox .lb-close { top: 16px; right: 20px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Avant / après */
.ba { position: relative; aspect-ratio: 4/3; overflow: hidden; box-shadow: var(--shadow); user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: grayscale(.75) sepia(.35) brightness(.9); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba .ba-line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .ba-label { position: absolute; top: 18px; z-index: 2; pointer-events: none; }
.ba .ba-label--before { left: 18px; background: var(--charcoal); }
.ba .ba-label--after { right: 18px; }

/* ---------- Équipe ---------- */
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; box-shadow: var(--shadow); }
.team-card h3 { text-transform: uppercase; margin-bottom: 2px; font-size: 19px; }
.team-card span { color: var(--green); font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 40px; border-left: 3px solid var(--line); }
.timeline li { list-style: none; position: relative; margin-bottom: 34px; }
.timeline li::before { content: ""; position: absolute; left: -51px; top: 4px; width: 18px; height: 18px; background: var(--green-light); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--green-light); transform: rotate(45deg); }
.timeline b { font-family: var(--font-head); font-size: 22px; color: var(--green); display: block; }
.timeline h3 { text-transform: uppercase; font-size: 18px; margin-bottom: 4px; }

/* ---------- Article ---------- */
.article { max-width: 820px; margin: 0 auto; font-size: 16.5px; }
.article h2 { font-size: 26px; margin-top: 1.6em; }
.article h3 { font-size: 20px; margin-top: 1.4em; }
.article img { margin: 30px 0; box-shadow: var(--shadow); }
.article blockquote { margin: 30px 0; padding: 24px 30px; background: var(--bg-alt); border-left: 5px solid var(--green-light); font-family: var(--font-head); font-size: 19px; color: var(--green-dark); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; opacity: .95; }
.info-box { background: var(--bg-alt); border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 26px 30px; margin: 30px 0; }
.info-box h4 { text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Formulaire ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--charcoal); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid #cfd4c9; background: #fff; color: var(--charcoal); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(127, 174, 42, .22); }
.form textarea { min-height: 150px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.form .consent input { width: auto; margin-top: 4px; }
.form .consent label { font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.form-success { display: none; background: #eaf4d8; border-left: 5px solid var(--green); padding: 18px 22px; color: var(--green-dark); font-weight: 600; }
.form-success.is-visible { display: block; }
.contact-box { background: var(--charcoal); color: #d5d9d1; padding: 44px 40px; height: 100%; }
.contact-box h3 { color: #fff; text-transform: uppercase; }
.contact-box a { color: #fff; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-line .icon { font-size: 26px; color: var(--green-light); margin-top: 3px; }
.contact-line strong { display: block; color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--charcoal); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--green); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 24px 20px; }

/* ---------- Bandeau CTA devis ---------- */
.cta-band { position: relative; padding: 90px 0; color: #fff; text-align: center; overflow: hidden; background: var(--green-dark); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.cta-band p { font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer { background: var(--footer); color: #b7bcb2; font-size: 13.5px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 3fr; gap: 60px; padding: 70px 24px 50px; }
.footer-brand .logo { margin: 0 0 22px; width: 130px; height: 130px; filter: none; }
.footer-brand p { margin-bottom: 6px; }
.footer-brand a { color: #fff; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.footer-socials span { color: #fff; margin-right: 6px; }
.footer-socials a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; transition: background .2s; }
.footer-socials a:hover { background: var(--green); }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-nav h4 { color: #fff; text-transform: uppercase; font-size: 14.5px; letter-spacing: .05em; margin-bottom: 14px; }
.footer-nav h4 a { color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { color: #b7bcb2; }
.footer-nav a:hover { color: #fff; }
.footer-sap { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.footer-sap img { width: 90px; background: #fff; padding: 6px; }
.footer-bottom { background: var(--footer-dark); padding: 16px 0; font-size: 12.5px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom a { color: #b7bcb2; margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* Bouton retour en haut */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border: 0; background: var(--green); color: #fff; font-size: 22px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--green-dark); }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .12s; }
.js .reveal-d2 { transition-delay: .24s; }
.js .reveal-d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1150px) {
  .main-nav ul { gap: 22px; }
  .main-nav a { font-size: 13.5px; }
  .hero-panel { margin-left: 22%; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .topbar { display: none; }
  .header-inner { align-items: center; }
  .logo { width: 104px; height: 104px; margin: 10px 0; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--footer-dark);
    transform: translateX(100%); transition: transform .35s ease; padding: 90px 30px 30px; overflow-y: auto; z-index: 150;
  }
  .main-nav.is-open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.35); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a, .is-fixed .main-nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a::after, .is-fixed .main-nav a::after { bottom: 8px; }
  .main-nav .nav-cta span { display: inline-block; margin-top: 10px; }
  .burger { position: relative; z-index: 160; margin-top: 0; }
  .is-fixed .burger { margin-top: 0; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 95; }
  .hero-panel { margin: 0 auto; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .zone { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .sap-inner { grid-template-columns: auto 1fr; }
  .sap-badge { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; justify-content: center; }
  .sap-badge b { font-size: 54px; }
  .news-card--featured { grid-template-columns: 1fr; }
  .news-card--featured .news-card__img { min-height: 260px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .slider-tabs ul { grid-template-columns: repeat(2, 1fr); }
  .slide__content { padding: 130px 0 140px; }
  /* Sur tablette / mobile l'écran est vertical : la photo portrait remplit tout */
  .slide--portrait .hero__bg,
  .slide--portrait.is-active .hero__bg { filter: none; transform: none; object-position: center 25%; }
  .slide__portrait { display: none; }
  .slide--portrait::after { background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55)); }
  .slide--portrait .slide__title, .slide--portrait .slide__text { max-width: none; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .page-hero { padding: 140px 0 90px; min-height: 0; }
  .hero-panel { padding: 50px 30px 56px; }
  .hero-panel::before { clip-path: polygon(0 3%, 98% 0, 100% 97%, 2% 100%); }
  .hero-panel .panel-cols { grid-template-columns: 1fr; }
  .deco { display: none; }
  .hero { min-height: 680px; }
  .slider-tabs button { padding: 12px 14px 14px; }
  .slider-tabs button b { font-size: 13px; }
  .slider-tabs button small { display: none; }
  .tabs-nav { margin-top: -36px; }
  .tabs-nav ul { flex-wrap: wrap; padding: 0 18px; }
  .tabs-nav li { flex: 1 1 50%; }
  .tabs-nav a, .tabs-nav button { height: 72px; font-size: 13px; gap: 10px; flex-direction: column; justify-content: center; }
  .tabs-nav .icon { font-size: 24px; }
  .sec-title { gap: 16px; }
  .sec-title .icon { font-size: 54px; }
  .notch-bar { margin-bottom: 50px; }
  .notch-bar::after { border-width: 22px 44px 0 44px; }
  .grid-2, .grid-3, .grid-4, .gallery, .cta-tiles { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: auto; aspect-ratio: 4/3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 38px; }
  .form { grid-template-columns: 1fr; }
  .sap-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .sap-logo { margin: 0 auto; }
  .zone-list { columns: 1; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .news-card--featured .news-card__body { padding: 28px; }
  .contact-box { padding: 32px 24px; }
  .footer-bottom a { margin: 0 14px 0 0; }
}

/* Galerie « album » : grille régulière de photos verticales (photo entière dans la visionneuse) */
.gallery--album { grid-template-columns: repeat(3, 1fr); }
.gallery--album .gallery-item { aspect-ratio: 4 / 5; margin: 0; }
.gallery--album .gallery-item figcaption { transform: none; opacity: 1; }
@media (max-width: 1000px) { .gallery--album { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .gallery--album { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gallery--album .gallery-item figcaption { padding: 12px; } .gallery--album .gallery-item figcaption b { font-size: 14px; } .gallery--album .gallery-item figcaption span { display: none; } }

/* Chantiers « étape par étape » */
.chantier + .chantier { margin-top: 90px; }
.chantier__head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.chantier__head h3 { font-size: 26px; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { position: relative; margin: 0; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step + .step::before { content: "\203A"; position: absolute; left: -30px; top: 38%; width: 26px; text-align: center; font-size: 46px; line-height: 1; color: var(--green-light); font-weight: 700; }
.step__img { aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; background: var(--charcoal); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.step:hover .step__img img { transform: scale(1.05); }
.step figcaption { padding: 18px 22px 24px; font-size: 14px; }
.step figcaption b { display: block; margin: 10px 0 4px; font-family: var(--font-head); font-size: 18px; text-transform: uppercase; color: var(--charcoal); }
@media (max-width: 700px) {
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .step { scroll-snap-align: start; }
  .step + .step::before { display: none; }
}

/* Chantier en 5 étapes */
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
.steps--5 .step + .step::before { left: -21px; width: 20px; font-size: 34px; }
.steps--5 .step figcaption { padding: 14px 14px 18px; font-size: 13px; }
.steps--5 .step figcaption .tag { font-size: 11px; padding: 2px 7px; }
.steps--5 .step figcaption b { font-size: 15px; }
@media (max-width: 1100px) and (min-width: 701px) {
  .steps--5 { grid-template-columns: repeat(3, 1fr); }
  .steps--5 .step + .step::before { display: none; }
}

/* Blog : articles à paraître (non cliquables) */
.news-card--soon { cursor: default; }
.news-card--soon:hover { transform: none; box-shadow: var(--shadow); }
.news-card--soon .news-card__img img { filter: grayscale(.6) brightness(.9); }
.news-card--soon:hover .news-card__img img { transform: none; }
.news-card--soon .more { color: var(--muted); }

/* Article : liste d'étapes et galerie de 4 photos */
.article-steps { margin: 0; padding-left: 1.3em; }
.article-steps li { margin-bottom: 4px; }
.article .steps { margin: 26px 0 10px; }
.article .step img { margin: 0; box-shadow: none; }
.steps--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps--4 .step + .step::before { display: none; }
.steps--4 .step figcaption { padding: 12px 14px 16px; }
.steps--4 .step figcaption b { font-size: 15px; }
@media (max-width: 1000px) and (min-width: 701px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }

/* Photos dans les articles : format paysage homogène */
.article > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Message d'erreur du formulaire */
.form-error { display: none; background: #fdeaea; border-left: 5px solid #c0392b; padding: 18px 22px; color: #8e2b20; font-weight: 600; }
.form-error.is-visible { display: block; }
.form button[disabled] { opacity: .6; cursor: progress; }
