:root {
  --vert-fonce: #16401e;
  --vert: #1f5a2a;
  --vert-vif: #2f8a3a;
  --or: #f6b82a;
  --orange: #ef7d17;
  --creme: #faf7ef;
  --texte: #1d2a1f;
  --gris: #5b665d;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(10, 30, 12, .12);
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--police); color: var(--texte); background: var(--creme); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--vert); }
.section--sombre h2, .section--vert h2 { color: #fff; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--sombre { background: var(--vert-fonce); color: #e9efe6; }
.section--vert { background: linear-gradient(135deg, var(--vert) 0%, var(--vert-vif) 100%); color: #fff; }
.surtitre { margin: 0 0 .3em; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--orange); }
.section--sombre .surtitre, .section--vert .surtitre { color: var(--or); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, var(--or), var(--orange)); color: #2a1a00;
  box-shadow: 0 6px 18px rgba(239, 125, 23, .35); transition: transform .15s, box-shadow .15s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(239, 125, 23, .45); }
.bouton--clair { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.bouton--clair:hover { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px #fff; }
.bouton--petit { padding: .5em 1.1em; font-size: .92rem; box-shadow: none; }
.bouton--grand { font-size: 1.1rem; padding: 1em 1.6em; }

/* Barre du haut */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  background: rgba(22, 64, 30, .92); backdrop-filter: blur(8px); color: #fff;
}
.barre__logo img { height: 40px; width: auto; display: block; }
.barre__nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .95rem; }
.barre__nav a:not(.bouton) { text-decoration: none; opacity: .9; }
.barre__nav a:not(.bouton):hover { opacity: 1; color: var(--or); }

/* Accueil */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,35,14,.55) 0%, rgba(10,35,14,.35) 45%, rgba(10,35,14,.85) 100%); }
.hero__contenu { position: relative; z-index: 1; padding: 110px 16px 60px; width: min(900px, 100%); }
.hero__logo { margin: 0 auto .4em; width: min(620px, 92%); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)); }
.hero__metier { margin: 0; font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
.hero__slogan { margin: .6em 0 1.2em; font-size: clamp(1.9rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.12; color: var(--or); text-shadow: 0 3px 16px rgba(0,0,0,.5); font-style: italic; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Prestations */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.carte { background: #fff; border-radius: var(--rayon); padding: 26px 24px; box-shadow: var(--ombre); border-top: 4px solid var(--or); transition: transform .2s; }
.carte:hover { transform: translateY(-4px); }
.carte__icone { font-size: 2rem; display: block; margin-bottom: 8px; }
.carte h3 { color: var(--vert); font-size: 1.25rem; margin-bottom: .4em; }
.carte p { margin: 0; color: var(--gris); }

/* Réalisations */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.filtre { font: inherit; font-weight: 600; font-size: .92rem; padding: .5em 1.1em; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; }
.filtre:hover { border-color: var(--or); }
.filtre.actif { background: var(--or); border-color: var(--or); color: #2a1a00; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #0d2a12; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie a:hover img { transform: scale(1.06); }
.galerie a[hidden] { display: none; }

/* À propos */
.apropos { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.apropos img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.devise { font-size: 1.35rem; font-weight: 800; font-style: italic; color: var(--orange); }

/* Contact */
.contact { text-align: center; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 26px 0; }
.contact__adresse { opacity: .85; font-size: .95rem; }

/* Pied de page */
.pied { background: #0f2c15; color: #b8c6b6; text-align: center; padding: 28px 16px 90px; font-size: .88rem; }
.pied p { margin: .3em 0; }

/* Bouton d'appel flottant (mobile) */
.appel-flottant { display: none; }

/* Visionneuse */
.visionneuse { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.visionneuse::backdrop { background: rgba(5, 15, 7, .9); }
.visionneuse img { max-width: 94vw; max-height: 88vh; border-radius: 8px; margin: auto; }
.visionneuse__fermer { position: fixed; top: 14px; right: 18px; font-size: 1.6rem; color: #fff; background: rgba(0,0,0,.4); border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; }

/* Mentions légales */
.page-texte { padding: 110px 0 60px; }
.page-texte h1 { color: var(--vert); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-texte h2 { font-size: 1.3rem; margin-top: 1.6em; }

@media (max-width: 760px) {
  .barre__nav a:not(.bouton) { display: none; }
  .barre__logo img { height: 32px; }
  .apropos { grid-template-columns: 1fr; }
  .appel-flottant {
    display: flex; position: fixed; z-index: 30; right: 16px; bottom: 16px;
    padding: .9em 1.4em; border-radius: 999px; font-weight: 800; text-decoration: none;
    background: linear-gradient(180deg, var(--or), var(--orange)); color: #2a1a00;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- Photos dans les cartes --- */
.carte--photo { padding: 0 0 22px; overflow: hidden; border-top: 0; }
.carte--photo h3, .carte--photo p { padding: 0 22px; }
.carte__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; border-bottom: 4px solid var(--or); }
.carte__photo--bois { display: grid; place-items: center; background: repeating-linear-gradient(90deg, #8a5a2b 0 34px, #9c6a36 34px 36px, #7d4f24 36px 70px, #93622f 70px 72px); }
.carte__photo--bois span { font-size: 3rem; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }

/* --- Bandeau photo des atouts --- */
.bandeau-photo { position: relative; padding: clamp(56px, 10vw, 110px) 0; color: #fff;
  background: linear-gradient(rgba(12,40,16,.62), rgba(12,40,16,.62)), url("img/bandeau-oliveraie.jpg") center 60% / cover; }
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.atouts strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--or); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.atouts span { opacity: .92; }

/* --- Contact sur fond photo --- */
.section--photo { background: linear-gradient(135deg, rgba(22,64,30,.9), rgba(47,138,58,.82)), url("img/abattage-4.jpg") center / cover; }

/* --- Galerie : première photo mise en avant sur grand écran --- */
@media (min-width: 900px) {
  .galerie { grid-auto-flow: dense; }
  .galerie a:first-child { grid-column: span 2; grid-row: span 2; }
}

/* --- Comparateur avant / après --- */
.comparateur { --pos: 50%; position: relative; max-width: 960px; margin: 24px auto 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 1437 / 1065; user-select: none; }
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparateur__avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparateur::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none; }
.comparateur input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comparateur__etiquette { position: absolute; top: 14px; padding: .3em .9em; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: .9rem; pointer-events: none; }
.comparateur__etiquette--avant { left: 14px; }
.comparateur__etiquette--apres { right: 14px; background: var(--or); color: #2a1a00; }

/* --- Lien vers les avis Google --- */
.lien-avis { color: var(--or); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lien-avis:hover { color: #fff; }
