/* styles.css — Patrimea : banque privée moderne, calme et accessible.
   Vert sapin / vert profond / ivoire / sable / laiton (imposés par le brief), Fraunces + Inter (imposées).
   Signature : la photo du hero en arche, cerclée d'un filet laiton. Ailleurs : filets fins, ombres très douces, rayons 8-12 px.
   Contrastes vérifiés WCAG AA : laiton jamais en texte sur fond clair (--brass-ink à la place). */

:root {
  --paper:   #F7F3EA;   /* ivoire : fond principal */
  --mist:    #E9E1D0;   /* sable : sections alternées */
  --tint:    #EFE8DA;   /* entre ivoire et sable : cartes, encadrés */
  --tint-2:  #E0D5BF;
  --ink:     #1C1C1A;   /* texte (15,4:1 sur ivoire) */
  --muted:   #5E6A64;   /* texte secondaire (5,1:1 sur ivoire) */
  --muted-on-sand: #4F5A55;  /* texte secondaire sur sable (5,5:1) */
  --line:    #D9CCB0;   /* filets décoratifs */
  --line-strong: #8E8068;    /* bordures de champs et de réponses (3,5:1) */
  --brass:   #B08D57;   /* laiton : filets d'accent, fond des CTA */
  --brass-ink: #7A5E33; /* laiton foncé : chiffres et repères sur fond clair (5,4:1) */
  --night:   #142A23;   /* vert profond : hero, footer, formulaire */
  --brand:   #1F3D33;   /* vert sapin : icônes, liens, sélection */
  --sky:     #C4A574;   /* laiton clair sur fond sombre (6,5:1) */
  --action:  #B08D57;   /* CTA : laiton, texte vert profond (4,9:1) */
  --action-hover: #C4A574;
  --on-action: #142A23;
  --on-dark: #F7F3EA;
  --on-dark-muted: #B8C2B9;
  --danger:  #9A2F20;
  --focus:   #1F3D33;

  --font: "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --mono: "Inter", system-ui, sans-serif;   /* chiffres : .mono = tabular-nums */

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.8rem, 1.35rem + 1.8vw, 2.7rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);

  --r-pill: 10px;
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;
  --space: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 50px -28px color-mix(in srgb, var(--night) 30%, transparent);
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
/* Titres : largeur généreuse et retour à la ligne naturel. Pas de text-wrap: balance (lignes artificiellement courtes),
   pas de max-width étroit : un titre tient sur 1 ou 2 lignes quand la place existe. */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .55em; overflow-wrap: break-word; min-width: 0; text-wrap: pretty; }
h1 { font-size: var(--step-3); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; max-width: 20ch; font-variation-settings: "opsz" 144; }
h2 { font-size: var(--step-2); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; max-width: 34ch; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 72ch; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-color: var(--brass); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
small { color: var(--muted); font-size: .82em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.eyebrow { font-weight: 500; color: var(--brass-ink); margin: 0 0 1rem; font-size: .95rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--paper); padding: .5rem 1rem; }

/* ── Boutons : pilule + flèche dans sa pastille ───── */
.btn { display: inline-flex; align-items: center; gap: .75rem; background: var(--action); color: var(--on-action); padding: .45rem .45rem .45rem 1.3rem; border-radius: var(--r-pill); text-decoration: none; border: 0; cursor: pointer; font: 600 1rem/1.2 var(--font); white-space: nowrap; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.btn-ico { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 7px; background: color-mix(in srgb, var(--on-action) 12%, transparent); transition: transform .4s var(--ease); }
.btn-ico .icon { width: 1.05rem; height: 1.05rem; }
.btn:hover { background: var(--action-hover); color: var(--on-action); }
.btn:hover .btn-ico { transform: translate(2px, -2px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn-lg { font-size: 1.05rem; padding-left: 1.6rem; }
.btn-lg .btn-ico { width: 2.6rem; height: 2.6rem; }
.btn-sm { font-size: .93rem; padding: .3rem .3rem .3rem 1.1rem; gap: .55rem; }
.btn-sm .btn-ico { width: 1.9rem; height: 1.9rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light .btn-ico { background: var(--action); color: var(--on-action); }
.btn-light:hover { background: var(--tint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); padding: .8rem 1.4rem; }
.btn-ghost:hover { background: var(--brand); color: var(--on-dark); }
.link-light { color: var(--on-dark); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); }
.link-light:hover { color: var(--on-dark); text-decoration-color: currentColor; }

/* ── En-tête : îlot flottant ──────────────────────── */
.site-head { position: fixed; z-index: 40; top: .75rem; left: 50%; transform: translateX(-50%); width: min(100% - 1.5rem, 1240px); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-radius: 14px; box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--night) 25%, transparent), inset 0 0 0 1px var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; width: auto; padding: 0 .4rem 0 1.4rem; }
.brand { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand span { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.menu { display: flex; align-items: center; gap: .3rem; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .9rem; border-radius: var(--r-pill); transition: background-color .3s var(--ease); }
.menu a:not(.btn):hover { background: var(--tint); color: var(--ink); }
.menu .btn { margin-left: .5rem; }
.menu-toggle { display: none; background: var(--tint); border: 0; border-radius: var(--r-pill); padding: .55em 1em; font: 500 .95rem var(--font); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .menu { display: contents; }
  .menu a:not(.btn) { display: none; }
  .menu.open { display: flex; position: absolute; top: calc(100% + .5rem); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--paper); border-radius: var(--r-lg); padding: .75rem; box-shadow: var(--shadow); }
  .menu.open a:not(.btn) { display: block; padding: .9rem 1rem; }
  .menu .btn { order: 3; margin-left: .3rem; }
  .menu.open .btn { justify-content: space-between; margin: .5rem 0 0; }
}

/* ── Fil d'Ariane ─────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.5rem; font-size: .88rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }

/* ── Hero accueil : photo plein cadre ─────────────── */
.hero { position: relative; background: var(--night); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 1fr); }
.hero h1 { color: var(--on-dark); }
.hero .lede { color: var(--on-dark-muted); }
.hero .eyebrow { color: var(--sky); }
.hero-full { min-height: min(100dvh, 900px); align-items: end; overflow: hidden; }
.hero-full .hero-img { position: absolute; inset: 0 0 0 auto; width: 72%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--night) 28%, color-mix(in srgb, var(--night) 75%, transparent) 45%, color-mix(in srgb, var(--night) 0%, transparent) 70%), linear-gradient(0deg, color-mix(in srgb, var(--night) 60%, transparent) 0%, transparent 35%); }
.hero-full .hero-inner { position: relative; z-index: 2; padding: 8rem 0 clamp(3rem, 7vw, 5.5rem); }
.hero-full .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2rem; }
.hero-card { position: absolute; z-index: 2; right: max(1.25rem, (100vw - var(--wrap)) / 2); bottom: clamp(3rem, 7vw, 5.5rem); width: 330px; background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; align-items: center; box-shadow: var(--shadow); }
.hero-card img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; object-position: 50% 12%; }
.hero-card-name { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.hero-card-role { margin: 0; font-size: .85rem; color: var(--muted); }
.hero-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); }
.hero-card dt { font-size: 1.2rem; font-weight: 600; color: var(--action); }
.hero-card dd { margin: 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 960px) {
  .hero-full { min-height: 0; }
  .hero-full .hero-img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3.4; max-height: 62svh; }
  .hero-full::before { display: none; }
  .hero-full .hero-inner { padding: 2.5rem 0 2rem; }
  .hero-card { position: relative; right: auto; bottom: auto; margin: 0 1.25rem 2.5rem; width: auto; }
}

.local-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 2.2rem 0 0; }
.local-stats dt { font-size: .82rem; color: var(--on-dark-muted); }
.local-stats dd { margin: 0; font-family: var(--mono); font-size: 1.15rem; font-weight: 600; }

/* ── Sections ─────────────────────────────────────── */
.block { padding-block: var(--space) calc(var(--space) * 1.08); }
.tone-alt { background: var(--mist); --muted: var(--muted-on-sand); }
.tone-dark { background: var(--night); color: var(--on-dark); }
.tone-dark :is(h2, h3, strong) { color: var(--on-dark); }
.tone-dark :is(p, .lede, dd) { color: var(--on-dark-muted); }
.block .lede { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .has-media .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } }
.media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.media { margin: 0; overflow: hidden; border-radius: var(--r-lg); }
.prose .btn { margin-top: .75rem; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.checks li { padding: .4rem 0 .4rem 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .9rem; width: .75rem; height: .4rem; border: solid var(--action); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Bento "à distance" */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 3rem; }
.bento-cell { background: var(--tint); border-radius: var(--r-lg); padding: 2rem; position: relative; overflow: hidden; }
.bento-cell .icon { width: 2.6rem; height: 2.6rem; padding: .5rem; border-radius: var(--r-sm); background: var(--paper); color: var(--brand); margin-bottom: 1.4rem; }
.bento-cell h3 { font-size: 1.3rem; }
.bento-cell p { color: var(--muted); margin: 0; }
.bento-cell:nth-of-type(3) { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.bento-photo { min-height: 460px; display: flex; align-items: flex-end; color: var(--on-dark); background: var(--night); }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--night) 92%, transparent) 0%, color-mix(in srgb, var(--night) 35%, transparent) 55%, transparent 80%); }
.bento-text { position: relative; z-index: 1; max-width: 34ch; }
.bento-photo h3 { color: var(--on-dark); font-size: 1.6rem; }
.bento-photo p { color: var(--on-dark-muted); }
.bento-photo .icon { background: rgb(255 255 255 / .14); color: var(--on-dark); }
.bento-price { background: var(--action); color: var(--on-action); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.5rem 1.5rem 2rem; }
.bento-price p { color: var(--on-action); margin: 0; font-size: 1.05rem; }
.bento-price .mono { color: var(--on-action); font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin-right: .6rem; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(220px, auto) minmax(220px, auto) auto; }
  .bento-photo { grid-column: 1 / 8; grid-row: 1 / 3; }
  .bento-cell:nth-of-type(2), .bento-cell:nth-of-type(3) { grid-column: 8 / 13; }
  .bento-price { grid-column: 1 / -1; }
}

/* Présentation */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5.5rem; } }
.about-media { margin: 0; position: relative; }
.about-media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.about-badge { position: absolute; right: -1.25rem; bottom: 2rem; background: var(--paper); border-radius: var(--r-md); padding: .9rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: .5rem; color: var(--muted); font-size: .9rem; }
.about-badge .mono { font-size: 1.8rem; font-weight: 600; color: var(--action); }
@media (max-width: 640px) { .about-badge { right: 1rem; } }
.about-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem 2.5rem; margin: 2rem 0; padding: 1.8rem 0; border-block: 1px solid var(--line); }
.about-subs dt { font-weight: 600; margin-bottom: .3rem; }
.about-subs dd { margin: 0; color: var(--muted); }
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.certs img { height: 40px; width: auto; }
.certs-text { flex: 1 1 260px; font-size: .85rem; color: var(--muted); margin: 0; }

/* Bandeau défilant du palmarès (un seul par page) */
.marquee { border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; padding-block: 1.3rem; }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0 1.5rem; }
.marquee li { white-space: nowrap; font-weight: 500; display: flex; align-items: baseline; gap: .5rem; }
.marquee li .mono { color: var(--action); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee ul[aria-hidden] { display: none; } }

/* Records : le seul bloc sombre, chiffres façon chrono */
.facts { background: var(--night); color: var(--on-dark); padding-block: var(--space); }
.facts h2 { color: var(--on-dark); }
.facts .lede { color: var(--on-dark-muted); }
.facts .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: end; }
@media (min-width: 960px) { .facts .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; } }
.facts-img { margin-top: 2rem; border-radius: var(--r-lg); width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; }
.chrono { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 1.5rem; margin: 0; }
.chrono:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }  /* 4 repères : 2 × 2, pas de dernier orphelin */
.chrono > div { padding: 1.6rem 1rem 1.6rem 0; border-top: 1px solid rgb(255 255 255 / .14); }
.chrono dt { white-space: nowrap; font-size: clamp(2.1rem, 1.4rem + 2vw, 3.1rem); font-weight: 600; line-height: 1; color: var(--on-dark); }
.chrono dd { margin: .6rem 0 0; color: var(--sky); font-weight: 500; }

/* Offre : coque + cœur (double-bezel) */
.offer { margin-top: 3rem; background: var(--tint-2); border-radius: calc(var(--r-lg) + 8px); padding: 8px; }
.offer-core { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 1px 0 rgb(255 255 255 / .8); }
@media (min-width: 900px) { .offer-core { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.offer-main { padding: clamp(1.75rem, 4vw, 3.25rem); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.ticks .icon { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--tint); color: var(--action); stroke-width: 2.4; }
.offer-extras-title { margin: 2.2rem 0 .8rem; font-weight: 600; }
.offer-extras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.offer-extras li { background: var(--mist); border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .9rem; color: var(--muted); display: grid; gap: .15rem; }
.offer-extras strong { color: var(--ink); }
.offer-price { background: var(--night); color: var(--on-dark); padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem; }
.price { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.price .mono { font-size: clamp(3.2rem, 2.2rem + 4vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.price .per { color: var(--sky); font-weight: 500; font-size: 1.1rem; }
.offer-reassure { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .92rem; color: var(--on-dark-muted); }
.offer-reassure li::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--sky); margin-right: .6rem; vertical-align: .12em; }

/* Méthode : titre + photo fixes, étapes qui défilent */
.sticky-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.sticky-side img { margin-top: 2rem; border-radius: var(--r-lg); width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 960px) {
  .sticky-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
  .sticky-side { position: sticky; top: 6.5rem; }
}
.steps-list { list-style: none; padding: 0; margin: 0; }
.steps-list li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 1px solid var(--line); }
.step-n { grid-row: span 2; font: 500 2.6rem/1 var(--font-display); color: var(--brass-ink); transition: color .4s var(--ease); }
.steps-list li:hover .step-n { color: var(--brand); }
.steps-list h3 { margin-bottom: .35rem; }
.steps-list p { color: var(--muted); margin: 0; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 2.5rem 2rem; padding: 0; margin: 2.5rem 0 0; }
.steps li { counter-increment: s; border-top: 1px solid var(--brass); padding-top: 1.2rem; }
.steps li::before { content: counter(s); display: block; font: 500 2.2rem/1 var(--font-display); color: var(--brass-ink); margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Témoignages : citation mise en avant + liste */
.wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 3rem; }
@media (min-width: 960px) { .wall { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.quote { margin: 0; background: var(--paper); border-radius: var(--r-md); padding: 1.7rem; display: flex; flex-direction: column; gap: 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: .98rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { display: block; color: var(--muted); font-size: .88rem; }
.quote-feature { background: var(--night); color: var(--on-dark); box-shadow: none; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--r-lg); position: relative; overflow: hidden; justify-content: flex-end; min-height: 480px; }
.quote-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.quote-feature > * { position: relative; z-index: 1; }
.quote-feature > img { position: absolute; z-index: 0; }
.quote-feature p { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; max-width: 18ch; }
.quote-feature strong { color: var(--on-dark); }
.quote-feature figcaption span { color: var(--sky); }
.quote-feature details { color: var(--on-dark-muted); }
.quote-feature summary { cursor: pointer; font-weight: 500; color: var(--on-dark); }
.quote-feature details p { font-size: .98rem; font-weight: 400; letter-spacing: 0; line-height: 1.6; max-width: 60ch; margin-top: .8rem; color: var(--on-dark-muted); }
.wall-list { display: grid; gap: 1rem; align-content: start; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery img:last-child { display: none; } }

/* Palmarès complet (page parcours) */
.results { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.results td { padding: .9rem .5rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.results td:first-child { padding-left: 0; font-weight: 500; }
.results td:nth-child(2) { white-space: nowrap; }
.results td:last-child { font-weight: 600; color: var(--brand); text-align: right; padding-right: 0; white-space: nowrap; }

/* Histoire */
.story { list-style: none; padding: 0; margin: 2.5rem 0 0; border-left: 1px solid var(--line); }
.story li { position: relative; padding: 0 0 2.2rem 2rem; }
.story li::before { content: ""; position: absolute; left: -6px; top: .5rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--action); }
.story h3 small { font-family: var(--mono); font-weight: 500; color: var(--action); margin-left: .5rem; font-size: .78em; }
.story p { margin: 0; }
.video { width: 100%; border-radius: var(--r-lg); background: var(--night); margin-top: 1.5rem; aspect-ratio: 16 / 9; }

/* Partenaires */
.block-logos { padding-block: 3.5rem; }
.block-logos h2 { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.logos { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 4rem; }
.logos img { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.logos img:hover { filter: none; opacity: 1; }

/* Cartes génériques (page entreprises) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; margin: 3rem 0 0; }
.cards > div { background: var(--tint); border-radius: var(--r-md); padding: 1.8rem; border-top: 1px solid var(--brass); }
.tone-alt .cards > div { background: var(--paper); }
.cards:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cards > div:first-child { background: var(--brand); border-top-color: var(--sky); }
.cards > div:first-child dt { color: var(--on-dark); }
.cards > div:first-child dd { color: var(--on-dark-muted); }
.cards dt { font: 500 var(--step-1)/1.3 var(--font-display); margin-bottom: .5rem; letter-spacing: -.01em; }
.cards dd { margin: 0; color: var(--muted); }

/* FAQ : deux colonnes */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; } .faq-side { position: sticky; top: 6.5rem; } }
.faq-side p { color: var(--muted); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; font-weight: 500; font-size: 1.08rem; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: .6rem; height: .6rem; border: solid var(--brass-ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--muted); padding-bottom: 1.3rem; }

.block-cta { text-align: center; background: var(--mist); }
.block-cta.tone-dark { background: var(--brand); }
.block-cta h2, .block-cta p { margin-inline: auto; }

/* Listes de liens géo */
.block-cities h3 { margin-top: 2.2rem; }
.link-grid { list-style: none; padding: 0; margin: 1.2rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .1rem 1.5rem; }
.link-grid a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: color .3s var(--ease), padding .3s var(--ease); }
.link-grid a:hover { color: var(--brand); padding-left: .3rem; }
.directory { columns: 3 280px; column-gap: 3rem; }
.directory > div { break-inside: avoid; margin-bottom: 2.5rem; }
.directory h2 { font-size: var(--step-1); }
.directory ul { list-style: none; padding: 0; margin: 0; }
.directory li a { display: block; padding: .3rem 0; text-decoration: none; color: var(--ink); }
.search label { display: block; font-weight: 500; margin-bottom: .5rem; }
.search div { display: flex; gap: .5rem; max-width: 520px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .85em 1.2em; border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); }

/* ── Formulaire ───────────────────────────────────── */
.lead { background: var(--night); color: var(--on-dark); padding-block: var(--space); }
.lead h2 { color: var(--on-dark); }
.lead-copy p, .lead .checks li { color: var(--on-dark-muted); }
.lead .checks li::before { border-color: var(--sky); }
.lead-page { background: var(--night); color: var(--on-dark); padding-top: 8rem; }
.lead-page h1 { color: var(--on-dark); }
.lead-page .lede, .lead-page .checks li { color: var(--on-dark-muted); }
.lead-page .checks li::before { border-color: var(--sky); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; } }
.lead-form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: inset 0 0 0 1px var(--brass); }
.lead-form iframe, .exit iframe { border: 0; display: block; }
.avatar { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; object-position: 50% 12%; margin-bottom: 1.4rem; }

/* ── Pages légales ────────────────────────────────── */
.legal { padding-block: 8rem var(--space); }
.legal .crumbs ol, .legal .crumbs a { color: var(--muted); }
.legal h2 { font-size: var(--step-1); margin-top: 2rem; }
.table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ── Pied de page ─────────────────────────────────── */
.site-foot { background: var(--night); color: var(--on-dark); padding-block: 4.5rem 6.5rem; font-size: .95rem; }
.site-foot a { color: var(--on-dark-muted); text-decoration: none; }
.site-foot a:hover { color: var(--on-dark); }
.site-foot .brand { color: var(--on-dark); font-size: 1.3rem; }
.site-foot .btn { color: var(--on-action); margin-top: .6rem; }
.site-foot p { color: var(--on-dark-muted); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 2.5rem; }
.foot-grid nav { display: flex; flex-direction: column; gap: .4rem; }
.foot-grid h2 { font-size: .95rem; font-weight: 600; color: var(--on-dark); letter-spacing: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); }
.foot-legal p { margin: 0; margin-right: auto; }

/* ── Conversion : barre fixe + popup ──────────────── */
.sticky-cta { position: fixed; z-index: 30; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(100% - 2rem, 560px); display: flex; align-items: center; gap: 1rem; background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--on-dark); padding: .45rem .45rem .45rem 1.3rem; border-radius: var(--r-pill); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--night) 50%, transparent); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.sticky-cta p { margin: 0; flex: 1; font-weight: 500; }
.sticky-cta.away { opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); }
.close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .2rem .6rem; }
.exit { border: 0; border-radius: var(--r-lg); padding: 2rem; width: min(100% - 2rem, 560px); max-height: 90vh; background: var(--paper); color: var(--ink); }
.exit::backdrop { background: color-mix(in srgb, var(--night) 60%, transparent); }
.exit .close { position: absolute; top: .7rem; right: .7rem; }

@media (max-width: 520px) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .head-inner { padding-left: 1.1rem; gap: .5rem; }
  .brand { font-size: .95rem; }
  .brand { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* nom long : coupé plutôt que de pousser le bouton hors écran */
  .menu .btn { margin-left: 0; flex: none; }
  .brand span { display: none; }
  .menu .btn-sm { padding: .55rem 1rem; }
  .menu .btn-sm .btn-ico { display: none; }
  .menu-toggle { padding: .5em .85em; }
  .sticky-cta { padding-left: .45rem; }
  .sticky-cta p { display: none; }
  .sticky-cta .btn { flex: 1; justify-content: space-between; }
  .btn { white-space: normal; }
  .menu .btn, .sticky-cta .btn { white-space: nowrap; }
}

/* ── Mouvement : sobre (fondu + glissement de 12 px), une fois ─ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
  .hero-inner > * { animation: rise .7s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: .06s; }
  .hero-inner > :nth-child(n+3) { animation-delay: .12s; }
  .hero-form { animation: rise .9s .15s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .qf-js .qf-step.on { animation: rise .35s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }


/* Gras lisible sur fonds sombres ; espaces resserrées dans les chiffres en chasse fixe */
.cards > div:first-child strong, .facts strong, .hero strong, .bento-photo strong, .offer-price strong { color: var(--on-dark); }

/* Réseaux sociaux */
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.social { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .8rem; border-radius: var(--r-pill); background: var(--tint); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.social:hover { background: var(--action); color: var(--on-dark); transform: translateY(-2px); }
.brand-icon { width: 1.15rem; height: 1.15rem; flex: none; }
.about-social { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.about-social p { margin: 0; color: var(--muted); font-size: .95rem; }
.hero-card .socials { grid-column: 3; grid-row: 1; gap: .35rem; }
.hero-card { grid-template-columns: auto 1fr auto; }
.hero-card .social { padding: .5rem; }
.site-foot .socials { margin: .4rem 0 1rem; }
.site-foot .social { background: rgb(255 255 255 / .08); color: var(--on-dark); }
.site-foot .social:hover { background: var(--action); color: var(--on-dark); }

/* Avantages partenaires */
.partners-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 960px) { .partners-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; } .partners-head { position: sticky; top: 6.5rem; } }
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.partners li { background: var(--paper); border-radius: var(--r-md); padding: 1.6rem; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .4rem; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.partners li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.partners img { height: 36px; width: auto; max-width: 150px; object-fit: contain; object-position: left; margin-bottom: 1rem; }
.partners .deal { margin: 0; font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--action); }
.partners p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.hero-card { width: 370px; }
.hero-card-name { white-space: nowrap; }
@media (max-width: 960px) { .hero-card { width: auto; } }

/* Preuves courtes sous le CTA du hero (optionnel : hero.proofs) */
.proofs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.75rem 0 0; }
.proofs li { font-size: .9rem; font-weight: 500; color: var(--on-dark); padding: .35rem .8rem; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--on-dark) 25%, transparent); }

/* Offres / usages : grille photo, la première en grand */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2.5rem 1.5rem; margin-top: 3rem; }
.offers img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: 1rem; transition: transform .6s var(--ease); }
.offers article { overflow: hidden; }
.offers article:hover img { transform: scale(1.02); }
.offers p { color: var(--muted); margin: 0; }
@media (min-width: 960px) {
  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers article:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .offers article:first-child img { aspect-ratio: auto; flex: 1; min-height: 0; }
}

/* ══ Composants Patrimea ═══════════════════════════════════════ */

/* En-tête : CTA long sur grand écran, court ailleurs ; menu « Vos besoins » */
.cta-short { display: none; }
@media (max-width: 1180px) { .cta-long { display: none; } .cta-short { display: inline; } }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.brand span { font-family: var(--font); }
@media (max-width: 1280px) { .site-head .brand span { display: none; } }
.menu a:not(.btn) { border-radius: var(--r-sm); }
.menu-drop { position: relative; }
.menu-drop summary { list-style: none; cursor: pointer; padding: .5rem .9rem; border-radius: var(--r-sm); font-weight: 500; font-size: .95rem; display: flex; align-items: center; gap: .45rem; }
.menu-drop summary::-webkit-details-marker { display: none; }
.menu-drop summary::after { content: ""; width: .4rem; height: .4rem; border: solid var(--brass-ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.menu-drop summary:hover, .menu-drop[open] summary { background: var(--tint); }
.drop { position: absolute; top: calc(100% + .9rem); left: -.5rem; width: 320px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: .5rem; display: grid; }
.menu .drop a:not(.btn) { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; }
.drop .icon { width: 1.2rem; height: 1.2rem; color: var(--brand); flex: none; }
@media (max-width: 860px) {
  .menu-drop { display: none; }
  .menu.open .menu-drop { display: block; }
  .menu.open .drop { position: static; width: auto; box-shadow: none; padding: 0 0 .5rem; }
  .menu.open .drop a:not(.btn) { display: flex; }
}

/* Hero de toutes les pages : photo en fond voilée de vert profond, texte à gauche, formulaire Tally à droite.
   Signature : la carte du formulaire en arche (haut arrondi, filet laiton). */
.hero-local { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 6.5rem max(1rem, (100% - var(--wrap)) / 2) 3rem; }
.hero-local .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: 0; }
.hero-local::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--night) 30%, color-mix(in srgb, var(--night) 82%, transparent) 55%, color-mix(in srgb, var(--night) 55%, transparent)); }
.hero-local > .hero-inner, .hero-form { position: relative; z-index: 2; min-width: 0; }
.hero-local > .hero-inner { width: auto; margin: 0; padding: 0; align-self: center; }
.hero-local h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); max-width: 22ch; }
.hero-home h1 { font-size: var(--step-3); max-width: 18ch; }
.hero-local .lede { max-width: 50ch; }
.hero-form { background: var(--paper); color: var(--ink); border-radius: 220px 220px var(--r-lg) var(--r-lg); padding: 3.2rem clamp(1.1rem, 2.5vw, 1.8rem) 1.2rem; box-shadow: inset 0 0 0 1px var(--brass), 0 0 0 6px color-mix(in srgb, var(--paper) 14%, transparent); }
.hero-form-title { font: 500 1.45rem/1.2 var(--font-display); text-align: center; margin: 0 auto .3rem; max-width: 18ch; }
.hero-form-sub { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 auto 1rem; }
.hero-form iframe { border: 0; display: block; min-height: 420px; }
.hero-form .qf-b2b { text-align: left; }
.form-placeholder { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 2rem 1.2rem; text-align: center; color: var(--muted); min-height: 300px; display: grid; place-content: center; }
.form-placeholder p { margin: .2rem auto; }
@media (min-width: 960px) {
  .hero-local { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; padding-top: 7.5rem; padding-bottom: 4rem; min-height: min(92vh, 860px); }
}
@media (max-width: 959px) {
  .hero-local::before { background: color-mix(in srgb, var(--night) 84%, transparent); }
  .hero-form { border-radius: 160px 160px var(--r-lg) var(--r-lg); }
}
.hero.hero-local .proofs { grid-template-columns: repeat(3, auto); }
@media (max-width: 1100px) { .hero.hero-local .proofs { grid-template-columns: 1fr; } .hero.hero-local .proofs li, .hero.hero-local .proofs li + li { padding: 0; border: 0; } }

/* Réassurances : séparées par des filets laiton */
.hero .proofs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .6rem 0; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.hero .proofs li { border: 0; border-radius: 0; padding: 0 1.1rem; display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.hero .proofs li:first-child { padding-left: 0; }
.hero .proofs li + li { border-left: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.hero .proofs .icon { width: 1rem; height: 1rem; color: var(--sky); stroke-width: 2; }
@media (max-width: 640px) { .hero .proofs { grid-template-columns: 1fr; } .hero .proofs li, .hero .proofs li + li { padding: 0; border: 0; } }
.hero-local .hero-inner > .btn { margin-top: .5rem; }

/* Index des services : lignes séparées par des filets, pas de cartes */
.index { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3.5rem; border-top: 1px solid var(--brass); }
@media (min-width: 900px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; padding: 1.6rem .2rem; text-decoration: none; color: var(--ink); }
.index .icon { width: 1.9rem; height: 1.9rem; color: var(--brand); margin-top: .15rem; }
.index-h { display: block; font: 500 1.35rem/1.25 var(--font-display); margin-bottom: .35rem; }
.index-p { display: block; color: var(--muted); }
.index-go .icon { width: 1.1rem; height: 1.1rem; color: var(--brass-ink); transition: transform .3s var(--ease); }
.index a:hover .index-h { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.index a:hover .index-go .icon { transform: translate(2px, -2px); }
.tone-dark .index { border-top-color: var(--sky); }
.tone-dark .index li { border-color: color-mix(in srgb, var(--on-dark) 15%, transparent); }
.tone-dark .index a, .tone-dark .index-h { color: var(--on-dark); }
.tone-dark .index-p { color: var(--on-dark-muted); }
.tone-dark .index .icon { color: var(--sky); }
.tone-dark { background: var(--brand); }
.tone-dark .lede { color: var(--on-dark-muted); }

/* Mention de risque */
.notice { display: flex; gap: .9rem; align-items: flex-start; margin-block: var(--space) 0; padding: 1.2rem 1.4rem; border: 1px solid var(--brass); border-radius: var(--r-md); background: var(--tint); font-size: .95rem; }
.notice .icon { flex: none; width: 1.3rem; height: 1.3rem; color: var(--brand); margin-top: .15rem; }
.notice p { margin: 0; max-width: none; }
.notice + .lead { margin-top: var(--space); }

/* Tableau d'exemples */
.block-table .table { margin-top: .4rem; }
.results { font-variant-numeric: tabular-nums; }
.results th { text-align: left; font-weight: 600; font-size: .88rem; color: var(--muted); padding: .8rem .5rem; border-bottom: 1px solid var(--brass); }
.results th:first-child { padding-left: 0; }
.results th:last-child, .results td:nth-child(2) { text-align: right; }
.results th:nth-child(2) { text-align: right; }
.table-note { color: var(--muted); font-size: .92rem; margin-top: 1.2rem; }

/* Formulaire de qualification */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.qf-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qf-bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.qf-bar span { display: block; height: 100%; width: 12.5%; background: var(--brass); transition: width .4s var(--ease); }
.qf:not(.qf-js) .qf-head, .qf:not(.qf-js) .qf-next, .qf:not(.qf-js) .qf-back { display: none; }
.qf-step { border: 0; padding: 0; margin: 0 0 2.2rem; min-width: 0; }
.qf-js .qf-step { display: none; margin: 0; }
.qf-js .qf-step.on { display: block; }
.qf legend { font: 500 1.45rem/1.25 var(--font-display); color: var(--ink); padding: 0; margin-bottom: 1.1rem; }
.qf-n { font: 500 .8rem var(--font); color: var(--brass-ink); vertical-align: .2em; margin-right: .3rem; }
.qf-js .qf-n { display: none; }
.qf-hint { color: var(--muted); font-size: .92rem; margin: -.4rem 0 1rem; }
.qf-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.qf-choice { position: relative; display: block; cursor: pointer; }
.qf-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qf-choice span { display: flex; align-items: center; height: 100%; min-height: 3.4rem; padding: .75rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); font-weight: 500; line-height: 1.3; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.qf-choice:hover span { border-color: var(--brand); background: var(--tint); }
.qf-choice input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-dark); }
.qf-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.qf-input, .qf-fields input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: .8rem 1rem; width: 100%; }
.qf-input { font-size: 1.35rem; max-width: 11rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.qf-input:focus, .qf-fields input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.qf-next { margin-top: 1.3rem; }
.qf-js .qf-step:not(:has(input:checked)) .qf-choices ~ .qf-next, .qf-back[hidden] { display: none; }
.qf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .9rem 1rem; }
.qf-fields label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.qf-consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.4rem 0; font-size: .9rem; color: var(--muted); cursor: pointer; }
.qf-consent input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--brand); }
.qf-submit { white-space: normal; }
.qf-small { font-size: .84rem; color: var(--muted); margin: 1rem 0 0; }
.qf-back { background: none; border: 0; color: var(--muted); font: 500 .9rem var(--font); display: inline-flex; align-items: center; gap: .3rem; padding: .5rem 0; margin-top: 1rem; cursor: pointer; }
.qf-back:hover { color: var(--ink); }
.qf-back .icon { width: 1rem; height: 1rem; }
.qf-error { color: var(--danger); font-weight: 500; margin: 1rem 0 0; }
.qf-done { outline: 0; }
.qf-done .icon { width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: var(--brand); color: var(--on-dark); margin-bottom: 1.2rem; }
.qf-done p { font: 500 1.4rem/1.35 var(--font-display); max-width: 32ch; }
.lead-page .lead-form { box-shadow: inset 0 0 0 1px var(--brass); }

/* Simulateurs */
.sim-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 960px) { .sim-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; align-items: start; } }
.sim { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.5rem; box-shadow: var(--shadow); }
.sim fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sim legend, .sim-field { font-weight: 500; }
.sim legend { margin-bottom: .6rem; padding: 0; }
.sim-field { display: grid; gap: .5rem; }
.sim-input { display: flex; align-items: center; max-width: 18rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); }
.sim-input:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.sim-input input { border: 0; background: none; outline: 0; font: 600 1.4rem var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); padding: .7rem 1rem; width: 100%; min-width: 0; -moz-appearance: textfield; }
.sim-input input::-webkit-inner-spin-button, .sim-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sim-input span { padding-right: 1rem; color: var(--muted); }
.sim-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.sim-choices .qf-choice span { justify-content: center; min-height: 3rem; padding: .5rem; }
@media (max-width: 420px) { .sim-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sim-out { border-top: 1px solid var(--brass); padding-top: 1.2rem; }
.sim-label { margin: 0; color: var(--muted); font-weight: 500; }
.sim-num { margin: .25rem 0; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--brand); white-space: nowrap; }
.sim-detail { margin: 0; color: var(--muted); font-size: .92rem; }
.sim-warn { margin: 0; font-size: .9rem; color: var(--danger); }
.sim .btn { justify-self: start; white-space: normal; }
.sim-copy .checks li { font-size: .95rem; }

/* Pied de page : mention obligatoire en tête de la ligne légale */
.foot-disclaimer { flex-basis: 100%; max-width: 80ch; margin: 0 0 .8rem !important; color: var(--on-dark); }
.site-foot .brand { font-size: 1.6rem; }
.site-foot { border-top: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }

/* Mobile : nom de marque entier, CTA sur une ligne */
@media (max-width: 520px) {
  .site-head .brand { font-size: 1.05rem; overflow: visible; }
  .menu-toggle { padding: .5em .7em; }
  .btn, .btn-lg { font-size: .9rem; padding-left: 1rem; gap: .5rem; white-space: nowrap; }
  .btn-lg .btn-ico { width: 2.25rem; height: 2.25rem; }
  .qf-submit, .sim .btn { white-space: normal; }
}

/* Tableau de texte (enveloppes, abattements) : colonnes alignées à gauche */
.block-table .results-text { max-width: none; }
.results-text th, .results-text td, .results-text td:nth-child(2), .results-text th:nth-child(2), .results-text td:last-child { text-align: left; font-weight: 400; color: var(--ink); white-space: normal; }
.results-text td:first-child { font-weight: 600; }

/* Formulaire partenaire : cases à cocher en gros boutons */
.qf-b2b .qf-step { margin: 1.6rem 0 0; }
.qf-b2b legend { font-size: 1.15rem; }
.qf-b2b .qf-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.qf-b2b .qf-choice span { min-height: 3rem; font-size: .95rem; }
.hero-local:has(.qf-b2b) > .hero-inner { align-self: start; padding-top: 4rem; }


/* ══ Mise en page sans vide (références : Prismia, Homunity, Finary) ══════════
   Règle : chaque section occupe toute la largeur du conteneur. Un texte sans visuel se met en « titre à gauche,
   texte à droite » ; jamais une colonne de texte seule avec la moitié droite vide. */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4.5rem; }
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-head .sh-head { position: sticky; top: 7rem; }
}
.split-head .sh-head h2 { max-width: none; }
.split-head .prose p { max-width: none; }
.split-head .prose > :first-child { margin-top: .35rem; }

/* Filets de structure : deux lignes verticales laiton clair aux bords du conteneur (lemlist, Homunity) */
@media (min-width: 1280px) {
  .block:not(.tone-dark), .block-stats { background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
    background-size: 1px 100%; background-repeat: no-repeat; background-position: calc(50% - var(--wrap) / 2 - 2.5rem) 0, calc(50% + var(--wrap) / 2 + 2.5rem) 0; }
}

/* Surlignage marqueur (un seul par page) */
mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--brass) 70%, transparent) 58%, color-mix(in srgb, var(--brass) 70%, transparent) 92%, transparent 92%); color: inherit; padding: 0 .08em; }

/* Chiffres clés : grands chiffres fins, filet laiton au-dessus (Homunity) */
.block-stats { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem 2rem; margin: 0; }
.stats > div { border-top: 1px solid var(--brass); padding-top: 1.1rem; }
.stats dt { font: 400 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.stats dd { margin: .6rem 0 0; color: var(--muted); max-width: 26ch; }

/* Onglets : liste à gauche, panneau photo + texte à droite (Finary, Bloomays) */
.tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 960px) { .tabs { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; } }
.tab-list { display: grid; border-top: 1px solid var(--brass); }
.tab-list [role=tab] { display: flex; align-items: center; gap: .9rem; width: 100%; padding: 1.05rem .6rem; background: none; border: 0; border-bottom: 1px solid var(--line); font: 500 1.15rem/1.3 var(--font-display); color: var(--muted); text-align: left; cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease), padding .25s var(--ease); }
.tab-list [role=tab] .icon { width: 1.4rem; height: 1.4rem; flex: none; color: var(--brass-ink); }
.tab-list [role=tab]:hover { color: var(--ink); }
.tab-list [aria-selected=true] { color: var(--ink); background: var(--paper); padding-left: 1rem; box-shadow: inset 2px 0 0 var(--brand); }
.tab-list [aria-selected=true] .icon { color: var(--brand); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 700px) { .tab-panel { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 420px; } }
.tab-panel img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.tab-text { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.tab-text h3 { font-size: 1.6rem; font-weight: 500; }
.tab-text p { color: var(--muted); }
.tab-text .btn { align-self: flex-start; margin-top: .4rem; }
.tab-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .tab-panel:not([hidden]) { animation: rise .45s var(--ease) both; } }

/* Étapes en cartes photo (Homunity) */
.photo-steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.photo-steps li { background: var(--tint); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.photo-steps figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.photo-steps img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-steps li:hover img { transform: scale(1.03); }
.photo-steps .chip { align-self: flex-start; margin: 1.2rem 1.3rem .7rem; font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--paper); border: 1px solid var(--brass); border-radius: var(--r-sm); padding: .2rem .55rem; }
.photo-steps h3 { margin: 0 1.3rem .45rem; font-size: 1.2rem; }
.photo-steps p { margin: 0 1.3rem 1.4rem; color: var(--muted); font-size: .95rem; }

/* Curseurs des simulateurs */
.sim-range { width: 100%; max-width: 30rem; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; margin: .2rem 0 .4rem; cursor: pointer;
  background: linear-gradient(90deg, var(--brand) var(--fill, 30%), var(--line) var(--fill, 30%)); }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--night) 40%, transparent); }
.sim-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
.sim-range:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
