/* ============================================================
   PRESTAMAX — Maxence Garcia, jardinier paysagiste · 32810
   Palette végétale : vert tendre, vert profond, crème, ocre
   ============================================================ */

:root {
  /* Verts du jardin (repris du logo : vert feuille + ocre) */
  --green-900: #1d3a22;      /* vert forêt, fonds sombres */
  --green-800: #264a2b;
  --green-700: #2f6b3a;      /* vert profond des textes forts */
  --green-500: #4cb051;      /* vert feuille (logo) */
  --green-400: #6cc06b;
  --green-100: #e8f2e6;      /* vert très clair */
  --sage: #dde7d6;           /* sauge */

  --ochre: #f0a30a;          /* ocre / pollen (survols, accents) */
  --ochre-dark: #cb8a03;
  --clay: #b5651d;           /* terre cuite discrète */

  --cream: #fbf8f1;          /* crème chaud */
  --white: #ffffff;
  --ink: #22301f;            /* texte principal */
  --muted: #5f6d5c;
  --line: #e1e7db;

  --shadow-sm: 0 4px 16px rgba(29, 58, 34, .09);
  --shadow-md: 0 12px 30px rgba(29, 58, 34, .16);
  --shadow-lg: 0 22px 48px rgba(29, 58, 34, .24);

  --radius: 14px;            /* angles doux, jardin */
  --radius-sm: 9px;
  --transition: .28s ease;
  --header-height: 92px;
  --font-main: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-title: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }

body {
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ochre-dark); }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--green-900); line-height: 1.2; font-weight: 700; }
h1, h2 { font-family: var(--font-title); font-weight: 700; }

h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  margin-bottom: .55rem;
  position: relative;
  padding-bottom: .85rem;
}
/* petite feuille dessinée sous les titres */
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 54px; height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--ochre));
}

/* ---------- Structure ---------- */
.section { padding: 4.6rem 0; }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 2.3rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.section-head-lead { max-width: 560px; font-size: .97rem; color: var(--muted); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .45rem;
}
.section-kicker::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50% 0 50% 50%;
  background: var(--green-500);
  transform: rotate(-45deg);
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-sage { background: var(--sage); }

.section-green {
  background:
    radial-gradient(circle at 90% 0%, rgba(76, 176, 81, .28), transparent 48%),
    linear-gradient(0deg, var(--green-900), var(--green-900));
}
.section-green .section-head { border-bottom-color: rgba(255, 255, 255, .18); }
.section-green h2 { color: var(--white); }
.section-green .section-head-lead { color: #cfdccb; }
.section-green .section-kicker { color: #a9d9a3; }

.section-contact { background: var(--green-900); }
.section-contact .section-head { border-bottom-color: rgba(255, 255, 255, .18); }
.section-contact h2 { color: var(--white); }
.section-contact .section-head-lead { color: #cfdccb; }
.section-contact .section-kicker { color: #a9d9a3; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 107, 58, .32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--ochre), var(--ochre-dark));
  color: var(--green-900);
  box-shadow: 0 14px 30px rgba(203, 138, 3, .38);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .75);
  color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--green-900); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-icon { display: inline-flex; }

/* ============================================================
   EN-TÊTE
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(251, 248, 241, .96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 4px 20px rgba(29, 58, 34, .09);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--header-height);
  padding: .55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; }
.logo-img { width: 168px; height: auto; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.header-phone:hover { background: var(--ochre); color: var(--green-900); transform: translateY(-1px); }

.main-nav .nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  display: block;
  position: relative;
  padding: .6rem .68rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--green-900);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .68rem; right: .68rem; bottom: .3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--ochre));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.is-active { color: var(--green-700); }

/* Hamburger */
.hamburger {
  display: none;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--green-500);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  padding: 0;
}
.hamburger span {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  margin-left: -11px;
  background: var(--green-700);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger.active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ============================================================
   ACCUEIL
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 3.5rem) 1.25rem 4.5rem;
  background: var(--green-900);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background: url("bandeau.webp") center / cover no-repeat;
  z-index: -1;
}
.hero.is-video-error .hero-video { display: none; }
.hero.is-video-error .hero-fallback { z-index: 0; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* voile plus léger qu'avant : la vidéo reste visible, le texte lisible.
     (Avant : .93 / .8 / .35 / .6 + touche verte .3 — trop sombre.) */
  background:
    linear-gradient(100deg, rgba(16, 33, 19, .62) 0%, rgba(24, 48, 28, .42) 45%, rgba(24, 48, 28, .12) 75%, rgba(16, 33, 19, .32) 100%),
    radial-gradient(circle at 85% 20%, rgba(76, 176, 81, .14), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--white);
  padding-left: 1.5rem;
  border-left: 4px solid var(--green-400);
  animation: heroIn .8s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .38rem .9rem;
  border-radius: 999px;
  background: rgba(76, 176, 81, .22);
  border: 1px solid rgba(168, 216, 160, .45);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d7ecd2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  max-width: 26ch;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .45);
}
.hero h1 em { font-style: italic; color: #ffd487; }

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 600;
  color: #f2f8f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  margin-bottom: .6rem;
  max-width: 48ch;
}
.hero-sub {
  font-size: .97rem;
  color: #e2eedf;                 /* plus clair : lisible sur la vidéo éclaircie */
  max-width: 50ch;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }

.hero-infos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .86rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  font-weight: 600;
  color: #d5e5d2;
}
.hero-infos li { display: flex; align-items: center; gap: .45rem; }
.hero-infos li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  background: var(--ochre);
  flex: 0 0 auto;
}

.hero-video-toggle {
  position: absolute;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 3;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 33, 19, .6);
  border: 1px solid rgba(255, 255, 255, .45);
  color: var(--white);
  font-size: .76rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.hero-video-toggle:hover { background: var(--ochre); color: var(--green-900); }

/* ============================================================
   ENGAGEMENTS
   ============================================================ */
.engagements {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-top: 4px solid var(--green-900);
  border-bottom: 4px solid var(--green-900);
}
.engagements-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.engagement { text-align: center; color: var(--white); }
.engagement strong { display: block; font-family: var(--font-title); font-size: 1.4rem; line-height: 1.15; }
.engagement span { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: #eaf6e7; }

/* ============================================================
   PRESTATIONS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--ochre));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service-ico svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.02rem; margin-bottom: .55rem; }
.service-card p { font-size: .93rem; color: var(--muted); }

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(76, 176, 81, .4);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .service-ico {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  transform: rotate(-6deg) scale(1.06);
}

/* ============================================================
   RÉALISATIONS — PELLICULE DE CINÉMA
   ============================================================ */
.filmstrip-wrap { position: relative; padding: 0 0 1rem; }

.filmstrip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 26px 1.25rem;
  background:
    /* perforations de la pellicule */
    repeating-linear-gradient(90deg,
      rgba(251, 248, 241, .9) 0 10px,
      transparent 10px 30px) top left / 100% 12px repeat-x,
    repeating-linear-gradient(90deg,
      rgba(251, 248, 241, .9) 0 10px,
      transparent 10px 30px) bottom left / 100% 12px repeat-x,
    linear-gradient(180deg, #101d13, #16281a);
  border-top: 2px solid rgba(0, 0, 0, .5);
  border-bottom: 2px solid rgba(0, 0, 0, .5);
  scrollbar-width: thin;
  scrollbar-color: var(--ochre) transparent;
}
.filmstrip::-webkit-scrollbar { height: 8px; }
.filmstrip::-webkit-scrollbar-track { background: rgba(255, 255, 255, .1); }
.filmstrip::-webkit-scrollbar-thumb { background: var(--ochre); border-radius: 4px; }
.filmstrip:focus-visible { outline: 3px solid var(--ochre); outline-offset: -3px; }

.film-frame {
  position: relative;
  flex: 0 0 auto;
  width: min(68vw, 620px);
  margin: 0 8px;
  scroll-snap-align: center;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  transition: transform .35s ease, box-shadow .35s ease;
}
.film-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #000;
  transition: transform .6s ease, filter .35s ease;
}
.frame-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .8rem;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
}
.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color var(--transition);
  pointer-events: none;
}
.film-frame:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.film-frame:hover img { transform: scale(1.06); filter: brightness(1.06) saturate(1.05); }
.film-frame:hover::after { border-color: var(--ochre); }

.film-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(16, 33, 19, .72);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.film-nav:hover { background: var(--ochre); color: var(--green-900); }
.film-prev { left: .5rem; }
.film-next { right: .5rem; }

.film-hint {
  text-align: center;
  margin-top: .9rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9dbb98;
}

/* ============================================================
   PLANTATIONS — PUZZLE
   ============================================================ */
.plantation-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.4rem;
  align-items: center;
}

.puzzle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 158px;
  gap: 10px;
}
.puzzle-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--green-100);
  min-height: 150px;
}
.puzzle-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease, filter .4s ease;
}
.puzzle-tile figcaption {
  position: absolute;
  left: .7rem; bottom: .7rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  color: var(--green-900);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.puzzle-big { grid-column: span 2; grid-row: span 2; }
.puzzle-wide { grid-column: span 3; }
.puzzle-tile { min-height: 0; }
.puzzle-tile { cursor: default; }
.puzzle-tile:hover img { transform: scale(1.07); filter: saturate(1.1); }
.puzzle-tile:hover figcaption { opacity: 1; transform: translateY(0); }
.puzzle-tile:hover { box-shadow: var(--shadow-md); }

.plantation-text h3 {
  font-size: 1.06rem;
  color: var(--green-700);
  margin: 1.2rem 0 .4rem;
}
.plantation-text h3:first-child { margin-top: 0; }
.plantation-text p { font-size: .96rem; color: var(--muted); margin-bottom: .7rem; }
.plantation-note {
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--green-500);
  background: var(--green-100);
  border-radius: var(--radius-sm);
  color: var(--green-800) !important;
  font-weight: 600;
}
.plantation-text .btn { margin-top: .7rem; }

/* ============================================================
   À PROPOS
   ============================================================ */
.apropos-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2.2rem;
  align-items: center;
}
/* ============================================================
   AVIS
   ============================================================ */
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 980px) { .avis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .avis-grid { grid-template-columns: 1fr; } }
.avis-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.avis-card p, .avis-card strong, .avis-card span { transition: color var(--transition); }
.avis-stars { color: var(--ochre); font-size: 1.05rem; letter-spacing: .16em; margin-bottom: .7rem; }
.star-off { color: #d9ded6; }
.avis-quote { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; font-style: italic; }
.avis-card strong { display: block; font-size: .95rem; color: var(--green-900); }
.avis-city { display: block; font-size: .84rem; color: var(--muted); }

.avis-card:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
/* on garde les étoiles dorées sur le fond sombre */
.avis-card:hover .avis-stars,
.avis-card:hover .avis-stars .star-off { color: var(--ochre) !important; }
.avis-card:hover *,
.avis-card:hover p,
.avis-card:hover strong,
.avis-card:hover span,
.avis-card:hover .avis-quote,
.avis-card:hover .avis-city { color: #ffffff !important; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 1.5rem;
}
.contact-stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.contact-stack-a > .contact-card { flex: 0 0 auto; }
.contact-stack-b > .contact-map { flex: 3 1 auto; }
.contact-stack-b > .qrcode-block { flex: 2 1 auto; }

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(168, 216, 160, .24);
  border-left: 4px solid var(--green-400);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  color: #e6efe3;
}
.contact-card h3, .contact-card h4 {
  font-family: var(--font-title);
  color: #b9e0b2;
  font-size: 1.14rem;
  margin-bottom: 1rem;
}
.contact-card p { font-size: .95rem; margin-bottom: .5rem; color: #d3e0cf; }
.contact-card > :last-child { margin-bottom: 0; }
.contact-card strong { color: var(--white); }
.contact-card a { color: #b9e0b2; text-decoration: underline; text-underline-offset: 2px; }
.contact-card a:hover { color: var(--ochre); }

.contact-hours-title { margin-top: 1.4rem !important; color: #b9e0b2 !important; }
.hours-list { margin: .4rem 0 1rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem 0;
  font-size: .92rem;
  border-bottom: 1px dashed rgba(168, 216, 160, .22);
}
.hours-list li span:first-child { color: #c2d4be; }
.hours-list li span:last-child { font-weight: 700; color: var(--white); }
.hours-list li.closed span:last-child { color: #ffc078; }
.contact-note { margin-top: 1rem; font-size: .86rem !important; color: #b2c5ad !important; font-style: italic; }

.contact-map iframe {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #0f1d12;
}
.contact-map-caption { margin-top: .8rem; font-size: .88rem !important; }

.contact-form-block form { display: flex; flex-direction: column; flex: 1 1 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-group { margin-bottom: .8rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #b9e0b2;
  margin-bottom: .3rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .72rem .85rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(168, 216, 160, .3);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group select { appearance: none; }
.form-group select option { color: var(--ink); background: var(--white); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #a5b8a1; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .14);
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(108, 192, 107, .25);
}
.form-group textarea { resize: vertical; min-height: 92px; }
.form-note { margin-top: auto; padding-top: .8rem; font-size: .79rem !important; color: #a5b8a1 !important; }
.form-feedback {
  margin-top: .6rem;
  min-height: 1.2em;
  font-size: .86rem !important;
  font-weight: 700;
  color: #b9e0b2 !important;
}
.form-feedback.is-error { color: #ffc078 !important; }

/* QR code — grand et lisible */
.qrcode-block { text-align: center; justify-content: center; align-items: center; gap: .25rem; }
.qrcode-img {
  width: min(88%, 46vh, 420px);
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: .2rem auto .7rem;
  padding: .9rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.qrcode-img:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .5), 0 0 0 3px rgba(76, 176, 81, .6);
}
.qrcode-note { font-size: .89rem !important; color: #d3e0cf !important; max-width: 46ch; }
.qrcode-block .qrcode-domain {
  display: inline-block;
  margin-top: .6rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--ochre);
  color: var(--green-900);
  font-size: .85rem;
  font-weight: 800;
  transition: background-color var(--transition), color var(--transition);
}
.qrcode-block .qrcode-domain:hover,
.qrcode-block .qrcode-domain:focus-visible {
  background-color: var(--white);
  color: var(--green-900);
}
.qrcode-block .qrcode-domain:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
  background: #16281a;
  color: #b6c8b2;
  padding: 3.2rem 1.25rem 0;
  border-top: 4px solid var(--green-500);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 { font-family: var(--font-title); font-size: 1.02rem; color: #b9e0b2; margin-bottom: .8rem; }
.footer-col p { font-size: .9rem; margin-bottom: .35rem; }
.footer-col ul li { margin-bottom: .35rem; }
.footer-col a { color: #b6c8b2; font-size: .9rem; }
.footer-col a:hover { color: var(--ochre); }
.footer-bottom {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(168, 216, 160, .2);
  text-align: center;
  font-size: .83rem;
  color: #8ba287;
}
.footer-credit { margin-top: .3rem; font-size: .78rem; }

/* ============================================================
   BOUTON FLOTTANT
   ============================================================ */
.back-home {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 1200;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease, background .3s ease;
}
.back-home:hover { background: var(--ochre); color: var(--green-900); }
.back-home.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.5rem;
  background: rgba(8, 18, 10, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(94vw, 1250px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}
.lightbox-caption { color: #b9e0b2; font-size: 1.15rem; font-weight: 700; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--ochre); color: var(--green-900); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav:hover { background: var(--ochre); color: var(--green-900); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ============================================================
   APPARITION AU DÉFILEMENT
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ============================================================
   MENTIONS LÉGALES
   ============================================================ */
.legal-page { padding: calc(var(--header-height) + 3rem) 1.25rem 4rem; background: var(--cream); }
.legal-inner {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green-500);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm);
}
.legal-inner h1 { font-family: var(--font-title); font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-bottom: .5rem; }
.legal-inner h2 {
  font-size: 1.04rem;
  font-family: var(--font-main);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2rem;
}
.legal-inner h2::after { width: 36px; height: 3px; }
.legal-inner p, .legal-inner li { font-size: .95rem; color: var(--muted); margin-bottom: .55rem; }
.legal-inner ul { list-style: disc; padding-left: 1.3rem; margin-bottom: .8rem; }
.legal-inner a { color: var(--green-700); text-decoration: underline; }
.legal-lead { color: var(--ink) !important; font-size: 1rem !important; }
.legal-property {
  margin: 1rem 0 1.2rem;
  padding: .95rem 1.1rem;
  background: var(--green-100);
  border-left: 4px solid var(--ochre);
  border-radius: var(--radius-sm);
}
.legal-property strong { color: var(--green-900); font-weight: 800; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 2rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  font-size: .89rem;
}
.legal-back:hover { background: var(--ochre); color: var(--green-900); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1150px) {
  .logo-img { width: 140px; }
  .nav-link { font-size: .8rem; padding: .55rem .48rem; }
  .nav-link::after { left: .48rem; right: .48rem; }
  .header-phone { font-size: .86rem; padding: .55rem .8rem; }
}

@media (max-width: 1024px) {
  .hamburger { display: block; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(84vw, 320px);
    height: calc(100svh - var(--header-height));
    background: var(--cream);
    border-left: 3px solid var(--green-500);
    box-shadow: -12px 0 34px rgba(29, 58, 34, .22);
    transform: translateX(105%);
    transition: transform .35s ease;
    overflow-y: auto;
    padding: 1.2rem 1rem 2rem;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-links { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link { padding: 1rem; font-size: .97rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.is-active { background: var(--green-100); color: var(--green-900); }

  .plantation-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .apropos-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { grid-template-columns: 1fr; }

  .contact-layout { display: flex; flex-direction: column; gap: 1.2rem; }
  .contact-stack { display: contents; }
  .contact-info { order: 1; }
  .contact-form-block { order: 2; }
  .contact-map { order: 3; }
  .qrcode-block { order: 4; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .engagements-inner { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .film-frame { width: min(80vw, 520px); }
}

@media (max-width: 768px) {
  :root { --header-height: 78px; }

  .section { padding: 3.2rem 0; }
  .logo-img { width: 128px; }
  .hero { min-height: 94svh; padding-top: calc(var(--header-height) + 2.2rem); }
  .hero-content { padding-left: 1rem; border-left-width: 3px; }
  .hero h1 { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-infos { flex-direction: column; gap: .3rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }

  .film-frame { width: 88vw; margin: 0 6px; }
  .film-frame img { height: 320px; }
  .film-nav { width: 38px; height: 38px; font-size: 1.2rem; }
  .film-prev { left: .3rem; }
  .film-next { right: .3rem; }

  .puzzle { grid-auto-rows: 120px; }
  .puzzle-big { grid-column: span 2; grid-row: span 2; }
  .puzzle-wide { grid-column: span 3; }
  .puzzle-tile figcaption { opacity: 1; transform: none; }


  .contact-card { padding: 1.4rem 1.2rem; }
  .contact-map iframe { min-height: 230px; height: 230px; flex: none; }
  .qrcode-img { width: min(100%, 330px); padding: .7rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; }
  .back-home { width: 46px; height: 46px; bottom: 16px; right: 16px; font-size: 1.1rem; }
  .legal-inner { padding: 1.7rem 1.2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .film-frame { width: 92vw; }
  .film-frame img { height: 300px; }
  .btn { padding: .85rem 1.1rem; font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .filmstrip { scroll-behavior: auto; }
}

@media print {
  .site-header, .back-home, .hero-video, .hero-video-toggle, .lightbox, .film-nav { display: none !important; }
  body { color: #000; background: #fff; }
}


/* Cadrage du héros sur mobile : décale légèrement l’image vers la gauche pour mieux montrer le jardinier. */
@media (max-width: 768px) {
  .hero-video { object-position: 40% center; }
  .hero-fallback { background-position: 40% center; }
}

/* ============================================================
   BANDEAU DÉFILANT — nom de domaine & nom de l'entreprise
   Une SEULE piste continue : son contenu est répété assez de fois
   pour couvrir l'écran, et c'est cette piste qui défile. Deux blocs
   ne peuvent donc jamais se chevaucher, quelle que soit la largeur.
   Le mouvement est piloté par script.js (fiable même quand Windows
   est réglé sur « animations réduites ») ; le CSS n'est qu'un secours.
   ============================================================ */
.ticker {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(76, 176, 81, .22), transparent 62%),
    linear-gradient(90deg, var(--green-900), #16281a 55%, var(--green-900));
  border-top: 3px solid var(--green-500);
  border-bottom: 3px solid var(--green-500);
  padding: .55rem 0;
  /* masque : le bandeau s'efface en douceur aux deux bords */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-viewport {
  position: relative;
  height: 46px;
  overflow: hidden;
}
.ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  will-change: transform;
}

/* la piste : une suite de blocs espacés, qui défile de droite à gauche
   Chaque groupe est UNE phrase encadrée par le logo :
     [LOGO] prestamax.eu ✦ 06 44 38 68 01 ✦ Jardinier paysagiste
     dans le Gers ✦ Devis gratuit — puis le groupe suivant recommence
     par son logo, qui ferme donc la phrase précédente : jamais deux
     logos côte à côte, jamais de logo entre les informations.
   TOUT est séparé également : le même écart (gap) sépare chaque
   élément de son voisin, et le padding-right, identique au gap,
   donne exactement le même écart entre « Devis gratuit » et le logo
   du groupe suivant. Chaque ✦ est ainsi exactement centrée entre
   deux informations, et le logo exactement centré entre deux phrases.
   La largeur du groupe mesurée par script.js inclut ce padding-right :
   la boucle reste donc sans couture et sans chevauchement. */
.ticker-group {
  --ticker-gap: 2.5rem;
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--ticker-gap);      /* même écart partout, sans exception */
  padding-right: var(--ticker-gap);
  height: 100%;
  white-space: nowrap;
}

/* secours sans JavaScript */
.ticker:not(.is-js) .ticker-track { animation: tickerPass 34s linear infinite; }
@keyframes tickerPass {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* --- les blocs de contenu --- */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f2f8ef;
  line-height: 1.1;
}

/* le nom de domaine, version grande et dorée */
.ticker-domain {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: lowercase;
  color: var(--white);
}
.ticker-domain-tld { color: var(--ochre); }

.ticker-tag { color: #dcebd8; }
.ticker-tag > span {
  display: inline-block;
  font-size: clamp(.7rem, 1.3vw, .88rem);
  letter-spacing: .1em;
}
.ticker-leaf {
  width: 18px; height: 18px;
  fill: var(--green-400);
  flex: 0 0 auto;
}
/* le logo clair (version blanche / ocre sur fond vert) : il ouvre
   chaque phrase et, au début du groupe suivant, il la ferme.
   Il a son propre espace réservé et ne peut pas être écrasé. */
.ticker-frame {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.ticker-frame img {
  height: 28px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: block;
}

/* séparateur entre les informations : la petite étoile, toujours
   centrée grâce à l'écart identique à sa gauche et à sa droite */
.ticker-sep {
  flex: 0 0 auto;
  display: inline-block;
  color: var(--ochre);
  font-size: .8rem;
  line-height: 1;
  opacity: .8;
}

/* --- petits écrans : on réduit les tailles, jamais les espacements --- */
@media (max-width: 720px) {
  .ticker { padding: .35rem 0; }
  .ticker-viewport { height: 38px; }
  .ticker-group { --ticker-gap: 2rem; }
  .ticker-frame img { height: 22px; }
  .ticker-leaf { width: 15px; height: 15px; }
  .ticker-sep { font-size: .7rem; }
}

@media (max-width: 480px) {
  .ticker-viewport { height: 34px; }
  .ticker-group { --ticker-gap: 1.6rem; }
  .ticker-domain { font-size: 1.1rem; }
  .ticker-tag > span { font-size: .64rem; letter-spacing: .06em; }
  .ticker-frame img { height: 20px; }
  .ticker-leaf { width: 13px; height: 13px; }
  .ticker-sep { font-size: .64rem; }
}

/* ============================================================
   LE COIN DES PLANTES — binômes (photo + fiche) dans un cadre teinté
   Chaque binôme est regroupé dans un cadre de couleur très claire,
   tirée au hasard parmi huit nuances. Sur ordinateur : 2 binômes par
   ligne (4 colonnes), en damier. Sur téléphone : les binômes s'empilent,
   chacun dans son cadre, ce qui sépare nettement les ensembles.
   ============================================================ */
.damier-bloc {
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.damier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.3rem;
}
.damier-title {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: var(--green-900);
  margin-bottom: .35rem;
}
.damier-lead {
  font-size: .92rem;
  color: var(--muted);
  max-width: 62ch;
}
.damier-lead strong { color: var(--green-700); }

.damier-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem 1.1rem;
  border: 1.5px solid var(--green-500);
  border-radius: 999px;
  background: transparent;
  color: var(--green-700);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.damier-btn:hover,
.damier-btn:focus-visible {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.damier-btn:active { transform: translateY(1px); }

/* --- la grille : 2 binômes par ligne sur ordinateur --- */
.damier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* --- le cadre d'un binôme --- */
.damier-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.damier-pair.est-nouveau { animation: damierIn .55s ease both; }

/* --- les cases, dans le cadre --- */
.damier-case {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 168px;
  border: 2px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.damier-case:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* case « plante » : la photo */
.damier-case--plante {
  padding: 0;
  cursor: pointer;
  background: var(--green-100);
}
.damier-case--plante img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  display: block;
  transition: transform .8s ease, filter .4s ease;
}
.damier-case--plante .damier-nom {
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .55rem;
  padding: .34rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--green-900);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.damier-case--plante .damier-nom em {
  display: block;
  font-weight: 500;
  font-style: italic;
  font-size: .69rem;
  color: var(--muted);
  letter-spacing: 0;
}
/* au survol de la plante : la bordure s'illumine */
.damier-case--plante:hover,
.damier-case--plante:focus-visible,
.damier-case--plante.est-active {
  border-color: var(--green-500);
  box-shadow: 0 10px 26px rgba(29, 58, 34, .22);
  transform: translateY(-3px);
}
.damier-case--plante:hover img,
.damier-case--plante.est-active img { transform: scale(1.05); }

/* case « fiche » : le texte pédagogique */
.damier-case--fiche {
  padding: 1rem 1.05rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.damier-case--fiche .damier-type {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ochre-dark);
}
.damier-case--fiche h4 {
  font-size: .95rem;
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
}
.damier-case--fiche h4 em {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  font-size: .82rem;
}
.damier-case--fiche p {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink);
}
.damier-case--fiche .damier-credit {
  margin-top: auto;
  padding-top: .1rem;
  font-size: .58rem;
  line-height: 1.3;
  color: #94a08f;
  letter-spacing: .01em;
}
/* au survol de la fiche : fond très légèrement beige clair */
.damier-case--fiche:hover,
.damier-case--fiche.est-active {
  background: #f7f0e2;
  border-color: #e6d9c0;
  box-shadow: var(--shadow-sm);
}

/* --- les huit teintes de cadre, très légères (tirées au hasard) --- */
.damier-pair.teinte-0 { background: #f2f7ee; border-color: #e2ecda; }
.damier-pair.teinte-1 { background: #f8f4e9; border-color: #ece3ce; }
.damier-pair.teinte-2 { background: #eef5f2; border-color: #dceae4; }
.damier-pair.teinte-3 { background: #f7f0ee; border-color: #ecdfdb; }
.damier-pair.teinte-4 { background: #f1f3f8; border-color: #e0e5ef; }
.damier-pair.teinte-5 { background: #f6f1f7; border-color: #e9e0ec; }
.damier-pair.teinte-6 { background: #f4f6ec; border-color: #e6ead8; }
.damier-pair.teinte-7 { background: #f9f2ee; border-color: #eee1d8; }

/* au survol d'une case, son cadre se marque un peu */
.damier-pair:has(.damier-case.est-active) {
  border-color: #cfdcc6;
  box-shadow: var(--shadow-sm);
}

/* --- animation d'apparition --- */
@keyframes damierIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

.damier-credits {
  margin-top: .9rem;
  font-size: .7rem;
  color: #8a9686;
  text-align: center;
}

/* --- adaptations --- */
@media (max-width: 1024px) {
  .damier { grid-template-columns: 1fr; }
  .damier-case, .damier-case--plante img { min-height: 190px; }
}
/* téléphone : les binômes s'empilent, chacun bien encadré */
@media (max-width: 620px) {
  /* téléphone : le binôme s'empile verticalement (photo, puis sa fiche) */
  .damier { gap: 16px; }
  .damier-pair { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .damier-nom-pair { display: none; }
  .damier-case, .damier-case--plante img { min-height: 200px; }
  .damier-nom-pair { display: none; }
}
@media (max-width: 520px) {
  .damier-case--fiche { padding: .8rem .85rem; }
  .damier-case--fiche p { font-size: .8rem; }
  .damier-case--plante .damier-nom { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .damier-pair.est-nouveau { animation: none; }
  .damier-case--plante:hover, .damier-case--plante.est-active { transform: none; }
}

/* --- mentions légales : liste des crédits photo --- */
.credits-list {
  margin: .6rem 0 1.4rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: .3rem;
  font-size: .85rem;
  color: var(--muted);
}
.credits-list li {
  padding-left: 1rem;
  position: relative;
}
.credits-list li::before {
  content: "•";
  position: absolute;
  left: .2rem;
  color: var(--green-500);
}
.credits-list strong { color: var(--green-900); }
.legal-inner code {
  background: var(--green-100);
  padding: .05rem .35rem;
  border-radius: 4px;
  font-size: .85em;
}

/* ============================================================
   MÉTÉO DU JARDIN — deux blocs de même hauteur, largeurs inégales
   à gauche la photo des coteaux (qui suit le temps qu'il fait),
   à droite les mesures et les prévisions utiles au jardinier.
   ============================================================ */
.meteo-section {
  /* une vraie fin de section : de l'air au-dessus de la photo, pas de faux fond qui touche le pied de page */
  padding-bottom: 5.2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}
.meteo-blocs {
  display: grid;
  grid-template-columns: 1.15fr .85fr;   /* largeurs différentes… */
  align-items: stretch;                   /* …mais même hauteur */
  gap: 1.4rem;
}

/* --- bloc photo --- */
.meteo-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-900);
  box-shadow: var(--shadow-md);
  min-height: 420px;
}
.meteo-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .7s ease, transform 6s ease;
}
/* fondu entre deux photos de météo */
.meteo-photo img.est-en-fondu { opacity: 0; }
.meteo-photo:hover img { transform: scale(1.03); }
.meteo-photo-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 26, 15, .72) 100%);
}
.meteo-photo-legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: #f4f8f2;
  font-size: .82rem;
  letter-spacing: .02em;
}
.meteo-lieu { display: inline-flex; align-items: center; gap: .4rem; opacity: .92; }
.meteo-etat {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(4px);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* --- bloc panneau météo --- */
.meteo-panneau {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.2rem 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.meteo-haut {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.meteo-temp { display: flex; align-items: center; gap: .5rem; }
.meteo-icone { font-size: 2rem; line-height: 1; }
.meteo-degres {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1;
}
.meteo-resume { display: flex; flex-direction: column; gap: .15rem; }
.meteo-resume strong { font-size: .95rem; color: var(--green-900); }
.meteo-resume span { font-size: .8rem; color: var(--muted); }

.meteo-mesures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.meteo-mesure {
  padding: .6rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.meteo-mesure-lib {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.meteo-mesure strong { font-size: 1.02rem; color: var(--green-900); white-space: nowrap; }
.meteo-mesure-note { font-size: .7rem; color: var(--muted); }
.meteo-jauge {
  height: 5px;
  margin-top: .3rem;
  border-radius: 99px;
  background: #e6ece2;
  overflow: hidden;
}
.meteo-jauge span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-400), var(--green-700));
  transition: width .8s ease;
}

/* conseil du jardinier */
.meteo-conseil {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .8rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  border-left: 4px solid var(--green-500);
}
.meteo-conseil-ico { font-size: 1.1rem; line-height: 1.3; }
.meteo-conseil p { font-size: .85rem; line-height: 1.5; color: var(--green-900); }
.meteo-conseil.conseil-alerte {
  background: #fdf3e3;
  border-left-color: var(--ochre);
}
.meteo-conseil.conseil-froid {
  background: #eaf1f8;
  border-left-color: #5b8db8;
}

/* prévisions */
.meteo-sous-titre {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.meteo-jours { display: grid; gap: .3rem; }
.meteo-jour {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  grid-template-areas:
    "nom nom nom"
    "ico temp pluie";
  gap: .15rem .55rem;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  padding: .3rem .35rem;
  border-radius: 6px;
}
.meteo-jour:nth-child(odd) { background: var(--cream); }
.meteo-jour-nom {
  grid-area: nom;
  font-weight: 700;
  color: var(--green-900);
  text-transform: capitalize;
  font-size: .8rem;
}
.meteo-jour-ico { grid-area: ico; font-size: .95rem; line-height: 1.2; }
.meteo-jour-temp { grid-area: temp; color: var(--muted); white-space: nowrap; }
.meteo-jour-pluie { grid-area: pluie; text-align: right; white-space: nowrap; }
.meteo-jour-temp b { color: var(--green-900); }
.meteo-jour-pluie { font-size: .72rem; color: #4a7fa5; }

.meteo-source {
  margin-top: auto;
  font-size: .68rem;
  color: #94a08f;
}
.meteo-source a { color: inherit; text-decoration: underline; }

/* --- adaptations --- */
@media (min-width: 901px) {
  /* sur grand écran, chaque jour tient sur une seule ligne */
  .meteo-jour {
    grid-template-columns: minmax(5.4rem, auto) 1.5rem minmax(0, 1fr) auto;
    grid-template-areas: "nom ico temp pluie";
    gap: .5rem;
  }
  .meteo-jour-nom { font-size: .82rem; }
}
@media (max-width: 900px) {
  .meteo-blocs { grid-template-columns: 1fr; }
  .meteo-photo { min-height: 300px; }
}
@media (max-width: 480px) {
  .meteo-mesures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .meteo-mesure-lib {
    font-size: .63rem;
    letter-spacing: .04em;
    white-space: nowrap;        /* un seul mot par ligne : les valeurs restent alignées */
  }
  .meteo-mesure strong { font-size: .92rem; }
  .meteo-mesure { padding: .55rem .5rem; }
  .meteo-mesure-note { font-size: .66rem; }
  .meteo-jour { grid-template-columns: 1.4rem minmax(0, 1fr) auto; font-size: .78rem; }
  .meteo-jour-nom { font-size: .76rem; }
  .meteo-photo { min-height: 240px; }
  .meteo-photo-legende { font-size: .74rem; padding: .8rem .9rem; }
}

/* Météo du jour : paysage illustré d’après la saison et les prévisions. */
.meteo-photo-voile { background: linear-gradient(180deg, transparent 35%, rgba(12, 26, 15, .88) 100%); }
.meteo-photo-titre { flex: 0 0 100%; font-family: var(--font-title); font-size: clamp(1.65rem, 3.3vw, 2.6rem); line-height: 1.1; }
.meteo-photo-legende { padding: 1.15rem 1.25rem; }
.meteo-etat { font-size: .72rem; }
.meteo-mesures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#meteo-horodatage { display: block; }
@media (max-width: 560px) {
  .meteo-photo-legende { padding: .9rem 1rem; }
  .meteo-mesures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meteo-mesure:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .meteo-photo img { transition: none; }
  .meteo-photo:hover img { transform: none; }
}
.meteo-photo-titre { color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, .45); }
.meteo-source { color: var(--muted); font-size: .74rem; }
.meteo-jour-pluie { color: #3c6684; }
#meteo-jours > .meteo-vide { color: var(--muted); font-size: .83rem; }

/* Climat local : une grille lisible, avec la pluie en barres sur une base commune. */
.climat-gers {
  margin-top: 1.6rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}
.climat-corps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr); align-items: start; gap: clamp(1.1rem, 3.5vw, 2.7rem); }
.climat-intro h3 { font-family: var(--font-title); font-size: clamp(1.55rem, 2.65vw, 2.3rem); line-height: 1.12; margin: .3rem 0 .75rem; }
.climat-intro > p:not(.section-kicker) { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.climat-repere { margin-top: 1rem; padding: .7rem .85rem; border-left: 3px solid var(--green-500); border-radius: 0 7px 7px 0; background: var(--green-100); }
.climat-repere strong { color: var(--green-900); }
.climat-table { width: 100%; border-spacing: 0; font-variant-numeric: tabular-nums; text-align: left; }
.climat-table caption { padding: 0 0 .45rem; text-align: left; color: var(--green-900); font-size: .92rem; font-weight: 700; }
.climat-table th, .climat-table td { padding: .48rem .58rem; }
.climat-table thead th { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .77rem; line-height: 1.25; vertical-align: bottom; overflow-wrap: anywhere; }
.climat-table tbody th, .climat-table td { font-size: .88rem; line-height: 1.35; }
.climat-table tbody th { color: var(--green-900); }
.climat-table tbody tr:nth-child(odd) > * { background: var(--cream); }
.climat-table tbody tr > :first-child { border-radius: 6px 0 0 6px; }
.climat-table tbody tr > :last-child { border-radius: 0 6px 6px 0; }
.climat-table :is(th, td):nth-last-child(-n+2) { text-align: center; }
.climat-pluie { width: 31%; color: #2e5e76; }
.climat-barre { height: 4px; margin-top: .22rem; border-radius: 10px; background: #e3edf1; }
.climat-barre > span { display: block; height: 100%; border-radius: inherit; background: #4c849e; }
.climat-pied { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .7rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.climat-pied a, .climat-pied summary { text-decoration: underline; text-underline-offset: .14em; }
.climat-pied details { margin-top: .35rem; }
.climat-pied summary { color: var(--green-900); cursor: pointer; width: fit-content; font-weight: 600; }
.climat-pied details > p { max-width: 85ch; padding-top: .35rem; }
@media (max-width: 980px) {
  .climat-corps { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .climat-gers { padding: 1rem .75rem; }
  .climat-table th, .climat-table td { padding: .48rem .22rem; }
  .climat-table thead th { font-size: .69rem; }
  .climat-table tbody th, .climat-table td { font-size: .77rem; }
  .climat-pluie { width: 27%; }
}

.climat-lib-court { display: none; }
@media (max-width: 500px) {
  .climat-table thead th { overflow-wrap: normal; }
  .climat-lib-court { display: inline; }
  .climat-lib-long { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
}
@media (max-width: 980px) {
  .climat-corps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .climat-table { table-layout: fixed; }
  .climat-table thead th:nth-child(1) { width: 15%; }
  .climat-table thead th:nth-child(2) { width: 19%; }
  .climat-table thead th:nth-child(3) { width: 28%; }
  .climat-table thead th:nth-child(4) { width: 16%; }
  .climat-table thead th:nth-child(5) { width: 22%; }
}

/* Parcours du devis, identité de l’artisan et questions pratiques. */
.projet-etapes {
  margin-top: clamp(1.9rem, 4.5vw, 3.4rem);
  padding: clamp(1.15rem, 3.4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-100);
}
.projet-entete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.35rem; }
.projet-entete h2 { font-size: clamp(1.65rem, 3.4vw, 2.65rem); }
.projet-entete .projet-bouton { background: var(--green-700); padding: .65rem 1.25rem; box-shadow: none; }
.projet-entete .projet-bouton:hover,
.projet-entete .projet-bouton:focus-visible { background: var(--ochre); color: var(--green-900); }
.projet-entete .projet-bouton:focus-visible { outline: 2px solid var(--green-900); outline-offset: 3px; }
.projet-grille { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.projet-grille li { min-width: 0; padding: 1.15rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.projet-numero { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .7rem; border-radius: 50%; background: #f5ebd7; color: #6a4a17; font-weight: 800; font-size: .82rem; letter-spacing: .06em; }
.projet-grille h3 { font-family: var(--font-title); font-size: 1.22rem; margin-bottom: .45rem; }
.projet-grille p { font-size: .92rem; line-height: 1.55; color: var(--muted); }

.apropos-identite { isolation: isolate; position: relative; overflow: hidden; padding: clamp(1.25rem, 4vw, 2.8rem); border-radius: var(--radius); color: var(--white); background: linear-gradient(145deg, var(--green-900), var(--green-800)); box-shadow: var(--shadow-sm); }
.apropos-branche { position: absolute; z-index: -1; right: 0; bottom: 0; width: min(51%, 190px); color: rgba(216, 239, 212, .26); }
.apropos-initiales { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .88rem; border-radius: 50%; border: 1px solid #deb96f; color: #ffe2a0; font: 700 .96rem var(--font-title); letter-spacing: .05em; }
.apropos-nom { font: 700 clamp(1.65rem, 3vw, 2.5rem)/1.1 var(--font-title); }
.apropos-metier { margin-top: .35rem; color: #d9ecd6; }
.apropos-commune { margin-top: .8rem; color: #f4dba5; font-size: .82rem; font-weight: 700; }
.apropos-text p { color: var(--muted); font-size: .98rem; line-height: 1.65; margin-bottom: .8rem; }
.apropos-text .apropos-lead { color: var(--ink); font-size: 1.04rem; }
.apropos-services { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.apropos-services li { padding: .32rem .72rem; border-radius: 25px; background: var(--green-100); color: var(--green-900); font-size: .8rem; font-weight: 700; }

.contact-faq { padding-bottom: 1.05rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(168, 216, 160, .33); }
.contact-faq h3 { margin-bottom: .75rem; }
.contact-faq details { margin-top: .4rem; border-radius: 8px; background: rgba(255, 255, 255, .055); }
.contact-faq summary { cursor: pointer; position: relative; padding: .55rem 2rem .55rem .8rem; list-style: none; color: var(--white); font-weight: 650; font-size: .9rem; line-height: 1.4; }
.contact-faq summary::-webkit-details-marker { display: none; }
.contact-faq summary::after { content: ''; position: absolute; top: .8rem; right: .8rem; width: .43rem; height: .43rem; border: solid #b9e0b2; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.contact-faq details[open] summary::after { top: 1.02rem; transform: rotate(225deg); }
.contact-faq summary:hover { background: rgba(255, 255, 255, .065); border-radius: 8px; }
.contact-faq summary:focus-visible { outline: 2px solid #f4dba5; outline-offset: 2px; border-radius: 8px; }
.contact-faq details p { margin: 0; padding: .15rem .8rem .75rem; font-size: .86rem; line-height: 1.55; }
#contact-form button:disabled { cursor: not-allowed; opacity: .6; }
.form-note#form-note { color: #cddcc9 !important; }
@media (max-width: 710px) {
  .projet-grille { grid-template-columns: 1fr; }
  .projet-grille li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .78rem; }
  .projet-numero { grid-row: span 2; width: 2rem; height: 2rem; margin: 0; }
  .projet-grille h3 { margin: 0; }
  .projet-grille p { grid-column: 2; }
}

/* Les trois étapes s’éclairent une à une sous la souris, comme une ampoule. */
@media (hover: hover) and (pointer: fine) {
  .projet-grille li {
    position: relative;
    background-image: radial-gradient(ellipse at 16% 10%, rgba(255, 252, 222, .72), transparent 69%);
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
  }
  .projet-grille li:hover {
    z-index: 1;
    background-color: #ffce3d;
    border-color: #dba524;
    box-shadow: 0 0 0 2px rgba(255, 201, 52, .24), 0 0 24px rgba(248, 185, 28, .45), 0 7px 15px rgba(105, 74, 10, .13);
  }
  .projet-grille li:hover h3, .projet-grille li:hover p { color: #3b2b10; }
  .projet-grille li:hover .projet-numero {
    background-color: #fff8d9;
    color: #61400a;
    box-shadow: 0 0 12px rgba(255, 252, 219, .75);
  }
}
@media (prefers-reduced-motion: reduce) {
  .projet-grille li { transition: none; }
}
