/* ==========================================================
   Pilliod Paysages, variante 1 : épurée, blanc, vert primaire
   ========================================================== */

:root {
  /* Palette tirée du logo */
  --green: #6CAF2F;        /* vert feuille du logo, primaire */
  --green-dark: #3E7A1A;   /* vert profond : fonds pleins, hover, texte blanc lisible */
  --green-soft: #EEF6E6;   /* vert très clair : fonds de cartes, icônes */
  --brown: #8A5A2B;        /* brun du lettrage PILLIOD, accent */
  --sand: #F6F3EC;         /* secondaire chaude pour alterner les sections */
  --ink: #1E2A17;
  --muted: #5B6652;
  --line: #E4E8DF;
  --white: #FFFFFF;

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Fraunces", Georgia, serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 42, 23, 0.08);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}
.eyebrow-light { color: #DCEFC8; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); }
.btn-light { background: var(--white); color: var(--green-dark); }
.btn-light:hover { background: var(--green-soft); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 150px; height: auto; }
.nav-list { display: flex; gap: 1.6rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-list a:not(.btn):hover { color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); margin: 0 auto; transition: 0.2s; }

/* Hero */
.hero { position: relative; color: var(--white); min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.webp") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 40, 12, 0.82) 0%, rgba(20, 40, 12, 0.55) 55%, rgba(20, 40, 12, 0.35) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; padding: 5rem 0; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: #CFE9B3; }
.hero-sub { font-size: 1.15rem; max-width: 520px; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  background: var(--white);
  padding: 2rem 2.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
}

/* Bandeau de confiance */
.trust { background: var(--green-soft); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-item strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--green-dark); }
.trust-item span { font-size: 0.9rem; color: var(--muted); }

/* Prestations */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; }

/* À propos */
.about { background: var(--green-dark); color: var(--white); }
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.about h2 { color: var(--white); }
.about p { color: rgba(255,255,255,0.88); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.65rem; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow: inset 0 0 0 2px var(--green);
}
.checklist li::after {
  content: ""; position: absolute; left: 0.3rem; top: 0.55em;
  width: 0.5rem; height: 0.3rem;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.about-media img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.25); aspect-ratio: 4 / 5; object-fit: cover; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 18, 7, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { color: var(--white); margin-top: 0.8rem; font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,0.12); color: var(--white);
  border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.28); }

/* Avis */
.reviews { background: var(--sand); }
.rating { color: var(--muted); font-weight: 500; }
.stars { color: #E2A400; letter-spacing: 0.1em; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review {
  margin: 0; background: var(--white); border-radius: var(--radius);
  padding: 1.8rem; border: 1px solid var(--line);
}
.review p { font-size: 1.02rem; margin-bottom: 1rem; }
.review footer { font-weight: 600; color: var(--green-dark); font-size: 0.95rem; }
.review footer::before { content: "★★★★★ "; color: #E2A400; font-size: 0.8rem; letter-spacing: 0.08em; }

/* Devis */
.quote-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.quote-text p { color: var(--muted); }
.quote-alt { font-weight: 500; }
.quote-alt a { font-weight: 700; }
.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.quote-form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #FBFBF9; width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green);
}
.quote-form .invalid { border-color: #C0392B; }
.check { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.check input { width: auto; margin-top: 0.25rem; }
.req { color: var(--brown); }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 0; font-size: 0.95rem; color: var(--green-dark); font-weight: 500; min-height: 1.2em; }
.form-note.error { color: #C0392B; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { background: var(--white); padding: 0.8rem 1rem; border-radius: 10px; width: 200px; margin-bottom: 1rem; }
.site-footer h4 { color: var(--white); margin-bottom: 0.8rem; }
.site-footer a { color: #BFE39B; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-link { font-weight: 600; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* CTA mobile */
.call-fab { display: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 4rem 0; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo img { max-width: 320px; }
  .cards { grid-template-columns: 1fr; }
  .about-inner, .quote-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line); gap: 1rem; box-shadow: var(--shadow);
  }
  .nav-list.open { display: flex; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; }
  .call-fab {
    position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--green); color: var(--white); font-weight: 700;
    padding: 0.95rem; border-radius: 999px; text-decoration: none;
    box-shadow: 0 10px 30px rgba(62, 122, 26, 0.4);
  }
  .call-fab svg { width: 20px; height: 20px; }
  body { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .gallery-item img { transition: none; }
}
