/* Jardins de la Garonne : archétype « jardin-organique ». Fond sauge très pâle, cartes blanc cassé, vert profond pour les titres,
   vert feuille (--accent, venu de donnees.json) pour les remplissages et les boutons, ocre fleur en touches rares.
   Contraste mesuré : le vert feuille sur la sauge n'atteint pas 4,5 : il ne sert jamais de texte courant (--feuille-texte à la place),
   seulement de grand texte, de filet ou de fond de bouton (blanc dessus). Polices : --police-titre et --police-texte viennent de donnees.json.
   Aucun pseudo-élément sur un ancêtre de champ de formulaire : les décors sont de vrais éléments (SVG). */
:root {
  --sauge: #eef2e8;
  --sauge-2: #e3eadb;
  --papier: #fbfaf4;
  --vert: #1d3a2a;
  --vert-nuit: #14281d;
  --feuille-texte: #25623c;
  --feuille-fonce: #256a40;
  --ocre: #d98c2b;
  --encre: #26352b;
  --encre-douce: #4a5b4f;
  --etiquette: 2rem;
  --rayon: 3px;
  --coin: 36px;
  --gouttiere: clamp(26px, 6.4vw, 44px);
  --haut-scene: 5.5rem;
}
html { background: var(--sauge); }
body {
  background: var(--sauge);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 1.125rem;
  line-height: 1.6;
}
main { position: relative; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--vert); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .55em; font-weight: 600; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); }
h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0 0 1em; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.etiquette-demo { height: var(--etiquette); line-height: var(--etiquette); padding-block: 0; background: var(--vert-nuit); color: #e8f0e1; }

/* ---------- en-tête flottant : vert translucide sur la photo, puis barre sauge au défilement ---------- */
.entete { position: fixed; top: var(--etiquette); left: 0; right: 0; z-index: 70; color: #fff; background: rgba(20, 40, 29, .78); transition: background-color .25s, color .25s, box-shadow .25s; }
html.defile .entete { top: 0; background: var(--sauge); color: var(--vert); box-shadow: 0 1px 0 rgba(29, 58, 42, .14), 0 10px 28px -20px rgba(29, 58, 42, .55); }
.entete-interieur { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; white-space: nowrap; font-family: var(--police-titre); font-weight: 600; font-size: clamp(1.05rem, .85rem + 1vw, 1.3rem); text-decoration: none; letter-spacing: -0.01em; }
.marque-signe { flex: none; color: #bfe3a8; transition: color .25s; }
html.defile .marque-signe { color: var(--accent); }
.menu ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; }
.menu li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.menu li a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-telephone { font-weight: 600; }
.menu-bouton { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: var(--rayon); font: inherit; font-weight: 600; }
.menu-bouton-barres { width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.menu-bouton-barres::before, .menu-bouton-barres::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-bouton-barres::before { top: -6px; }
.menu-bouton-barres::after { top: 6px; }
@media (min-width: 900px) {
  .menu { display: flex; align-items: center; gap: 2rem; }
}
@media (max-width: 899px) {
  .menu { position: absolute; top: 100%; left: 0; right: 0; padding: 1rem var(--gouttiere) 1.5rem; background: var(--vert-nuit); color: #eef2e8; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li a, .menu-telephone { display: flex; align-items: center; min-height: 2.9rem; }
  .menu-telephone { border-top: 1px solid rgba(238, 242, 232, .25); margin-top: .5rem; padding-top: .5rem; }
}

/* ---------- ouverture plein écran ---------- */
.ouverture { background: var(--vert-nuit); position: relative; min-height: calc(100svh - var(--etiquette)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.ouverture-photo { position: absolute; inset: 0; z-index: -1; }
.ouverture-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* le voile fait partie du décor : plus dense à gauche, là où le texte est posé */
.ouverture-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 30, 21, .86) 0%, rgba(14, 30, 21, .66) 50%, rgba(14, 30, 21, .16) 100%), linear-gradient(180deg, rgba(14, 30, 21, .18) 0%, rgba(14, 30, 21, .34) 100%); }
.ouverture-texte { padding-block: 8.5rem 4.5rem; }
.ouverture h1 { color: #fff; font-size: clamp(2.9rem, 1.1rem + 7.4vw, 7.4rem); line-height: 1; letter-spacing: -0.025em; max-width: 13ch; font-weight: 500; margin-bottom: .4em; }
.ouverture h1 em { color: #d6ebbf; font-weight: 400; }
.surtitre { font-size: .9375rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; color: #e4f0d8; }
.chapo { font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); max-width: 50ch; color: #f2f6ee; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 0; }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent); color: #fff; border: 1.5px solid var(--accent); border-radius: var(--rayon); font: inherit; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.bouton:hover { background: var(--feuille-fonce); border-color: var(--feuille-fonce); }
.bouton-clair { background: transparent; border-color: #fff; color: #fff; }
.bouton-clair:hover { background: #fff; color: var(--vert); border-color: #fff; }

/* ---------- têtes de section ---------- */
.rubrique { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--feuille-texte); margin-bottom: 1rem; }
.section-tete { max-width: 46rem; }
.chapeau { font-size: 1.25rem; color: var(--encre-douce); }

/* ---------- prestations : cartes à coins en feuille ---------- */
.prestations { padding-block: clamp(4rem, 9vw, 8rem); }
.cartes { list-style: none; margin: clamp(2.2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cartes { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--papier); border: 1px solid rgba(29, 58, 42, .13); border-radius: 4px var(--coin) 4px var(--coin); overflow: hidden; display: flex; flex-direction: column; }
.carte:nth-child(even) { border-radius: var(--coin) 4px var(--coin) 4px; }
.carte-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-texte { padding: 1.4rem 1.5rem 1.7rem; }
.carte-texte h3 { margin-bottom: .45em; }
.carte-texte p { margin: 0; color: var(--encre-douce); font-size: 1.0625rem; }

/* ---------- du plan à la plantation : scène épinglée ---------- */
.plan { background: var(--sauge-2); padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 6rem); }
.plan-piste { margin-top: clamp(1.8rem, 4vw, 3rem); }
.plan-scene { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.plan-carte { order: -1; margin: 0; background: var(--papier); border: 1px solid rgba(29, 58, 42, .14); border-radius: 4px 48px 4px 48px; padding: clamp(10px, 2vw, 22px); }
.plan-svg { display: block; width: 100%; height: auto; font-family: var(--police-texte); }
@media (min-width: 900px) {
  .plan-scene { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); }
  .plan-carte { order: 0; }
  html.plan-actif .plan-scene { min-height: calc(100svh - var(--haut-scene) - 1.5rem); }
}
html.plan-actif .plan-piste { height: 300svh; }
html.plan-actif .plan-scene { position: sticky; top: var(--haut-scene); }

.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.temps { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 1rem .9rem .9rem; border-left: 3px solid rgba(29, 58, 42, .18); border-radius: 0 var(--rayon) var(--rayon) 0; transition: background-color .3s, border-color .3s; }
.temps-num { flex: none; width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--vert); border-radius: 50%; font-weight: 600; color: var(--vert); transition: background-color .3s, color .3s, border-color .3s; }
.temps h3 { font-size: 1.3rem; margin: 0 0 .15em; }
.temps-texte { margin: 0; color: var(--encre-douce); font-size: 1.0625rem; }
.temps.actif { background: var(--papier); border-left-color: var(--accent); }
.temps.actif .temps-num, .temps.fait .temps-num { background: var(--vert); border-color: var(--vert); color: #fff; }
.temps.fait { border-left-color: var(--accent); }
@media (max-width: 899px) {
  .legende { gap: .25rem; }
  .temps { padding-block: .55rem; align-items: center; }
  html.plan-actif .temps:not(.actif) .temps-texte { display: none; }
  html.plan-actif .temps.actif { align-items: flex-start; }
  html.plan-actif .temps.actif .temps-num { margin-top: .1rem; }
  .temps h3 { font-size: 1.15rem; }
  .temps-texte { font-size: 1rem; }
}

/* plan SVG : couleurs. Les états de départ sont posés par site.js ; sans lui (ou mouvement réduit) le plan est complet. */
.plan-terrain { fill: #f4f1e6; }
.plan-contour { stroke: var(--vert); stroke-opacity: .55; stroke-width: 2.5; }
.allee-bord, .allee-sable { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.allee-bord { stroke: #bfae8a; stroke-width: 40; }
.allee-sable { stroke: #eadfc6; stroke-width: 32; }
.terrasse-lames, .terrasse-cadre { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.repere text { font-family: var(--police-texte); }

/* ---------- zone d'intervention ---------- */
.zone { padding-block: clamp(4rem, 9vw, 8rem); }
.zone-interieur { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: stretch; }
.zone-liste { list-style: none; margin: 1.8rem 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 34rem; }
.zone-liste li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.zone-liste li { display: flex; align-items: center; min-height: 3.6rem; padding: .8rem 1.3rem; font-size: 1.1875rem; background: var(--papier); border: 1px solid rgba(29, 58, 42, .16); border-radius: 3px 16px 3px 16px; font-weight: 500; color: var(--vert); }
.zone-note { color: var(--encre-douce); max-width: 46ch; margin-bottom: 0; }
.zone-photo { border-radius: 4px 56px 4px 56px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--sauge-2); }
.zone-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
@media (min-width: 600px) { .zone-interieur { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; } .zone-photo { aspect-ratio: 2 / 3; } }
@media (min-width: 900px) { .zone-interieur { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; } .zone-photo { aspect-ratio: auto; min-height: 380px; max-height: 560px; } }

/* ---------- avis (facultatif) ---------- */
.avis { padding-block: 2.2rem; border-block: 1px dashed rgba(29, 58, 42, .3); background: var(--papier); }
.avis-texte { margin: 0; text-align: center; font-family: var(--police-titre); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); color: var(--encre-douce); }

/* ---------- contact ---------- */
.contact { background: var(--sauge-2); padding-block: clamp(4rem, 9vw, 7rem); }
.contact-interieur { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-interieur { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); } }
.contact-tel { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--police-titre); font-size: 2rem; font-weight: 600; text-decoration: none; color: var(--vert); }
.contact-tel:hover { text-decoration: underline; text-underline-offset: 6px; }
address { font-style: normal; margin-bottom: 1.25rem; }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; margin: 0; }
.horaires dt { font-weight: 600; }
.horaires dd { margin: 0; }
.formulaire { display: grid; gap: 1rem; background: var(--papier); border: 1px solid rgba(29, 58, 42, .13); border-radius: 4px var(--coin) 4px var(--coin); padding: clamp(1.25rem, 3vw, 2rem); }
.champ label { display: block; font-weight: 500; margin-bottom: .35rem; }
.champ-requis { color: var(--feuille-texte); }
.champ input, .champ textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; background: #fff; color: var(--encre); border: 1.5px solid #8a9a8d; border-radius: var(--rayon); font: inherit; }
.champ textarea { min-height: 8rem; resize: vertical; }
.formulaire-statut { padding: .9rem 1rem; background: var(--sauge); border-left: 4px solid var(--accent); border-radius: var(--rayon); margin: 0; }

/* ---------- pied ---------- */
.pied { background: var(--vert); color: #eef2e8; }
.pied-interieur { padding-block: 3.5rem 1.2rem; }
.pied-nom { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 600; font-style: italic; }
.mention-pied { border-top: 1px solid rgba(238, 242, 232, .22); color: #d3dfcc; }

/* ---------- barre d'appel (téléphone) ---------- */
.barre-appel a { background: var(--accent); color: #fff; font-weight: 600; }

/* ---------- branches : un seul SVG le long de la marge (construit par site.js) ---------- */
.branches { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.tige-pale, .tige, .brindille-pale, .brindille { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tige-pale, .brindille-pale { stroke: var(--accent); stroke-opacity: .16; stroke-width: 2; }
.tige, .brindille { stroke: var(--accent); stroke-width: 3; }
.brindille-pale, .brindille { stroke-width: 2; }
.feuille { transform: scale(0) rotate(-40deg); transition: transform .7s cubic-bezier(.2, .9, .3, 1.15); }
.feuille.ouverte { transform: none; }
.feuille path:first-child { fill: var(--accent); }
.feuille.v2 path:first-child { fill: #4f9a69; }
.feuille.v3 path:first-child { fill: #1f6a40; }
.feuille path + path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-linecap: round; }
.fleur { transform: scale(0); transition: transform .6s cubic-bezier(.2, .9, .3, 1.3) .15s; }
.fleur.ouverte { transform: none; }
.fleur .petale { fill: var(--ocre); }
.fleur .coeur { fill: #fbfaf4; }
@media (prefers-reduced-motion: reduce) {
  .feuille, .fleur { transition: none; }
}
