/* Direction artistique « Lisière » — cahier des charges, section 4.
   Règle de rareté : l'ambre n'apparaît QUE sur le bouton principal (.btn--primary). */

/* Police : Ubuntu (licence libre Ubuntu Font Licence), auto-hébergée. */
@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #F6F2EA;
  --blanc: #FFFFFF;
  --encre: #14241C;
  --mousse: #4A5750;
  --foret: #1F4D3A;
  --ambre: #F2A93B;
  --ambre-clair: #F7BC5E;
  --brique: #A8442A;
  --sauge: #DDE7DF;
  --bordure: #66726B;
  --erreur: #B3261E;
  --succes: #1B6B3A;
  --foret-nuit: #11261D;

  --serif: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent: #2F7A4A; /* vert feuille des mots mis en valeur dans les titres (4,9:1 sur crème) */

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 20px;
  --section: 56px;
  --radius: 12px;
  --maxw: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 18px/28px var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--foret); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 var(--s4); max-width: 65ch; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 32px; line-height: 38px; }
h2 { font-size: 26px; line-height: 32px; color: var(--foret); margin-bottom: var(--s5); }
h3 { font: 600 20px/28px var(--sans); margin: 0 0 var(--s2); }
ul, ol { padding-left: 1.2em; margin: 0 0 var(--s4); }
li { margin-bottom: var(--s2); max-width: 65ch; }

:focus-visible { outline: 3px solid var(--foret); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 100; background: var(--blanc); padding: var(--s3) var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* Emplacements temporaires (préproduction uniquement : la production refuse de se construire s'il en reste). */
mark.ph { background: #FFF1C2; color: var(--encre); outline: 1.5px dashed var(--brique); outline-offset: 1px; padding: 0 3px; border-radius: 3px; font-style: normal; }
mark.ph--valider { background: #E9F0FF; outline-color: #3B5BA9; }
.preview-banner { background: var(--encre); color: var(--papier); font-size: 15px; line-height: 22px; padding: var(--s2) var(--gutter); text-align: center; }
.preview-banner a { color: var(--papier); }

/* ---------- Barre haute ---------- */
.topbar { background: var(--papier); border-bottom: 1px solid rgba(20, 36, 28, .12); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: var(--s4); }
.brand { display: flex; align-items: center; min-height: 48px; gap: var(--s2); font: 500 18px/22px var(--serif); color: var(--foret); text-decoration: none; }
.brand svg { flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 56px; padding: 0 var(--s5); border-radius: var(--radius);
  font: 600 18px/22px var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--foret); background: transparent; color: var(--foret);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--sauge); }
.btn--primary { background: var(--ambre); color: var(--encre); border-color: var(--encre); }
.btn--primary:hover { background: var(--ambre-clair); }
.btn--small { min-height: 48px; padding: 0 var(--s4); font-size: 16px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.btn-row .btn--primary { flex: 1 1 0; min-width: 0; }
.btn-row .btn:not(.btn--primary) { flex: 0 0 auto; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--foret); text-decoration: underline; cursor: pointer; min-height: 48px; }

/* ---------- Hero ---------- */
.hero { padding: var(--s4) 0 var(--s6); }
.hero__grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "media" "trust"; }
.hero__grid > * { min-width: 0; }
.hero__intro { grid-area: intro; }
.hero__form { grid-area: form; }
.hero__media { grid-area: media; }
.hero__trust { grid-area: trust; }
.overline { font: 600 15px/22px var(--sans); color: var(--foret); margin: 0 0 var(--s2); display: flex; flex-wrap: wrap; gap: 0 var(--s2); }
.lead { font-size: 18px; line-height: 28px; margin: var(--s3) 0 0; }
.lead strong { font-weight: 700; }

.trust { list-style: none; padding: var(--s4); margin: 0; background: var(--sauge); border-radius: var(--radius); display: grid; gap: var(--s3); }
.trust li { display: flex; gap: var(--s3); align-items: flex-start; margin: 0; font-size: 16px; line-height: 24px; }
.trust svg { flex: none; margin-top: 2px; color: var(--foret); }

/* ---------- Formulaire ---------- */
.card { background: var(--blanc); border-radius: 16px; padding: var(--s4); box-shadow: 0 1px 0 rgba(20,36,28,.08), 0 8px 24px -12px rgba(20,36,28,.25); }
.progress { margin: 0 0 var(--s3); }
.progress__label { font: 600 15px/22px var(--sans); color: var(--mousse); margin: 0 0 var(--s2); }
.progress__bar { height: 6px; background: var(--sauge); border-radius: 3px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--foret); width: 33.33%; transition: width .25s ease; }
.step__title { font: 500 22px/30px var(--serif); color: var(--encre); margin: 0 0 var(--s3); }
.step__title:focus { outline: none; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend, .label { font: 600 16px/22px var(--sans); padding: 0; margin: 0 0 var(--s3); display: block; color: var(--encre); }
.optional { font-weight: 400; color: var(--mousse); }
.help { font-size: 15px; line-height: 22px; color: var(--mousse); margin: var(--s2) 0 0; }
.form-promise { margin: 0 0 var(--s3); color: var(--ink, inherit); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: var(--s2); min-height: 64px; height: 100%; min-width: 0;
  padding: var(--s3) 10px; border: 1.5px solid var(--bordure); border-radius: 10px; background: var(--blanc);
  overflow-wrap: break-word; hyphens: manual;
  font: 600 16px/20px var(--sans); color: var(--encre);
}
.choice--compact span { min-height: 56px; justify-content: center; text-align: center; }
.choice svg { flex: none; color: var(--foret); }
.choice input:hover + span { background: var(--papier); }
.choice input:checked + span { border: 3px solid var(--foret); background: var(--sauge); padding: calc(var(--s3) - 1.5px) 8.5px; }
.choice input:checked + span::after { content: ""; width: 20px; height: 20px; margin-left: auto; flex: none; background: var(--foret); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.choice--compact input:checked + span::after { display: none; }
.choice input:focus-visible + span { outline: 3px solid var(--foret); outline-offset: 2px; }

.field { margin: 0 0 var(--s5); position: relative; }
.field label { font: 600 16px/22px var(--sans); display: block; margin: 0 0 var(--s2); }
.input, textarea.input {
  width: 100%; min-height: 56px; padding: var(--s3) var(--s4);
  font: 400 18px/24px var(--sans); color: var(--encre); background: var(--blanc);
  border: 1.5px solid var(--bordure); border-radius: 10px; appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: 3px solid var(--foret); outline-offset: 1px; border-color: var(--foret); }
.input[aria-invalid="true"] { border-color: var(--erreur); border-width: 2px; }
.error { display: flex; gap: var(--s2); align-items: flex-start; color: var(--erreur); font: 600 15px/22px var(--sans); margin: var(--s2) 0 0; }
.error::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.error:empty { display: none; }
.suggest { list-style: none; margin: var(--s2) 0 0; padding: 0; border: 1.5px solid var(--bordure); border-radius: 10px; background: var(--blanc); overflow: hidden; }
.suggest li { margin: 0; border-top: 1px solid var(--sauge); }
.suggest li:first-child { border-top: 0; }
.suggest button { display: block; width: 100%; min-height: 48px; text-align: left; padding: var(--s3) var(--s4); background: none; border: 0; font: 400 17px/22px var(--sans); color: var(--encre); cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--sauge); }
.suggest small { color: var(--mousse); }
.notice { border-left: 4px solid var(--brique); background: var(--papier); padding: var(--s3) var(--s4); border-radius: 0 8px 8px 0; font-size: 16px; line-height: 24px; margin: var(--s4) 0 0; }
.notice--info { border-left-color: var(--foret); }
.legal-note { font-size: 15px; line-height: 22px; color: var(--mousse); margin: var(--s4) 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sans JavaScript, toutes les étapes sont visibles et le formulaire s'envoie normalement. */
.js .step:not(.is-current) { display: none; }
.js .step1-more:not(.is-open) { display: none; }
html:not(.js) .js-only, .js .no-js-only { display: none !important; }

.confirm h2 { color: var(--succes); }
.confirm form .help { margin-bottom: var(--s4); }
.confirm__ref { font: 600 16px/22px var(--sans); background: var(--sauge); display: inline-block; padding: var(--s2) var(--s3); border-radius: 8px; }
.photos-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s3); }
.photos-preview img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.file-input { font: 400 16px/22px var(--sans); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--white { background: var(--blanc); }
.section--sage { background: var(--sauge); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: var(--s4); margin: 0; max-width: none; }
.steps li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--foret); color: var(--blanc); font: 600 22px/1 var(--serif); }
.steps p { margin: 0; }
.steps__note { margin: var(--s5) 0 0; font-weight: 500; }
.reasons { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.reasons li { background: var(--blanc); border-radius: var(--radius); padding: var(--s4); margin: 0; max-width: none; border-left: 4px solid var(--foret); }
.reasons h3 { margin: 0 0 var(--s2); }
.reasons p { margin: 0; }
.grid-2 { display: grid; gap: var(--s5); }
.services { display: grid; gap: var(--s5); }
.service { background: var(--blanc); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(20,36,28,.1); display: flex; flex-direction: column; }
.service__body { padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.service__body p { margin: 0; }
.service .photo { border-radius: 0; margin: 0; }
.service .linkbtn { align-self: flex-start; margin-top: auto; font-weight: 600; }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s4); margin: 0; }
.checklist li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); margin: 0; }
.checklist svg { color: var(--foret); margin-top: 2px; }
.facts { margin: 0; display: grid; gap: var(--s3); }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 600 15px/22px var(--sans); color: var(--mousse); }
.facts dd { margin: 0; }
.panel { background: var(--blanc); border-radius: var(--radius); padding: var(--s5) var(--s4); }
.panel h3 { color: var(--foret); }

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sauge); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__credit { font-size: 14px; line-height: 20px; color: var(--mousse); padding: var(--s2) var(--s3); background: var(--blanc); }
.photo--placeholder { display: grid; place-items: center; padding: var(--s5); border: 2px dashed var(--bordure); background: repeating-linear-gradient(135deg, var(--sauge) 0 12px, #E6EEE8 12px 24px); text-align: center; color: var(--encre); font-size: 15px; line-height: 22px; }
.photo--placeholder small { color: var(--mousse); }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.gallery { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.gallery .photo:last-child:nth-child(odd) { grid-column: 1 / -1; }

.faq details { border-top: 1px solid rgba(20,36,28,.15); }
.faq details:last-child { border-bottom: 1px solid rgba(20,36,28,.15); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 40px var(--s4) 0; font: 600 18px/26px var(--sans); position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 12px; height: 12px; border-right: 2.5px solid var(--foret); border-bottom: 2.5px solid var(--foret); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .answer { padding: 0 0 var(--s4); }

.cta-final { text-align: left; }
.cta-final .btn--primary { width: 100%; max-width: 420px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--foret-nuit); color: #fff; padding: var(--s7) 0 calc(var(--s7) + 80px); font-size: 16px; line-height: 24px; }
.footer a { color: #fff; }
.footer nav ul { list-style: none; padding: 0; display: grid; gap: var(--s2); margin: var(--s4) 0; }
.footer p { color: rgba(255,255,255,.86); }
.footer mark.ph { color: var(--encre); }

/* ---------- Barre d'action mobile ---------- */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(246,242,234,.96); border-top: 1px solid rgba(20,36,28,.15); padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom)); display: flex; gap: var(--s3); transform: translateY(110%); transition: transform .2s ease; }
.stickybar.is-visible { transform: none; }
.stickybar .btn--primary { flex: 1; }
.stickybar .btn { min-height: 48px; font-size: 17px; }

/* ---------- Bannière de consentement ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--blanc); border-top: 2px solid var(--foret); padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(20,36,28,.3); }
.consent__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--s2); }
.consent p { margin: 0; font-size: 15px; line-height: 20px; max-width: none; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.consent__actions .btn { min-height: 44px; font-size: 16px; padding: 0 var(--s3); }
body.has-consent-bar { padding-bottom: 130px; }
/* Tant que la bannière est visible, les défilements automatiques laissent les boutons au-dessus d'elle. */
html:has(body.has-consent-bar) { scroll-padding-bottom: 130px; }
body.has-consent-bar .stickybar { display: none; }

/* ---------- Pages légales ---------- */
.legal { padding: var(--s6) 0 var(--s8); }
.legal h1 { margin-bottom: var(--s5); }
.legal h2 { font-size: 22px; line-height: 30px; margin: var(--s6) 0 var(--s3); }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 24px; margin: 0 0 var(--s5); }
.legal th, .legal td { text-align: left; border-bottom: 1px solid rgba(20,36,28,.15); padding: var(--s2) var(--s2) var(--s2) 0; vertical-align: top; }
.legal .table-scroll { overflow-x: auto; }
.toggle { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); background: var(--blanc); border-radius: var(--radius); margin: 0 0 var(--s3); }
.toggle input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--foret); flex: none; }

/* ---------- Points de rupture ---------- */
@media (min-width: 768px) { .card { padding: var(--s5); } }
@media (min-width: 481px) {
  :root { --gutter: 24px; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .steps li { grid-template-columns: 1fr; }
  .hero__form { max-width: 560px; }
  .consent__inner { grid-template-columns: 1fr auto; align-items: center; }
  .consent__actions { grid-template-columns: auto auto; }
  body.has-consent-bar { padding-bottom: 96px; }
}
@media (min-width: 1024px) {
  :root { --section: 96px; }
  h1 { font-size: 52px; line-height: 58px; }
  h2 { font-size: 36px; line-height: 42px; }
  h3 { font-size: 22px; line-height: 30px; }
  .hero { padding: var(--s7) 0 var(--s8); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s7); grid-template-areas: "intro form" "media form" "trust form"; align-items: start; }
  .hero__form { max-width: none; position: sticky; top: var(--s5); }
  .stickybar { display: none; }
  .footer { padding-bottom: var(--s7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.linkbtn--light { color: #fff; }
.panel--next { margin-top: var(--s4); }

/* ---------- Ajouts V1.1 (page dessouchage) ---------- */
.lead--small { font-size: 16px; line-height: 24px; color: var(--mousse); margin-top: var(--s2); }
.privacy-note { background: var(--papier); border-radius: 10px; padding: var(--s3) var(--s4); font-size: 15px; line-height: 22px; color: var(--encre); }
.privacy-note p { margin: 0; }
.link-target { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.btn-row--submit { margin-top: var(--s4); }
.reassure { font: 600 15px/22px var(--sans); color: var(--succes); margin: 0; display: flex; gap: var(--s2); align-items: flex-start; }
.reassure::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.choice--wide { grid-column: 1 / -1; }
.service .btn--small { align-self: flex-start; margin-top: auto; }
.service--main { border: 2px solid var(--foret); }
.narrow { max-width: 760px; }
.link-list { list-style: none; padding: 0; margin: var(--s4) 0; }
.link-list li { margin: 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer nav ul { gap: 0; }
.faq .answer a { display: inline-block; min-height: 24px; }
.preview-tag { font-size: 14px; opacity: .8; margin: var(--s4) 0 0; }
.notice[data-out-of-zone]:focus { outline: 3px solid var(--foret); outline-offset: 2px; }
@media (max-width: 480px) {
  .choice:not(.choice--compact) span { flex-direction: column; justify-content: center; text-align: center; gap: var(--s1); padding-top: var(--s2); padding-bottom: var(--s2); }
  .choice:not(.choice--compact) input:checked + span::after { position: absolute; top: 8px; right: 8px; margin: 0; }
}
.btn-row--submit { flex-direction: column-reverse; }
.btn-row--submit .btn { width: 100%; flex: none; }

/* ---------- Identité « Devis Élagage Toulouse » (13/11/2026) ----------
   Palette nature : forêt profonde, crème, touche bois. L'ambre reste réservé aux boutons d'action. */
:root { --bois: #7A4E2D; --creme: #FBF7EF; }
body { background: var(--creme); }
.topbar { background: var(--foret-nuit); border-bottom: 0; }
.topbar .brand { color: #fff; }
.topbar .brand rect { fill: #2C6A50; }
.topbar .btn--small { color: #fff; border-color: rgba(255,255,255,.7); }
.topbar .btn--small:hover { background: rgba(255,255,255,.1); }
.overline { display: inline-flex; align-items: center; gap: 6px; color: var(--bois); letter-spacing: .01em; }
.overline svg { flex: none; }
.chips { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--sauge); color: var(--foret); font: 700 15px/22px var(--sans); }
.hero { background: linear-gradient(180deg, var(--creme) 0%, var(--papier) 100%); }
.hero__media .photo { box-shadow: 0 12px 32px -18px rgba(17,38,29,.6); }
.hero__media .photo__credit, .gallery .photo__credit { background: transparent; font-size: 13px; }
.section h2 { position: relative; padding-top: var(--s4); }
.section h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--bois); }
.gallery { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.footer-contact { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (max-width: 1023px) { .hero__media { display: none; } }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }

/* Galerie « Sur le terrain » : 4 photos réelles, format homogène, cadrage sur le geste. */
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); max-width: none; }
.gallery .photo { display: flex; flex-direction: column; background: transparent; }
.gallery .photo picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery .photo__credit { padding: var(--s2) 2px 0; line-height: 18px; }
.gallery .photo--T1 img { object-position: 40% 50%; }
.gallery .photo--T3 img { object-position: 28% 50%; }
.gallery .photo--T4 img { object-position: 62% 50%; }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } }

/* Titres en deux couleurs : la suite du titre passe en vert feuille. */
.accent { color: var(--accent); }
h1 .accent { display: block; }
h2 .accent { color: var(--accent); }

/* ======================================================================
   16/11/2026 — Lisibilité seniors, barre d'appel, « Être rappelé », témoignages.
   Règle : aucun texte sous 18 px, boutons d'au moins 56 px de haut.
   ====================================================================== */
.overline, .progress__label, .help, legend, .label, .field label, .choice span, .error, .notice,
.legal-note, .suggest button, .trust li, .facts dt, .photo__credit, .photo--placeholder,
.footer, .consent p, .consent__actions .btn, .lead--small, .privacy-note, .reassure, .chips li,
.confirm__ref, .file-input, .legal table, .preview-tag, .btn--small, .stickybar .btn,
.hero__media .photo__credit, .gallery .photo__credit {
  font-size: 18px;
  line-height: 26px;
}
legend, .field label { font-weight: 700; }
.choice span { line-height: 22px; }
.btn--small { min-height: 52px; }
.consent__actions .btn { min-height: 52px; }
.consent p { line-height: 24px; }
.step__intro { margin: 0 0 var(--s4); }
.form-promise { font-weight: 600; color: var(--foret); }
.privacy-note { margin-top: var(--s2); }

/* Champ anti-spam : présent pour les robots, jamais visible ni annoncé (même sans CSS : attribut hidden). */
.hp, .hp[hidden] { display: none !important; }


/* En-tête : « Être rappelé » sur ordinateur (sur mobile, il est dans la barre du bas). */
.topbar__actions { display: flex; gap: var(--s2); align-items: center; }
.topbar__callback { display: none; }
@media (min-width: 1024px) { .topbar__callback { display: inline-flex; } }

/* ---------- Barre d'appel mobile, toujours visible ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--foret-nuit); color: #fff;
  padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(17,38,29,.5);
}
.callbar__text { margin: 0 0 var(--s2); font: 600 18px/24px var(--sans); color: #fff; max-width: none; text-align: center; }
.callbar__actions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s2); }
.callbar .btn { min-height: 52px; padding: 0 var(--s3); font-size: 18px; white-space: nowrap; }
.btn--call { background: var(--ambre); color: var(--encre); border-color: var(--ambre); }
.btn--call:hover { background: var(--ambre-clair); }
.btn--callback { background: #fff; color: var(--foret); border-color: #fff; }
.btn--callback:hover { background: var(--sauge); }
html:not(.js) .callbar__actions { grid-template-columns: 1fr; }
@media (max-width: 359px) {
  /* Très petits écrans : les deux boutons restent côte à côte (sans icône) pour garder la barre basse. */
  .callbar .btn { padding: 0 var(--s2); }
  .btn--call svg { display: none; }
}
/* Pendant que la bannière de cookies est affichée, la barre se réduit à ses deux boutons. */
body.has-consent-bar .callbar__text { display: none; }
.file-input { max-width: 100%; width: 100%; }
@media (min-width: 1024px) { .callbar { display: none; } }
.footer { padding-bottom: var(--s7); }
/* La bannière de cookies passe au-dessus de la barre (la barre se décale au-dessus d'elle, voir rappel.js). */
body.has-consent-bar { padding-bottom: 0; }

/* ---------- Fenêtre « Être rappelé » ---------- */
.callback {
  width: min(520px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 32px); overflow: auto;
  border: 0; border-radius: 16px; padding: var(--s4); background: var(--blanc); color: var(--encre);
  box-shadow: 0 24px 48px -16px rgba(17,38,29,.5);
}
.callback::backdrop { background: rgba(17,38,29,.6); }
.callback p { font-size: 18px; line-height: 26px; margin-bottom: var(--s3); }
.callback .field { margin-bottom: var(--s4); }
.callback .btn-row { margin-top: var(--s3); }
.callback .privacy-note a { font-weight: 600; }
.callback .btn-row--submit { flex-direction: row; }
.callback .btn-row--submit .btn { width: auto; flex: 1 1 0; }
.callback__done .step__title { color: var(--succes); }
html.has-dialog { overflow: hidden; }

/* ---------- Témoignages (sous le formulaire) ---------- */
.testimonials h2 { font-size: 24px; line-height: 30px; margin: 0 0 var(--s2); }
.testimonials__note { color: var(--mousse); margin: 0 0 var(--s4); }
.testimonials__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.testimonials__list li { margin: 0; max-width: none; }
.testimonial { margin: 0; background: var(--blanc); border-radius: var(--radius); padding: var(--s4); border: 1px solid rgba(20,36,28,.1); }
.testimonial .stars { margin: 0 0 var(--s2); color: #9A6200; font-size: 22px; line-height: 1; letter-spacing: 2px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { margin-top: var(--s2); font-weight: 700; color: var(--foret); }

/* ---------- « Qui sommes-nous » et page ville ---------- */
.facts--about { margin: 0 0 var(--s4); background: var(--blanc); border-radius: var(--radius); padding: var(--s4); }
.facts--about dd { font-weight: 600; }
.city p { max-width: 65ch; }

/* Galerie : 3 photos différentes (la photo du haut de page n'y est plus répétée). */
.gallery .photo:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gallery .photo:last-child:nth-child(odd) picture { aspect-ratio: 3 / 2; }
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery .photo:last-child:nth-child(odd) { grid-column: auto; }
  .gallery .photo:last-child:nth-child(odd) picture { aspect-ratio: 4 / 5; }
}

/* Pied de page : logo + nom du service, puis l'éditeur. */
.footer-brand { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); font-size: 20px; }
.footer-brand svg { flex: none; }
.nowrap { white-space: nowrap; }

/* ======================================================================
   17/11/2026 — Premier écran mobile (375–390 px) : promesse, repères, photo réelle, début du formulaire.
   ====================================================================== */
.brand__name { font: 700 18px/22px var(--sans); color: #fff; max-width: 9.5em; }
.topbar .wrap { min-height: 60px; }
.topbar .btn--small { min-height: 48px; }
.form-relay { font-weight: 600; margin-bottom: var(--s2) !important; }
.hero__photo-mobile { display: none; }
@media (max-width: 1023px) {
  .hero { padding: var(--s3) 0 var(--s5); }
  .hero__grid { gap: var(--s3); }
  h1 { font-size: 28px; line-height: 34px; }
  .lead { margin-top: var(--s2); }
  .chips { margin-top: var(--s3); }
  .chips li { padding: 4px 12px 4px 10px; }
  .hero__photo-mobile { display: block; margin-top: var(--s3); }
  .photo--compact { position: relative; border-radius: var(--radius); }
  .photo--compact picture { display: block; height: 130px; }
  .photo--compact img { width: 100%; height: 130px; object-fit: cover; object-position: 45% 58%; }
  .photo--compact .photo__credit {
    position: absolute; left: 0; bottom: 0; padding: 4px 10px; border-top-right-radius: 8px;
    background: rgba(17,38,29,.82); color: #fff; font-size: 18px; line-height: 24px;
  }
  .card { padding: var(--s4) var(--s4) var(--s5); }
  .progress { margin-bottom: var(--s2); }
  .step__title { margin-bottom: var(--s2); }
}
@media (max-width: 1023px) {
  /* « Votre demande » répète le titre de la page : masqué à l'écran à l'étape 1, lu par les lecteurs d'écran. */
  .step__title--quiet { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step__title--quiet:focus { position: static !important; width: auto; height: auto; clip: auto; white-space: normal; }
}
.callbar--top .callbar__text { display: none; }
.faq .answer a { display: inline-flex; align-items: center; min-height: 48px; }
/* 18/11/2026 — Mobile : espacements verticaux du héros resserrés pour que le champ « Votre commune »
   soit visible sans défilement (iPhone 375 × 812 avec barres Safari : fenêtre de 635 px). Textes, photo
   et tailles de police inchangés. */
@media (max-width: 1023px) {
  .hero { padding-top: 6px; }
  .hero__grid { gap: var(--s2); }
  h1 { line-height: 32px; }
  .lead { margin-top: 4px; line-height: 26px; }
  .chips { margin-top: var(--s2); gap: 6px; }
  .chips li { padding-top: 2px; padding-bottom: 2px; }
  .hero__photo-mobile { margin-top: var(--s2); }
  .card { padding-top: var(--s3); }
  .progress { margin-bottom: 4px; }
  .progress__label { margin-bottom: 4px; }
  [data-step="1"] .field:first-of-type label { margin-bottom: 4px; }
}
/* 21/11/2026 — Formulaire en 2 étapes : précisions repliées, lien d'appel sous les boutons. */
.progress__bar span { width: 50%; }
.more-details { margin: 0 0 var(--s5); border: 1.5px solid var(--bordure); border-radius: 10px; background: var(--blanc); }
.more-details > summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); font: 700 18px/24px var(--sans); color: var(--foret); }
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--foret); border-bottom: 2.5px solid var(--foret); transform: rotate(45deg); transition: transform .2s; }
.more-details[open] > summary::after { transform: rotate(-135deg); }
.more-details > :not(summary) { margin-left: var(--s4); margin-right: var(--s4); }
.more-details > fieldset:last-of-type, .more-details > .field:last-child { margin-bottom: var(--s4); }
.call-alt { margin: var(--s3) 0 0; font-size: 18px; line-height: 26px; }
.call-alt a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.more-details > summary { display: block; position: relative; padding-right: 44px; }
.more-details > summary::after { position: absolute; right: 18px; top: 24px; margin: 0; }
.more-details[open] > summary::after { top: 28px; }
/* 21/11/2026 — Pages des liens annexes : réponse à l'intention de recherche dès le premier écran, en une ligne de texte. */
.intro-points { margin: var(--s3) 0 0; padding-left: var(--s3); border-left: 4px solid var(--foret); font-size: 16px; line-height: 24px; }
.intro-points strong { color: var(--foret); }
.intro-safety { margin-top: var(--s3); }
/* 22/11/2026 — Test : ordres de grandeur des prix (page prix uniquement). */
.prices__grid { display: grid; gap: var(--s4); margin: var(--s4) 0; }
@media (min-width: 900px) { .prices__grid { grid-template-columns: repeat(3, 1fr); } }
.prices__table { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1.5px solid var(--bordure); border-radius: 10px; overflow: hidden; font-size: 16px; line-height: 22px; }
.prices__table caption { text-align: left; font: 700 18px/24px var(--sans); color: var(--foret); padding: 0 0 var(--s2); }
.prices__table th, .prices__table td { padding: 10px 12px; border-top: 1px solid var(--bordure); vertical-align: top; }
.prices__table tr:first-child th, .prices__table tr:first-child td { border-top: 0; }
.prices__table th { text-align: left; font-weight: 500; }
.prices__table td { text-align: right; font-weight: 700; white-space: nowrap; }
