/* ==========================================================================
   Le Jardinier de la Bièvre — feuille de style
   Aucune dépendance externe : polices système, illustrations en SVG.
   ========================================================================== */

:root {
  --foret: #1e3a2b;
  --foret-2: #27492f;
  --feuille: #3f7d3a;
  --mousse: #9cc56a;
  --sauge: #e4ecd9;
  --sauge-2: #f1f5e8;
  --creme: #fbf7ee;
  --papier: #fffdf8;
  --terre: #b4512c;
  --terre-2: #963f1f;
  --soleil: #f0b54a;
  --encre: #25271f;
  --gris: #5b5f54;
  --ligne: #e4dcc8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon: 20px;
  --ombre: 0 1px 2px rgba(37, 39, 31, .05), 0 14px 30px -18px rgba(37, 39, 31, .28);
  --largeur: 1120px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
section[id], [id="haut"] { scroll-margin-top: 84px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.45rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--terre); text-underline-offset: .18em; }
a:hover { color: var(--terre-2); }
:focus-visible { outline: 3px solid var(--feuille); outline-offset: 3px; border-radius: 6px; }

.insecable { white-space: nowrap; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--foret); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; color: #fff; }

.surtitre {
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--terre); margin: 0 0 .9rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--plein { background: var(--terre); color: #fff; box-shadow: 0 10px 22px -12px rgba(150, 63, 31, .8); }
.btn--plein:hover { background: var(--terre-2); color: #fff; transform: translateY(-1px); }
.btn--contour { border-color: var(--foret); color: var(--foret); background: transparent; }
.btn--contour:hover { background: var(--foret); color: #fff; }
.btn--clair { background: var(--creme); color: var(--foret); }
.btn--clair:hover { background: #fff; color: var(--foret); }
.btn--wa { background: #0f7a5f; color: #fff; }
.btn--wa:hover { background: #0b624c; color: #fff; }
.btn--petit { padding: .6em 1.05em; font-size: .95rem; }
.btn--grand { padding: .95em 1.6em; font-size: 1.08rem; }
.btn--large { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 238, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(228, 220, 200, .8);
}
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--foret); }
.logo:hover { color: var(--foret); }
.logo__marque { width: 40px; height: 40px; flex: none; }
.logo__texte { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.05; letter-spacing: -.01em; }
.logo__texte em { display: block; font-weight: 500; font-size: .86em; color: var(--feuille); }
.nav { display: none; gap: 1.6rem; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 550; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--terre); color: var(--encre); }
.entete__actions { display: flex; align-items: center; gap: 1rem; }
.tel-lien { display: none; align-items: center; gap: .45rem; font-weight: 700; color: var(--foret); text-decoration: none; white-space: nowrap; }
.tel-lien svg { width: 1.05em; height: 1.05em; color: var(--terre); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .tel-lien { display: inline-flex; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(900px 420px at 88% -8%, #eef3e0 0, rgba(238, 243, 224, 0) 62%),
    var(--creme);
}
.hero__grille { display: grid; gap: 2rem; align-items: center; }
.chapo { font-size: clamp(1.1rem, 2.2vw, 1.28rem); color: var(--gris); max-width: 34em; margin: 1.1rem 0 1.7rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.gages { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--foret); font-weight: 600; font-size: .98rem; }
.gages li { display: inline-flex; align-items: center; gap: .45rem; }
.gages li::before {
  content: ""; width: 1.15em; height: 1.15em; flex: none; border-radius: 50%;
  background: var(--feuille) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.credit-pastille {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.3rem;
  padding: .45rem 1.1rem .45rem .5rem; border-radius: 999px;
  background: #fff1cc; border: 1px solid #ecd28a; color: #4f3b00;
  font-weight: 600; font-size: .98rem; line-height: 1.3; text-decoration: none;
  transition: background-color .18s;
}
.credit-pastille strong { background: var(--terre); color: #fff; border-radius: 999px; padding: .3rem .75rem; font-size: 1.05rem; white-space: nowrap; }
.credit-pastille:hover { background: #ffe7a8; color: #4f3b00; }
.hero__image { max-width: 520px; margin-inline: auto; width: 100%; }
.illu { display: block; width: 100%; height: auto; }
.villes { list-style: none; margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.villes li {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: 999px;
  padding: .38rem .9rem; font-size: .93rem; font-weight: 600; color: var(--foret);
}
.villes li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--terre); }
@media (min-width: 900px) {
  .hero__grille { grid-template-columns: 1.08fr .92fr; gap: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section--sauge { background: var(--sauge-2); }
.section__tete { max-width: 44rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__tete p:last-child { color: var(--gris); font-size: 1.1rem; margin: .9rem 0 0; }

/* ---------- Prestations ---------- */
.cartes { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .cartes { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1040px) { .cartes { grid-template-columns: repeat(3, 1fr); } }
.carte {
  position: relative;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: var(--ombre);
  display: flex; flex-direction: column;
}
.carte__credit {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: #fff1cc; border: 1px solid #ecd28a; color: #5c4400;
  border-radius: 999px; padding: .28rem .75rem; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.carte--appel { background: var(--foret); border-color: var(--foret); justify-content: center; }
.carte.carte--appel h3 { color: #fff; font-size: 1.55rem; }
.carte.carte--appel p { color: #dbe4d2; margin: .8rem 0 1.4rem; }
.carte--appel .btn { align-self: flex-start; }
.carte__icone {
  width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--sauge); color: var(--foret); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
}
.carte__icone svg { width: 34px; height: 34px; }
.carte p { color: var(--gris); margin: .6rem 0 1rem; }
.liste { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .5rem; }
.liste li { position: relative; padding-left: 1.7rem; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 17C3 8.5 8.5 3 17 3c0 8.5-5.5 14-14 14z' fill='%239cc56a'/%3E%3Cpath d='M3 17c3.5-4.5 7-8 11-10.5' fill='none' stroke='%231e3a2b' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.carte__lien { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; }
.carte__lien::after { content: "→"; transition: transform .18s; }
.carte__lien:hover::after { transform: translateX(4px); }

/* ---------- Crédit d'impôt ---------- */
.section--credit { padding-top: 0; }
.credit {
  display: grid; gap: 1.2rem; align-items: center;
  background: #fff3d6; border: 1px solid #f0dca6; border-radius: 28px;
  padding: clamp(1.6rem, 4vw, 3rem);
}
@media (min-width: 820px) { .credit { grid-template-columns: auto 1fr; gap: 3.2rem; } }
.credit__chiffre {
  display: flex; align-items: flex-start; font-family: var(--serif); font-weight: 700;
  font-size: clamp(5.5rem, 15vw, 10.5rem); line-height: .82; letter-spacing: -.04em; color: var(--terre);
}
.credit__chiffre small { font-size: .42em; margin: .1em 0 0 .06em; }
.credit__intro { font-size: 1.1rem; color: #4a4534; margin: .9rem 0 0; max-width: 40em; }
.credit__points { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .6rem; }
.credit__points li { position: relative; padding-left: 1.9rem; }
.credit__points li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--terre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.credit__note { margin: 0; font-size: .92rem; color: #6b5a2e; max-width: 46em; }

/* Aperçu local quand creditImpot est sur false : visible sur votre Mac, absent en ligne */
.credit-apercu .credit,
.credit-apercu .credit-pastille,
.credit-apercu .carte__credit,
.credit-apercu details[data-si="credit"] { outline: 2px dashed #c98a1e; outline-offset: 4px; }

/* ---------- Bandeau « pourquoi » ---------- */
.bandeau { background: var(--foret); color: #eef2e6; position: relative; overflow: hidden; }
.bandeau::before, .bandeau::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(156, 197, 106, .16), rgba(156, 197, 106, 0));
  pointer-events: none;
}
.bandeau::before { top: -180px; right: -120px; }
.bandeau::after { bottom: -220px; left: -140px; }
.bandeau .conteneur { position: relative; z-index: 1; }
.bandeau h2 { color: #fff; }
.bandeau .surtitre { color: var(--mousse); }
.atouts { display: grid; gap: 1.8rem 2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 620px) { .atouts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .atouts { grid-template-columns: repeat(4, 1fr); } }
.atouts svg { width: 40px; height: 40px; color: var(--mousse); margin-bottom: .7rem; }
.atouts h3 { color: #fff; font-size: 1.2rem; margin-bottom: .45rem; }
.atouts p { margin: 0; color: #cfd9c6; font-size: 1rem; }

/* ---------- Saison ---------- */
.saison {
  display: grid; gap: 1.6rem; align-items: center;
  background: var(--sauge); border-radius: 28px; padding: clamp(1.6rem, 4vw, 2.8rem);
  position: relative; overflow: hidden;
}
.saison::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 92C8 42 42 8 92 8c0 50-34 84-84 84z' fill='%23d3e0c1'/%3E%3Cpath d='M8 92C30 62 55 38 84 18' fill='none' stroke='%23c2d3ac' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.saison > * { position: relative; z-index: 1; }
.saison h2 em { font-style: italic; color: var(--feuille); }
.saison__intro { color: var(--gris); margin: .8rem 0 0; max-width: 32em; }
.saison .liste { margin: 0; font-weight: 550; }
.saison__cta { margin-top: 1.4rem; }
@media (min-width: 860px) { .saison { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Secteur ---------- */
.secteur { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .secteur { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }
.carte-zone { background: var(--papier); border: 1px solid var(--ligne); border-radius: 28px; padding: clamp(.6rem, 2vw, 1.2rem); box-shadow: var(--ombre); }
.carte-zone svg { display: block; width: 100%; height: auto; }
.carte-zone text { font-family: var(--sans); }
.zone-nom { font-size: 13px; font-weight: 700; fill: var(--foret); paint-order: stroke; stroke: #fffdf8; stroke-width: 4px; stroke-linejoin: round; }
.zone-nom--base { font-size: 14.5px; font-weight: 800; }
.zone-note { font-size: 11.5px; font-style: italic; fill: #5f7f4d; }
.zone-note--petit { font-size: 10px; }
.zone-eau { font-size: 12px; font-style: italic; fill: #4c8aa3; paint-order: stroke; stroke: #fffdf8; stroke-width: 3px; }
.communes { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0 2rem; }
.communes li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--ligne); font-weight: 650; }
.communes span { color: var(--gris); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .95rem; }
.note { color: var(--gris); }
h2 + .note { margin-top: .9rem; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 2rem; }
.etapes li { counter-increment: etape; position: relative; padding-left: 4.4rem; min-height: 3.4rem; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; width: 3.3rem; height: 3.3rem;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--terre);
  border: 2px solid var(--terre); background: var(--papier);
}
.etapes h3 { margin-bottom: .4rem; }
.etapes p { margin: 0; color: var(--gris); }
@media (min-width: 860px) {
  .etapes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .etapes li { padding: 4.5rem 0 0; }
  .etapes li:not(:last-child)::after { content: ""; position: absolute; top: 1.65rem; left: 4.2rem; right: -1.6rem; border-top: 2px dashed #d5c9ad; }
}

/* ---------- Réalisations ---------- */
.galerie { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.galerie figure { margin: 0; background: var(--papier); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); }
.galerie img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie figcaption { padding: .7rem 1rem; font-size: .95rem; color: var(--gris); }

/* ---------- Avant / après ---------- */
.avap-liste { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.avap-liste:not(:empty) + .galerie:not(:empty) { margin-top: 1.4rem; }
.avap-carte { margin: 0; background: var(--papier); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); }
.avap { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sauge); user-select: none; }
.avap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.avap__apres { clip-path: inset(0 0 0 var(--pos)); }
.avap__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 6px rgba(0, 0, 0, .35); pointer-events: none; }
.avap__poignee {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--foret); font-weight: 800; font-size: 1rem; letter-spacing: -.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.avap__etiquette { position: absolute; top: .7rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(30, 58, 43, .82); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; }
.avap__etiquette--avant { left: .7rem; }
.avap__etiquette--apres { right: .7rem; }
.avap__curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.avap__curseur:focus-visible + * , .avap:has(.avap__curseur:focus-visible) { outline: 3px solid var(--feuille); outline-offset: -3px; }
.avap-carte figcaption { padding: .7rem 1rem; font-size: .95rem; color: var(--gris); }

/* ---------- Questions ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq details:first-of-type { border-top: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 1.15rem 2.6rem 1.15rem 0;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 1.8rem; line-height: 1; color: var(--terre);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.25rem; color: var(--gris); max-width: 62ch; }
.encart {
  margin-top: 2rem; max-width: 50rem; padding: 1.3rem 1.5rem; border-radius: 18px;
  background: #fff6e0; border: 1px solid #f1dca8;
}
.encart strong { font-family: var(--serif); font-size: 1.2rem; display: block; margin-bottom: .3rem; }
.encart p { margin: 0; color: #5a4a22; }

/* ---------- Devis ---------- */
.devis { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .devis { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; } }
.devis__texte p:not(.surtitre) { color: var(--gris); font-size: 1.1rem; }
.devis__texte h2 { margin-bottom: 1rem; }
.devis__texte h3 { font-size: 1.12rem; margin: 1.8rem 0 .8rem; }
.devis__direct { display: flex; flex-wrap: wrap; gap: .7rem; }

.formulaire, .retour {
  background: var(--papier); border: 1px solid var(--ligne); border-radius: 26px;
  padding: clamp(1.3rem, 3.5vw, 2.3rem); box-shadow: var(--ombre);
}
.champ { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.champ > label, .champ > legend { display: block; font-weight: 700; margin-bottom: .45rem; padding: 0; }
.option { font-weight: 450; color: var(--gris); font-size: .92em; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  background: #fff; border: 1.5px solid #d8cfb9; border-radius: 12px; padding: .78rem .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%231e3a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.15rem;
}
.champ textarea { resize: vertical; min-height: 6.5rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--feuille); box-shadow: 0 0 0 4px rgba(63, 125, 58, .18); }
.champ [aria-invalid="true"], .champ [aria-invalid="true"]:focus { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
::placeholder { color: #8d8f84; opacity: 1; }
.erreur { color: #a3221b; font-size: .92rem; font-weight: 600; margin: .4rem 0 0; }
.rangee { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .rangee { grid-template-columns: 1fr 1fr; } }

.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { position: relative; display: inline-flex; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.puce span {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; user-select: none;
  padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1.5px solid #d8cfb9;
  font-weight: 600; font-size: .98rem; transition: background-color .15s, color .15s, border-color .15s;
}
.puce span::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none; border-radius: 50%;
  border: 1.5px solid #bfb596; background: #fff center / 100% no-repeat;
  transition: background-color .15s, border-color .15s;
}
.puce span:hover { border-color: var(--feuille); }
.puce input:checked + span { background: var(--foret); border-color: var(--foret); color: #fff; }
.puce input:checked + span::before {
  border-color: var(--mousse); background-color: var(--mousse);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231e3a2b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.puce input:focus-visible + span { outline: 3px solid var(--feuille); outline-offset: 2px; }

/* Photos jointes à la demande */
.champ__titre { font-weight: 700; margin: 0 0 .5rem; }
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .6rem; }
.photo, .photos__ajout { position: relative; aspect-ratio: 1; }
.photo { border-radius: 14px; overflow: hidden; background: var(--sauge); border: 1px solid var(--ligne); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo__retirer {
  position: absolute; top: .3rem; right: .3rem; width: 1.8rem; height: 1.8rem; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(30, 58, 43, .88); color: #fff; font: 700 1.15rem/1 var(--sans);
}
.photo__retirer:hover { background: var(--terre); }
.photo--attente { display: grid; place-items: center; }
.photo__roue { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 3px solid #c9d7b8; border-top-color: var(--feuille); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.photos__ajout label {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: .3rem; text-align: center; cursor: pointer; border-radius: 14px;
  background: #fff; border: 2px dashed #cbbf9f; color: var(--foret);
  font-weight: 650; font-size: .8rem; line-height: 1.2;
  transition: border-color .15s, background-color .15s;
}
.photos__ajout label:hover { border-color: var(--feuille); background: var(--sauge-2); }
.photos__ajout svg { width: 1.7rem; height: 1.7rem; color: var(--terre); }
.champ input.masque-visuel { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.champ input.masque-visuel:focus-visible + label { outline: 3px solid var(--feuille); outline-offset: 2px; }
.aide { font-size: .9rem; color: var(--gris); margin: .55rem 0 0; }
.retour__photos { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--ligne); }
.retour__photos p { font-weight: 600; color: var(--foret); margin-bottom: .6rem; }
.retour__photos progress { width: min(100%, 18rem); height: .6rem; accent-color: var(--feuille); }

/* Formulaire Tally affiché à la place du formulaire du site */
.formulaire--tally iframe { display: block; width: 100%; border: 0; }
.tally__attente { color: var(--gris); text-align: center; margin: 1.5rem 0 0; }
.formulaire--tally .rgpd + .rgpd { margin-top: .35rem; }

.rgpd { font-size: .88rem; color: var(--gris); margin: .9rem 0 0; text-align: center; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.retour { text-align: center; }
.retour:focus { outline: none; }
.retour h3 { font-size: 1.55rem; margin: .8rem 0 .6rem; }
.retour p { color: var(--gris); max-width: 32em; margin-inline: auto; }
.retour__pastille { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sauge); color: var(--feuille); }
.retour__pastille svg { width: 34px; height: 34px; }
.retour--ko .retour__pastille { background: #fdeee4; color: var(--terre); }
.retour__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.2rem 0; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--terre); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Pied de page ---------- */
.pied { background: var(--foret); color: #cfd9c6; padding: 3rem 0 2rem; font-size: .97rem; }
.pied a { color: #eef2e6; }
.pied a:hover { color: #fff; }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied .logo { color: #fff; margin-bottom: .9rem; }
.pied .logo__texte em { color: var(--mousse); }
.pied h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mousse); margin-bottom: .8rem; font-weight: 700; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; }

/* ---------- Barre d'action mobile ---------- */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: .5rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .96); border-top: 1px solid var(--ligne);
  box-shadow: 0 -10px 30px -18px rgba(37, 39, 31, .4);
  transform: translateY(110%); transition: transform .25s ease;
}
.barre.visible { transform: none; }
.barre .btn { flex: 1 1 0; padding: .75em .6em; font-size: .98rem; white-space: nowrap; }
@media (min-width: 900px) { .barre { display: none; } }
@media (max-width: 899px) { .pied { padding-bottom: 6rem; } }

/* ---------- Bandeau d'aperçu local ---------- */
.apercu-local { background: #fff3cd; color: #5c4400; font-size: .9rem; padding: .5rem 1rem; text-align: center; border-bottom: 1px solid #ecd68a; }
.apercu-local code { background: rgba(0, 0, 0, .07); padding: .1em .35em; border-radius: 4px; }

/* ---------- Pages simples (merci, mentions, 404) ---------- */
.page { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.page .conteneur { max-width: 46rem; }
.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 1.2rem; }
.page h2 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
.page li { margin-bottom: .35rem; }
.a-completer { background: #fff3cd; padding: .05em .35em; border-radius: 4px; font-weight: 600; }
.centre { text-align: center; }

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

@media print {
  .entete, .barre, .apercu-local { display: none !important; }
}
