/* =====================================================================
   ARBO'VERT & FRÈRES — feuille de style principale
   Mise en page : colonnes aérées, photos rondes cerclées de vert,
   titres soulignés d'un coup de pinceau brun, pastille « Devis gratuit ».
   Pour changer une couleur ou une police : modifier les variables ci-dessous.
   ===================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* Couleurs de la marque */
  --foret: #1e4d2b;        /* vert forêt foncé : titres, header, boutons */
  --foret-fonce: #143820;
  --vert: #2f8a3e;         /* vert moyen : cercles photo, liens */
  --vert-clair: #8db33a;   /* vert clair : accents, survols */
  --tilleul: #eef4e1;      /* fond vert très pâle */
  --bois: #7a5240;         /* brun bois : coups de pinceau, pastille */
  --bois-clair: #f3ece6;
  --alerte: #9a3412;       /* rouge brique : encart risques OLD */
  --alerte-fond: #fdf3ee;

  /* Neutres légèrement teintés de vert */
  --fond: #ffffff;
  --fond-2: #f7f8f4;       /* blanc cassé */
  --texte: #1f2a22;
  --texte-doux: #4c5a50;
  --ligne: #dfe5da;

  /* Typographie */
  --f-titre: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-texte: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --t-3xl: clamp(2.2rem, 1.5rem + 3.4vw, 3.8rem);

  /* Espacements & formes */
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(16px, env(safe-area-inset-right, 0px));
  --largeur: 1180px;
  --rayon: 18px;
  --ombre: 0 10px 30px -12px rgba(20, 56, 32, .25);
  --ombre-douce: 0 4px 16px -8px rgba(20, 56, 32, .2);
  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-underline-offset: 3px; }
a:hover { color: var(--foret); }
:focus-visible { outline: 3px solid var(--vert-clair); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--foret); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul { margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--foret); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.lien-evitement:focus { top: 12px; }

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 32px);
  margin-inline: auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere-d);
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--fond { background: var(--fond-2); }
.section--tilleul { background: var(--tilleul); }
.texte-courant { max-width: 64ch; color: var(--texte-doux); }
.texte-courant strong { color: var(--texte); }

/* ---------- Titres façon coup de pinceau ---------- */
.surtitre {
  display: inline-block;
  font-family: var(--f-titre);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bois);
  margin-bottom: 14px;
}
.titre-pinceau {
  position: relative;
  display: inline-block;
  font-size: var(--t-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  padding-bottom: 18px;
}
.titre-pinceau::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 70%);
  height: 12px;
  background: var(--bois);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C30 3 62 4.5 96 5.2c38 .8 76-2.6 120-.4 2 .1 2.4 2.8.2 3.2-40 5-80 2.8-118 3.2C62 11.6 34 12 4 10.2c-2.6-.2-3.6-2.3-2-2.7z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C30 3 62 4.5 96 5.2c38 .8 76-2.6 120-.4 2 .1 2.4 2.8.2 3.2-40 5-80 2.8-118 3.2C62 11.6 34 12 4 10.2c-2.6-.2-3.6-2.3-2-2.7z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.titre-pinceau--centre::after { left: 50%; transform: translateX(-50%); }
.entete-section { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.entete-section--centre { align-items: center; text-align: center; }
.entete-section .chapeau { max-width: 60ch; color: var(--texte-doux); font-size: var(--t-l); line-height: 1.55; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: var(--t-s);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--principal { background: var(--foret); color: #fff; box-shadow: var(--ombre-douce); }
.btn--principal:hover { background: var(--foret-fonce); color: #fff; transform: translateY(-1px); }
.btn--secondaire { border-color: var(--foret); color: var(--foret); background: transparent; }
.btn--secondaire:hover { background: var(--foret); color: #fff; }
.btn--clair { background: #fff; color: var(--foret); }
.btn--clair:hover { background: var(--tilleul); color: var(--foret); }
.btn--grand { min-height: 56px; padding: 14px 28px; font-size: var(--t-m); }
.groupe-btn { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pastille « Devis gratuit » ---------- */
.pastille {
  --taille: 104px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--taille);
  height: var(--taille);
  flex: none;
  color: var(--bois);
  text-decoration: none;
  transform: rotate(-12deg);
  transition: transform .3s;
}
a.pastille:hover { transform: rotate(-4deg) scale(1.05); color: var(--bois); }
.pastille svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pastille span {
  position: relative;
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: calc(var(--taille) * .15);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
.pastille--petite { --taille: 78px; }
.pastille--claire { color: #fff; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--fond); }
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* Le flou est porté par un pseudo-élément : sinon « backdrop-filter » sur
   .header crée un bloc conteneur et le menu mobile (position: fixed) se
   retrouve calé sur le header au lieu de couvrir tout l'écran. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header.est-defile { border-color: var(--ligne); box-shadow: 0 6px 20px -16px rgba(20, 56, 32, .4); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foret); flex: none; }
.marque img { width: 64px; height: auto; }
.marque__nom { font-family: var(--f-titre); font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; line-height: 1.1; }
.marque__nom small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .08em; color: var(--bois); text-transform: uppercase; margin-top: 3px; }
.nav { margin-left: auto; }
.nav__liste { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__lien {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: .9rem;
  color: var(--texte);
  text-decoration: none;
  white-space: nowrap;
}
.nav__lien:hover { color: var(--foret); background: var(--tilleul); }
.nav__lien[aria-current="page"] { color: var(--foret); box-shadow: inset 0 -3px 0 var(--vert-clair); border-radius: 0; }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.tel-lien { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-titre); font-weight: 700; color: var(--foret); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel-lien svg { width: 18px; height: 18px; color: var(--vert); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--ligne); border-radius: 12px; background: #fff; color: var(--foret); cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }

/* Sous-menu « Prestations » */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__deplier { display: grid; place-items: center; width: 28px; height: 36px; margin-left: -6px; border: 0; background: none; color: var(--foret); cursor: pointer; border-radius: 8px; }
.nav__deplier svg { width: 16px; height: 16px; transition: transform .2s; }
.nav__deplier[aria-expanded="true"] svg { transform: rotate(180deg); }
.sous-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; list-style: none; padding: 8px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item--sous:hover .sous-menu, .nav__item--sous:focus-within .sous-menu, .sous-menu.est-ouvert { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--texte); text-decoration: none; font-weight: 500; font-size: .95rem; }
.sous-menu a:hover, .sous-menu a[aria-current="page"] { background: var(--tilleul); color: var(--foret); }
.nav__lien--accent { color: var(--bois); }
@media (max-width: 1440px) {
  .header .tel-lien span { display: none; }
  .header .tel-lien { width: 46px; height: 46px; justify-content: center; border-radius: 50%; background: var(--tilleul); }
  .header__inner { gap: 14px; }
  .nav__lien { padding-inline: 9px; font-size: .875rem; }
}
@media (max-width: 1340px) { .marque__nom small { display: none; } }
@media (max-width: 1240px) and (min-width: 1101px) { .marque__nom { display: none; } }
@media (max-width: 1100px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--fond);
    padding: 20px var(--gouttiere-d) calc(110px + env(safe-area-inset-bottom, 0px)) var(--gouttiere);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav.est-ouvert { transform: none; visibility: visible; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__lien { font-size: 1.15rem; padding: 14px 12px; border-bottom: 1px solid var(--ligne); border-radius: 0; }
  .nav__lien[aria-current="page"] { box-shadow: inset 4px 0 0 var(--vert-clair); }
  .nav__item { display: block; }
  .nav__deplier { display: none; }
  .sous-menu { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 18px; min-width: 0; }
  .sous-menu a { padding: 10px 12px; font-size: 1rem; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .marque img { width: 52px; }
  .marque__nom { font-size: .9rem; }
  .marque__nom small { display: none; }
  .header .tel-lien span, .header .btn--principal { display: none; }
}
@media (max-width: 380px) { .marque__nom { display: none; } }

/* ---------- Photos rondes (composant) ---------- */
.rond {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  padding: 6px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--vert), var(--ombre);
  transition: transform .4s ease, box-shadow .4s ease;
}
.rond--clair { box-shadow: 0 0 0 2px var(--vert-clair), var(--ombre); }
.rond--fonce { box-shadow: 0 0 0 2px var(--foret), var(--ombre); }
.rond:hover { transform: scale(1.03) rotate(-1deg); box-shadow: 0 0 0 3px var(--vert-clair), 0 18px 40px -16px rgba(20, 56, 32, .35); }
.photo {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 25%, rgba(141, 179, 58, .35), transparent 55%),
    linear-gradient(160deg, var(--tilleul), #dbe7c9);
}
.rond .photo { border-radius: 50%; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
/* Emplacement photo (affiché tant que l'image n'est pas fournie) */
.photo__vide {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18%;
  text-align: center;
  color: var(--foret);
}
.photo__vide svg { width: 30%; max-width: 54px; height: auto; opacity: .55; }
.photo__vide code { font-size: clamp(.62rem, .55rem + .3vw, .78rem); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: rgba(255, 255, 255, .7); padding: 2px 8px; border-radius: 6px; word-break: break-all; }
.photo__vide em { font-style: normal; font-size: clamp(.6rem, .52rem + .3vw, .74rem); color: var(--texte-doux); line-height: 1.3; }
.photo.est-vide img { display: none; }

/* Composition « 3 photos reliées » de la maquette */
.trio { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1.08; margin-inline: auto; }
.trio__traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trio__traits line { stroke: var(--vert); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trio--clair .trio__traits line { stroke: var(--vert-clair); }
.trio--fonce .trio__traits line { stroke: var(--foret); }
.trio .rond { position: absolute; }
.trio .rond:nth-of-type(1) { width: 40%; left: 4%; top: 0; }
.trio .rond:nth-of-type(2) { width: 56%; right: 0; top: 24%; }
.trio .rond:nth-of-type(3) { width: 40%; left: 4%; bottom: 0; }
.trio--inverse .rond:nth-of-type(1) { left: auto; right: 4%; }
.trio--inverse .rond:nth-of-type(2) { right: auto; left: 0; }
.trio--inverse .rond:nth-of-type(3) { left: auto; right: 4%; }

/* ---------- Accueil ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__texte { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: var(--t-3xl); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 .ligne-2 { display: block; color: var(--vert); }
.hero__lieu { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bois); font-size: var(--t-s); }
.hero__lieu svg { width: 18px; height: 18px; }
.hero__visuel { position: relative; min-width: 0; justify-self: center; width: min(100%, 520px); }
.hero__visuel .rond { width: 100%; padding: 9px; box-shadow: 0 0 0 3px var(--vert-clair), var(--ombre); }
.hero__logo {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--vert), var(--ombre);
  display: grid;
  place-items: center;
  padding: 7%;
  z-index: 2;
}
.hero__pastille { position: absolute; left: -4%; top: 4%; z-index: 2; }
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reseaux__titre { font-weight: 600; color: var(--foret); font-size: var(--t-s); }
.reseaux__liste { display: flex; gap: 10px; list-style: none; }
.reseau { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tilleul); color: var(--foret); transition: background-color .2s, color .2s, transform .2s; }
.reseau:hover { background: var(--foret); color: #fff; transform: translateY(-2px); }
.reseau svg { width: 20px; height: 20px; }
.bilik { display: inline-block; max-width: 320px; border-radius: 12px; transition: transform .2s, box-shadow .2s; }
.bilik:hover { transform: translateY(-2px); box-shadow: var(--ombre-douce); }
.bilik img { width: 100%; height: auto; }

.atouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; }
.atout { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; background: #fff; border-radius: var(--rayon); border: 1px solid var(--ligne); }
.atout__icone { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--tilleul); color: var(--foret); }
.atout__icone svg { width: 24px; height: 24px; }
.atout h3 { font-size: 1.05rem; }
.atout p { font-size: var(--t-s); color: var(--texte-doux); }

/* ---------- Grille des 4 prestations ---------- */
.prestations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); list-style: none; }
.prestation { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; min-width: 0; position: relative; }
.prestation .rond { width: min(100%, 220px); }
.prestation h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em; min-height: 2.4em; display: flex; align-items: center; }
.prestation p { color: var(--texte-doux); font-size: var(--t-s); flex: 1; }
.prestation__lien { font-family: var(--f-titre); font-weight: 700; font-size: var(--t-s); color: var(--foret); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.prestation__lien::after { content: ""; position: absolute; inset: 0; }
.prestation__lien svg { width: 16px; height: 16px; transition: transform .2s; }
.prestation:hover .prestation__lien svg { transform: translateX(4px); }
.prestation:hover .rond { transform: scale(1.03) rotate(-1deg); }
.badge-nouveau { position: absolute; top: 4px; right: 8%; z-index: 2; background: var(--bois); color: #fff; font-family: var(--f-titre); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 1000px) { .prestations, .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prestations, .atouts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pages prestations ---------- */
.bandeau-page { background: var(--fond-2); padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--ligne); }
.bandeau-page__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bandeau-page h1 { font-size: var(--t-2xl); }
.bandeau-page .chapeau { margin-top: 14px; color: var(--texte-doux); font-size: var(--t-l); max-width: 56ch; }
.fil-ariane { font-size: var(--t-xs); color: var(--texte-doux); margin-bottom: 18px; }
.fil-ariane ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fil-ariane li + li::before { content: "/"; margin-right: 6px; color: var(--ligne); }
.fil-ariane a { color: var(--texte-doux); }
.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.detail__texte { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.detail__texte .lead { font-size: var(--t-l); line-height: 1.6; color: var(--texte); font-style: italic; }
.puces { list-style: none; display: grid; gap: 10px; }
.puces li { position: relative; padding-left: 30px; color: var(--texte-doux); }
.puces li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--vert-clair); box-shadow: 0 0 0 4px var(--tilleul); }
.puces strong { color: var(--texte); }
.tailles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.taille { padding: 18px 18px 16px; border-radius: 14px; background: var(--fond-2); border: 1px solid var(--ligne); }
.taille h3 { font-size: 1rem; margin-bottom: 6px; }
.taille p { font-size: var(--t-s); color: var(--texte-doux); }
@media (max-width: 900px) {
  .hero__grille, .detail { grid-template-columns: minmax(0, 1fr); }
  .hero__visuel { width: min(100%, 420px); order: -1; }
  .detail__visuel { order: -1; }
  .trio { max-width: 380px; }
}
@media (max-width: 520px) { .tailles { grid-template-columns: minmax(0, 1fr); } }

/* Encart renvoi (ex. vers la page OLD) */
.encart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--rayon);
  background: var(--foret);
  color: #e7f0e3;
}
.encart h2, .encart h3 { color: #fff; font-size: var(--t-l); margin-bottom: 6px; }
.encart p { color: #cfdcca; }
.encart__icone { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(141, 179, 58, .18); color: var(--vert-clair); }
.encart__icone svg { width: 32px; height: 32px; }
@media (max-width: 760px) { .encart { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bloc d'appel à l'action ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--foret);
  color: #e7f0e3;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.cta::before { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; background: rgba(141, 179, 58, .16); }
.cta::after { content: ""; position: absolute; width: 180px; height: 180px; right: 160px; bottom: -110px; border-radius: 50%; background: rgba(141, 179, 58, .1); }
.cta > * { position: relative; z-index: 1; min-width: 0; }
.cta h2 { color: #fff; font-size: var(--t-xl); margin-bottom: 10px; }
.cta p { color: #cfdcca; max-width: 56ch; }
.cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta .tel-lien { color: #fff; justify-content: center; font-size: 1.1rem; }
.cta .tel-lien svg { color: var(--vert-clair); }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta__actions { align-items: flex-start; } }

/* ---------- Page OLD ---------- */
.old-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.old-intro__texte { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.old-intro__texte p { color: var(--texte-doux); font-size: var(--t-l); line-height: 1.6; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin-top: 8px; }
.chiffre { padding: 18px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--ligne); }
.chiffre strong { display: block; font-family: var(--f-titre); font-size: 1.7rem; font-weight: 800; color: var(--foret); line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre span { font-size: var(--t-xs); color: var(--texte-doux); line-height: 1.35; display: block; margin-top: 4px; }
.cartes-old { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.carte__entete { display: flex; align-items: center; gap: 14px; }
.carte__icone { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--tilleul); color: var(--foret); }
.carte__icone svg { width: 26px; height: 26px; }
.carte h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.carte p { color: var(--texte-doux); }
.carte--large { grid-column: 1 / -1; }
.travaux-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; }
.travaux-liste li { display: flex; gap: 12px; align-items: flex-start; color: var(--texte); font-size: var(--t-s); }
.travaux-liste svg { width: 22px; height: 22px; flex: none; color: var(--vert); margin-top: 1px; }
.note-voisin { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bois-clair); color: #5b3a2c; font-size: var(--t-s); }
.note-voisin svg { width: 22px; height: 22px; flex: none; color: var(--bois); }
.alerte { border: 1px solid #f0cdbd; background: var(--alerte-fond); border-left: 6px solid var(--alerte); border-radius: var(--rayon); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.alerte h2 { color: var(--alerte); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.alerte h2 svg { width: 28px; height: 28px; flex: none; }
.alerte p { color: #6b2a12; }
.risques { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; }
.risque { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid #f3d9cd; }
.risque strong { display: block; font-family: var(--f-titre); font-size: 1.45rem; font-weight: 800; color: var(--alerte); line-height: 1.15; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.risque span { font-size: var(--t-s); color: #5a3a2e; line-height: 1.45; display: block; }
.schema-old { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; }
.schema-old svg { width: 100%; height: auto; }
.schema-old figcaption { font-size: var(--t-xs); color: var(--texte-doux); text-align: center; margin-top: 8px; }
@media (max-width: 1000px) { .risques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .old-intro, .cartes-old { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .travaux-liste, .risques { grid-template-columns: minmax(0, 1fr); } .chiffres { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chantiers ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filtre { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; font-family: var(--f-titre); font-weight: 600; font-size: var(--t-s); color: var(--texte); cursor: pointer; }
.filtre:hover { border-color: var(--vert); }
.filtre[aria-pressed="true"] { background: var(--foret); border-color: var(--foret); color: #fff; }
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; }
.chantier { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; min-width: 0; transition: box-shadow .3s, transform .3s; }
.chantier:hover { box-shadow: var(--ombre); transform: translateY(-3px); }
.chantier--large { grid-column: span 2; }
.chantier__media { aspect-ratio: 4 / 3; position: relative; }
.chantier--large .chantier__media { aspect-ratio: 16 / 9; }
.chantier__media .photo { border-radius: 0; }
.chantier__corps { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.chantier__cat { font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bois); }
.chantier h2 { font-size: 1.1rem; }
.chantier p { font-size: var(--t-s); color: var(--texte-doux); }
.chantier[hidden] { display: none; }
@media (max-width: 1000px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .galerie { grid-template-columns: minmax(0, 1fr); } .chantier--large { grid-column: auto; } .chantier--large .chantier__media { aspect-ratio: 4 / 3; } }

/* Curseur avant / après */
.avap { position: absolute; inset: 0; overflow: hidden; --pos: 50%; }
.avap .photo { position: absolute; inset: 0; }
.avap__apres { clip-path: inset(0 0 0 var(--pos)); }
.avap__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 3; pointer-events: none; box-shadow: 0 0 8px rgba(0, 0, 0, .25); }
.avap__poignee { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--foret); display: grid; place-items: center; box-shadow: var(--ombre-douce); }
.avap__poignee svg { width: 22px; height: 22px; }
.avap__etiq { position: absolute; top: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(20, 56, 32, .82); color: #fff; font-family: var(--f-titre); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.avap__etiq--av { left: 12px; }
.avap__etiq--ap { right: 12px; }
.avap input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.avap input[type="range"]:focus-visible ~ .avap__ligne .avap__poignee { outline: 3px solid var(--vert-clair); outline-offset: 2px; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.coordonnees { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.coord { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--ligne); text-decoration: none; color: var(--texte); transition: border-color .2s, box-shadow .2s; min-width: 0; }
a.coord:hover { border-color: var(--vert); box-shadow: var(--ombre-douce); color: var(--texte); }
.coord__icone { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tilleul); color: var(--foret); }
.coord__icone svg { width: 22px; height: 22px; }
.coord small { display: block; font-size: var(--t-xs); color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.coord strong { display: block; font-family: var(--f-titre); font-size: 1.08rem; color: var(--foret); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.formulaire { background: #fff; border: 1px solid var(--ligne); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--ombre-douce); min-width: 0; }
.formulaire h2 { font-size: var(--t-l); margin-bottom: 6px; }
.formulaire > p { color: var(--texte-doux); font-size: var(--t-s); margin-bottom: 24px; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 600; font-size: var(--t-s); color: var(--texte); }
.champ .opt { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--ligne);
  border-radius: 12px;
  background: var(--fond-2);
  font: inherit;
  font-size: 1rem;
  color: var(--texte);
  transition: border-color .2s, background-color .2s;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); background: #fff; box-shadow: 0 0 0 3px rgba(141, 179, 58, .3); }
.champ input[type="file"] { padding: 10px; background: #fff; border-style: dashed; cursor: pointer; }
.champ .aide { font-size: var(--t-xs); color: var(--texte-doux); }
.champ .erreur { font-size: var(--t-xs); color: var(--alerte); font-weight: 600; }
.champ.est-invalide input, .champ.est-invalide select, .champ.est-invalide textarea { border-color: var(--alerte); }
.choix-prestation { border: 0; padding: 0; margin: 0; min-width: 0; }
.choix-prestation legend { margin-bottom: 8px; padding: 0; }
.puces-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puce-choix span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--fond-2); cursor: pointer; font-size: var(--t-s); font-weight: 500; transition: all .2s; }
.puce-choix input:checked + span { background: var(--foret); color: #fff; border-color: var(--foret); }
.puce-choix input:focus-visible + span { outline: 3px solid var(--vert-clair); outline-offset: 2px; }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-s); color: var(--texte-doux); }
.consentement input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--foret); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-message { padding: 14px 16px; border-radius: 12px; font-size: var(--t-s); font-weight: 500; }
.form-message--ok { background: var(--tilleul); color: var(--foret); }
.form-message--ko { background: var(--alerte-fond); color: var(--alerte); }
.zone { padding: 22px; border-radius: var(--rayon); background: var(--tilleul); }
.zone h2 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.zone h2 svg { width: 20px; height: 20px; color: var(--vert); }
.zone p { color: var(--texte-doux); font-size: var(--t-s); }
@media (max-width: 900px) { .contact-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .champs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--texte-doux); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.a-completer { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .92em; }

/* ---------- Footer ---------- */
.footer { background: var(--foret-fonce); color: #c9d8c4; padding-block: 64px 28px; margin-top: 0; }
.footer a { color: #e7f0e3; text-decoration: none; }
.footer a:hover { color: var(--vert-clair); text-decoration: underline; }
.footer__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__logo { width: 132px; background: #fff; border-radius: 50%; padding: 18px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 16px; }
.footer h2 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: var(--t-s); }
.footer p { font-size: var(--t-s); }
.footer .reseau { background: rgba(255, 255, 255, .1); color: #fff; }
.footer .reseau:hover { background: var(--vert-clair); color: var(--foret-fonce); text-decoration: none; }
.footer .bilik { margin-top: 18px; max-width: 260px; background: #fff; }
.footer__bas { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--t-xs); }
.footer__bas ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 960px) { .footer__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grille { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.appel-flottant {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  gap: 10px;
  padding: 10px var(--gouttiere-d) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gouttiere);
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--ligne);
  box-shadow: 0 -8px 24px -18px rgba(20, 56, 32, .5);
}
.appel-flottant .btn { flex: 1; min-height: 50px; padding-inline: 12px; white-space: nowrap; }
@media (max-width: 640px) { .bandeau-page .pastille { --taille: 78px; } }
@media (max-width: 760px) {
  .appel-flottant { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Apparition douce au défilement ---------- */
.apparait { animation: apparait .7s ease both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
@keyframes apparait { from { transform: translateY(22px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
