:root {
  --green: #94c11c;
  --olive: #758027;
  --olive-dark: #4f5a17;
  --tan: #c59a54;
  --ink: #23271c;
  --text: #4a4f42;
  --muted: #7a7f70;
  --bg: #ffffff;
  --bg-alt: #f6f7f1;
  --line: #e3e6d8;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(35 39 28 / .10);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); }
a:hover { color: var(--olive-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--olive); color: #fff; padding: .7em 1.4em; border-radius: 999px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--olive-dark); color: #fff; transform: translateY(-1px); }
.btn-small { padding: .45em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 2px var(--olive); }
.btn-ghost:hover { background: var(--olive); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: var(--green); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--olive); font-size: 1.1rem; }
.brand strong { color: var(--tan); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--olive); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

/* Hero / carrousel */
.hero {
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-alt) 70%, #e8eed6 100%);
  padding: 40px 0 48px;
}
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.4fr 1fr;
  min-height: 420px; align-items: stretch;
}
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { padding: 40px; align-self: center; }
.slide-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.slide-intro { grid-template-columns: 1fr 1.6fr; align-items: center; padding: 40px 64px; gap: 40px; }
.slide > .slide-logo { width: min(220px, 100%); height: auto; justify-self: center; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pillars li { position: relative; padding-left: 30px; color: var(--tan); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.3; }
.pillars li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; background: var(--green); }
.slider-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .9); color: var(--olive); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.slider-btn.prev { left: 12px; } .slider-btn.next { right: 12px; }
.dots { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgb(0 0 0 / .2); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--olive); }
.tagline { text-align: center; font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 400; color: var(--olive-dark); margin: 28px auto 0; max-width: 760px; }

@media (max-width: 760px) {
  .slide, .slide-intro { grid-template-columns: 1fr; min-height: 0; }
  .slide > img:not(.slide-logo) { aspect-ratio: 3 / 2; height: auto; }
  .slide-text { padding: 24px 24px 48px; }
  .slide-intro { padding: 32px 24px 48px; gap: 24px; }
  .slide > .slide-logo { width: 120px; }
  .slider-btn { top: 30%; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 760px; }
.h-lead { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.split-img { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 100px; }
@media (max-width: 900px) {
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; gap: 32px; }
  .split-img { position: static; }
}
.intro h3 { color: var(--olive); }

.media { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; margin: 32px 0 40px; }
.media img { border-radius: 10px; }
@media (max-width: 600px) { .media { grid-template-columns: 1fr; } }

.cards { margin-top: 8px; }
.card {
  display: block; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.card h3 { color: var(--olive); }
.card p { margin: 0; }

.inline-fig { margin: 28px auto; max-width: 520px; }
.inline-fig.small { max-width: 320px; }
.inline-fig img { border-radius: 10px; }
figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Galerie */
.gallery { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery span { display: block; font-size: .92rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Recette */
.recipe { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.recipe li { background: var(--bg-alt); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.recipe b { color: var(--olive-dark); }

/* Listes */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--green); }
.checks.cols { grid-template-columns: repeat(2, 1fr); column-gap: 28px; font-size: .97rem; }
@media (max-width: 700px) { .checks.cols { grid-template-columns: 1fr; } }
.steps { padding-left: 1.3em; display: grid; gap: 12px; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin-top: 36px; align-items: start; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.price-card:first-child { border-top: 5px solid var(--green); box-shadow: var(--shadow); }
.price { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.2em; }
.price span { font-size: 2.8rem; font-weight: 700; color: var(--olive); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 20px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
td.amount { white-space: nowrap; font-weight: 600; color: var(--olive-dark); }
.opts { margin: 0; display: grid; gap: 4px; }
.opts dt { font-weight: 600; color: var(--ink); margin-top: 10px; }
.opts dd { margin: 0; font-size: .95rem; }
.offer { margin-top: 24px; background: var(--bg-alt); border-radius: 10px; padding: 18px 20px; }
.offer p { margin: 0; }

/* Contact */
.contact { background: var(--olive-dark); color: #e9eddc; }
.contact h2, .contact .lead { color: #fff; }
.contact .eyebrow { color: var(--green); }
.contact .btn { background: var(--green); color: var(--ink); }
.contact .btn:hover { background: #a9d630; }
.contact .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--olive-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-card { font-style: normal; background: rgb(255 255 255 / .07); border-radius: var(--radius); padding: 28px; }
.contact-card a { color: #fff; }
.contact-card .muted { color: #c7ceb0; }
.notice { padding: 12px 16px; border-radius: 8px; }
.notice.ok { background: #e7f3c9; color: var(--olive-dark); }
.notice.err { background: #fbe3dc; color: #7a2a12; }

/* Pied de page */
.site-footer { background: #1e2117; color: #aab094; font-size: .95rem; padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.footer-about { display: flex; gap: 18px; align-items: flex-start; }
.footer-about img { flex: none; background: #fff; border-radius: 8px; padding: 4px; }
.footer-about h2 { font-size: 1.05rem; color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; align-content: start; }
.footer-nav a { color: #d7dcc6; text-decoration: none; }
.footer-nav a:hover { color: var(--green); }
.copyright { border-top: 1px solid #33382a; margin-top: 32px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Modale */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgb(20 22 15 / .65); backdrop-filter: blur(3px); }
.modal { width: min(520px, 100% - 32px); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form { padding: 28px; display: grid; gap: 14px; }
.contact-form header { display: flex; justify-content: space-between; align-items: center; }
.contact-form h2 { font-size: 1.4rem; margin: 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd4c1; border-radius: 8px; width: 100%; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--olive); outline: 2px solid rgb(148 193 28 / .35); }
.contact-form .legal { font-size: .82rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; min-height: 1.2em; font-weight: 600; }
.form-status.ok { color: var(--olive); }
.form-status.err { color: #a3361a; }
.close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

.lightbox { background: transparent; max-width: min(1200px, 100% - 32px); max-height: 100vh; overflow: visible; }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; font-size: 1rem; }
.lightbox .close { position: absolute; top: -44px; right: 0; color: #fff; }

/* Page mentions légales */
.legal-page { padding: clamp(40px, 6vw, 72px) 0; }
.legal-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-page address { font-style: normal; }
.copyright a { color: inherit; }
