/* ════════════════════════════════════════════════════════════════════
   Cabinet Maître Anne-Sophie PETIT — Design System V3
   « Émotion Premium » — éditorial, photographies réelles, respiration.
   Palette : nuit d'encre + laiton chaud + ivoire. Serif de prestige.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --ink-950: #0a1424;
  --ink-900: #0e1a30;
  --ink-800: #14243f;
  --ink-700: #1d3253;
  --ink-600: #2b4468;

  --gold-700: #8a6636;
  --gold-600: #a67c46;
  --gold-500: #b8925a;
  --gold-400: #caa96b;
  --gold-300: #dcc590;
  --gold-100: #f3e9d6;

  --ivory: #f8f4ec;
  --ivory-deep: #f1ebdf;
  --cream: #fcfaf5;
  --paper: #ffffff;

  --ink: #1c2536;
  --ink-soft: #38424f;
  --muted: #6a7180;
  --muted-light: #9198a6;
  --line: #e6ded0;
  --line-soft: #efe9dc;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1240px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(14, 26, 48, .05), 0 12px 28px rgba(14, 26, 48, .06);
  --shadow-md: 0 8px 24px rgba(14, 26, 48, .08), 0 28px 60px rgba(14, 26, 48, .12);
  --shadow-lg: 0 20px 50px rgba(14, 26, 48, .14), 0 48px 90px rgba(14, 26, 48, .18);
  --shadow-gold: 0 10px 26px rgba(166, 124, 70, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .4s;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--ink-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-600); }
a:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--gold-300); color: var(--ink-900); }

.skip-link {
  position: absolute; top: 8px; left: 12px; z-index: 200;
  transform: translateX(-150%);
  background: var(--ink-900); color: #fff; padding: 10px 18px; border-radius: var(--radius);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }

/* ── Typographie ──────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink-900);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600; }
p { margin: 0 0 1.2em; max-width: 66ch; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.sec { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.sec--tight { padding: clamp(40px, 6vw, 76px) 0; }
.sec--paper { background: var(--paper); }
.sec--ivory { background: var(--ivory); }
.sec--ink { background: var(--ink-900); color: #dfe5f0; }
.sec--ink h1, .sec--ink h2, .sec--ink h3 { color: #fff; }

.sec__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec__head h2 { margin-bottom: .3em; }
.sec__head .lead { margin-bottom: 0; }

.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  font-weight: 400;
}
.center .lead { margin-left: auto; margin-right: auto; }
.light .lead, .sec--ink .lead { color: #b9c3d6; }

/* ── Eyebrow / overline ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 600; font-size: .72rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold-500); }
.eyebrow--gold { color: var(--gold-400); }
.eyebrow--gold::before { background: var(--gold-400); }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .6; }

/* ── Boutons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap; text-decoration: none; letter-spacing: .01em;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff; box-shadow: var(--shadow-gold); }
.btn--gold:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(166,124,70,.38); }
.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-800); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-700); background: var(--cream); transform: translateY(-2px); }
.btn--outline-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 17px 36px; font-size: 1.02rem; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem; color: var(--gold-700);
  margin-top: 6px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--gold-600); }
.link-arrow:hover svg { transform: translateX(5px); }

.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 30px 0; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 244, 236, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(230, 222, 208, .6);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { background: rgba(248, 244, 236, .96); box-shadow: 0 6px 24px rgba(14,26,48,.07); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 82px; }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__mark { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink-900); letter-spacing: .01em; }
.brand__sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 15px; font-size: .93rem; font-weight: 500; color: var(--ink-800); border-radius: var(--radius); position: relative; white-space: nowrap; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; bottom: 4px; left: 15px; right: 15px; height: 1.5px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-700); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 7px; }
.has-dropdown > a::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; order: 2; transition: transform var(--dur) var(--ease); }
.has-dropdown:hover > a::before { transform: translateY(1px) rotate(45deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 12px 14px; border-radius: var(--radius); font-weight: 500; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--ivory); color: var(--gold-700); }

.header-cta { margin-left: 10px; flex-shrink: 0; }
.mobile-only-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 46px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink-900); position: relative; transition: .3s var(--ease); border-radius: 2px; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════
   HERO — portrait réel + promesse émotionnelle
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--ink-950);
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(10,20,36,.96) 30%, rgba(10,20,36,.55) 75%, rgba(10,20,36,.35) 100%), url('/assets/media/hero-bg.jpg');
  background-image: linear-gradient(90deg, rgba(10,20,36,.96) 30%, rgba(10,20,36,.55) 75%, rgba(10,20,36,.35) 100%), image-set(
    url('/assets/media/hero-bg.webp') type('image/webp') 1x,
    url('/assets/media/hero-bg.jpg') type('image/jpeg') 1x
  );
  background-size: cover; background-position: center right;
  filter: saturate(.85);
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 78% 30%, rgba(200,169,107,.28), transparent 60%),
    radial-gradient(ellipse 700px 500px at 8% 90%, rgba(29,50,83,.7), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px);
  align-items: center; padding: clamp(60px, 9vw, 120px) 0;
}
.hero__content { animation: rise 1s var(--ease-out) both; }
.hero__title { color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.02; margin-bottom: .35em; font-weight: 500; }
.hero__title em { color: var(--gold-300); font-weight: 600; }
.hero__lead { font-size: clamp(1.12rem, 1.7vw, 1.35rem); color: #cdd6e6; max-width: 46ch; margin-bottom: 34px; line-height: 1.6; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 38px 0 0; padding: 30px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: #d7deee; font-weight: 500; }
.hero__trust svg { color: var(--gold-400); width: 18px; height: 18px; }

/* Portrait médaillon */
.hero__media { position: relative; justify-self: center; animation: rise 1.1s var(--ease-out) .15s both; }
.portrait {
  position: relative; margin: 0; width: clamp(260px, 34vw, 400px); aspect-ratio: 4/5;
  border-radius: 260px 260px 12px 12px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink-800);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; filter: saturate(1.02) contrast(1.02); }
.portrait__ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 0 0 7px rgba(200,169,107,.28); pointer-events: none; }
.portrait__plate {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  background: rgba(14,26,48,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(200,169,107,.35);
  border-radius: var(--radius-lg); padding: 12px 26px; text-align: center; white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.portrait__name { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #fff; }
.portrait__name sup { font-size: .6em; }
.portrait__role { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.hero__seal {
  position: absolute; top: -18px; right: -14px;
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-600));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-900); box-shadow: var(--shadow-md); text-align: center; line-height: 1;
  border: 3px solid var(--ivory);
}
.hero__seal-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; }
.hero__seal-txt { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-top: 3px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; color: #fff; animation: bob 2.4s var(--ease) infinite;
}
.hero__scroll:hover { color: var(--gold-300); border-color: var(--gold-300); }
.hero__scroll svg { width: 20px; height: 20px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ── Bandeau crédibilité ──────────────────────────────────────────── */
.creds { background: var(--ink-900); color: #fff; border-top: 1px solid rgba(200,169,107,.25); }
.creds__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 34px 0; }
.cred { text-align: center; flex: 1 1 auto; }
.cred__num { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; color: var(--gold-400); line-height: 1; }
.cred__lab { display: block; font-size: .82rem; color: #aab6cf; margin-top: 6px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.cred__sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.12); }

/* ── Manifeste (le mot de l'avocate) ──────────────────────────────── */
.manifesto__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.manifesto__media { position: relative; }
.frame { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.frame__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.frame:hover .frame__img { transform: scale(1.05); }
.frame--tall { aspect-ratio: 3/4; }
.frame--float {
  position: absolute; right: -18px; bottom: -34px; width: 54%; aspect-ratio: 4/3;
  border: 6px solid var(--ivory);
}
.frame__accent { position: absolute; left: -20px; top: -20px; width: 110px; height: 110px; border: 1px solid var(--gold-400); border-radius: var(--radius-lg); z-index: -1; }
.manifesto__text .pullquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic;
  color: var(--ink-900); line-height: 1.3; margin: 28px 0; padding-left: 24px;
  border-left: 3px solid var(--gold-500);
}
.signature { margin: 8px 0 22px; }
.signature__name { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink-900); }
.signature__role { display: block; font-size: .84rem; color: var(--muted); letter-spacing: .04em; }

/* ── Domaines (liste éditoriale immersive) ────────────────────────── */
.domains { display: grid; gap: 2px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.domain {
  display: grid; grid-template-columns: 88px 1fr 200px; align-items: center; gap: 28px;
  background: var(--paper); padding: 26px 32px; color: var(--ink); position: relative;
  transition: background var(--dur) var(--ease);
}
.domain__index { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-500); transition: color var(--dur) var(--ease); }
.domain__body h3 { margin: 0 0 4px; transition: color var(--dur) var(--ease); }
.domain__body p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 52ch; }
.domain__cta { display: none; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--gold-700); align-items: center; gap: 8px; }
.domain__cta svg { width: 16px; height: 16px; }
.domain__media { margin: 0; width: 200px; height: 118px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.domain__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.domain:hover { background: var(--cream); }
.domain:hover .domain__index { color: var(--gold-600); }
.domain:hover .domain__body h3 { color: var(--gold-700); }
.domain:hover .domain__img { transform: scale(1.07); }

/* ── Parcours (timeline sur navy) ─────────────────────────────────── */
.parcours-sec { position: relative; overflow: hidden; }
.parcours-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 500px at 15% 20%, rgba(200,169,107,.16), transparent 60%); pointer-events: none; }
.parcours__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.parcours__intro p { color: #b9c3d6; }
.frame--scales { margin-top: 28px; aspect-ratio: 4/3; max-width: 380px; border: 1px solid rgba(200,169,107,.3); }
.frame--scales .frame__img { object-position: center 30%; }
.parcours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: ms; }
.milestone { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); }
.milestone:first-child { border-top: 0; }
.milestone__marker { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--gold-400); padding-top: 2px; }
.milestone h3 { color: #fff; margin: 0 0 6px; font-size: 1.3rem; }
.milestone p { color: #aeb9cf; margin: 0; font-size: .98rem; }

/* ── Valeurs ──────────────────────────────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.values--4 { grid-template-columns: repeat(4, 1fr); }
.value { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 34px 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.value__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); margin-bottom: 18px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.value__icon svg { width: 26px; height: 26px; }
.value:hover .value__icon { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ── Méthode (sur image sombre) ───────────────────────────────────── */
.method-sec { position: relative; color: #fff; overflow: hidden; padding: clamp(72px, 9vw, 130px) 0; }
.method__bg { position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(10,20,36,.86), rgba(10,20,36,.92)), url('/assets/media/amb-hourglass.jpg'); background-size: cover; background-position: center; }
.method__inner { position: relative; z-index: 1; }
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.method--stack { grid-template-columns: 1fr; gap: 16px; margin: 24px 0 28px; }
.mstep { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 32px 28px; backdrop-filter: blur(4px); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.mstep:hover { transform: translateY(-4px); border-color: rgba(200,169,107,.5); }
.mstep__num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-400); line-height: 1; display: block; margin-bottom: 12px; }
.mstep h3 { color: #fff; margin-bottom: 8px; }
.mstep p { color: #b9c3d6; margin: 0; font-size: .96rem; }
.mstep--light { background: var(--cream); border-color: var(--line-soft); }
.mstep--light h3 { color: var(--ink-900); }
.mstep--light p { color: var(--muted); }
.mstep--light .mstep__num { color: var(--gold-600); }

/* ── Avis Google ──────────────────────────────────────────────────── */
.reviews-google { background: var(--ivory); }
.rg-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.rg-score { background: var(--ink-900); color: #fff; border-radius: var(--radius-lg); padding: 40px 34px; text-align: center; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.rg-score__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #cdd6e6; font-weight: 600; margin-bottom: 14px; }
.rg-score__badge svg { width: 20px; height: 20px; }
.rg-score__number { font-family: var(--serif); font-size: 4.6rem; font-weight: 700; color: var(--gold-400); line-height: .9; }
.rg-score .stars { color: #fbbc05; font-size: 1.3rem; display: flex; justify-content: center; margin: 10px 0; }
.rg-score__count { font-size: .92rem; color: #aab6cf; margin-bottom: 22px; }
.rg-score__hint { font-size: .82rem; color: #93a0bb; margin: 16px 0 0; line-height: 1.5; }
.rg-list .sec__head { margin-bottom: 28px; }
.gcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 26px; }
.gcard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gcard__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--ink-700), var(--ink-900)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; flex-shrink: 0; }
.gcard__meta { display: flex; flex-direction: column; margin-right: auto; }
.gcard__author { font-weight: 600; color: var(--ink-900); }
.gcard__date { font-size: .78rem; color: var(--muted-light); }
.gcard__head svg { width: 20px; height: 20px; }
.gcard .stars { color: #fbbc05; font-size: 1rem; margin-bottom: 12px; }
.gcard p { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; margin: 0; }

/* ── Témoignages (quotes) ─────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 40px 32px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; margin: 0; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote__mark { position: absolute; top: 20px; right: 26px; color: var(--gold-100); }
.quote .stars { color: var(--gold-500); font-size: 1.05rem; margin-bottom: 16px; }
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.7; font-style: italic; }
.quote figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.quote__author { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink-900); }
.quote__ctx { font-size: .85rem; color: var(--muted); }

/* ── CTA band ─────────────────────────────────────────────────────── */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band__bg { position: absolute; inset: 0; background-image: linear-gradient(120deg, rgba(10,20,36,.95) 40%, rgba(14,26,48,.78)), url('/assets/media/amb-scales.jpg'); background-size: cover; background-position: center 20%; }
.cta-band__inner { position: relative; z-index: 1; padding: clamp(48px, 6vw, 76px); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #cdd6e6; max-width: 54ch; margin-bottom: 26px; }
.cta-band .btn-row { margin-top: 0; }

/* ── Page hero (pages internes) ───────────────────────────────────── */
.page-hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 400px at 82% -10%, rgba(200,169,107,.22), transparent 55%), radial-gradient(ellipse 600px 400px at 5% 100%, rgba(29,50,83,.7), transparent 55%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #cdd6e6; max-width: 56ch; }
.page-hero .breadcrumb { color: #9aa6c2; }
.page-hero .breadcrumb a { color: #cdd6e6; }
.page-hero .breadcrumb li::after { color: rgba(255,255,255,.28); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.page-hero--center .wrap { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }

.page-hero--split .page-hero__split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero__text { position: relative; z-index: 1; }
.page-hero__figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(200,169,107,.3); aspect-ratio: 4/3; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }

/* ── Split & layouts internes ─────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); }
.split--start { align-items: start; }
.layout-2col { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 5vw, 60px); align-items: start; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }

/* ── Prose ────────────────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: .8em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-100); border: 1px solid var(--gold-300); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--gold-700); border-bottom: 2px solid var(--gold-700); transform: rotate(-45deg); }

/* ── Cartes / callouts ────────────────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.ink-card { background: linear-gradient(155deg, var(--ink-800), var(--ink-900)); color: #fff; border: 0; box-shadow: var(--shadow-md); }
.ink-card h3 { color: #fff; }
.ink-card p { color: #c2cbe0; }
.linklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.callout { background: var(--cream); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-500); border-radius: var(--radius-lg); padding: 28px; margin-top: 28px; }
.callout h3 { margin-bottom: 8px; }
.callout p { color: var(--muted); margin: 0; }
.callout--soft { background: var(--ivory); border-left-color: var(--gold-400); }
.callout--center { max-width: 780px; margin: 40px auto 0; text-align: center; border-left: 0; border-top: 3px solid var(--gold-500); }

/* ── Blog ─────────────────────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post h2 { font-size: 1.35rem; margin: 6px 0 10px; }
.post__date { font-size: .82rem; color: var(--muted-light); margin: 0 0 8px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq-item:hover { border-color: var(--gold-300); }
.faq-item[open] { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--gold-600); flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold-100); border-radius: 50%; transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold-500); color: #fff; }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--muted); line-height: 1.7; }
.faq-item .faq-body p { margin: 0; }

/* ── Coordonnées / formulaire / map ───────────────────────────────── */
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; flex-shrink: 0; }
.info-list .lab { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.info-list .val { font-weight: 600; color: var(--ink-900); }
a.val:hover { color: var(--gold-700); }
.map-frame { border: 0; width: 100%; min-height: 400px; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }

.form-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-900); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--cream); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(184,146,90,.18); background: var(--paper); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: .84rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; }

/* ── Breadcrumb ───────────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 0 0 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 10px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }

/* ── Rappels Google (contact) ─────────────────────────────────────── */
.google-reminder-card { display: flex; align-items: flex-start; gap: 18px; margin-top: 26px; padding: 22px; background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.google-reminder__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-soft); display: grid; place-items: center; flex-shrink: 0; }
.google-reminder__content h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-900); margin: 0 0 6px; }
.google-reminder__content p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.google-reminder { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); font-size: .9rem; }
.google-reminder__badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-900); }
.google-reminder__link { color: var(--gold-700); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-950); color: #b7c1d6; padding: clamp(64px, 8vw, 96px) 0 32px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-400) 50%, var(--gold-500) 70%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: var(--gold-400); }
.footer-brand p { font-size: .93rem; color: #8f9bb6; margin-top: 18px; max-width: 34ch; }
.footer-google { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); font-size: .9rem; }
.footer-google svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-google span { color: #d7deee; }
.footer-google strong { color: #fbbc05; }
.footer-google a { color: var(--gold-400); margin-left: auto; font-weight: 600; }
.footer-google a:hover { color: #fff; }
.foot-h { color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a8b3cc; font-size: .94rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; margin-bottom: 13px; }
.footer-contact svg { color: var(--gold-400); flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }
.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(220, 226, 238, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
}
.footer-copyright,
.footer-credit {
  margin: 0;
}
.footer-copyright {
  justify-self: start;
}
.footer-credit {
  justify-self: center;
  white-space: nowrap;
}
.footer-credit a {
  color: var(--gold-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(202, 169, 107, 0.45);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}
.footer-credit a:hover {
  color: var(--gold-300);
  border-bottom-color: currentColor;
}
.footer-credit a:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-legal {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
.footer-legal a {
  color: #808daa;
  font-size: inherit;
}
.footer-legal a:hover {
  color: var(--gold-400);
}

/* ── Barre mobile CTA ─────────────────────────────────────────────── */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); box-shadow: 0 -4px 20px rgba(14,26,48,.08); }
.mobile-cta .btn { padding: 13px; font-size: .94rem; }

.preview-flag { background: linear-gradient(90deg, var(--gold-100), var(--paper), var(--gold-100)); color: var(--gold-700); text-align: center; font-size: .76rem; padding: 8px 16px; font-weight: 600; }

.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-500); line-height: 1; }
.stars svg { width: 1em; height: 1em; }

/* ── Reveal ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.domains .reveal:nth-child(2) { transition-delay: .06s; }
.domains .reveal:nth-child(3) { transition-delay: .12s; }
.domains .reveal:nth-child(4) { transition-delay: .18s; }
.domains .reveal:nth-child(5) { transition-delay: .24s; }
.values .reveal:nth-child(2), .quotes .reveal:nth-child(2), .gcards .reveal:nth-child(2) { transition-delay: .08s; }
.values .reveal:nth-child(3), .quotes .reveal:nth-child(3) { transition-delay: .16s; }
.values .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__content, .hero__media, .hero__scroll { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding-bottom: 90px; }
  .hero { min-height: auto; }
  .hero__media { justify-self: start; }
  .manifesto__grid, .parcours__grid, .rg-grid, .split, .page-hero--split .page-hero__split { grid-template-columns: 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar, .rg-score { position: static; }
  .values, .values--4 { grid-template-columns: repeat(2, 1fr); }
  .method, .quotes, .posts { grid-template-columns: 1fr; }
  .method { gap: 18px; }
  .quotes, .posts { grid-template-columns: repeat(2, 1fr); }
  .parcours__intro .frame--scales { max-width: 100%; }
  .page-hero--split .page-hero__figure { order: -1; max-width: 480px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .gcards { grid-template-columns: 1fr; }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.65rem;
    text-align: center;
  }
  .footer-copyright,
  .footer-credit,
  .footer-legal {
    justify-self: center;
  }
  .footer-credit {
    white-space: normal;
  }
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 82px; right: 0; bottom: 0; left: auto;
    width: min(86vw, 380px); max-width: 100%;
    background: var(--ivory); margin: 0; padding: 22px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s var(--ease);
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 15px 14px; font-size: 1.08rem; }
  .main-nav > ul > li > a::after { display: none; }
  .has-dropdown > a::before { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--gold-400); border-radius: 0; margin: 2px 0 8px 16px; min-width: 0; padding: 0; background: transparent; }
  .mobile-only-cta { display: block; margin-top: 18px; }
  .mobile-cta { display: grid; }
  .site-footer { padding-bottom: 96px; }
  .domain { grid-template-columns: 64px 1fr; gap: 18px; padding: 22px; }
  .domain__media { display: none; }
  .domain__cta { display: inline-flex; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .values, .values--4, .quotes, .posts { grid-template-columns: 1fr; }
  .creds__inner { gap: 20px 12px; }
  .cred { flex: 1 1 42%; }
  .cred__sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .frame--float { position: static; width: 100%; margin-top: 14px; border: 0; }
  .manifesto__media { display: grid; gap: 14px; }
  .frame__accent { display: none; }
  .milestone { grid-template-columns: 1fr; gap: 6px; }
  .hero__seal { width: 78px; height: 78px; }
  .hero__seal-num { font-size: 1.7rem; }
}

@media print {
  .site-header, .mobile-cta, .preview-flag, .hero__scroll, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .page-hero { background: none !important; color: #000 !important; }
  .hero__bg, .hero__glow, .page-hero::before { display: none; }
  .hero__title, .hero__lead, h1, h2 { color: #000 !important; }
  a { text-decoration: underline; }
  .card, .value, .quote { box-shadow: none; border: 1pt solid #ccc; break-inside: avoid; }
}
