/* ============================================================================
   BUSATI PAYSAGISTE - Feuille de styles
   Identité : vert forêt sombre + crème + accent vert pomme. Mobile-first.
   ============================================================================ */

/* ---------- Variables (identité visuelle du flyer) ---------- */
:root {
  /* Verts */
  --green-900: #17362a;   /* fond le plus sombre */
  --green-850: #193b2c;
  --green-800: #1a3a2a;   /* fond principal */
  --green-750: #1f4632;   /* surfaces légèrement surélevées */
  --green-700: #245239;   /* surfaces / cartes */
  --green-600: #2c6a48;   /* vert intermédiaire (végétaux, dégradés) */

  /* Accent vert pomme */
  --accent:    #8bbf3f;
  --accent-2:  #9ccc50;
  --accent-soft: rgba(139, 191, 63, 0.14);

  /* Crème / texte */
  --cream:      #f2efe4;
  --cream-90:   rgba(242, 239, 228, 0.90);
  --cream-70:   rgba(242, 239, 228, 0.72);
  --cream-55:   rgba(242, 239, 228, 0.62);
  --cream-line: rgba(242, 239, 228, 0.14);

  /* Typos */
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Dancing Script', 'Segoe Script', cursive;

  /* Rayon (système unique : cartes/inputs douces, boutons pilule) */
  --radius: 14px;
  --radius-pill: 999px;

  /* Largeur de conteneur */
  --maxw: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 22px 50px rgba(9, 22, 16, 0.45);
}

/* ---------- Reset léger ---------- */
* { box-sizing: border-box; }
/* L'attribut hidden doit TOUJOURS masquer (sinon écrasé par un display:flex/grid d'une classe) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--cream);
  background-color: var(--green-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

::selection { background: var(--accent); color: var(--green-900); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Icône inline (petit pictogramme aligné au texte) */
.ico-inline { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

/* Texte réservé aux lecteurs d'écran / moteurs de recherche (invisible à l'écran, accessible) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
   BOUTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-accent {
  background: var(--accent);
  color: var(--green-900);
  box-shadow: 0 10px 26px rgba(139, 191, 63, 0.22);
}
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(139, 191, 63, 0.30); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream-line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

.btn-sm { padding: 0.65em 1.2em; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================================================
   EN-TETE / NAVIGATION
   ============================================================================ */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease);
  padding-block: 16px;
}
.site-header.is-scrolled {
  background: rgba(20, 44, 32, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 10px 30px rgba(9, 22, 16, 0.35);
  border-bottom: 1px solid var(--cream-line);
  padding-block: 10px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: auto; flex: none; transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cream);
}
.brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--accent-2);
  margin-top: 3px;
}

/* Nav desktop */
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream-70);
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--cream);
  transition: color 0.25s var(--ease);
}
.header-phone:hover { color: var(--accent-2); }
.header-phone .ico-inline { color: var(--accent-2); width: 1.15em; height: 1.15em; }

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--cream-line); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin-inline: auto;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 70px;
  overflow: hidden;
}
/* Fond dégradé + halos (ambiance nature, sans image externe) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(139, 191, 63, 0.16), transparent 60%),
    radial-gradient(900px 700px at 12% 108%, rgba(44, 106, 72, 0.55), transparent 55%),
    radial-gradient(900px 700px at 92% 112%, rgba(44, 106, 72, 0.40), transparent 55%),
    linear-gradient(180deg, var(--green-850), var(--green-900));
}
/* Motifs de feuilles décoratifs dans les coins */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C7.5 18.5 5 14 5 9.5 5 6 8 3 12 2c4 1 7 4 7 7.5 0 4.5-2.5 9-7 12.5Z' fill='%238bbf3f'/%3E%3C/svg%3E");
  opacity: 0.06;
}
.hero-bg::before { top: -40px; left: -50px; transform: rotate(-24deg); }
.hero-bg::after  { bottom: -40px; right: -50px; transform: rotate(150deg); }

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 130px; height: auto; margin-bottom: 26px; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.35)); }

.hero-title { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hero-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  letter-spacing: 0.14em;
  color: var(--cream);
  text-indent: 0.14em; /* compense le letter-spacing pour un centrage optique */
}
.hero-sub {
  font-weight: 400;
  font-size: clamp(0.85rem, 3.2vw, 1.35rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--accent-2);
  margin-top: 12px;
  text-transform: uppercase;
}
.hero-slogan {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  font-weight: 500;
  color: var(--cream-90);
  margin-top: 22px;
  line-height: 1.1;
  padding-bottom: 6px; /* réserve pour les jambages (g, y, p) */
}
.hero-lead {
  max-width: 46ch;
  margin: 20px auto 0;
  color: var(--cream-70);
  font-weight: 300;
  font-size: 1.02rem;
}
.hero-lead strong { color: var(--cream); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ============================================================================
   SEPARATEUR A FEUILLE
   ============================================================================ */
.leaf-divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  max-width: 520px; margin: 0 auto; padding: 30px 22px;
}
.leaf-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--cream-line)); }
.leaf-line:last-child { background: linear-gradient(90deg, var(--cream-line), transparent); }
.leaf-mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.leaf-divider--footer { padding-top: 6px; }

/* ============================================================================
   SECTIONS (génériques)
   ============================================================================ */
.section { padding-block: clamp(60px, 9vw, 108px); position: relative; }

.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.section-intro {
  margin-top: 16px;
  color: var(--cream-70);
  font-weight: 300;
  font-size: 1.05rem;
}

/* ============================================================================
   PRESTATIONS
   ============================================================================ */
.prestations { background:
  radial-gradient(900px 500px at 85% 0%, rgba(44, 106, 72, 0.28), transparent 60%),
  var(--green-800); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(180deg, var(--green-750), var(--green-700));
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 191, 63, 0.5);
  box-shadow: var(--shadow);
}
/* Icône ronde cerclée de vert clair */
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.card-icon svg { width: 30px; height: 30px; }
.card-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}
.card-text { color: var(--cream-70); font-weight: 300; font-size: 0.97rem; }

/* ============================================================================
   POURQUOI NOUS CHOISIR
   ============================================================================ */
.pourquoi { background: linear-gradient(180deg, var(--green-800), var(--green-850)); }
.pourquoi-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

/* Contact doux : invite à appeler, sans l'insistance d'un bouton "devis" */
.pourquoi-contact {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 30px;
  padding: 11px 22px 11px 11px;
  border-radius: var(--radius-pill);
  background: rgba(242, 239, 228, 0.03);
  border: 1px solid var(--cream-line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.pourquoi-contact:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 191, 63, 0.45);
  background: rgba(242, 239, 228, 0.06);
}
.pourquoi-contact-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
  transition: transform 0.4s var(--ease);
}
.pourquoi-contact-ico svg { width: 22px; height: 22px; }
.pourquoi-contact:hover .pourquoi-contact-ico { transform: rotate(-8deg) scale(1.05); }
.pourquoi-contact-text { display: flex; flex-direction: column; line-height: 1.25; }
.pourquoi-contact-label { font-size: 0.76rem; font-weight: 400; letter-spacing: 0.02em; color: var(--cream-70); }
.pourquoi-contact-num {
  font-family: var(--font-sans);
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; color: var(--cream);
  transition: color 0.3s var(--ease);
}
.pourquoi-contact:hover .pourquoi-contact-num { color: var(--accent-2); }

.reasons { display: grid; gap: 18px; }
.reason {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(242, 239, 228, 0.03);
  border: 1px solid var(--cream-line);
  border-left: 3px solid var(--accent);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.reason:hover { transform: translateX(4px); background: rgba(242, 239, 228, 0.06); }
.reason-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}
.reason-ico svg { width: 24px; height: 24px; }
.reason-title { font-size: 1.1rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.reason-text { color: var(--cream-70); font-weight: 300; font-size: 0.94rem; }

/* ============================================================================
   FORMULAIRE DE DEVIS
   ============================================================================ */
.devis { background:
  radial-gradient(800px 500px at 100% 100%, rgba(44, 106, 72, 0.30), transparent 55%),
  var(--green-850); }
.devis-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.devis-aside .section-eyebrow,
.devis-aside .section-title { text-align: left; }
.devis-contact-list { margin-top: 28px; display: grid; gap: 16px; }
.devis-contact-list li { display: flex; align-items: center; gap: 12px; color: var(--cream-90); font-weight: 400; }
.devis-contact-list .ico-inline { width: 1.35em; height: 1.35em; color: var(--accent-2); flex: none; }
.devis-contact-list a:hover { color: var(--accent-2); }

/* Carte formulaire */
.devis-form-wrap {
  background: linear-gradient(180deg, var(--green-750), var(--green-700));
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.devis-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cream-90);
}
.req { color: var(--accent-2); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(15, 32, 23, 0.55);
  border: 1.5px solid var(--cream-line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--cream-55); }
.form-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ccc50' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.form-field select option { color: #14261b; background: var(--cream); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 32, 23, 0.75);
  box-shadow: 0 0 0 3px rgba(139, 191, 63, 0.18);
}
/* Etat erreur */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #e08a6a;
  box-shadow: 0 0 0 3px rgba(224, 138, 106, 0.16);
}
.field-error {
  min-height: 0;
  font-size: 0.78rem;
  color: #f0a98c;
  font-weight: 400;
}
.field-error:empty { display: none; }

/* Honeypot invisible */
.hidden-honeypot { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: 0.78rem; color: var(--cream-70); font-weight: 300; margin-top: 2px; }

/* Bouton d'envoi + spinner */
#devis-submit { position: relative; }
.btn-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(23, 54, 42, 0.35);
  border-top-color: var(--green-900);
  display: none;
  animation: spin 0.7s linear infinite;
}
.is-sending .btn-label { opacity: 0.55; }
.is-sending .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Retours formulaire */
.form-feedback {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 12px; font-size: 0.95rem; font-weight: 500;
}
.form-feedback svg { width: 26px; height: 26px; flex: none; }
.form-success { background: rgba(139, 191, 63, 0.14); border: 1px solid rgba(139, 191, 63, 0.5); color: var(--accent-2); }
.form-error-box { background: rgba(224, 138, 106, 0.12); border: 1px solid rgba(224, 138, 106, 0.5); color: #f0a98c; }

/* Page devis dédiée : dégage le header fixe en haut de page */
.devis-page { padding-top: clamp(120px, 15vw, 152px); }
.devis-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--accent-2);
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.devis-back:hover { color: var(--cream); gap: 12px; }
.devis-back svg { width: 1.05em; height: 1.05em; }

/* ============================================================================
   BANDE D'APPEL A L'ACTION (page d'accueil -> renvoie vers devis.html)
   ============================================================================ */
.cta-band {
  background:
    radial-gradient(760px 460px at 50% 120%, rgba(139, 191, 63, 0.14), transparent 60%),
    var(--green-850);
  text-align: center;
}
.cta-inner { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ============================================================================
   PIED DE PAGE
   ============================================================================ */
.site-footer { background: var(--green-900); padding-top: 10px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 40px;
  padding-block: 46px 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: 66px; height: auto; flex: none; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 600; letter-spacing: 0.12em; color: var(--cream);
}
.footer-name span { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.4em; color: var(--accent-2); margin-top: 4px; }
.footer-slogan { font-family: var(--font-script); font-size: 1.35rem; color: var(--cream-70); margin-top: 8px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col li { color: var(--cream-70); font-weight: 300; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom { border-top: 1px solid var(--cream-line); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 20px;
}
.footer-tagline { font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.8rem; color: var(--accent-2); }
.footer-copy { color: var(--cream-55); font-size: 0.8rem; font-weight: 300; }

/* ============================================================================
   GALERIE / REALISATIONS (grille uniforme)
   ----------------------------------------------------------------------------
   Toutes les tuiles partagent le meme format (cale sur l'orientation portrait
   des photos) : cadrage coherent, rognage minimal, rendu propre et pro.
   ============================================================================ */
.gallery { background: linear-gradient(180deg, var(--green-800), var(--green-850)); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.g-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;              /* format uniforme, proche du portrait des photos */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-line);
  box-shadow: inset 0 1px 0 rgba(242, 239, 228, 0.05);
  isolation: isolate;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.g-item:hover { border-color: rgba(139, 191, 63, 0.45); box-shadow: var(--shadow); }

/* Voile + légende révélés au survol (rendu portfolio pro) */
.g-item::after {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(9, 22, 16, 0.80), rgba(9, 22, 16, 0.10) 46%, transparent 72%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.g-item:hover::after,
.g-item:focus-visible::after { opacity: 1; }

.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.g-item:hover .g-cap,
.g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-cap-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; line-height: 1.2; color: var(--cream); }
.g-cap-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }

/* Écrans tactiles (pas de survol) : la légende reste visible en permanence */
@media (hover: none) {
  .g-item::after { opacity: 1; }
  .g-cap { opacity: 1; transform: none; }
}

.g-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--green-700), var(--green-750) 55%, var(--green-600));
  transition: transform 0.6s var(--ease);
}
/* Variation de fond par tuile (secours si une image ne charge pas) */
.g-item:nth-child(2) .g-media { background: linear-gradient(160deg, var(--green-750), var(--green-700)); }
.g-item:nth-child(3) .g-media { background: linear-gradient(205deg, var(--green-600), var(--green-750)); }
.g-item:nth-child(4) .g-media { background: linear-gradient(140deg, var(--green-700), var(--green-600)); }
.g-item:nth-child(5) .g-media { background: linear-gradient(175deg, var(--green-750), var(--green-800)); }
.g-item:nth-child(6) .g-media { background: linear-gradient(150deg, var(--green-600), var(--green-700)); }

/* Photo réelle : recouvre le fond décoratif (le dégradé sert de secours si l'image ne charge pas) */
.g-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; display: block; }
.g-item.is-zoomable { cursor: zoom-in; }
.g-item:hover .g-media { transform: scale(1.05); }

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .gallery-grid { gap: 12px; }
}

/* ============================================================================
   AVIS CLIENTS
   ============================================================================ */
.avis { background:
  radial-gradient(760px 460px at 0% 100%, rgba(44, 106, 72, 0.28), transparent 55%),
  var(--green-800); }

.avis-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.testi {
  position: relative;
  margin: 0;
  display: flex; flex-direction: column;
  padding: 28px 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--cream-line);
  background: linear-gradient(180deg, var(--green-750), var(--green-700));
}
/* Avis mis en avant : occupe la colonne de gauche sur 2 rangées */
.testi-featured {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-content: center;
  border-color: rgba(139, 191, 63, 0.35);
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(139, 191, 63, 0.10), transparent 60%),
    linear-gradient(180deg, var(--green-700), var(--green-750));
}
.testi-mark {
  font-family: var(--font-serif);
  font-size: 4.4rem; line-height: 0.8; height: 2.2rem;
  color: var(--accent); opacity: 0.5;
}
.testi-stars { display: inline-flex; gap: 3px; margin-bottom: 13px; }
.testi-stars .star { width: 18px; height: 18px; color: var(--accent); }
.testi-featured .testi-stars .star { width: 20px; height: 20px; }
.testi-text {
  margin: 0 0 16px;
  color: var(--cream-90);
  font-weight: 300;
  font-size: 0.97rem;
  line-height: 1.62;
}
.testi-featured .testi-text { font-size: 1.2rem; line-height: 1.5; }
.testi-author { display: flex; flex-direction: column; gap: 1px; margin-top: auto; }
.testi-name { font-weight: 600; color: var(--cream); }
.testi-loc { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--accent-2); text-transform: uppercase; }

@media (max-width: 820px) {
  .avis-grid { grid-template-columns: 1fr; }
  .testi-featured { grid-column: auto; grid-row: auto; }
}

/* ============================================================================
   LIGHTBOX (agrandissement des photos de la galerie)
   ============================================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(9, 22, 16, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(1100px, 94vw); max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox-close {
  position: absolute; top: 18px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242, 239, 228, 0.10);
  border: 1px solid var(--cream-line);
  color: var(--cream); font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox-close:hover { background: var(--accent); color: var(--green-900); }

/* ============================================================================
   ANIMATIONS AU SCROLL (reveal)
   ============================================================================ */
/* Par défaut (JS absent/désactivé) : le contenu reste VISIBLE.
   Le masquage initial n'est appliqué que si la classe .js est présente sur <html>
   (ajoutée par un script inline), afin de ne jamais cacher le contenu si JS échoue. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 940px) {
  .pourquoi-inner { grid-template-columns: 1fr; }
  .section-head--left { text-align: center; }
  .devis-inner { grid-template-columns: 1fr; }
  .devis-aside .section-eyebrow,
  .devis-aside .section-title { text-align: center; }
  .devis-contact-list { justify-items: center; max-width: 340px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  /* Nav mobile : panneau déroulant */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 22px; left: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: rgba(20, 44, 32, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--cream-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 12px 10px; color: var(--cream); border-radius: 8px; }
  .nav-link:hover { background: var(--accent-soft); }
  .nav-link::after { display: none; }

  .header-phone span { display: none; } /* garde l'icône téléphone, cache le numéro pour la place */
  .header-cta { display: none; }        /* le CTA est présent dans le menu + le hero */
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero { padding-top: 100px; }
  .card { padding: 28px 24px; }
}

@media (max-width: 380px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Respect de prefers-reduced-motion : on neutralise transforms et transitions animées */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================================
   PAGE MENTIONS LÉGALES
   ============================================================================ */
.legal-page { padding-top: clamp(120px, 15vw, 152px); }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 600; color: var(--cream);
  margin: 32px 0 10px;
}
.legal-content p { color: var(--cream-70); font-weight: 300; font-size: 0.96rem; margin-top: 8px; }
.legal-content a { color: var(--accent-2); }
.legal-content a:hover { text-decoration: underline; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin-top: 12px; }
.legal-dl dt { color: var(--cream-90); font-weight: 500; font-size: 0.92rem; }
.legal-dl dd { margin: 0; color: var(--cream-70); font-weight: 300; font-size: 0.92rem; }
@media (max-width: 520px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-dl dd { margin-bottom: 12px; }
}

/* Lien discret vers les mentions légales dans le pied de page */
.footer-legal-link { color: var(--cream-55); font-size: 0.8rem; font-weight: 300; }
.footer-legal-link:hover { color: var(--accent-2); }
