/* Espace NatureL Vendée — maquette A
   Concept « La lisière » : if, argile, calcaire. Une seule police : Archivo. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
}

:root {
  --if: #1F4537;
  --if-fonce: #163328;
  --argile: #A3421D;
  --argile-fonce: #85351A;
  --terreau: #211D18;
  --terreau-doux: #4E473E;
  --calcaire: #F3F2EC;
  --geotextile: #E2E0D6;
  --lichen: #C9D3B8;
  --blanc: #FFFFFF;
  --filet: rgba(33, 29, 24, .18);
  --rayon: 4px;
  --rayon-photo: 2px;
  --esp-1: 8px; --esp-2: 16px; --esp-3: 24px; --esp-4: 40px; --esp-5: 64px; --esp-6: 96px;
  --police: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --barre-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--calcaire);
  color: var(--terreau);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--argile); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--if); outline-offset: 3px; }
.section-if :focus-visible, .pied :focus-visible { outline-color: var(--calcaire); }

h1, h2, h3 { margin: 0; line-height: 1.02; color: var(--if); letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 11vw, 4.5rem); font-weight: 800; font-stretch: 62%; }
h2 { font-size: clamp(2rem, 7.4vw, 3rem); font-weight: 760; font-stretch: 68%; }
h3 { font-size: clamp(1.3rem, 4.8vw, 1.5rem); font-weight: 700; font-stretch: 80%; line-height: 1.1; }
p { margin: 0; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--if); color: var(--blanc); padding: 12px 16px; border-radius: var(--rayon); }
.evitement:focus { top: 8px; }

.enveloppe { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .enveloppe { padding: 0 40px; } }

.ico { width: 22px; height: 22px; flex: none; }

/* Étiquette : petit trait argile + majuscules condensées */
.etiquette {
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 650; font-stretch: 75%;
  letter-spacing: .12em; text-transform: uppercase; color: var(--terreau-doux);
  margin-bottom: var(--esp-2);
}
.etiquette::before { content: ""; width: 18px; height: 2px; background: var(--argile); flex: none; }

/* Mentions maquette */
.a-fournir, .a-confirmer {
  display: inline-block; margin-right: 6px; padding: 2px 7px 1px;
  font-size: .75rem; font-weight: 700; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--argile); color: var(--argile-fonce); border-radius: 2px; vertical-align: 1px;
}
.note-source { margin-top: var(--esp-3); font-size: .9375rem; color: var(--terreau-doux); }

.bandeau-maquette {
  background: var(--terreau); color: var(--calcaire);
  font-size: .8125rem; text-align: center; padding: 6px 12px; letter-spacing: .02em;
}

/* ---------- En-tête ---------- */
.entete { border-bottom: 1px solid var(--filet); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marque { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; padding: 6px 0; }
.marque-nom { font-size: 1.3rem; font-weight: 800; font-stretch: 70%; color: var(--if); letter-spacing: .005em; }
.marque-l { color: var(--argile); }
.marque-sous { font-size: .8125rem; color: var(--terreau-doux); font-stretch: 85%; }
.nav { display: none; gap: 28px; font-size: .9375rem; font-weight: 550; }
.nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--argile); }
.entete-appel {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 12px;
  border: 1.5px solid var(--terreau); border-radius: var(--rayon);
  text-decoration: none; font-weight: 650; font-stretch: 85%; color: var(--terreau);
}
.entete-appel:hover { background: var(--terreau); color: var(--calcaire); }
.entete-appel-texte { display: none; }
@media (min-width: 560px) { .entete-appel-texte { display: inline; } }
@media (min-width: 960px) { .nav { display: flex; } }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--esp-4); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: var(--rayon);
  font-family: inherit; font-size: 1.0625rem; font-weight: 700; font-stretch: 85%;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .15s, color .15s, transform .1s;
}
.bouton:active { transform: translateY(1px); }
.bouton-principal { background: var(--argile); color: var(--blanc); }
.bouton-principal:hover { background: var(--argile-fonce); }
.bouton-secondaire { background: transparent; color: var(--terreau); border: 1.5px solid var(--terreau); }
.bouton-secondaire:hover { background: var(--terreau); color: var(--calcaire); }
.fleche { display: inline-block; transition: transform .15s; }
.bouton:hover .fleche { transform: translateX(3px); }
.bouton-plein { width: 100%; }
@media (max-width: 419px) { .actions .bouton { width: 100%; } }

/* ---------- Ouverture ---------- */
.ouverture { padding: var(--esp-4) 0 var(--esp-5); }
.ouverture-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--esp-4); }
.chapo { margin-top: var(--esp-3); font-size: 1.1875rem; max-width: 34em; }
.ses-mots { color: var(--if); font-weight: 600; }
.preuve-courte { margin-top: var(--esp-3); font-size: .9375rem; }
.preuve-courte a { color: var(--terreau-doux); }
.preuve-courte strong { color: var(--if); font-weight: 750; }
@media (min-width: 960px) {
  .ouverture { padding: var(--esp-5) 0 var(--esp-6); }
  .ouverture-grille { grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--esp-5); }
}

/* Curseur avant / après */
.comparer { margin: 0; }
.comparer-cadre {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--rayon-photo); background: var(--geotextile);
  outline: 1px solid var(--filet);
}
.comparer-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.comparer-avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparer-mot {
  position: absolute; top: 12px; padding: 4px 9px 3px;
  background: var(--calcaire); color: var(--terreau);
  font-size: .75rem; font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; pointer-events: none;
}
.comparer-mot-avant { left: 12px; }
.comparer-mot-apres { right: 12px; background: var(--if); color: var(--calcaire); }
.comparer-lisiere {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--argile); pointer-events: none;
}
.comparer-poignee {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--argile); color: var(--blanc); border-radius: var(--rayon);
  font-size: 1.25rem; font-weight: 700; box-shadow: 0 2px 10px rgba(33, 29, 24, .3);
}
.comparer-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;
}
.comparer-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 400px; }
.comparer-curseur::-moz-range-thumb { width: 48px; height: 400px; border: 0; }
.comparer-cadre:has(.comparer-curseur:focus-visible) { outline: 3px solid var(--if); outline-offset: 3px; }
.no-js .comparer-lisiere, .no-js .comparer-curseur { display: none; }
.legende { margin-top: 12px; font-size: .9375rem; color: var(--terreau-doux); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--esp-5) 0; }
@media (min-width: 960px) { .section { padding: var(--esp-6) 0; } }
.section > .coupe { position: absolute; top: -29px; left: 0; width: 100%; height: 30px; overflow: visible; }
.coupe-trait { stroke: var(--argile); stroke-width: 2; }
.anime .coupe-trait { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease-out; }
.anime .coupe.vu .coupe-trait { stroke-dashoffset: 0; }
.section h2 { margin-bottom: var(--esp-4); max-width: 18em; }
.section-matiere { background: var(--geotextile); }
.section-if { background: var(--if); color: var(--calcaire); }
.section-if h2 { color: var(--calcaire); }
.section-if .etiquette { color: var(--lichen); }
.section-if .etiquette::before { background: var(--lichen); }
.intro { max-width: 40em; margin: calc(var(--esp-3) * -1) 0 var(--esp-4); color: var(--terreau-doux); }

/* Interventions : trois gestes, séparés par des filets */
.gestes { display: grid; gap: 0; border-top: 1.5px solid var(--terreau); }
.geste { padding: var(--esp-4) 0; border-bottom: 1px solid var(--filet); }
.geste-picto { width: 120px; height: 64px; margin-bottom: var(--esp-3); }
.geste-sous { margin-top: 6px; color: var(--terreau-doux); }
.liste { list-style: none; margin: var(--esp-3) 0 0; padding: 0; }
.liste li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--filet); }
.liste li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 2px; background: var(--argile); }
@media (min-width: 860px) {
  .gestes { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--filet); }
  .geste { padding: var(--esp-4) var(--esp-4) var(--esp-4) 0; border-bottom: 0; }
  .geste + .geste { padding-left: var(--esp-4); border-left: 1px solid var(--filet); }
}

/* Formules : trois rythmes sur une ligne du temps */
.rythmes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--esp-4); }
.rythme-ligne { width: 100%; max-width: 240px; height: 24px; margin-bottom: var(--esp-2); }
.rythme-ligne line { stroke: var(--terreau); stroke-width: 1.5; opacity: .45; }
.rythme-ligne rect { fill: var(--if); }
.rythme p { margin-top: 8px; max-width: 26em; }
@media (min-width: 860px) { .rythmes { grid-template-columns: repeat(3, 1fr); gap: var(--esp-5); } }
.formules-infos { margin-top: var(--esp-5); display: grid; gap: var(--esp-3); border-top: 1.5px solid var(--terreau); padding-top: var(--esp-4); }
.info-forte { display: flex; gap: 12px; align-items: flex-start; font-size: 1.125rem; }
.info-forte .ico { color: var(--argile); margin-top: 2px; }
.info-forte strong { color: var(--if); }
.info-confirmer { font-size: .9375rem; color: var(--terreau-doux); max-width: 46em; }
@media (min-width: 860px) { .formules-infos { grid-template-columns: 1fr 1fr; gap: var(--esp-5); } }

/* Réalisations */
.galerie { display: grid; gap: var(--esp-4); }
.photo { margin: 0; }
.photo-cadre, .portrait-cadre {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--rayon-photo);
  background:
    linear-gradient(to top, rgba(31, 69, 55, .08), transparent 40%),
    var(--geotextile);
  outline: 1px solid var(--filet); overflow: hidden;
}
.photo-cadre::after, .portrait-cadre::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='30'%3E%3Cg fill='none' stroke='%231F4537' stroke-opacity='.5' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 30q1-10-3-19M7 30q2-14 8-24M12 30q-1-8-5-13M17 30q0-12 3-21M22 30q3-9 9-14M27 30q-2-15-7-26M32 30q1-7 0-11M36 30q2-12 7-18M41 30q-1-14-4-22'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom;
}
.photo-mention {
  position: absolute; top: 12px; left: 12px;
  font-size: .75rem; font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terreau-doux);
}
.photo figcaption { margin-top: 12px; font-size: 1rem; max-width: 30em; }
.photo figcaption::before { content: "«\00a0"; color: var(--argile); }
.photo figcaption::after { content: "\00a0»"; color: var(--argile); }
@media (max-width: 699px) {
  .galerie { gap: var(--esp-3); }
  .photo-cadre { aspect-ratio: 16 / 8; }
  .noel-portrait { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: end; }
  .noel-portrait .legende { margin-top: 0; }
}
@media (min-width: 700px) { .galerie { grid-template-columns: repeat(3, 1fr); gap: var(--esp-3); } }

/* Qui intervient */
.noel-grille { display: grid; gap: var(--esp-4); }
.noel-portrait { order: 2; }
.portrait-cadre { aspect-ratio: 4 / 5; max-width: 300px; }
.ses-mots-bloc { margin: 0 0 var(--esp-4); padding-left: 18px; border-left: 3px solid var(--argile); }
.ses-mots-bloc p { font-size: 1.3rem; font-stretch: 85%; font-weight: 550; color: var(--if); line-height: 1.35; }
.fiche { margin: 0; border-top: 1.5px solid var(--terreau); }
.fiche div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font-size: .8125rem; font-weight: 650; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--terreau-doux); }
.fiche dd { margin: 0; font-weight: 550; }
.siret { font-weight: 400; color: var(--terreau-doux); font-size: .9375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) { .fiche div { grid-template-columns: 9.5em 1fr; gap: 16px; align-items: baseline; } }
@media (min-width: 860px) {
  .noel-portrait { order: 0; }
  .noel-grille { grid-template-columns: minmax(260px, 360px) 1fr; gap: var(--esp-6); align-items: start; }
}

/* Avis */
.note-globale { display: flex; align-items: center; gap: 14px; margin: calc(var(--esp-3) * -1) 0 var(--esp-4); font-size: .9375rem; color: var(--lichen); line-height: 1.3; }
.note-chiffre { font-size: 3rem; font-weight: 800; font-stretch: 62%; color: var(--calcaire); line-height: 1; }
.avis-liste { display: grid; gap: 0; border-top: 1px solid rgba(201, 211, 184, .35); }
.avis { margin: 0; padding: var(--esp-3) 0; border-bottom: 1px solid rgba(201, 211, 184, .35); }
.avis blockquote { margin: 0; }
.avis p { font-size: 1.25rem; font-stretch: 85%; font-weight: 500; line-height: 1.35; }
.avis figcaption { margin-top: 10px; font-size: .8125rem; font-weight: 650; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--lichen); }
.avis-lien { margin-top: var(--esp-4); }
.avis-lien a { color: var(--calcaire); text-decoration-color: var(--lichen); font-weight: 600; }
@media (min-width: 860px) {
  .avis-liste { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .avis { padding: 0 var(--esp-4) 0 0; border-bottom: 0; }
  .avis + .avis { padding-left: var(--esp-4); border-left: 1px solid rgba(201, 211, 184, .35); }
}

/* Devis */
.devis-grille { display: grid; gap: var(--esp-4); }
.devis-intro h2 { margin-bottom: var(--esp-3); }
.contact { list-style: none; padding: 0; margin: var(--esp-4) 0 0; border-top: 1.5px solid var(--terreau); }
.contact li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--filet); min-height: 48px; }
.contact .ico { color: var(--if); }
.contact a { padding: 10px 0; font-weight: 700; font-size: 1.1875rem; font-stretch: 85%; }
@media (min-width: 960px) { .devis-grille { grid-template-columns: 1fr 1.25fr; gap: var(--esp-6); align-items: start; } }

.formulaire { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); padding: var(--esp-3) 18px; display: grid; gap: var(--esp-3); }
@media (min-width: 560px) { .formulaire { padding: var(--esp-4); } }
.champ { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.champ legend, .champ > label { font-weight: 650; padding: 0; margin-bottom: 8px; }
.champ > label { margin-bottom: 0; }
.aide { font-weight: 400; color: var(--terreau-doux); font-size: .875rem; margin-left: 4px; }
.champ input[type="text"], .champ input[type="tel"], .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; color: var(--terreau); background: var(--blanc);
  border: 1.5px solid rgba(33, 29, 24, .45); border-radius: var(--rayon);
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--if); outline-offset: 1px; border-color: var(--if); }
.champ [aria-invalid="true"] { border-color: var(--argile-fonce); }
.champ-duo { display: grid; gap: var(--esp-3); }
@media (min-width: 560px) { .champ-duo { grid-template-columns: 1fr 1fr; } }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { position: relative; }
.pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastille span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid rgba(33, 29, 24, .45); border-radius: var(--rayon);
  cursor: pointer; font-weight: 550; user-select: none; transition: background-color .12s;
}
.pastille span:hover { border-color: var(--if); }
.pastille input:checked + span { background: var(--if); border-color: var(--if); color: var(--blanc); }
.pastille input:checked + span::before { content: "✓"; font-weight: 700; }
.pastille input:focus-visible + span { outline: 3px solid var(--if); outline-offset: 2px; }
.invalide .pastille span { border-color: var(--argile-fonce); }
.erreur { color: var(--argile-fonce); font-size: .9375rem; font-weight: 600; }
.resume { padding: 12px 14px; background: var(--calcaire); border-left: 3px solid var(--if); font-size: .9375rem; }
.mention-demo { font-size: .875rem; color: var(--terreau-doux); text-align: center; }

/* Pied */
.pied { background: var(--if-fonce); color: var(--calcaire); padding: var(--esp-5) 0 calc(var(--esp-5) + var(--barre-h)); }
.pied-grille { display: grid; gap: var(--esp-3); }
.pied-nom { font-size: 1.6rem; font-weight: 800; font-stretch: 68%; }
.pied .marque-l { color: #E08B63; }
.pied a { color: var(--calcaire); text-decoration-color: var(--lichen); }
.pied-petit { font-size: .875rem; color: var(--lichen); }
@media (min-width: 860px) { .pied-grille { grid-template-columns: 1.2fr 1fr 1fr; align-items: end; } }

/* Barre mobile */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--calcaire); border-top: 1px solid var(--filet);
  transform: translateY(110%); transition: transform .25s ease;
}
.barre-mobile.visible { transform: none; }
.barre-mobile a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  border-radius: var(--rayon); text-decoration: none; font-weight: 700; font-stretch: 85%;
}
.barre-devis { background: var(--argile); color: var(--blanc); }
.barre-appel { background: var(--if); color: var(--blanc); }
@media (min-width: 960px) { .barre-mobile { display: none; } }
@media (prefers-reduced-motion: reduce) { .barre-mobile, .anime .coupe-trait { transition: none; } }
