/* elagueurs-isere.fr : feuille de style unique. Partie du même code que le site salle de bain, refaite le 24/10
   après les retours de Lucas : un seul vert (sapin) et ses nuances, plus de marron ; haut de page centré et court ;
   étape 1 en liste ; un seul bloc d'arguments ; « comment ça marche » en vidéo.
   Pensée d'abord pour le téléphone (la plupart des clics viennent de là), puis élargie : 640, 960 et 1100 px.
   Aucune police externe : les polices du système, pour charger vite et ne rien envoyer à un tiers. */

:root {
  --encre: #1a1f1a;
  --encre-2: #4f574f;
  --creme: #f4f3ec;
  --sable: #e7eadf;
  --blanc: #ffffff;
  --sapin: #2f6b3a;
  --sapin-fonce: #21502a;
  --sapin-clair: #e6f0e2;
  --tendre: #cfe6a8;
  --trait: #d8dbca;
  --rouge: #b3261e;
  --ombre: 0 18px 50px -18px rgba(16, 32, 20, .35);
  --rayon: 18px;
  --large: 1180px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Police des titres : Bricolage Grotesque (licence SIL OFL 1.1, outils/polices/), servie par le site lui-même.
   Ajoutée le 24/10 au soir pour un rendu plus « pro » que la police du téléphone (Lucas, après dauphine-elagage.fr). */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("/assets/polices/bricolage-grotesque-latin.woff2") format("woff2");
}
h1, h2, h3, .etape legend, .marque b { font-family: "Bricolage Grotesque", var(--police); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--police); font-size: 17px; line-height: 1.6;
  color: var(--encre); background: var(--creme); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sapin-fonce); text-underline-offset: 3px; }
a:hover { color: var(--sapin); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 6px; }
:focus-visible { outline: 3px solid var(--sapin); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 76px; }
.centre { text-align: center; }

.saut { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.saut:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 18px; }
.etroit { max-width: 780px; }

/* ---------- Barre « Urgence » (toutes les pages sauf /devis/) ---------- */
.barre-urgence {
  display: block; padding: 8px 16px; background: #a3261b; color: var(--blanc); text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 700; line-height: 1.35;
}
.barre-urgence:hover { background: #87201a; color: var(--blanc); }
.barre-urgence:focus-visible { outline: 3px solid var(--blanc); outline-offset: -4px; border-radius: 0; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(244, 243, 236, .94); border-bottom: 1px solid var(--trait); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.entete .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); min-width: 0; margin-right: auto; }
.marque svg { width: 36px; height: 36px; flex: none; }
.marque b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.menu { display: none; }
.menu a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.menu a:hover { color: var(--sapin); }
/* Le menu du téléphone et de la tablette (sous 960 px) : un bouton « Menu » qui ouvre la liste sous l'en-tête.
   C'est un <details> : il s'ouvre même sans JavaScript ; site.js le referme après un choix. */
.menu-tel summary { list-style: none; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px;
  border-radius: 999px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); font-weight: 700; font-size: 15px; color: var(--encre); cursor: pointer; }
.menu-tel summary::-webkit-details-marker { display: none; }
.menu-tel[open] summary { box-shadow: inset 0 0 0 2px var(--encre); }
.menu-barres, .menu-barres::before, .menu-barres::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, background-color .2s ease; }
.menu-barres { position: relative; }
.menu-barres::before, .menu-barres::after { content: ""; position: absolute; left: 0; }
.menu-barres::before { top: -5px; }
.menu-barres::after { top: 5px; }
.menu-tel[open] .menu-barres { background-color: transparent; }
.menu-tel[open] .menu-barres::before { transform: translateY(5px) rotate(45deg); }
.menu-tel[open] .menu-barres::after { transform: translateY(-5px) rotate(-45deg); }
.menu-tel-liste { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 6px 18px 18px; background: var(--creme);
  border-bottom: 1px solid var(--trait); box-shadow: 0 24px 40px -24px rgba(16, 32, 20, .45); max-height: calc(100svh - 70px); overflow-y: auto; }
/* Fermé, Chrome garde la liste en place sans l'afficher : elle élargissait la page de 5 px à 320 px. */
.menu-tel:not([open]) .menu-tel-liste { display: none; }
.menu-tel-liste a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--trait);
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: 17px; }
.menu-tel-liste a::after { content: "→"; color: var(--sapin); }
.menu-tel-liste .menu-urgence { color: var(--rouge); font-size: 15.5px; }
.menu-tel-liste .menu-urgence::after { color: var(--rouge); }
.menu-tel-liste .btn { justify-content: center; margin-top: 16px; border-bottom: 0; color: var(--blanc); }
.menu-tel-liste .btn::after { content: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sapin); color: var(--blanc); font: inherit; font-weight: 750; font-size: 16.5px;
  text-decoration: none; white-space: nowrap; transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--sapin-fonce); color: var(--blanc); }
.btn:active { transform: scale(.98); }
.btn-petit { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn-ligne { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.btn-ligne:hover { background: var(--encre); color: var(--blanc); }
.btn-clair { background: var(--blanc); color: var(--encre); }
.btn-clair:hover { background: var(--sable); color: var(--encre); }
.btn-grand { min-height: 60px; padding: 12px 30px; font-size: 18px; white-space: normal; text-align: center; }
.btn .fleche { transition: transform .15s ease; }
.btn:hover .fleche { transform: translateX(3px); }

/* ---------- Haut de page avec photo et formulaire : texte centré, court ---------- */
.hero { position: relative; color: var(--blanc); background: #17231a; overflow: hidden; overflow: clip; } /* « clip » : sinon le bouton Continuer ne reste pas collé en bas */
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Voile éclairci le 24/10 au soir : la photo de l'élagueur doit se voir ; le texte garde son ombre portée. */
  background: linear-gradient(180deg, rgba(8, 18, 10, .55) 0%, rgba(8, 18, 10, .32) 45%, rgba(8, 18, 10, .5) 100%);
}
@media (min-width: 960px) {
  .hero::before { background: linear-gradient(90deg, rgba(8, 18, 10, .62) 0%, rgba(8, 18, 10, .42) 45%, rgba(8, 18, 10, .22) 100%); }
}
.hero-contenu { position: relative; z-index: 2; padding-top: 22px; padding-bottom: 24px; }
.hero-grille { display: grid; gap: 18px; }
.hero-texte { text-align: center; }
.pastille {
  display: none; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: 13.5px; font-weight: 650;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pastille i { width: 8px; height: 8px; border-radius: 50%; background: var(--tendre); box-shadow: 0 0 0 4px rgba(207, 230, 168, .25); }
.hero h1 { font-size: clamp(27px, 7.2vw, 48px); font-weight: 850; margin: 0 auto 10px; max-width: 16em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero h1 em { font-style: normal; color: var(--tendre); }
.hero .chapo { font-size: clamp(15.5px, 2.1vw, 18.5px); line-height: 1.55; max-width: 36em; margin: 0 auto; color: rgba(255, 255, 255, .94); }
.fil { font-size: 14px; color: rgba(255, 255, 255, .8); margin-bottom: 10px; }
.fil a { color: var(--blanc); }
.carte-form {
  position: relative; z-index: 3; color: var(--encre); background: var(--blanc); text-align: left;
  border-radius: 24px; box-shadow: var(--ombre); padding: 20px 18px 18px;
}
.sous-hero { position: relative; z-index: 3; width: 100%; max-width: 560px; margin: 0 auto; }

/* ---------- Formulaire en étapes ---------- */
.form-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.form-tete b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sapin-fonce); }
.progression { height: 6px; border-radius: 999px; background: var(--sable); overflow: hidden; margin-bottom: 16px; }
.progression i { display: block; height: 100%; width: 25%; background: var(--sapin); border-radius: 999px; transition: width .3s ease; }
.progression[data-etape="2"] i { width: 50%; }
.progression[data-etape="3"] i { width: 75%; }
.progression[data-etape="4"] i { width: 100%; }
.etape { border: 0; min-width: 0; display: grid; gap: 18px; }
.etape + .etape { margin-top: 26px; }
.js .etape + .etape { margin-top: 0; }
.etape legend { font-size: clamp(22px, 5.4vw, 27px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; padding: 0; margin-bottom: 2px; }
.etape legend:focus { outline: none; }
/* Étape 1 : une option par ligne, icône + libellé + demi-ligne */
.liste-projets { display: grid; gap: 8px; }
.choix-projet {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 14px 8px 9px; cursor: pointer; background: var(--creme);
  border: 2px solid var(--trait); border-radius: 14px; transition: border-color .15s ease, background-color .15s ease;
}
.choix-projet:hover { border-color: var(--sapin); }
.choix-projet input { position: absolute; opacity: 0; pointer-events: none; }
.cp-icone { width: 42px; height: 42px; border-radius: 12px; background: var(--blanc); color: var(--sapin); display: flex; align-items: center; justify-content: center; }
.cp-icone svg { width: 24px; height: 24px; }
.cp-texte b { display: block; font-size: 16px; font-weight: 750; line-height: 1.25; }
.cp-texte small { display: block; font-size: 13.5px; color: var(--encre-2); line-height: 1.35; margin-top: 1px; }
.choix-projet:has(input:checked) { border-color: var(--sapin); background: var(--sapin-clair); }
.choix-projet:has(input:checked) .cp-icone { background: var(--sapin); color: var(--blanc); }
.choix-projet:has(input:focus-visible) { outline: 3px solid var(--sapin); outline-offset: 2px; }
.choix-ligne { display: grid; gap: 8px; }
.choix-ligne.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; cursor: pointer; line-height: 1.3;
  background: var(--creme); border: 2px solid var(--trait); border-radius: 14px; font-weight: 600; font-size: 15.5px;
}
.option input { width: 20px; height: 20px; flex: none; accent-color: var(--sapin); }
.option:has(input:checked) { border-color: var(--sapin); background: var(--sapin-clair); }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 700; font-size: 15.5px; }
.facultatif { font-weight: 400; color: var(--encre-2); font-size: 14px; }
.aide { font-size: 14px; color: var(--encre-2); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--encre);
  background: var(--blanc); border: 2px solid var(--trait); border-radius: 14px; appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--sapin); outline: 3px solid rgba(47, 107, 58, .15); outline-offset: 0; }
.deux { display: grid; gap: 14px; }
.deux.cp-commune { grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; }
.consentement {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer;
  background: var(--creme); border: 2px solid var(--trait); border-radius: 14px; padding: 13px; font-size: 14.5px; line-height: 1.45;
}
.consentement input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--sapin); }
.consentement:has(input:checked) { border-color: var(--sapin); background: var(--sapin-clair); }
/* Une question : son titre, ses choix, et son message d'erreur écrit en clair */
.question { display: grid; gap: 8px; min-width: 0; }
.question-titre { font-weight: 750; font-size: 16.5px; line-height: 1.3; }
.erreur { color: var(--rouge); font-size: 14px; font-weight: 650; line-height: 1.4; }
.erreur:empty, .erreur-globale:empty { display: none; }
.question.en-erreur .option, .question.en-erreur .choix-projet, .question.en-erreur input, .question.en-erreur .consentement { border-color: #d0453c; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.suggestions:empty { display: none; }
.suggestions p { flex-basis: 100%; font-size: 14px; color: var(--encre-2); }
.suggestions button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--trait); background: var(--creme);
  font: inherit; font-size: 14.5px; font-weight: 650; color: var(--encre); cursor: pointer;
}
.suggestions button:hover, .suggestions button[aria-pressed="true"] { border-color: var(--sapin); background: var(--sapin-clair); }
/* Les boutons du formulaire restent collés en bas de l'écran pendant qu'on remplit (comme une appli) */
.form-actions {
  position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 18px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--trait);
}
.form-actions .btn { flex: 1; min-height: 54px; font-size: 17px; }
.btn-rond {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--trait); background: var(--blanc);
  font: inherit; font-size: 22px; line-height: 1; color: var(--encre); cursor: pointer;
}
.btn-rond:hover { border-color: var(--encre); }
.erreur-globale { flex-basis: 100%; text-align: center; color: var(--rouge); font-size: 14px; font-weight: 650; }
.form-pied { margin-top: 12px; font-size: 13px; color: var(--encre-2); text-align: center; line-height: 1.45; }
.cache { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* Avec JavaScript : une étape à la fois. Sans : tout le formulaire d'un bloc, sans boutons « Continuer ». */
.js .etape { display: none; }
.js .etape.active { display: grid; }
html:not(.js) .js-seulement, html:not(.js) .progression { display: none !important; }
/* Étape 1 : on avance en touchant une option, le bouton ne recouvre pas la liste */
.js form[data-etape="1"] .form-actions { position: static; }

/* ---------- Le bloc d'arguments, juste sous le haut de page ---------- */
.arguments { padding: 22px 0 6px; }
/* « Pourquoi passer par nous » (accueil) */
.pourquoi { background: var(--sapin-fonce); color: var(--blanc); }
.pourquoi .surtitre { color: var(--tendre); }
.pourquoi h2 { color: var(--blanc); max-width: 18em; }
.pq-liste { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; }
.pq-liste li { margin: 0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--rayon); padding: 20px; }
.pq-icone { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--tendre); color: var(--sapin-fonce); align-items: center; justify-content: center; }
.pq-icone svg { width: 24px; height: 24px; }
.pq-liste h3 { font-size: 20px; margin: 14px 0 6px; color: var(--blanc); }
.pq-liste p { color: rgba(255, 255, 255, .82); font-size: 15.5px; line-height: 1.55; }
.pourquoi .contact-boutons { margin-top: 24px; }
.pourquoi .btn-appel { background: var(--tendre); color: var(--sapin-fonce); }
.pourquoi .btn-appel:hover { background: var(--blanc); color: var(--sapin-fonce); }
@media (min-width: 760px) { .pq-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .pq-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.arg-liste { list-style: none; padding: 0; display: grid; gap: 8px; }
.arg-liste li {
  margin: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--blanc); border-radius: 16px; box-shadow: 0 1px 0 var(--trait);
}
.arg-icone { width: 40px; height: 40px; border-radius: 12px; background: var(--sapin-clair); color: var(--sapin); display: flex; align-items: center; justify-content: center; }
.arg-icone svg { width: 23px; height: 23px; }
.arg-liste b { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.arg-liste small { display: block; font-size: 13.5px; color: var(--encre-2); line-height: 1.4; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section.blanc { background: var(--blanc); }
.section.sable { background: var(--sable); }
.section.serre { padding: 26px 0 44px; }
.section-courte { padding: 0 0 48px; }
.section-appel { padding-top: 0; }
.surtitre { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--sapin-fonce); margin-bottom: 8px; }
.section h2 { font-size: clamp(27px, 6.4vw, 42px); font-weight: 850; margin-bottom: 14px; }
.section .intro { color: var(--encre-2); max-width: 640px; margin-bottom: 26px; font-size: 17px; }
.plus { margin-top: 18px; }

/* Encadré vers le guide « Quand faire venir un élagueur » */
.encart-guide {
  margin: 0 auto; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px;
  background: var(--blanc); border: 2px solid var(--trait); border-radius: 18px; color: var(--encre); text-decoration: none; max-width: 720px;
}
.encart-guide:hover { border-color: var(--sapin); color: var(--encre); }
.encart-guide img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.encart-guide b { display: block; font-size: 16px; line-height: 1.3; }
.encart-guide small { display: block; font-size: 14.5px; font-weight: 700; color: var(--sapin-fonce); margin-top: 2px; }
.encart-guide .fleche { font-size: 22px; color: var(--sapin); }

/* Secteurs avec photo */
.secteurs { display: grid; gap: 14px; }
.secteur { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; color: var(--blanc); text-decoration: none; min-height: 190px; background: #17231a; }
.secteur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.secteur:hover img { transform: scale(1.04); }
.secteur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .72)); }
.secteur div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.secteur h3 { font-size: 22px; font-weight: 800; }
.secteur p { font-size: 14.5px; color: rgba(255, 255, 255, .88); margin-top: 4px; }
.secteur:hover { color: var(--blanc); }
.secteur-autre { background: var(--sapin); }
.secteur-autre::after { content: none; }
.secteur-autre:hover { background: var(--sapin-fonce); }

/* Texte des pages de secteur, des pages légales et du guide */
.prose h2 { font-size: clamp(25px, 5.4vw, 34px); margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.blocs { display: grid; gap: 14px; }
.bloc { background: var(--blanc); border-radius: var(--rayon); padding: 20px; }
.section.blanc .bloc { background: var(--creme); }
.bloc h3 { font-size: 20px; margin: 0 0 8px; }
.bloc p { color: var(--encre-2); font-size: 16px; }
.bloc p + p { margin-top: 10px; }
.communes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.communes li { margin: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px; padding: 5px 13px; font-size: 15px; }
.communes li a { color: var(--sapin-fonce); font-weight: 700; }
.section.blanc .communes li { background: var(--creme); }
.liste-coche { list-style: none; padding: 0; }
.liste-coche li { position: relative; padding-left: 32px; }
.liste-coche li + li { margin-top: 12px; }
.liste-coche li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--sapin)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.guide { display: grid; gap: 36px; }
.guide-bloc { display: grid; gap: 16px; }
.guide-bloc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.guide-bloc h2 { font-size: clamp(24px, 5vw, 32px); margin-bottom: 10px; }
.guide-bloc p { color: var(--encre-2); }
.guide-bloc p + p { margin-top: 10px; }

/* Questions fréquentes */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--blanc); border-radius: 14px; }
.section.blanc .faq details { background: var(--creme); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 50px 16px 18px; font-weight: 700; position: relative; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--sapin); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 18px; color: var(--encre-2); }
.faq details > div p + p { margin-top: 10px; }

/* Appel final avec photo */
.appel { position: relative; overflow: hidden; border-radius: 26px; color: var(--blanc); background: #17231a; padding: 40px 22px; }
.appel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.appel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 18, 10, .85), rgba(8, 18, 10, .45)); }
.appel > div { position: relative; z-index: 2; max-width: 560px; }
.appel h2 { font-size: clamp(27px, 6.2vw, 42px); font-weight: 850; margin-bottom: 12px; }
.appel p { color: rgba(255, 255, 255, .88); margin-bottom: 22px; }

/* Encadrés à compléter par Lucas */
.a-completer { background: #fff1c2; border: 1px dashed #c98a00; border-radius: 6px; padding: 1px 6px; font-weight: 600; color: var(--encre); }

/* Hauts de page simples (pages légales, merci, urgence, 404) */
.tete-simple { padding: 34px 0 30px; }
.tete-simple h1 { font-size: clamp(32px, 7.6vw, 52px); font-weight: 850; margin: 6px 0 12px; }
.tete-simple .chapo { color: var(--encre-2); font-size: 18px; max-width: 640px; }
.tete-simple .fil { color: var(--encre-2); }
.tete-simple .fil a { color: var(--encre-2); }

/* Urgence */
.danger {
  background: #fdecea; border: 2px solid var(--rouge); border-radius: 14px; padding: 14px 16px; margin-top: 18px; max-width: 640px;
  font-size: 16px; line-height: 1.5; color: var(--encre);
}
.danger strong { color: #87201a; }
.danger a { color: #87201a; font-weight: 800; }
.form-urgence { display: grid; gap: 20px; }
.form-urgence .btn { width: 100%; min-height: 54px; font-size: 17px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #c5ccc3; padding: 44px 0 30px; font-size: 15.5px; }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { text-decoration: underline; color: var(--blanc); }
.pied .cols { display: grid; gap: 26px; }
.pied h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tendre); margin-bottom: 10px; }
.pied ul { list-style: none; padding: 0; }
.pied li + li { margin-top: 8px; }
.pied .marque { color: var(--blanc); margin-bottom: 12px; }
.pied .bas { border-top: 1px solid #333a33; margin-top: 30px; padding-top: 18px; font-size: 13.5px; color: #98a198; }

/* Barre fixe en bas, sur téléphone, pour les pages sans formulaire */
.barre-appel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 243, 236, .96); border-top: 1px solid var(--trait); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s ease;
}
.barre-appel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.barre-appel .btn { width: 100%; white-space: nowrap; text-align: center; padding: 0 12px; }
body:has(> .barre-appel) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
/* Appeler, envoyer une photo : sous le texte du haut de page, et dans la barre du bas au téléphone */
.contact-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-appel, .btn-photo { gap: 8px; }
.btn-appel svg, .btn-photo svg { width: 20px; height: 20px; flex: none; }
.btn-photo { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait); }
.btn-photo:hover { background: var(--sable); color: var(--encre); }
.hero .contact-boutons { justify-content: center; }
.lib-court { display: none; }
.barre-appel .lib-long { display: none; }
.barre-appel .lib-court { display: inline; }
@media (max-width: 699px) {
  /* Au téléphone, le formulaire doit rester haut : promesses serrées, deux boutons sur une ligne */
  .promesses { font-size: 13.5px; gap: 4px 12px; margin-top: 10px; }
  .promesses li::before { width: 15px; height: 15px; background-size: 10px; }
  .hero .contact-boutons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .hero .contact-boutons .btn { min-height: 46px; padding: 0 10px; }
  .hero .lib-long { display: none; }
  .hero .lib-court { display: inline; }
}
.promesses { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-weight: 700; font-size: 15px; }
.promesses li { margin: 0; display: flex; align-items: center; gap: 6px; }
.promesses li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--tendre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321502a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* Le numéro dans l'en-tête, à l'ordinateur quand il y a la place */
.entete-tel { display: none; align-items: center; gap: 7px; font-weight: 800; color: var(--sapin-fonce); text-decoration: none; white-space: nowrap; }
.entete-tel svg { width: 18px; height: 18px; }
.menu-tel-liste .menu-appel { color: var(--sapin-fonce); }
.barre-appel.cachee { transform: translateY(110%); }
body.avec-barre { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---------- /devis/ : la page des pubs Meta, rien que le formulaire ---------- */
.entete-seule .wrap { justify-content: center; }
.entete-seule .marque { margin: 0; }
.devis { padding: 22px 0 34px; }
.devis .wrap { max-width: 600px; }
.devis h1 { font-size: clamp(24px, 6vw, 34px); font-weight: 850; text-align: center; margin-bottom: 16px; }
.pied-devis { padding: 4px 0 28px; font-size: 13px; line-height: 1.5; color: var(--encre-2); text-align: center; }
.pied-devis .wrap { max-width: 600px; }
.pied-devis a { color: var(--encre-2); }

/* ---------- « Comment ça marche » (accueil) : vidéo, puis 3 étapes numérotées avec une petite illustration ----------
   Agencement inspiré d'artisansreglo.ch (demande de Lucas du 24/10), code et couleurs à nous. */
.cm-tete { display: grid; gap: 4px 40px; margin-bottom: 24px; }
.cm-tete .intro { margin-bottom: 0; }
.video-cadre { max-width: 960px; margin: 0 auto; }
.video-cadre video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--creme); box-shadow: 0 1px 0 var(--trait), 0 18px 44px -30px rgba(16, 32, 20, .6); }
.cm-etapes { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 30px; position: relative; }
.cm-etapes > li { margin: 0; position: relative; padding-left: 52px; }
.cm-etapes > li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -30px; border-left: 2px dashed var(--trait); }
.cm-num { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sapin); color: var(--blanc); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.cm-corps h3 { font-size: 20px; font-weight: 800; margin: 4px 0 6px; }
.cm-corps > p { color: var(--encre-2); font-size: 15.5px; line-height: 1.5; }
.cm-carte { position: relative; margin-top: 14px; background: var(--creme); border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 14.5px; }
.section.blanc .cm-carte, .section .cm-carte { background: var(--creme); }
.section:not(.blanc) .cm-carte { background: var(--blanc); }
.cm-exemple { position: absolute; top: -9px; right: 12px; background: var(--encre); color: var(--blanc); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.cm-ligne { display: flex; align-items: center; gap: 10px; }
.cm-ligne b { font-size: 15px; }
.cm-lieu { margin-left: auto; font-size: 13px; font-weight: 650; background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.cm-icone { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sapin-clair); color: var(--sapin); display: flex; align-items: center; justify-content: center; }
.cm-icone svg { width: 20px; height: 20px; }
.cm-icone.cm-plein { background: var(--sapin); color: var(--blanc); }
.cm-petit { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.cm-texte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.section:not(.blanc) .cm-texte { background: var(--creme); }
.cm-liste, .cm-devis { list-style: none; padding: 0; display: grid; gap: 6px; }
.cm-liste li, .cm-devis li { margin: 0; display: flex; align-items: center; gap: 10px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; font-weight: 650; }
.section:not(.blanc) .cm-liste li, .section:not(.blanc) .cm-devis li { background: var(--creme); }
.cm-coche { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--sapin); color: var(--blanc); font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cm-devis span { display: grid; line-height: 1.25; }
.cm-devis small { font-size: 12.5px; font-weight: 500; color: var(--encre-2); }
.cm-devis .cm-choisi { border: 2px solid var(--sapin); background: var(--sapin-clair) !important; }
.cm-devis em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 800; background: var(--sapin); color: var(--blanc); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* ---------- « Vos arbres » : la liste compacte des travaux ---------- */
.travaux { border-top: 2px solid var(--encre); }
.travail { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--trait); scroll-margin-top: 80px; }
.travail h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; margin: 0; }
.travail-icone { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sapin-clair); color: var(--sapin); display: flex; align-items: center; justify-content: center; }
.travail-icone svg { width: 23px; height: 23px; }
.travail-nom { text-decoration: underline; text-decoration-color: var(--tendre); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.travail-puces { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 14.5px; color: var(--encre-2); }
.travail-puces li { margin: 0; position: relative; padding-left: 14px; line-height: 1.35; }
.travail-puces li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 2px; background: var(--sapin); }
.travail .btn { justify-self: start; }
@media (min-width: 768px) {
}
@media (min-width: 900px) {
  .cm-tete { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: 30px; }
  .cm-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .cm-etapes > li { padding-left: 0; }
  .cm-num { position: static; margin-bottom: 10px; }
  .cm-etapes > li:not(:last-child)::before { left: 46px; right: -14px; top: 18px; bottom: auto; border-left: 0; border-top: 2px dashed var(--trait); }
  .travail { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 0; }
}

/* ---------- Page « merci » : l'animation « 3 élagueurs au plus, chacun son devis, vous choisissez » ----------
   Tout en CSS. Elle se joue une fois quand la classe « joue » est posée ; le bouton « Revoir » la relance. */
.merci-grille { display: grid; gap: 26px; }
.motion { position: relative; background: var(--creme); border-radius: 24px; padding: 26px 14px 20px; text-align: center; }
.m-demande {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  background: var(--blanc); border: 2px solid var(--sapin); font-size: 15.5px;
}
.m-demande svg { width: 22px; height: 22px; color: var(--sapin); }
.m-lignes { display: block; width: 100%; max-width: 520px; height: 56px; margin: 0 auto; }
.m-lignes path { fill: none; stroke: #9cc58e; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.m-artisans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.m-artisan {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--blanc); border: 2px solid var(--trait); border-radius: 16px; padding: 12px 4px 12px;
}
.m-artisan svg { width: 34px; height: 34px; color: var(--sapin); margin-bottom: 2px; }
.m-artisan b { font-size: 14.5px; }
.m-artisan span { font-size: 12.5px; color: var(--encre-2); }
.m-devis { margin-top: 8px; font-style: normal; font-size: 12.5px; font-weight: 750; background: var(--sable); border-radius: 8px; padding: 3px 9px; }
.m-coche {
  position: absolute; top: -10px; right: -8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sapin); color: var(--blanc); font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.m-a2 { border-color: var(--sapin); box-shadow: 0 0 0 4px rgba(47, 107, 58, .15); }
.m-a1, .m-a3 { opacity: .55; }
.m-choix { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 999px; background: var(--sapin); color: var(--blanc); font-weight: 750; font-size: 14.5px; }
.m-revoir { position: absolute; top: 10px; right: 12px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--encre-2); cursor: pointer; padding: 6px; }
.m-revoir:hover { color: var(--encre); }
.m-etapes { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: e; }
.m-etapes li { counter-increment: e; margin: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; }
.m-etapes li::before {
  content: counter(e); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--sapin); color: var(--blanc);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.m-etapes b { font-size: 16.5px; }
.m-etapes span { color: var(--encre-2); font-size: 15px; line-height: 1.45; }
@keyframes m-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes m-trait { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes m-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes m-retrait { from { opacity: 1; } to { opacity: .55; } }
@keyframes m-choisi { from { border-color: var(--trait); box-shadow: 0 0 0 0 rgba(47, 107, 58, 0); } to { border-color: var(--sapin); box-shadow: 0 0 0 4px rgba(47, 107, 58, .15); } }
@keyframes m-allume { from { opacity: .3; } to { opacity: 1; } }
.motion.joue .m-demande { animation: m-pop .5s ease-out both; }
.motion.joue .m-lignes path { animation: m-trait .8s ease-out 1s both; }
.motion.joue .m-artisan { animation: m-arrive .5s ease-out both; }
.motion.joue .m-a1 { animation: m-arrive .5s ease-out 1.6s both, m-retrait .5s ease 4.6s both; }
.motion.joue .m-a2 { animation: m-arrive .5s ease-out 1.9s both, m-choisi .5s ease 4.6s both; }
.motion.joue .m-a3 { animation: m-arrive .5s ease-out 2.2s both, m-retrait .5s ease 4.6s both; }
.motion.joue .m-a1 .m-devis { animation: m-pop .4s ease-out 3s both; }
.motion.joue .m-a2 .m-devis { animation: m-pop .4s ease-out 3.3s both; }
.motion.joue .m-a3 .m-devis { animation: m-pop .4s ease-out 3.6s both; }
.motion.joue .m-coche { animation: m-pop .4s ease-out 4.9s both; }
.motion.joue .m-choix { animation: m-pop .4s ease-out 5.1s both; }
.motion.joue ~ .m-etapes li:nth-child(1) { animation: m-allume .4s ease 0s both; }
.motion.joue ~ .m-etapes li:nth-child(2) { animation: m-allume .4s ease 1.2s both; }
.motion.joue ~ .m-etapes li:nth-child(3) { animation: m-allume .4s ease 2.8s both; }
.motion.joue ~ .m-etapes li:nth-child(4) { animation: m-allume .4s ease 4.6s both; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 26px; }
  .pastille { display: inline-flex; }
  .hero-contenu { padding-top: 34px; padding-bottom: 36px; }
  .hero-grille { gap: 24px; }
  .secteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte-form { padding: 26px 26px 22px; }
  .form-actions { margin: 20px -26px 0; padding: 14px 26px 18px; }
  .arg-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .arguments { padding: 30px 0 10px; }
  .appel { padding: 56px 48px; }
  .secteur { min-height: 240px; }
}
@media (min-width: 900px) {
  .arg-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .arg-liste li { grid-template-columns: 44px minmax(0, 1fr); padding: 16px 18px; }
  .arg-icone { width: 44px; height: 44px; }
}
@media (min-width: 960px) {
  .menu { display: flex; align-items: center; gap: 26px; margin-right: 18px; }
  .menu-tel { display: none; }
  .hero-contenu { padding-top: 44px; padding-bottom: 48px; }
  .hero-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 48px; }
  .hero h1 { font-size: clamp(36px, 3.8vw, 50px); }
  .sous-hero { max-width: none; margin: 0; }
  .section { padding: 76px 0; }
  .section.serre { padding: 30px 0 60px; }
  .section-courte { padding-bottom: 76px; }
  .section-appel { padding-top: 0; }
  .secteurs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .secteur { min-height: 300px; }
  .blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .barre-appel { display: none; }
  body.avec-barre { padding-bottom: 0; }
  body:has(> .barre-appel) { padding-bottom: 0; }
}
@media (min-width: 760px) {
  .guide-bloc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 28px; }
}
@media (min-width: 860px) {
  .merci-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
}
@media (max-width: 479px) {
  /* Au téléphone, le formulaire est en haut de page : pas de bouton « Ma demande » dans l'en-tête. */
  .entete .wrap > .btn { display: none; }
}
@media (max-width: 359px) {
  /* Petit téléphone : deux colonnes de réponses coupaient « montagne » et « Propriétaire, » (mesuré à 320 px). */
  .choix-ligne.c2 { grid-template-columns: minmax(0, 1fr); }
  /* Petit téléphone : le bouton du menu garde son icône seule, le mot reste lu par les lecteurs d'écran. */
  .menu-tel summary { width: 44px; padding: 0; justify-content: center; }
  .menu-mot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .encart-guide { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .encart-guide img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .motion.joue *, .motion.joue ~ .m-etapes li { animation: none !important; }
}
@media print {
  .entete, .barre-appel, .barre-urgence { display: none; }
}
@media (min-width: 1200px) {
  .entete-tel { display: flex; margin-right: 6px; }
}
