/* =========================================================
   ernesto-matter.ch : feuille de style unique, mobile d'abord
   ========================================================= */

/* ---------- Couleurs et mesures ---------- */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #15181b;
  --muted: #5c636a;
  --line: #e2e0d9;
  --accent: #0d6b57;          /* vert « économies » */
  --accent-ink: #ffffff;
  --accent-soft: #dcefe8;
  --video-bg: #14181a;
  --video-ink: #e9ece9;
  --video-edge: transparent;
  --radius: 14px;
  --wrap: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1112;
    --surface: #171a1c;
    --ink: #ecebe6;
    --muted: #9aa1a6;
    --line: #2a2e31;
    --accent: #3fbf9a;
    --accent-ink: #08201a;
    --accent-soft: #143229;
    --video-bg: #0a0c0d;
    --video-edge: rgba(255,255,255,.09);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand__mark { width: 28px; height: 28px; }
.brand__mark rect { fill: var(--ink); }
.brand__mark path { fill: none; stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark circle { fill: var(--accent); }
.brand__flow { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1.2s var(--ease) .2s forwards; }

/* bouton « Prendre rendez-vous » de l'en-tête */
.header__droite { display: flex; align-items: center; gap: 10px; }
.header__rdv {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.header__rdv:hover { transform: translateY(-1px); filter: brightness(1.08); }
.header__rdv svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
/* téléphone : l'icône seule, le texte reste lu par les lecteurs d'écran */
@media (max-width: 520px) {
  .header__rdv { width: 36px; padding: 0; justify-content: center; }
  .header__rdv span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header__droite { gap: 6px; }
  .header .lang a { min-width: 30px; padding: 6px 6px; }
}
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px; color: var(--muted);
  min-width: 38px; min-height: 32px;
  transition: background .2s, color .2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#dots circle { fill: var(--line); }
.hero__path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.hero__path--flow {
  stroke: var(--accent); stroke-opacity: .55; stroke-width: 2;
  stroke-dasharray: 6 18; animation: flow 3s linear infinite;
}
.hero__node { fill: var(--bg); stroke: var(--accent); stroke-width: 2; animation: pulse 3.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.hero__inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  font-size: clamp(2.15rem, 7.4vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  max-width: 21ch; margin: 0 auto;
  text-wrap: balance;
}
.hero__lead {
  max-width: 36rem; margin: 28px auto 0;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--muted);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin: 28px auto 0; max-width: 22rem; }
.facts {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: .88rem; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  /* coche dessinée par un masque : elle prend la couleur d'accent, en clair comme en sombre */
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6.1-6.1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6.1-6.1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; text-decoration: none; letter-spacing: -.005em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px -12px var(--accent); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 14px 30px -12px var(--accent); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

/* ---------- Vidéo 16:9 ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 880px;
  margin: 32px auto 0; border-radius: var(--radius); overflow: hidden;
  background: var(--video-bg); color: var(--video-ink);
  border: 1px solid var(--video-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.45);
  isolation: isolate;
}
.video__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.video__lines path { fill: none; stroke: #3fbf9a; stroke-opacity: .22; stroke-width: 1.4; stroke-dasharray: 4 10; animation: flow 6s linear infinite; }
.video__lines path:nth-child(2) { stroke-opacity: .14; animation-duration: 8s; }
.video__lines path:nth-child(3) { stroke-opacity: .08; animation-duration: 10s; }
.video__timeline rect { fill: rgba(255,255,255,.1); }
.video__timeline .video__progress { fill: #3fbf9a; fill-opacity: .7; transform-origin: 40px 0; animation: progress 8s linear infinite; }

.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: #14181a;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transition: transform .25s var(--ease);
}
.video__play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.video__play:hover { transform: scale(1.06); }
.video__ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  animation: ring 2.6s var(--ease) infinite;
}
.video__label {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 10px;
  font-size: .82rem; letter-spacing: .02em; color: rgba(233,236,233,.75);
}
.video__soon { display: none; color: #3fbf9a; }
.video.is-empty .video__soon { display: inline; }
.video.is-empty .video__soon::before { content: "· "; color: rgba(233,236,233,.5); }
.video.is-nudged .video__play { animation: nudge .45s var(--ease); }

/* Une fois la vidéo lancée */
.video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video.is-playing .video__art,
.video.is-playing .video__play,
.video.is-playing .video__label { display: none; }
.video.has-poster { background-size: cover; background-position: center; }
.video.has-poster .video__art { display: none; }
/* Sur une affiche claire, la mention « Vidéo · 1 minute » passe dans une pastille sombre */
.video.has-poster .video__label {
  left: 50%; right: auto; translate: -50% 0; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: rgba(20, 24, 26, .78); color: #e9ece9;
}

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700;
  text-wrap: balance;
}
.section-sub { margin: 12px auto 0; max-width: 34rem; text-align: center; color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.15rem); text-wrap: balance; }

/* ---------- La méthode : 5 étapes ---------- */
.methode { position: relative; padding: 72px 0; border-top: 1px solid var(--line); }
.methode .eyebrow, .methode .section-title { display: block; text-align: center; }
.methode .eyebrow { margin-bottom: 12px; }
.methode__liste { list-style: none; padding: 0; margin: 40px auto 0; max-width: 720px; display: grid; gap: 14px; position: relative; }
/* fil qui relie les étapes */
.methode__liste::before { content: ""; position: absolute; left: 52px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(var(--line), var(--accent) 85%); border-radius: 2px; }
.etape {
  position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: center;
  padding: 16px 22px 16px 12px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -40px rgba(0,0,0,.35);
}
.etape h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 2px 0 4px; }
.etape p { color: var(--muted); font-size: .97rem; }
.etape--fin { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.js .etape.reveal:nth-child(2) { transition-delay: .06s; }
.js .etape.reveal:nth-child(3) { transition-delay: .12s; }
.js .etape.reveal:nth-child(4) { transition-delay: .18s; }
.js .etape.reveal:nth-child(5) { transition-delay: .24s; }

/* Les pictogrammes animés */
.pic { width: 80px; height: 80px; padding: 8px; border-radius: 22px; background: var(--bg); overflow: visible; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--surface); }
.etape--fin .pic { box-shadow: 0 0 0 6px var(--accent-soft); background: var(--surface); }
.pic__trait { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pic__plein-doux { fill: var(--accent); opacity: .85; }
.pic__ligne { fill: var(--line); }
.js .etape:not(.is-visible) .pic * { animation-play-state: paused !important; }
/* 1. visio */
.pic__vignette { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; }
.pic__direct { fill: #e5484d; animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pic__tete { animation: hocher 3s var(--ease) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
/* 2. ce qui bloque */
.pic__verre { animation: chercher 3.2s var(--ease) infinite; }
.pic__ligne--alerte { animation: alerte 3.2s var(--ease) infinite; }
.pic__alerte circle { fill: #e8833a; }
.pic__alerte path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.pic__alerte { animation: surgir 3.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
/* 3. engrenages */
.pic__roue { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.pic__roue--2 { fill: color-mix(in srgb, var(--accent) 65%, var(--surface)); }
.pic__roue--1 { animation: tourner 4s linear infinite; }
.pic__roue--2 { animation: tourner 3s linear infinite reverse; }
.pic__flux { fill: none; stroke: var(--accent); stroke-opacity: .5; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 7; animation: flow 2s linear infinite; }
/* 4. tests */
.pic__case { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.pic__coche { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cocher 3.6s var(--ease) infinite; }
.pic__coche--2 { animation-delay: .45s; }
.pic__coche--3 { animation-delay: .9s; }
/* 5. économies */
.pic__axe { fill: none; stroke: var(--line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pic__courbe { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 3.6s var(--ease) infinite; }
.pic__piece circle { fill: #f2c14e; stroke: #d9a42b; stroke-width: 1.5; }
.pic__piece text { font: 800 6px var(--font); fill: #7a5a12; }
.pic__piece { animation: piece 3.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }

@media (max-width: 520px) {
  .etape { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 16px 14px 10px; }
  .pic { width: 64px; height: 64px; padding: 6px; border-radius: 18px; }
  .methode__liste::before { left: 42px; }
  .etape h3 { font-size: 1.08rem; }
  .etape p { font-size: .92rem; }
}

/* ---------- Contact ---------- */
.contact { padding: 72px 0 80px; border-top: 1px solid var(--line); }
.contact__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__text { margin: 14px 0 32px; max-width: 30rem; color: var(--muted); font-size: 1.08rem; }

/* Carte de visite, façon fiche contact d'Apple */
.carte {
  width: 100%; max-width: 520px; padding: 20px; border-radius: 28px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -36px rgba(0,0,0,.35);
}
.carte__profil { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.carte__photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  background: var(--bg); box-shadow: 0 0 0 1px var(--line);
}
.carte__nom { display: grid; gap: 1px; min-width: 0; }
.carte__nom b { font-size: 1.12rem; letter-spacing: -.015em; }
.carte__nom span { font-size: .88rem; color: var(--muted); }
.carte__liens { display: flex; gap: 8px; }
.rond {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.rond svg { width: 19px; height: 19px; }
.rond--linkedin svg { fill: currentColor; }
.rond--mail svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.rond:hover { transform: translateY(-2px); }
.rond--linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.rond--mail:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.carte__rdv { width: 100%; justify-content: center; margin-top: 18px; }
.carte__nom b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte__rdv { white-space: nowrap; }
@media (max-width: 420px) {
  .carte { padding: 16px; border-radius: 24px; }
  .carte__profil { gap: 10px; }
  .carte__photo { width: 52px; height: 52px; }
  .carte__nom b { font-size: 1.02rem; }
  .carte__nom span { font-size: .8rem; }
  .rond { width: 40px; height: 40px; }
  .carte__liens { gap: 6px; }
  .carte__rdv { font-size: .98rem; padding: 0 16px; }
}

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 22px 0 28px; font-size: .85rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
/* liens vers les pages des villes (référencement local) */
.footer__villes { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer__villes a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.footer__villes a:hover, .footer__villes a[aria-current="page"] { color: var(--ink); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
  .hero { padding: 72px 0 80px; }
  .hero__cta { flex-direction: row; justify-content: center; max-width: none; }
  .video__play { width: 88px; height: 88px; }
  .video__play svg { width: 32px; height: 32px; }
}
@media (min-width: 880px) {
  .wrap { padding: 0 32px; }
  .methode { padding: 104px 0; }
  .contact { padding: 104px 0 112px; }
}

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -96; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.88); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nudge { 0%, 100% { translate: -50% -50%; } 25% { translate: calc(-50% - 5px) -50%; } 75% { translate: calc(-50% + 5px) -50%; } }
@keyframes grow { from { flex-basis: 100%; } to { flex-basis: 80%; } }
@keyframes remplir { to { transform: scaleX(1); } }
@keyframes entrer { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes monter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }
@keyframes barre { to { transform: scaleX(1); } }
@keyframes interFond { to { background: var(--accent); } }
@keyframes interBouton { to { transform: translateX(18px); } }
@keyframes part { from { opacity: 1; } to { opacity: 1; stroke-dasharray: 20 100; } }
@keyframes tourner { to { transform: rotate(360deg); } }
@keyframes hocher { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-1.5px) rotate(-3deg); } 80% { transform: translateY(0) rotate(2deg); } }
@keyframes chercher { 0%, 100% { transform: translate(-14px, -12px); } 40%, 60% { transform: translate(0, 0); } 80% { transform: translate(-6px, 12px); } }
@keyframes alerte { 0%, 35%, 75%, 100% { fill: var(--line); } 45%, 65% { fill: #e8833a; } }
@keyframes surgir { 0%, 38%, 78%, 100% { transform: scale(0); opacity: 0; } 46%, 68% { transform: scale(1); opacity: 1; } }
@keyframes cocher { 0%, 8% { stroke-dashoffset: 1; } 25%, 85% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 1; } }
@keyframes tracer { 0%, 5% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes piece { 0%, 40% { transform: scale(0) translateY(6px); opacity: 0; } 52% { transform: scale(1.15); opacity: 1; } 60%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: 0; } }
@keyframes indice { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Le prix : un seul paiement = un mois d'économies ---------- */
.prix { padding: 72px 0; border-top: 1px solid var(--line); }
.prix .eyebrow, .prix .section-title { display: block; text-align: center; }
.prix .eyebrow { margin-bottom: 12px; }
.prix__carte {
  margin: 36px auto 0; max-width: 860px; padding: 22px; border-radius: 24px; display: grid; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35);
}
/* 12 barres : la 1re (pour moi) en encre, les autres (pour vous) en vert ; elles montent quand la carte apparaît */
.prix__barres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 140px; }
.prix__mois { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.prix__mois::before {
  content: ""; width: 100%; height: calc(100% - 22px); border-radius: 8px; background: var(--accent);
  transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms + .2s);
}
.prix__mois--moi::before { background: var(--ink); }
.prix__mois span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.js .prix__carte.is-visible .prix__mois::before, .no-js .prix__mois::before { transform: scaleY(1); }
.prix__legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.prix__cle { display: inline-flex; align-items: center; gap: 8px; }
.prix__cle::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.prix__cle--moi::before { background: var(--ink); }
.prix__exemple { margin: 0; display: grid; gap: 8px; align-content: center; }
.prix__exemple > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg); }
.prix__exemple dt { color: var(--muted); font-size: .92rem; }
.prix__exemple dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.prix__exemple .prix__paye { background: none; border: 1px dashed var(--line); }
.prix__exemple .prix__total { background: var(--accent-soft); }
.prix__exemple .prix__total dt { color: var(--ink); font-weight: 600; }
.prix__exemple .prix__total dd { color: var(--accent); font-size: 1.35rem; }
.prix__regles { list-style: none; margin: 26px auto 0; padding: 0; max-width: 860px; display: grid; gap: 10px; }
.prix__regles li { position: relative; padding-left: 30px; color: var(--muted); }
.prix__regles li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230d6b57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.prix__regles li:last-child { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) {
  .prix__carte { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; padding: 28px; }
}
@media (min-width: 880px) { .prix { padding: 104px 0; } }
@media (prefers-reduced-motion: reduce) { .prix__mois::before { transform: scaleY(1); transition: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand__flow { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Témoignage : une citation client mise en avant ---------- */
.avis { padding: 72px 0; border-top: 1px solid var(--line); }
.avis__carte {
  margin: 0 auto; max-width: 820px; text-align: center;
  padding: 40px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
}
.avis__texte { margin: 0; }
.avis__texte p {
  margin: 0; font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1.3; font-weight: 600;
  letter-spacing: -.02em; text-wrap: balance;
}
.avis__auteur { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; text-align: left; }
.avis__logo { flex: none; width: 92px; height: auto; color: var(--ink); padding-right: 14px; border-right: 1px solid var(--line); box-sizing: content-box; }
.avis__auteur strong { display: block; font-weight: 650; }
.avis__role { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- Pages des villes : ce que j'automatise sur place ---------- */
.local { padding: 72px 0; border-top: 1px solid var(--line); }
.local .eyebrow, .local .section-title { display: block; text-align: center; }
.local .eyebrow { margin-bottom: 12px; }
.local__liste { list-style: none; padding: 0; margin: 36px auto 0; max-width: 980px; display: grid; gap: 14px; }
.local__liste li { padding: 22px 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.local__liste h3 { font-size: 1.12rem; letter-spacing: -.02em; margin: 0 0 6px; }
.local__liste p { color: var(--muted); font-size: .97rem; }
.local__zone { margin: 22px auto 0; max-width: 40rem; text-align: center; color: var(--muted); }
.local__zone b { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) { .local__liste { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Questions fréquentes ---------- */
.faq { padding: 72px 0; border-top: 1px solid var(--line); }
.faq .eyebrow, .faq .section-title { display: block; text-align: center; }
.faq .eyebrow { margin-bottom: 12px; }
.faq__liste { margin: 36px auto 0; max-width: 760px; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
