/* =========================================================
   Ethica Gestion, feuille de style
   Identité tirée de la vitrine de Saint-Maurice :
   façade bleu marine, lettres d'enseigne lumineuses,
   filets fins, angles droits.
   ========================================================= */
:root {
  --bg: #EAF2F8;          /* fond du site : Ciel de Paris */
  --paper: #FFFFFF;
  --pale: #DCE8F1;        /* sections alternées */
  --facade: #0D394C;      /* bleu pétrole Ethica */
  --facade-deep: #072836;
  --brand: #187397;       /* bleu des boutons */
  --brand-dark: #13617F;
  --sky: #8FD3EA;         /* bleu clair sur fond pétrole */
  --sign: #FFFFFF;        /* texte sur fond pétrole */
  --ink: #0D2B39;         /* texte */
  --muted: #52656E;       /* texte secondaire */
  --on-dark: #D3E4EA;     /* texte secondaire sur fond pétrole */
  --line: #C5D7E0;        /* filets */
  --line-dark: #2A6178;
  --gold: #C9A24B;        /* étoiles des avis */
  --radius: 6px;
  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
::selection { background: var(--facade); color: var(--sign); }
:focus-visible { outline: 2px solid var(--facade); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, select, textarea, button { font: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; fill: var(--gold); stroke: none; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 26px; }
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--sign); border-color: rgba(244,238,226,.45); }
.btn-outline-light:hover { border-color: var(--sign); }
.btn-white { background: #FFFFFF; color: var(--facade); }
.btn-white:hover { background: #E7F1F5; }
.btn-ghost { background: none; color: var(--muted); padding: 0 6px; min-height: 40px; }
.link { font-family: var(--display); font-weight: 500; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Barre supérieure et en-tête ---------- */
.topbar { background: var(--facade-deep); color: var(--on-dark); font-family: var(--display); font-size: 14px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 7px 0; }
.topbar-urgence { display: flex; align-items: center; gap: 8px; }
.topbar-urgence .ic { width: 14px; height: 14px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover, .topbar-urgence a { color: var(--sign); }
.topbar-links { display: flex; gap: 22px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; gap: 26px; font-family: var(--display); font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn-outline .ic { width: 15px; height: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Haut de page : façade + diaporama ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: min(720px, calc(100vh - 116px)); background: var(--facade); }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 64px max(32px, calc((100vw - 1180px) / 2)); padding-right: 56px; color: var(--on-dark); }
.hero h1 { color: var(--sign); font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -0.02em; max-width: 12ch; }
.hero-lead { font-size: 19px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero-actions .btn-primary { background: var(--brand); color: #FFFFFF; }
.hero-actions .btn-primary:hover { background: var(--brand-dark); }
.hero h1 { color: #FFFFFF; }
.hero-phone { color: var(--sign); font-family: var(--display); text-decoration: none; border-bottom: 1px solid rgba(244,238,226,.4); }
.hero-phone:hover { border-color: var(--sign); }
.hero-media { position: relative; overflow: hidden; min-height: 360px; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s cubic-bezier(.2,.6,.3,1); }
.slide.is-active { opacity: 1; transform: scale(1); }
.slide.is-leaving { opacity: 0; transition: opacity 1.6s ease; }
.slide-nav { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.slide-dot { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(244,238,226,.25); cursor: pointer; }
.slide-dot i { display: block; height: 100%; width: 0; background: var(--sky); }
.slide-dot.is-active i { animation: dot-fill var(--slide-time, 6s) linear forwards; }
.hero-slider.is-paused .slide-dot.is-active i { animation-play-state: paused; }
@keyframes dot-fill { to { width: 100%; } }
.slide-pause { width: 28px; height: 28px; margin-left: 8px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.slide-pause span { width: 3px; height: 11px; background: var(--sign); }
.hero-slider.is-paused .slide-pause span:first-child { width: 0; height: 0; background: none; border-left: 9px solid var(--sign); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero-slider.is-paused .slide-pause span:last-child { display: none; }

/* ---------- Enseigne : le moment signature ---------- */
.fascia { background: var(--facade-deep); border-top: 1px solid var(--line-dark); }
.fascia-inner { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; justify-content: space-between; flex-wrap: wrap; }
.fascia a { flex: 1 1 auto; text-align: center; padding: 22px 14px; font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sign); text-decoration: none; position: relative; text-shadow: 0 0 14px rgba(244,238,226,.35); }
.fascia a + a::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: var(--sky); opacity: .6; }
.fascia a:hover { text-shadow: 0 0 18px rgba(244,238,226,.75); }
/* allumage à l'arrivée sur la page */
.js .fascia a { animation: sign-on 1.1s ease forwards; opacity: .15; text-shadow: none; }
.js .fascia a:nth-child(2) { animation-delay: .15s; }
.js .fascia a:nth-child(3) { animation-delay: .3s; }
.js .fascia a:nth-child(4) { animation-delay: .45s; }
.js .fascia a:nth-child(5) { animation-delay: .6s; }
.js .fascia a:nth-child(6) { animation-delay: .75s; }
@keyframes sign-on {
  0% { opacity: .15; text-shadow: none; }
  40% { opacity: .9; text-shadow: 0 0 22px rgba(244,238,226,.8); }
  55% { opacity: .45; }
  100% { opacity: 1; text-shadow: 0 0 14px rgba(244,238,226,.35); }
}

/* ---------- Garanties ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 0; padding: 18px 0; font-family: var(--display); font-size: 15px; color: var(--muted); }
.trust-list li { padding: 0 16px; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list li:first-child { padding-left: 0; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-pale { background: var(--pale); }
.section-dark { background: var(--facade); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--sign); }
.section-dark .link { color: var(--sky); }
.section > .container > h2 { margin-bottom: 44px; max-width: 20ch; }
.sec-intro { max-width: 720px; margin-bottom: 52px; display: flex; flex-direction: column; gap: 16px; }
.sec-lead { font-size: 19px; color: var(--muted); }
.section-dark .sec-lead { color: var(--on-dark); }
.prose { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.prose p { max-width: 62ch; }
.prose .btn { margin-top: 8px; }

/* Lignes (offres) */
.rows { border-top: 1px solid var(--ink); }
.row-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 12px 48px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row-item p { color: var(--muted); max-width: 58ch; }

/* Pourquoi */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.why-quote { margin: 0; padding-top: 8px; }
.why-quote blockquote { margin: 0; font-family: var(--text); font-style: italic; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; color: var(--facade); }
.why-quote figcaption { margin-top: 18px; font-family: var(--display); font-size: 15px; color: var(--muted); }
.why-text { display: flex; flex-direction: column; gap: 20px; }
.why-text h2 { margin-bottom: 8px; }
.why-text strong { font-weight: 600; color: var(--ink); }

/* Deux colonnes (AFUL, difficulté) */
.split-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.refs { border-top: 1px solid var(--ink); padding-top: 20px; }
.refs h3 { font-size: 17px; margin-bottom: 14px; }
.refs dt { font-family: var(--display); font-weight: 500; margin-top: 14px; }
.refs dd { color: var(--muted); font-size: 16px; }

/* Étapes (vraie séquence) */
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps > li { counter-increment: st; padding: 0 28px 0 24px; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 12px; }
.steps > li::before { content: counter(st); font-family: var(--display); font-size: 44px; line-height: 1; color: var(--sky); font-weight: 400; }
.steps ul { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.steps ul li { padding-left: 14px; position: relative; }
.steps ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: currentColor; }
.steps-light > li { border-color: var(--line); }
.steps-light > li::before { color: var(--brand); }
.steps-light p { color: var(--muted); }
.audiences { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--line-dark); padding-top: 40px; }
.audiences > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* Difficulté */
.alert-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.alert-card h3 { font-size: 18px; }
.alert-card ul { width: 100%; }
.alert-card li { padding: 10px 0; border-top: 1px solid var(--line); }
.table-title { margin: 72px 0 18px; font-size: 22px; }
.ref-table { border-top: 1px solid var(--ink); }
.ref-table > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ref-table dt { font-family: var(--display); font-size: 15px; color: var(--muted); padding-top: 3px; }
.ref-table dd { max-width: 68ch; }
.ref-table strong { font-weight: 600; }
.method { margin-top: 28px; color: var(--muted); }
.method strong { color: var(--ink); }

/* Honoraires */
.quote-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.quote-cta > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.quote-cta p { color: var(--muted); max-width: 62ch; }

/* Agence */
.agency { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.agency-photo { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.agency-photo img { width: 100%; height: 100%; object-fit: cover; }
.agency-info { display: flex; flex-direction: column; gap: 20px; }
.agency-info > p { color: var(--muted); max-width: 52ch; }
.agency-card { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.agency-card h3 { font-size: 20px; }
.agency-card p { display: flex; gap: 12px; align-items: flex-start; }
.agency-card .ic { color: var(--facade); margin-top: 4px; }
.agency-card a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.agency-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Avis */
.sec-head-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.rating-box { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--muted); font-family: var(--display); font-size: 15px; }
.rating-box > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rating { font-family: var(--display); font-size: 34px; color: var(--ink); }
.reviews-count { display: flex; align-items: center; gap: 10px; font-family: var(--display); margin-bottom: 24px; color: var(--ink); }
.carousel { position: relative; border-top: 1px solid var(--ink); }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 96px) / 3); gap: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 32px 0 8px; }
.car-track::-webkit-scrollbar { display: none; }
.review { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-style: italic; font-size: 18px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open blockquote { display: block; }
.review figcaption { font-family: var(--display); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; }
.review figcaption strong { color: var(--ink); font-weight: 500; font-size: 16px; }
.read-more { align-self: flex-start; background: none; border: 0; padding: 0; font-family: var(--display); color: var(--facade); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.car-btn { position: absolute; top: -60px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.car-btn:hover { border-color: var(--ink); }
.car-prev { right: 48px; }
.car-next { right: 0; }
.reviews-more { margin-top: 28px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 72px; align-items: start; }
.faq-grid .sec-head { display: flex; flex-direction: column; gap: 14px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--display); font-size: 18px; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; font-size: 22px; color: var(--facade); transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

/* ---------- Formulaire de devis (page devis) ---------- */
.lead-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.lead-card h2 { font-size: 28px; }
.progress { height: 3px; background: var(--pale); }
.progress span { display: block; height: 100%; background: var(--brand); transition: width .35s; }
.step { border: 0; margin: 0; padding: 0; display: none; flex-direction: column; gap: 10px; }
.step.is-active { display: flex; }
.step legend { font-family: var(--display); font-weight: 500; font-size: 17px; margin-bottom: 8px; padding: 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice:hover { border-color: var(--muted); }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #E7F1F5; }
.field-lbl { font-family: var(--display); font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--display); font-size: 15px; }
.pills input:checked + span { background: var(--facade); color: var(--sign); border-color: var(--facade); }
.pills input:focus-visible + span { outline: 2px solid var(--facade); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-size: 15px; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--facade); box-shadow: 0 0 0 1px var(--facade); }
.field input.invalid { border-color: #B3261E; }
.lead-card form { display: flex; flex-direction: column; gap: 20px; }
.lead-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.lead-actions .btn { min-height: 48px; }
.lead-actions [data-prev] { padding: 0 20px; border: 1px solid var(--line); color: var(--ink); background: transparent; }
.lead-actions [data-prev]:hover { border-color: var(--ink); }
.lead-actions [data-next], .lead-actions [data-submit] { margin-left: auto; min-width: 170px; }
.lead-actions .btn:focus:not(:focus-visible) { outline: none; }
.legal-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-family: var(--display); font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { color: #1E6B3A; }
.form-status.err { color: #B3261E; }

.page-hero { position: relative; overflow: hidden; background: var(--facade); color: var(--on-dark); padding: 72px 0 80px; }
.page-hero-img, .page-hero .hero-shade { display: none; }
.page-hero-inner { position: relative; width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { color: var(--sign); font-size: clamp(36px, 4.4vw, 56px); }
.page-hero .hero-lead { max-width: 60ch; }
.crumb { font-family: var(--display); font-size: 14px; color: var(--on-dark); }
.crumb a { color: var(--on-dark); }
.crumb strong { color: var(--sign); font-weight: 500; }
.crumb span { margin: 0 6px; }
.devis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.devis-info h2 { margin-bottom: 26px; }
.devis-steps { counter-reset: st; display: flex; flex-direction: column; margin-bottom: 36px; border-top: 1px solid var(--ink); }
.devis-steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.devis-steps li::before { content: counter(st); grid-row: span 2; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--facade); }
.devis-steps strong { font-family: var(--display); font-weight: 500; font-size: 18px; }
.devis-steps span { color: var(--muted); }
.devis-contact { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.devis-contact p:first-child { color: var(--ink); font-family: var(--display); }
.devis-contact a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- Pied de page ---------- */
.footer { background: var(--facade-deep); color: var(--on-dark); padding: 72px 0 36px; font-family: var(--display); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; font-family: var(--text); }
.footer-brand img { height: 88px; width: auto; }
.footer-brand p { max-width: 34ch; }
.footer h4 { font-size: 15px; font-weight: 500; color: var(--sign); margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer a:not(.btn) { color: var(--on-dark); text-decoration: none; }
.footer a:not(.btn):hover { color: var(--sign); }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 1.8; }
.sticky-cta { display: none; }

/* ---------- Mentions légales (nouvelle page) ---------- */
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 110px; display: flex; flex-direction: column; border-top: 1px solid var(--ink); font-family: var(--display); }
.legal-toc a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.legal-toc a:hover { color: var(--brand); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 28px; margin: 56px 0 18px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: 14px; }
.legal-dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--line); margin-bottom: 16px; }
.legal-dl dt, .legal-dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font-family: var(--display); color: var(--muted); font-size: 15px; padding-right: 20px; }
.legal-dl dd { color: var(--ink); }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .legal-dl { grid-template-columns: 1fr; }
  .legal-dl dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Mentions légales ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 24px; }
.legal-page h2 { font-size: 26px; margin: 36px 0 10px; }
.legal-page p { color: var(--muted); }

/* =========================================================
   NAVIGATION FLUIDE
   ========================================================= */
/* Fondu entre la page d'accueil et la page devis (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .35s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* En-tête qui se resserre quand on descend */
:root { --header-h: 80px; }
.header { transition: box-shadow .3s ease, background-color .3s ease; }
.header-inner { transition: height .3s ease; }
.brand img { transition: height .3s ease; }
.header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(13,43,57,.45); }
.header.is-scrolled .header-inner { height: 64px; }
.header.is-scrolled .brand img { height: 46px; }

/* Rubrique en cours dans le menu */
.nav a { transition: color .2s, border-color .2s; }
.nav a.is-current { border-color: var(--brand); color: var(--brand); }

/* Bouton menu qui devient une croix */
.burger span { transition: transform .3s ease, opacity .2s ease; transform-origin: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Retour en haut */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 55; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s linear .3s, border-color .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, visibility 0s, border-color .2s; }
.to-top:hover { border-color: var(--ink); }
.to-top .ic { width: 20px; height: 20px; }

/* Bouton devis fixe qui s'efface quand il gêne */
.sticky-cta { transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* Réponses de la FAQ qui s'ouvrent en douceur */
.faq details[open] p { animation: faq-open .35s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

/* =========================================================
   TÉLÉPHONE ET ÉCRANS TACTILES
   ========================================================= */
@media (hover: none) {
  /* pas d'effets de survol « collés » après un toucher */
  .btn-primary:hover { background: var(--brand); }
  .btn-outline:hover { border-color: var(--line); }
  .nav a:hover { border-color: transparent; }
  a, button, summary, label { -webkit-tap-highlight-color: rgba(24,115,151,.15); }
  .btn:active, .choice:active, .pills span:active { transform: scale(.98); }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .header.is-scrolled .header-inner { height: 60px; }
  .header.is-scrolled .brand img { height: 40px; }
  /* zones de toucher d'au moins 44 px */
  .btn { min-height: 48px; }
  .slide-dot { height: 22px; background: none; position: relative; width: 30px; }
  .slide-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: rgba(255,255,255,.3); }
  .slide-dot i { position: absolute; left: 0; top: 9px; height: 3px; }
  .faq summary { min-height: 48px; font-size: 17px; }
  .topbar-urgence { display: block; text-align: center; width: 100%; white-space: nowrap; }
  .topbar-urgence .ic { display: inline-block; vertical-align: -2px; margin-right: 6px; }
  .topbar-label { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-phone { align-self: center; }
  .agency-actions .btn { flex: 1 1 100%; }
  .quote-cta .btn { width: 100%; }
  .prose .btn, .alert-card .btn { width: 100%; }
  .lead-actions .btn-primary { flex: 1; }
  /* champs à 16 px minimum : pas de zoom automatique sur iPhone */
  .field input, .field select, .field textarea { font-size: 16px; min-height: 50px; }
  .to-top { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .sticky-cta { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .fascia-inner { width: 100%; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .fascia a { flex-basis: 100%; }
}

/* =========================================================
   PHOTOS ET MOUVEMENT
   ========================================================= */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--pale); }
.media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ms, 1.12)); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.media.is-in img { --ms: 1.06; }
.media:hover img { --ms: 1.1; }
.media-tall { aspect-ratio: 3 / 4; }
.media-square { aspect-ratio: 1 / 1; }
.media-land { aspect-ratio: 4 / 3; }
.media-wide { aspect-ratio: 16 / 9; width: 100%; margin-top: 10px; }
/* dévoilement en volet, du bas vers le haut */
.js .media > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js .media.is-in > img { clip-path: inset(0 0 0 0); }
.js .media { background: transparent; }

/* Mises en page avec photo */
.offres-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.offres-grid > .media { position: sticky; top: 110px; }
.why-side { display: flex; flex-direction: column; gap: 32px; }
.why-side .media { max-width: 420px; }
.refs-col { display: flex; flex-direction: column; gap: 28px; }
.intro-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.intro-split .sec-intro { margin-bottom: 0; }
.quote-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.quote-cta > div { align-items: flex-start; }
.faq-media { margin-top: 18px; max-width: 360px; }
.agency-photo.media { aspect-ratio: 4 / 3; }

/* Projets en cours (vidéos) */
.section-projects { padding-top: 0; }
.section-projects h2 { margin-bottom: 32px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project { display: flex; flex-direction: column; gap: 10px; }
.project-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--facade-deep); }
.project-video video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.project:hover .project-video video { transform: scale(1.03); }
.project h3 { margin-top: 8px; font-size: 21px; }
.project p { color: var(--muted); font-family: var(--display); }
.js .reveal .project { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in .project { opacity: 1; transform: none; }
.js .reveal.is-in .project:nth-child(2) { transition-delay: .15s; }
@media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

/* Bande de photos qui défile en continu */
.photo-band { overflow: hidden; padding: 8px 0 104px; }
.band-track { display: flex; gap: 16px; width: max-content; animation: band 70s linear infinite; }
.band-track img { height: 300px; width: 240px; object-fit: cover; border-radius: var(--radius); flex: none; transition: transform .5s ease, filter .5s ease; }
.band-track:hover { animation-play-state: paused; }
.band-track img:hover { transform: translateY(-6px); }
@keyframes band { to { transform: translateX(calc(-50% - 8px)); } }

/* Haut de page : entrée en cascade */
.js .hero-text > * { opacity: 0; transform: translateY(22px); animation: hero-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero-text > *:nth-child(1) { animation-delay: .1s; }
.js .hero-text > *:nth-child(2) { animation-delay: .25s; }
.js .hero-text > *:nth-child(3) { animation-delay: .4s; }
.js .hero-text > *:nth-child(4) { animation-delay: .55s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
.js .hero-media { clip-path: inset(0 0 0 100%); animation: hero-wipe 1.4s cubic-bezier(.7,0,.2,1) .15s forwards; }
@keyframes hero-wipe { to { clip-path: inset(0 0 0 0); } }

/* Titres qui montent, lignes qui se tracent, éléments en cascade */
.js .reveal h2 { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in h2 { opacity: 1; transform: none; }
.rows, .ref-table, .faq, .carousel, .refs, .agency-card, .devis-steps { position: relative; border-top-color: transparent !important; }
.rows::before, .ref-table::before, .faq::before, .carousel::before, .refs::before, .agency-card::before, .devis-steps::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform-origin: left; transition: transform 1.2s cubic-bezier(.7,0,.2,1) .2s; }
.js .reveal:not(.is-in) .rows::before, .js .reveal:not(.is-in) .ref-table::before, .js .reveal:not(.is-in) .faq::before, .js .reveal:not(.is-in) .carousel::before, .js .reveal:not(.is-in) .refs::before, .js .reveal:not(.is-in) .agency-card::before { transform: scaleX(0); }
.js .reveal .row-item, .js .reveal .ref-table > div, .js .reveal .steps > li, .js .reveal .faq details, .js .reveal .audiences > div, .js .reveal .alert-card li, .js .reveal .why-text p { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in .row-item, .js .reveal.is-in .ref-table > div, .js .reveal.is-in .steps > li, .js .reveal.is-in .faq details, .js .reveal.is-in .audiences > div, .js .reveal.is-in .alert-card li, .js .reveal.is-in .why-text p { opacity: 1; transform: none; }
.js .reveal.is-in :is(.row-item, .ref-table > div, .steps > li, .faq details, .audiences > div, .alert-card li, .why-text p):nth-child(2) { transition-delay: .12s; }
.js .reveal.is-in :is(.row-item, .ref-table > div, .steps > li, .faq details, .audiences > div, .alert-card li, .why-text p):nth-child(3) { transition-delay: .24s; }
.js .reveal.is-in :is(.row-item, .ref-table > div, .steps > li, .faq details, .audiences > div, .alert-card li, .why-text p):nth-child(4) { transition-delay: .36s; }
.js .reveal.is-in :is(.row-item, .ref-table > div, .steps > li, .faq details, .audiences > div, .alert-card li, .why-text p):nth-child(5) { transition-delay: .48s; }
.js .reveal.is-in :is(.ref-table > div, .faq details, .alert-card li):nth-child(n+6) { transition-delay: .6s; }
/* gros numéros des étapes qui grossissent en arrivant */
.js .reveal .steps > li::before { display: inline-block; transform: scale(.6); transform-origin: left bottom; transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.js .reveal.is-in .steps > li::before { transform: none; }
/* soulignement animé des liens */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .4s ease; }
.link:hover { background-size: 0 1px; background-position: right bottom; }
/* lignes d'offres : le titre glisse au survol */
.row-item h3 { transition: transform .35s ease, color .35s ease; }
.row-item:hover h3 { transform: translateX(8px); color: var(--brand); }

@media (max-width: 960px) {
  .offres-grid, .intro-split, .quote-cta { grid-template-columns: 1fr; gap: 36px; }
  .offres-grid > .media { position: relative; top: auto; aspect-ratio: 4 / 3; order: -1; }
  .why-side .media, .faq-media { max-width: none; aspect-ratio: 4 / 3; }
  .band-track img { height: 220px; width: 176px; }
  .photo-band { padding-bottom: 72px; }
}

/* ---------- Apparition au défilement (sobre) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .media > img, .js .hero-media { clip-path: none !important; animation: none !important; }
  .media img { transform: none !important; transition: none !important; }
  .band-track { animation: none; }
  .js .hero-text > *, .js .reveal h2, .js .reveal .row-item, .js .reveal .ref-table > div, .js .reveal .steps > li, .js .reveal .faq details, .js .reveal .audiences > div, .js .reveal .alert-card li, .js .reveal .why-text p { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .reveal .rows::before, .js .reveal .ref-table::before, .js .reveal .faq::before, .js .reveal .carousel::before, .js .reveal .refs::before, .js .reveal .agency-card::before { transform: none !important; }
  .nav, .nav a, .header-inner, .brand img, .to-top, .sticky-cta { transition: none !important; }
  .slide { transition: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js .fascia a { animation: none; opacity: 1; text-shadow: 0 0 14px rgba(244,238,226,.35); }
  .slide-dot.is-active i { animation: none; width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .burger { display: block; }
  /* menu plein écran qui glisse depuis le haut */
  .nav { position: fixed; left: 0; right: 0; top: var(--header-h, 80px); bottom: 0; z-index: 49; flex-direction: column; gap: 0; padding: 8px 24px 32px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .nav a { font-size: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(2) { transition-delay: .04s; } .nav.open a:nth-child(3) { transition-delay: .08s; }
  .nav.open a:nth-child(4) { transition-delay: .12s; } .nav.open a:nth-child(5) { transition-delay: .16s; }
  .nav.open a:nth-child(6) { transition-delay: .2s; } .nav.open a:nth-child(7) { transition-delay: .24s; }
  .menu-open body { overflow: hidden; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 46vh; min-height: 280px; }
  .hero-text { padding: 40px 16px 48px; }
  .hero h1 { max-width: none; }
  .why, .split-2, .agency, .faq-grid, .devis-grid { grid-template-columns: 1fr; gap: 44px; }
  .devis-grid .lead-card { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .row-item { grid-template-columns: 1fr; }
  .car-track { grid-auto-columns: calc((100% - 32px) / 2); gap: 32px; }
  .fascia a { flex: 1 1 33%; padding: 16px 8px; font-size: 14px; }
  .fascia a + a::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .topbar-links, .topbar-hours { display: none; }
  .header-inner { height: 70px; }
  .brand img { height: 48px; }
  .header-cta .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .ref-table > div { grid-template-columns: 1fr; }
  .car-track { grid-auto-columns: 86%; }
  .car-btn { display: none; }
  .fascia a { flex: 1 1 50%; letter-spacing: .08em; }
  .trust-list { flex-direction: column; }
  .trust-list li, .trust-list li:first-child { padding: 4px 0; border: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 22px; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; min-height: 52px; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--brand); color: #FFFFFF; font-family: var(--display); text-decoration: none; }
  .footer { padding-bottom: 96px; }
}
