/* ==========================================================================
   Murça Avocats, déclinaison « S'installer au Portugal »
   Reprend le système de la version droit routier (bleu #16364D,
   Newsreader + Manrope, monogramme, boutons pilule) et le transpose
   en direction géographique France ↔ Portugal : carte en points,
   trajectoires, azulejo, calçada.
   ========================================================================== */

:root {
  --navy-950: #08141d;
  --navy-900: #0c1f2d;
  --navy-800: #112b3e;
  --navy: #16364D;
  --navy-600: #22506f;
  --steel: #6f97b8;
  --steel-200: #c9d8e4;
  --ice: #edf2f6;
  --paper: #f7f8fa;
  --ink: #0f1e2a;
  --muted: #55636f;
  --line: rgba(22, 54, 77, .12);
  --line-light: rgba(255, 255, 255, .14);
  /* Bleu azulejo : la seule teinte ajoutée, dans la famille de la marque */
  --azul: #2f62a6;
  --azul-200: #b9cdea;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Typographie commune ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 12px);
}
.eyebrow--light { color: var(--steel-200); }

.section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 58px); letter-spacing: -.02em; line-height: 1.08;
  color: var(--navy);
}
.section__title em { color: var(--navy-600); }
.section__lead { margin: 22px 0 0; color: var(--muted); font-size: 18px; max-width: 560px; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  background: var(--bg); color: var(--fg);
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, var(--navy-600));
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(8, 20, 29, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { --bg: var(--navy); --fg: #fff; --hover: var(--navy-600); }
.btn--light { --bg: #fff; --fg: var(--navy); --hover: var(--ice); }
.btn--ghost {
  --bg: transparent; --fg: #fff; --hover: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Préchargement ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--navy);
  transition: transform .9s var(--ease) .1s;
}
.preloader__mark { width: 120px; overflow: visible; }
.preloader__mark polygon {
  fill: transparent; stroke: #fff; stroke-width: 10; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1s var(--ease) forwards, fillin .5s ease .85s forwards;
}
.preloader__mark polygon:nth-child(2) { animation-delay: .12s, .95s; }
.preloader__mark polygon:nth-child(3) { animation-delay: .24s, 1.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: #fff; } }
.is-loaded .preloader { transform: translateY(-100%); pointer-events: none; }

/* ---------- Barre de progression (pilotée par le défilement, sans JS) ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--steel), #fff);
}
@supports (animation-timeline: scroll()) {
  .progress span { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff;
  transition: background .4s, box-shadow .4s, height .4s var(--ease), color .4s;
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header.is-scrolled {
  --header-h: 68px;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 46px; height: auto; fill: currentColor; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__name {
  display: flex; flex-direction: column; line-height: 1;
  font-weight: 700; font-size: 19px; letter-spacing: .14em;
}
.brand__name small { font-size: 10px; font-weight: 600; letter-spacing: .42em; margin-top: 5px; opacity: .85; }

.nav { display: flex; gap: 26px; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 600; opacity: .88; padding: 6px 0; white-space: nowrap;
  transition: opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__cta { padding: 11px 20px; font-size: 14px; }
.header.is-scrolled .header__cta { --bg: var(--navy); --fg: #fff; --hover: var(--navy-600); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px 28px 40px; color: #fff;
  clip-path: circle(0 at calc(100% - 46px) 40px);
  transition: clip-path .7s var(--ease);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 40px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 34px; line-height: 1.3; }
.menu-open .header { color: #fff; background: transparent; box-shadow: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 72px;
  background:
    radial-gradient(90% 70% at 18% 100%, rgba(47, 98, 166, .32) 0%, transparent 60%),
    radial-gradient(110% 80% at 80% 0%, #1d4664 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; align-items: center; }
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.4vw, 74px); line-height: 1.06; letter-spacing: -.025em;
  margin-bottom: 26px;
}
.hero__title em { color: var(--steel-200); }
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.45vw, 19px); color: rgba(255,255,255,.8); margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Carte en points */
.hero__map { margin: 0 -40px 0 0; position: relative; justify-self: end; width: min(112%, 660px); }
.map { width: 100%; height: auto; overflow: visible; display: block; }
.map__dots path { fill: none; stroke-linecap: round; stroke-width: 4.4; }
.map .d-o  { stroke: rgba(201, 216, 228, .10); }
.map .d-es { stroke: rgba(201, 216, 228, .18); }
.map .d-fr { stroke: rgba(201, 216, 228, .42); }
.map .d-pt { stroke: #fff; stroke-width: 5; }
.map__dots path { transition: opacity 1.4s var(--ease); }
.js .map__dots path { opacity: 0; }
.is-loaded .map__dots path { opacity: 1; }
.is-loaded .map .d-es { transition-delay: .2s; }
.is-loaded .map .d-fr { transition-delay: .35s; }
.is-loaded .map .d-pt { transition-delay: .6s; }

.arc { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4; stroke-dasharray: 4 6; }
.arc-draw {
  fill: none; stroke: var(--azul-200); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.is-loaded .arc-draw { animation: draw 1.8s var(--ease) forwards; animation-delay: calc(1.1s + var(--i) * .16s); }
.map__km { font: 700 12px var(--sans); letter-spacing: .14em; fill: var(--steel-200); opacity: 0; transition: opacity .8s 2.4s; }
.is-loaded .map__km { opacity: 1; }
.map__travel circle { fill: #fff; }
.city circle { fill: var(--navy-900); stroke: #fff; stroke-width: 2.2; }
.city text, .hub text {
  font: 700 15px var(--sans); fill: #fff; letter-spacing: .04em;
  paint-order: stroke; stroke: var(--navy-900); stroke-width: 5px; stroke-linejoin: round;
}
.city { opacity: 0; transition: opacity .7s var(--ease); transition-delay: calc(2s + var(--i) * .16s); }
.is-loaded .city { opacity: 1; }
.hub .core { fill: #fff; }
.hub text { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.hub .ring { fill: none; stroke: #fff; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: ring 2.8s var(--ease) infinite; }
.hub .ring:nth-of-type(2) { animation-delay: 1.4s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(4); opacity: 0; } }

/* Entrées du hero */
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-loaded .hero__eyebrow, .is-loaded .hero__lead, .is-loaded .hero__actions { opacity: 1; transform: none; }
.is-loaded .hero__eyebrow { transition-delay: .1s; }
.is-loaded .hero__lead { transition-delay: .7s; }
.is-loaded .hero__actions { transition-delay: .85s; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: var(--wd, 0s); }
.is-loaded .split-word > span { transform: none; }

/* ---------- Engagements ---------- */
.commit { background: #fff; border-bottom: 1px solid var(--line); }
.commit__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.commit__item {
  padding: 32px 28px; display: flex; flex-direction: column; gap: 4px;
  border-left: 1px solid var(--line);
}
.commit__item:first-child { border-left: 0; padding-left: 0; }
.commit__item strong { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--navy); line-height: 1.2; }
.commit__item span { font-size: 14px; color: var(--muted); }

/* ---------- Votre projet (onglets) ---------- */
.projet { background: var(--paper); }
.situations__wrap {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(22, 54, 77, .28), 0 0 0 1px var(--line);
}
.situations__tabs { display: flex; flex-direction: column; padding: 14px; background: var(--ice); }
.situations__tabs button {
  position: relative; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 16px 18px; border-radius: 12px; font-weight: 600; font-size: 15.5px; color: var(--muted);
  transition: color .3s, background .3s;
}
.situations__tabs button:hover { color: var(--navy); background: rgba(255,255,255,.6); }
.situations__tabs button[aria-selected="true"] { color: var(--navy); background: #fff; box-shadow: 0 6px 20px -10px rgba(22,54,77,.35); }
.tab__num { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--steel); font-variant-numeric: tabular-nums; }
.situations__tabs button[aria-selected="true"] .tab__num { color: var(--azul); }
.situations__tabs button::after {
  content: "→"; margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease);
}
.situations__tabs button[aria-selected="true"]::after { opacity: 1; transform: none; }

.situations__panels { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); color: var(--navy); margin-bottom: 30px; letter-spacing: -.01em; }
.panel h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.panel__grid p { color: #33444f; font-size: 16px; }
.panel__alert {
  display: flex; gap: 14px; align-items: baseline; margin: 18px 0 0; padding: 18px 22px;
  border-radius: 12px; background: var(--ice); color: var(--navy); font-weight: 600; font-size: 15.5px;
  border-left: 3px solid var(--azul);
}
.panel__alert span {
  flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--azul);
}
.panel.is-active { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel__footer {
  margin-top: auto; padding-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
}
.panel__footer small { color: var(--muted); font-size: 13px; }

/* ---------- Feuille de route : deux rives ---------- */
.rives { background: #fff; }
.rives__head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.rives__head .eyebrow { justify-content: center; }
.rives__head .section__lead { margin-inline: auto; }
.rives__count { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.rives__count strong { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--azul); font-variant-numeric: tabular-nums; vertical-align: -3px; }

.rives__grid { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: start; }
.rive__title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); color: var(--navy);
}
.rive__code {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font: 800 13px var(--sans); letter-spacing: .08em;
}
.rive--fr .rive__code { background: var(--ice); color: var(--navy); }
.rive--pt .rive__code { background: var(--azul); color: #fff; }
.rive--fr { text-align: right; }
.rive--fr .rive__title { justify-content: flex-end; flex-direction: row-reverse; }

.rive__list li + li { margin-top: 6px; }
.rive__list label {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  transition: background .3s, color .3s;
}
.rive--fr .rive__list label { flex-direction: row-reverse; }
.rive__list label:hover { background: var(--paper); }
.rive__list input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(22,54,77,.32); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.rive__list input::after {
  content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--ease);
}
.rive__list input:checked { background: var(--azul); border-color: var(--azul); }
.rive--fr .rive__list input:checked { background: var(--navy); border-color: var(--navy); }
.rive__list input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.rive__list input:active { transform: scale(.92); }
.rive__list input:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.rive__list span { font-size: 16px; font-weight: 500; color: #2c3d49; transition: color .3s; }
.rive__list input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(22,54,77,.35); }

/* Axe central : la ligne discontinue de la version routière, verticale */
.rives__axis { position: relative; align-self: stretch; display: flex; justify-content: center; }
.rives__line {
  position: relative; width: 2px; height: 100%;
  background: repeating-linear-gradient(180deg, rgba(22,54,77,.18) 0 14px, transparent 14px 24px);
}
.rives__line i {
  position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--fill, 0));
  background: repeating-linear-gradient(180deg, var(--azul) 0 14px, transparent 14px 24px);
  transition: transform .8s var(--ease);
}

/* ---------- Calendrier : de Paris à Lisbonne ---------- */
.parcours { background: var(--navy); color: #fff; overflow: hidden; }
.parcours .section__title { color: #fff; }
.parcours .section__title em { color: var(--steel-200); }
.journey { position: relative; }
.journey__ends {
  display: flex; justify-content: space-between; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-200);
}
.journey__line {
  position: relative; height: 2px; margin-bottom: 46px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 18px, transparent 18px 30px);
}
.journey__line span {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, #fff 0 18px, transparent 18px 30px);
  transition: transform 2.2s var(--ease);
}
.journey.is-visible .journey__line span { transform: scaleX(1); }
@supports (animation-timeline: view()) {
  .journey__line span { transition: none; animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
}
.journey__stops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.stop { position: relative; }
.stop::before {
  content: ""; position: absolute; top: -54px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 6px var(--navy);
}
.stop:last-child::before { background: var(--azul); border-color: var(--azul-200); }
.stop__when { display: block; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; color: var(--steel-200); margin-bottom: 14px; padding-bottom: 2px; }
.stop h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.005em; }
.stop p { color: rgba(255,255,255,.74); font-size: 15px; margin: 0; }

/* ---------- Bandeau photo ---------- */
.band { position: relative; min-height: clamp(380px, 52vw, 620px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.06); }
@supports (animation-timeline: view()) {
  .band__media img { animation: drift linear both; animation-timeline: view(); }
}
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.04) translateY(3%); } }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,31,45,.05) 20%, rgba(12,31,45,.82) 100%);
}
.band__inner { padding-bottom: clamp(40px, 6vw, 72px); }
.band__quote {
  max-width: 780px; margin: 0;
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.22; letter-spacing: -.01em;
}

/* ---------- Cabinet ---------- */
.cabinet { background: var(--paper); }
.cabinet__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.cabinet__media { position: relative; padding-right: 18%; padding-bottom: 12%; }
.cabinet__photo { margin: 0; position: relative; z-index: 2; }
.cabinet__img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ice); }
.cabinet__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  transform: scale(1.12); transition: transform 1.6s var(--ease);
}
.cabinet__media.is-visible .cabinet__img img { transform: scale(1.02); }
.cabinet__photo figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cabinet__photo figcaption strong { color: var(--navy); font-size: 17px; }
.cabinet__photo figcaption span { color: var(--muted); font-size: 14px; }
.cabinet__arcade {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; z-index: 1;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(22,54,77,.45);
  transform: translateY(30px); transition: transform 1.4s var(--ease) .2s;
}
.cabinet__media.is-visible .cabinet__arcade { transform: none; }
.cabinet__arcade img { width: 100%; height: 100%; object-fit: cover; }
.cabinet__text > p { color: #3a4b57; font-size: 18px; margin-top: 28px; }
.pillars { margin-top: 36px; display: grid; }
.pillar { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pillar__word { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--navy); line-height: 1.15; padding-bottom: 2px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Honoraires ---------- */
.honoraires { background: var(--ice); }
.honoraires__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.honoraires__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.honoraires__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.honoraires__body .section__title { margin-bottom: 36px; }
.fees { display: grid; gap: 14px; }
.fee {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; align-items: start;
  padding: 26px 28px; border-radius: var(--radius); background: #fff;
  box-shadow: 0 0 0 1px var(--line); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.fee::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--azul);
  transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease);
}
.fee:hover { transform: translateX(6px); box-shadow: 0 0 0 1px var(--line), 0 24px 44px -30px rgba(22,54,77,.4); }
.fee:hover::after { transform: scaleY(1); }
.fee__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
}
.fee h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.fee p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Avis ---------- */
.avis { background: #fff; overflow: hidden; }
.avis__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(40px, 5vw, 56px); }
.avis__score { margin: 0; color: var(--muted); }
.avis__score strong { color: var(--navy); }
.stars { color: #e3b23c; letter-spacing: 2px; font-size: 18px; }
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.review {
  margin: 0; width: 380px; flex: none; padding: 30px 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.review::before { content: "★★★★★"; color: #e3b23c; letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }
.review p { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); }
.review footer { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__aside { position: sticky; top: 110px; }
.faq__img { margin-top: 36px; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 4; }
.faq__img img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 700; font-size: 18px; color: var(--navy);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq__list details[open] summary::after { transform: rotate(135deg); background-color: var(--ice); }
.faq__list details > div { overflow: hidden; }
.faq__list details p { color: var(--muted); padding: 0 50px 24px 0; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(80% 60% at 0% 100%, #1d4664 0%, transparent 60%),
    radial-gradient(60% 50% at 100% 0%, rgba(47,98,166,.25) 0%, transparent 60%),
    var(--navy-900);
  color: #fff;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact .section__title { color: #fff; }
.contact .section__title em { color: var(--steel-200); }
.contact__info > p { color: rgba(255,255,255,.78); font-size: 18px; margin: 28px 0 40px; max-width: 460px; }
.contact__list li { padding: 20px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact__list span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-200); font-weight: 700; padding-top: 4px; }
.contact__list a, .contact__list address { font-style: normal; font-size: 18px; font-weight: 600; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

.form {
  padding: clamp(28px, 4vw, 44px); border-radius: 24px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-light);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel-200); background-color: rgba(255,255,255,.11);
  box-shadow: 0 0 0 4px rgba(111,151,184,.25);
}
.field__error { display: none; font-style: normal; font-size: 13px; color: #ffc2c2; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff9b9b; }
.field.is-invalid .field__error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.78); margin: 4px 0 24px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: #fff; width: 16px; height: 16px; flex: none; }
.check.is-invalid span { color: #ffc2c2; }
.form__status { margin: 16px 0 0; font-size: 14.5px; min-height: 1.4em; color: var(--steel-200); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 80px 0 30px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line-light); }
.footer__logo { width: 140px; height: auto; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 13.5px; }

/* ---------- Bouton d'appel mobile ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; display: none; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(8,20,29,.6);
  transform: translateY(120%); transition: transform .5s var(--ease);
}
.fab svg { width: 18px; fill: currentColor; }
.fab.is-visible { transform: none; }

/* ---------- Badge maquette ---------- */
.mq-badge { position: fixed; left: 12px; bottom: 12px; z-index: 90; padding: 6px 12px; border-radius: 999px; background: rgba(14,27,38,.85); color: #fff; font: 600 12px/1.2 system-ui, sans-serif; letter-spacing: .02em; pointer-events: none; }

/* ---------- Révélations au défilement ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__map {
    position: absolute; right: -14%; top: 50%; width: 82%; max-width: 620px;
    transform: translateY(-46%); opacity: .5; z-index: 0;
  }
  .hero__map .city text, .hero__map .hub text, .map__km { display: none; }
  .journey__stops { grid-template-columns: 1fr 1fr 1fr; row-gap: 48px; }
  .journey__line, .journey__ends, .stop::before { display: none; }
  .commit__grid { grid-template-columns: 1fr 1fr; }
  .commit__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .commit__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rives__grid { grid-template-columns: 1fr 48px 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .cabinet__grid, .faq__grid, .contact__grid, .honoraires__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .faq__img { aspect-ratio: 16 / 9; }
  .honoraires__media { aspect-ratio: 16 / 10; }
  .situations__wrap { grid-template-columns: 1fr; }
  .situations__tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; scrollbar-width: none; }
  .situations__tabs::-webkit-scrollbar { display: none; }
  .situations__tabs button { flex: none; white-space: nowrap; scroll-snap-align: start; padding: 12px 16px; font-size: 14.5px; }
  .situations__tabs button::after { display: none; }
  .panel__grid { grid-template-columns: 1fr; gap: 10px; }
  .panel__alert { flex-direction: column; gap: 6px; }
  .rives__grid { grid-template-columns: 1fr; gap: 36px; }
  .rives__axis { display: none; }
  .rive--fr { text-align: left; }
  .rive--fr .rive__title { justify-content: flex-start; flex-direction: row; }
  .rive--fr .rive__list label { flex-direction: row; }
  .rive__list label { padding: 14px 6px; }
  .journey__stops { grid-template-columns: 1fr 1fr; }
  .cabinet__media { max-width: 520px; }
  .pillar { grid-template-columns: 1fr; gap: 6px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .fab { display: inline-flex; }
  .mq-badge { bottom: 26px; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 64px; align-items: flex-end; }
  .hero__map { width: 118%; right: -32%; top: 64px; transform: none; opacity: .34; }
  .hero__actions .btn { width: 100%; }
  .journey__stops { grid-template-columns: 1fr; row-gap: 32px; }
  .commit__grid { grid-template-columns: 1fr; }
  .commit__item { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
  .commit__item:first-child { border-top: 0; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .review { width: 290px; padding: 24px 22px; }
  .review p { font-size: 17px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; padding-inline: 16px; }
  .arc-draw { stroke-dashoffset: 0; }
  .progress, .band__media img { animation: none !important; }
}

/* Navigateurs sans animations pilotées par le défilement : barre masquée plutôt qu'un écouteur JS */
@supports not (animation-timeline: scroll()) {
  .progress { display: none; }
}
