/* =========================================================
   Naturellement Jardin — wireframe amélioré v3
   ---------------------------------------------------------
   VERROU DE RÉFÉRENCE
   - Composition : leandra-isler.ch (modèle d'origine) —
     titre-affiche géant centré, traversé par un végétal
     vertical, fond chaud, menu discret, grilles de cartes,
     appel final « prêt pour la première étape ».
   - Typo et règles : DESIGN.md fourni (Savor) —
     · display serif condensé léger, hero uniquement
       (Roslindale Display Condensed → Instrument Serif)
     · sans universel 400/700, tracking -0.01em
       (Suisse Intl → Inter)
     · rayon unique 5px, filets 1px à la place des ombres,
       bouton à contour par défaut, photo pleine largeur à
       angles vifs avec légende posée dessus.
   - Identité client (carte) : jaune paille, script du logo,
     dessins aquarelle (arbre, muret, lavande).
   - Écart assumé : le bordeaux du DESIGN.md est remplacé par
     le bleu pétrole de la carte, dans le même rôle (filets,
     menu, contours, texte de badge).
   - Écart assumé : titre du hero centré (modèle d'origine),
     alors que DESIGN.md le veut aligné à gauche.

   RÈGLES DE COHÉRENCE
   - Pétrole = encre et structure (texte, filets 1px, CTA).
   - Doré (jaune de la carte) = un seul usage : badge devis.
   - Vert / lavande = dessins uniquement.
   - Instrument Serif = H1, grands titres de section, appel final,
     titres « Pourquoi nous » ; jamais en dessous de 34px.
   - Allura = logo et signature seulement.
   - Rayon : 5px partout, 0 sur les photos pleine largeur.
   - Pas d'ombre. Flou léger : navbar uniquement. Dégradé : seul le voile
     de lisibilité sous la légende de la photo pleine largeur.
   - Mouvement : 1 courbe, 3 durées ; entrée du hero,
     apparitions, survols, rameau qui oscille au vent.
   ========================================================= */

:root {
  /* Couleurs */
  --c-velin: #fbf4de;      /* fond de page (vélin chaud + paille de la carte) */
  --c-lin: #f1e7cc;        /* beige unique des surfaces (section Pourquoi nous, cartes, champs, footer) */
  --c-dore: #f4e9b4;       /* accent rare (badge) */
  --c-encre: #0e4b55;      /* bleu pétrole : texte, filets, CTA */
  --c-encre-nuit: #0a3940;
  --c-graphite: #4d544f;   /* texte secondaire */
  --c-feuille: #4a7f35;    /* dessins */
  --c-filet: rgba(14, 75, 85, .2);   /* filet doux (cartes, champs, boutons) */
  --c-sauge: #d8e0c6;    /* bouton principal doux */
  --c-sauge-fonce: #c6d2b0;
  --c-sauge-texte: #7f9766;  /* même vert que les boutons, assez foncé pour se lire */
  --c-carte: var(--c-lin); /* cartes = même beige que « Pourquoi nous » */

  /* Typo */
  --f-display: "Instrument Serif", Georgia, serif;
  --f-sans: "Inter", system-ui, sans-serif;
  --f-script: "Allura", cursive;
  --t-display: clamp(3.4rem, 0.8rem + 9.2vw, 10.5rem);
  --t-display-2: clamp(3rem, 1rem + 6.5vw, 8rem);
  --t-heading: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);  /* 40px */
  --t-titre: clamp(2.5rem, 1.5rem + 3vw, 4.25rem);      /* grands titres de section (police du H1) */
  --t-sub: clamp(1.4rem, 1.2rem + .6vw, 1.75rem);      /* 28px */
  --t-h-sm: 1.375rem;                                  /* 22px */
  --t-body: 1.125rem;                                  /* 18px */
  --t-small: 1rem;
  --t-caption: .875rem;
  --track: -0.01em;

  /* Forme */
  --r: 5px;

  /* Espacements (base 4px) */
  --s-12: 12px; --s-16: 16px; --s-20: 20px; --s-36: 36px; --s-40: 40px; --s-64: 64px;
  --s-section: clamp(64px, 40px + 5vw, 120px);
  --gutter: clamp(16px, 8px + 2.6vw, 40px);
  --max: 1320px;

  /* Mouvement */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --d-1: .22s;
  --d-2: .8s;
  --d-3: 1.4s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--c-velin); color: var(--c-encre);
  font: 400 var(--t-body)/1.45 var(--f-sans); letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-weight: 400; letter-spacing: var(--track); }
:focus-visible { outline: 2px solid var(--c-feuille); outline-offset: 3px; border-radius: var(--r); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; }
.section { padding-block: var(--s-section); position: relative; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-encre); color: var(--c-velin); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Libellé de section (jamais au-dessus du H1) */
.label { font: 700 var(--t-caption)/1 var(--f-sans); letter-spacing: var(--track); color: var(--c-sauge-texte); margin-bottom: var(--s-20); }

/* ---------- Boutons (5px, contour par défaut) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--c-filet);
  font: 400 var(--t-small)/1 var(--f-sans); letter-spacing: var(--track);
  text-decoration: none; cursor: pointer; background: transparent; color: var(--c-encre);
  transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
.btn:hover { background: var(--c-carte); border-color: rgba(14, 75, 85, .35); }
.btn--lin { background: var(--c-lin); }
.btn--plein { background: var(--c-sauge); border-color: var(--c-sauge); color: var(--c-encre); }
.btn--plein:hover { background: var(--c-sauge-fonce); border-color: var(--c-sauge-fonce); }
.btn__fleche { transition: transform var(--d-1) var(--ease); }
.btn:hover .btn__fleche { transform: translateX(4px); }
.lien { text-decoration: none; border-bottom: 1px solid var(--c-filet); padding-bottom: 2px; transition: color var(--d-1) var(--ease), border-color var(--d-1); }
.lien:hover { color: var(--c-feuille); border-color: var(--c-feuille); }

.badge { display: inline-block; text-decoration: none; padding: 4px 12px; border: 1px solid var(--c-filet); border-radius: var(--r); font: 400 var(--t-caption)/1.45 var(--f-sans); }
.badge--dore { background: #f4e9b4; border-color: #f4e9b4; font-weight: 700; }

/* ---------- Header ---------- */
/* Navbar légèrement transparente : le contenu reste deviné au scroll ;
   flou léger pour garder les liens lisibles (seul usage du flou). */
.header { position: sticky; top: 0; z-index: 50; }
/* Fond de la navbar porté par un pseudo-élément : bas arrondi et fondu
   progressif (le contenu entre doucement dans le flou). Le menu mobile,
   enfant du header, n'est donc pas masqué. */
.header::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -12px 0;
  background: rgba(251, 244, 222, .72);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  /* courbe douce d'un bord à l'autre : ellipse très aplatie */
  border-radius: 0 0 50% 50% / 0 0 12px 12px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);
  pointer-events: none;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-20); height: 76px; }
.logo { font: 400 2.1rem/1 var(--f-script); letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: var(--s-36); }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__link { font-size: var(--t-small); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color var(--d-1) var(--ease); }
.nav__link:hover, .nav__link.is-active { border-bottom-color: var(--c-filet); }
.nav .btn { padding: 12px 16px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--c-encre); }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; margin: 7px auto; transition: transform var(--d-1) var(--ease), opacity var(--d-1); }

/* ---------- Hero : titre-affiche traversé par le rameau ---------- */
.hero { padding-top: clamp(40px, 20px + 4vw, 88px); text-align: center; overflow: hidden; }
.hero__stage { position: relative; }
.hero__title {
  position: relative; z-index: 1;
  font: 400 var(--t-display)/.88 var(--f-display); letter-spacing: -0.01em;
  max-width: 13ch; margin-inline: auto; text-wrap: balance;
}
.hero__rameau {
  position: absolute; z-index: 2; left: 50%; top: -5%; height: 108%; width: auto;
  transform: translateX(-50%); transform-origin: 50% 100%; pointer-events: none;
}
.hero__subtitle { font: 400 clamp(1.125rem, 1rem + .4vw, 1.375rem)/1.4 var(--f-sans); color: var(--c-graphite); max-width: 34ch; margin: var(--s-40) auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-20); margin-top: var(--s-36); }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-12); margin-top: var(--s-64); padding-bottom: var(--s-40); }

/* ---------- Photo pleine largeur (planche) ---------- */
.plate { position: relative; height: clamp(360px, 70vh, 760px); overflow: hidden; }
.plate__ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(251,244,222,.06) 14px 15px), #3e5f3b;
  color: rgba(251, 244, 222, .75); font-size: var(--t-caption); padding: var(--s-20);
}
.plate__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* voile bas très léger : seule raison, lisibilité de la légende posée sur la photo */
.plate::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(10, 40, 30, .45), transparent); pointer-events: none; }
.plate__caption { z-index: 1;
  position: absolute; left: var(--gutter); bottom: var(--s-36); right: var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  color: var(--c-velin); font-size: clamp(1rem, .9rem + .4vw, 1.125rem);
}
.plate__caption i { display: inline-block; width: 36px; height: 1px; background: var(--c-velin); }

/* ---------- À propos ---------- */
.intro { font: 400 var(--t-titre)/1 var(--f-display); letter-spacing: -0.01em; max-width: 24ch; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-64); margin-top: var(--s-40); align-items: center; }
.about__text p + p { margin-top: var(--s-16); }
.about__text p { color: var(--c-graphite); }
.about__dessin { width: 100%; max-width: 520px; justify-self: end; }
.signature { margin-top: var(--s-36); padding-top: var(--s-20); border-top: 1px solid var(--c-filet); display: flex; justify-content: space-between; align-items: end; gap: var(--s-16); }
.signature__nom { font: 400 2.6rem/1 var(--f-script); letter-spacing: 0; }
.signature small { font-size: var(--t-caption); color: var(--c-graphite); }

/* ---------- Prestations (cartes filet 1px) ---------- */
.section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-40); margin-bottom: var(--s-40); }
.section__title { font: 400 var(--t-titre)/1 var(--f-display); letter-spacing: -0.01em; max-width: 18ch; }
.section__intro { color: var(--c-graphite); max-width: 38ch; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-20); }
.service {
  display: flex; flex-direction: column; gap: var(--s-16);
  padding: var(--s-20); border: 1px solid transparent; border-radius: var(--r); background: var(--c-carte);
  transition: background var(--d-1) var(--ease);
}
.service:hover { border-color: rgba(14, 75, 85, .3); }
.service__top { display: flex; justify-content: space-between; align-items: start; }
.service__dessin { width: 112px; margin: -8px 0 0 -10px; transition: transform var(--d-2) var(--ease); transform-origin: 50% 80%; }
.service:hover .service__dessin { transform: rotate(-5deg) scale(1.06); }
.service__titre { font-size: var(--t-sub); line-height: 1.2; }
.service__texte { color: var(--c-graphite); font-size: var(--t-small); flex: 1; }
.service .lien { align-self: start; font-size: var(--t-small); }

/* ---------- Pourquoi (surface lin) ---------- */
.why { background: var(--c-lin); }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.reason { padding: 0 var(--s-36); }
.reason:first-child { padding-left: 0; }
.reason + .reason { border-left: 1px solid var(--c-filet); }
.reason h3 { font: 400 clamp(2.2rem, 1.6rem + 1.6vw, 3.1rem)/1 var(--f-display); letter-spacing: -0.01em; margin-bottom: var(--s-16); }
.reason p { color: var(--c-graphite); }

/* ---------- Réalisations ---------- */
.works { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--s-20); }
.work { margin: 0; position: relative; }
.work:first-child { grid-row: span 2; }
.work__ph {
  height: 100%; min-height: 240px; display: grid; place-items: center; text-align: center; padding: var(--s-20);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,75,85,.05) 14px 15px), var(--c-lin);
  color: var(--c-graphite); font-size: var(--t-caption); border-radius: var(--r);
}
.work:first-child .work__ph { min-height: 520px; }
.work__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 1; }
.work:first-child .work__img { aspect-ratio: auto; min-height: 520px; }
.work figcaption.badge { background: rgba(251, 244, 222, .88); border-color: transparent; }
.work figcaption { position: absolute; left: var(--s-20); bottom: var(--s-20); }

/* ---------- Appel final + contact ---------- */
.final { text-align: center; }
.final__title { font: 400 var(--t-display-2)/.9 var(--f-display); letter-spacing: -0.01em; max-width: 14ch; margin: 0 auto; text-wrap: balance; }
.final__dessin { width: min(100%, 440px); margin: var(--s-20) auto 0; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-64); align-items: start; margin-top: var(--s-64); text-align: left; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; }
.contact__list li { padding-block: var(--s-16); border-bottom: 1px solid rgba(14,75,85,.25); display: flex; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap; }
.contact__list span { color: var(--c-graphite); font-size: var(--t-small); }
.contact__list a, .contact__list strong { font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--c-feuille); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16) var(--s-20); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-caption); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--c-encre); background: var(--c-lin);
  border: 1px solid var(--c-filet); border-radius: var(--r); padding: 14px 16px;
  transition: background var(--d-1) var(--ease);
}
.field select { appearance: none; background: var(--c-lin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e4b55' stroke-width='1.3'/%3E%3C/svg%3E") right 16px center no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--c-carte); border-color: rgba(14, 75, 85, .45); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #9c2119; }
.field__error { color: #9c2119; font-size: var(--t-caption); min-height: 1.2em; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: start; font-size: var(--t-caption); color: var(--c-graphite); }
.consent input { margin-top: 2px; accent-color: var(--c-encre); width: 16px; height: 16px; flex: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-20); }
.form__status { color: var(--c-feuille); font-weight: 700; font-size: var(--t-small); }

/* ---------- Footer (lin, filet haut) ---------- */
.muret { height: 110px; background: url("../img/muret.svg") repeat-x left bottom / auto 110px; }
.footer { background: var(--c-lin); }
.footer__inner { padding-block: var(--s-40) var(--s-36); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-36); }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 22px; height: 22px; padding: 6px; box-sizing: content-box; border: 1px solid var(--c-filet); border-radius: var(--r); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: background var(--d-1) var(--ease); }
.social a:hover svg { background: var(--c-sauge); }
.footer .logo { font-size: 2.8rem; }
.footer__tagline { margin-top: var(--s-12); color: var(--c-graphite); font-size: var(--t-small); }
.footer h3 { font-size: var(--t-caption); font-weight: 700; margin-bottom: var(--s-16); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-12); font-size: var(--t-small); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-16); margin-top: var(--s-40); padding-top: var(--s-20); font-size: var(--t-caption); color: var(--c-graphite); }

/* ---------- Mouvement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

.entree { opacity: 0; transform: translateY(28px); animation: entree var(--d-3) var(--ease) forwards; }
.entree--2 { animation-delay: .2s; }
.entree--3 { animation-delay: .35s; }
@keyframes entree { to { opacity: 1; transform: none; } }
/* le rameau « pousse » puis oscille au vent */
.hero__rameau { animation: pousse var(--d-3) var(--ease) .25s both, vent 8s ease-in-out 1.7s infinite; }
@keyframes pousse { from { opacity: 0; transform: translateX(-50%) translateY(40px) scaleY(.85); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes vent { 0%, 100% { transform: translateX(-50%) rotate(-1.2deg); } 50% { transform: translateX(-50%) rotate(1.4deg); } }
.vent { transform-origin: 50% 100%; animation: ventSimple 7s ease-in-out infinite; }
@keyframes ventSimple { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .entree { opacity: 1; transform: none; }
  .hero__rameau { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 20px; }
  .nav { gap: var(--s-20); }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: var(--s-20);
    background: var(--c-velin); padding: var(--s-20) var(--gutter) var(--s-36); 
    transform: translateY(-120%); visibility: hidden; transition: transform var(--d-2) var(--ease), visibility var(--d-2);
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: var(--s-16); }
  .nav__link { font-size: 1.25rem; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: var(--s-40); }
  .about__dessin { justify-self: center; max-width: 420px; }
  .section__head { flex-direction: column; align-items: start; }
  .reasons { grid-template-columns: 1fr; }
  .reason, .reason:first-child { padding: var(--s-20) 0; }
  .reason + .reason { border-left: 0; border-top: 1px solid var(--c-filet); }
  .works { grid-template-columns: 1fr 1fr; }
  .work:first-child { grid-column: 1 / -1; grid-row: auto; }
  .work:first-child .work__ph { min-height: 320px; }
  .work:first-child .work__img { min-height: 0; aspect-ratio: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__rameau { height: 104%; top: -2%; }
  .logo { font-size: 1.8rem; }
  .works { grid-template-columns: 1fr; }
  .muret { height: 80px; background-size: auto 80px; }
  .footer__grid { grid-template-columns: 1fr; }
}
