/* ==========================================================================
   Nuba Partners — Landing page
   Design system « Sovereign Executive » : marine / or / crème
   ========================================================================== */

:root {
  /* Couleurs de la charte */
  --navy: #1b2a4a;
  --navy-deep: #0f1a2e;
  --navy-ink: #041534;
  --gold: #c9a227;
  --gold-light: #e2c25a;
  --gold-text: #7d6310; /* or assombri : texte or lisible sur fond clair (AA) */
  --slate: #5a6478;
  --cream: #faf7f0;
  --cream-deep: #f3eee2;
  --white: #ffffff;
  --text: #121c2d;
  --muted-on-dark: rgba(250, 247, 240, 0.7);

  /* Lignes & ombres */
  --hairline: rgba(90, 100, 120, 0.15);
  --hairline-dark: rgba(255, 255, 255, 0.08);
  --gold-hairline: rgba(201, 162, 39, 0.25);
  --shadow-card: 0 4px 24px -2px rgba(27, 42, 74, 0.06);
  --shadow-float: 0 12px 36px -4px rgba(27, 42, 74, 0.12);
  --shadow-hero: 0 24px 60px -12px rgba(27, 42, 74, 0.22);

  /* Typographie */
  --font-logo: Georgia, "Times New Roman", serif; /* police du logotype officiel */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Espacements */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --gutter: 1rem;
  --margin: 1.5rem;
  --header-h: 72px;

  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --margin: 2.5rem;
    --header-h: 80px;
  }
}

@media (min-width: 1200px) {
  :root { --margin: 4rem; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--margin);
}
.container--narrow { max-width: 1040px; }

.section { padding-block: var(--space-2xl); }
@media (min-width: 768px) { .section { padding-block: var(--space-3xl); } }

.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--navy {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* ---------- Typographie ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow--pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--hairline);
}
.eyebrow--gold { color: var(--gold-light); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--navy-ink);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.section--navy .h2 { color: var(--cream); }

.h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  color: var(--navy);
}
.h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--navy);
}

.lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--slate);
}
.section--navy .lead { color: var(--muted-on-dark); }

.section-head {
  max-width: 46rem;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-card);
}
.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-float);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 42, 74, 0.25);
}
.btn--outline:hover { background: rgba(27, 42, 74, 0.04); border-color: var(--navy); }

.btn--sm { min-height: 42px; padding: 0.6rem 1.25rem; font-size: 13.5px; }
.btn--lg { min-height: 56px; padding: 1.1rem 2.25rem; font-size: 15px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 12px rgba(27, 42, 74, 0.06);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}

/* Logo officiel : anneaux pleins marine/or + logotype Georgia gras */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 50px; height: 32px; flex-shrink: 0; color: var(--navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.brand__tagline {
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .brand__mark { width: 58px; height: 37px; }
  .brand__name { font-size: 1.5rem; }
  .brand__tagline { font-size: 10.5px; }
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--space-xl); }
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  padding-block: 0.4rem;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--navy); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.header__cta { display: none; }

.burger {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--navy);
}
.burger__lines { position: relative; width: 18px; height: 12px; }
.burger__lines span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 5px; }
.burger__lines span:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--cream);
  padding: var(--space-xl) var(--margin);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu__list a::after { content: "→"; font-family: var(--font-sans); color: var(--gold); font-size: 1.1rem; }
.mobile-menu .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- Motif anneaux ---------- */
.rings {
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: var(--navy);
}
.rings svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 162, 39, 0.08), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--space-3xl)); padding-bottom: var(--space-3xl); }
}
.hero .rings { top: 40px; right: -80px; width: 460px; height: 460px; opacity: 0.045; }

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-2xl); }
}

.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.hero__lead { max-width: 36rem; }
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-sm);
}
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; width: auto; }
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}
.reassure li { display: inline-flex; align-items: center; gap: 0.5rem; }
.reassure svg { width: 18px; height: 18px; color: var(--gold-text); }

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-hero);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 26, 46, 0.35));
}
.hero__accent {
  position: absolute;
  top: -22px; right: -22px;
  width: 130px; height: 80px;
  display: none;
  opacity: 0.9;
}
@media (min-width: 1024px) { .hero__accent { display: block; } }

.stat-float {
  position: absolute;
  z-index: 2;
  left: 1rem; right: 1rem; bottom: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.14);
}
@media (min-width: 560px) {
  .stat-float { left: 1.5rem; right: auto; bottom: 1.5rem; max-width: 300px; }
}
.stat-float__row { display: flex; align-items: baseline; gap: 0.6rem; }
.stat-float__value {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--navy);
}
.stat-float__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text);
}
.stat-float p { margin-top: 0.4rem; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--navy); }

/* ---------- Bande secteurs + KPI ---------- */
.trust { background: var(--cream-deep); padding-block: var(--space-2xl); }
.trust__title {
  text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-lg);
}
.sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
  justify-items: center;
}
@media (min-width: 768px) { .sectors { grid-template-columns: repeat(5, 1fr); } }
.sectors li {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.85;
}
.sectors li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) { .sectors li:last-child:nth-child(odd) { grid-column: auto; } }
.sectors svg { width: 22px; height: 22px; color: var(--gold-text); }

.kpis {
  display: grid;
  gap: var(--gutter);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.kpi__value {
  display: block;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.kpi__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text);
}
.kpi p { margin-top: 0.35rem; color: var(--slate); font-weight: 500; }

/* ---------- Méthode ---------- */
.phases { display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .phases { grid-template-columns: 1fr 1fr; } }

.phase {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.phase:hover { box-shadow: var(--shadow-float); transform: translateY(-3px); }
.phase__media { position: relative; height: 240px; background: var(--cream-deep); overflow: hidden; }
@media (min-width: 768px) { .phase__media { height: 280px; } }
.phase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.phase:hover .phase__media img { transform: scale(1.03); }
.phase__tag {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy);
}
.phase__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-xl) var(--space-lg); gap: var(--space-md); }
@media (min-width: 768px) { .phase__body { padding: var(--space-xl); } }
.phase__title { display: flex; align-items: center; gap: 0.75rem; }
.phase__num {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700; font-size: 14px;
}
.phase--judiciaire .phase__num { background: var(--navy); color: var(--gold-light); }
.phase__body > p { color: var(--slate); }

.checklist { display: flex; flex-direction: column; gap: 0.7rem; margin-top: auto; padding-top: var(--space-sm); }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 14.5px; font-weight: 500; color: var(--text); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-text); margin-top: 1px; }

.timeline-note {
  margin-top: var(--space-xl);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 14px; color: var(--slate);
}
.timeline-note strong { color: var(--navy); font-weight: 600; }

/* ---------- Honoraires ---------- */
.section--navy .rings { color: var(--cream); }
.pricing .rings--bl { bottom: -120px; left: -100px; width: 440px; height: 440px; opacity: 0.05; }
.pricing .rings--tr { top: -60px; right: -60px; width: 220px; height: 220px; opacity: 0.04; }

.tiers { position: relative; display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; } }

.tier {
  display: flex; flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(15, 26, 46, 0.55);
  border: 1px solid var(--gold-hairline);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) { .tier { padding: var(--space-xl); } }
.tier__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light);
}
.tier__rate {
  margin-top: 0.75rem;
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.tier__rate .arrow { font-weight: 400; color: var(--muted-on-dark); font-size: 0.6em; }
.tier__desc { margin-top: 0.75rem; font-size: 14px; color: var(--muted-on-dark); }
.tier ul { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: 0.75rem; }
.tier li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 14.5px; font-weight: 500; color: var(--cream); }
.tier li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.tier__foot {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline-dark);
  font-size: 13px;
  color: var(--muted-on-dark);
}
.tier ul { flex: 1; }
.pricing__note {
  position: relative;
  margin: var(--space-xl) auto 0;
  max-width: 44rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted-on-dark);
}

/* ---------- Engagements ---------- */
.pillars { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@media (min-width: 1024px) { .pillar { padding: var(--space-xl); } }
.pillar:hover { border-color: var(--gold-hairline); box-shadow: var(--shadow-card); }
.pillar__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-text);
  margin-bottom: var(--space-sm);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar p { color: var(--slate); }

/* ---------- Témoignage ---------- */
.testimonial { text-align: center; }
.testimonial__inner { max-width: 52rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.testimonial__quote-mark { width: 56px; height: 56px; color: var(--gold); opacity: 0.4; }
.testimonial blockquote {
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.25rem);
  line-height: 1.45;
  color: var(--navy);
}
.testimonial figcaption {
  margin-top: var(--space-xl);
  display: flex; align-items: center; gap: var(--space-md);
  text-align: left;
}
.testimonial__avatar {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold-hairline);
}
.testimonial__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.testimonial__role { font-size: 13px; color: var(--slate); }

/* ---------- CTA final ---------- */
.cta-wrap { padding-bottom: var(--space-2xl); background: var(--white); }
@media (min-width: 768px) { .cta-wrap { padding-bottom: var(--space-3xl); } }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 400px at 100% 100%, rgba(201, 162, 39, 0.12), transparent 60%),
    var(--navy);
  color: var(--cream);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-hero);
}
@media (min-width: 768px) { .cta { padding: var(--space-3xl) var(--space-2xl); } }
.cta .rings { right: -60px; bottom: -60px; width: 320px; height: 320px; opacity: 0.06; color: var(--cream); }
.cta__inner { position: relative; max-width: 42rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.cta__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 26, 46, 0.6);
  border: 1px solid var(--gold-hairline);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light);
}
.cta__badge .eyebrow__dot { animation: pulse 2.4s infinite; }
.cta .h2 { color: var(--cream); }
.cta .h2 span { display: block; margin-top: 0.35rem; font-weight: 500; font-size: 0.78em; color: var(--gold); }
.cta .lead { color: var(--muted-on-dark); }
.cta .btn { margin-top: var(--space-md); }
.cta__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem;
  font-size: 13px; color: var(--muted-on-dark);
}
.cta__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.cta__meta svg { width: 16px; height: 16px; color: var(--gold); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--muted-on-dark); }
.footer__grid {
  display: grid;
  gap: var(--space-xl) var(--gutter);
  padding-block: var(--space-2xl) var(--space-xl);
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-top: var(--space-3xl); } }
/* Version du logo sur fond foncé : anneau marine éclairci pour rester visible */
.footer .brand__name { color: var(--cream); }
.footer .brand__tagline { color: var(--muted-on-dark); }
.footer .brand__mark { color: var(--cream); }
.footer__about { margin-top: var(--space-md); font-size: 13.5px; max-width: 22rem; }
.footer__title {
  display: block;
  margin-bottom: var(--space-md);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; font-size: 14px; }
.footer__links a { transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 14px; font-style: normal; }
.footer__contact a { color: var(--gold-light); }
.footer__contact a:hover { color: var(--white); }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer__bottom {
  display: flex; flex-direction: column; gap: var(--space-md);
  align-items: center; justify-content: space-between;
  padding-block: var(--space-lg);
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  font-size: 13px;
  text-align: center;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; text-align: left; } }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.footer__legal a:hover { color: var(--white); }

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  background: var(--navy);
  color: var(--gold-light);
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Pages de texte (mentions légales, confidentialité) ---------- */
.legal-hero {
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.legal-hero .container { display: flex; flex-direction: column; gap: var(--space-sm); max-width: 820px; }
.legal-hero .h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal-hero p { color: var(--slate); }
.prose { max-width: 820px; margin: 0 auto; padding: var(--space-2xl) var(--margin); color: var(--text); font-size: 15.5px; line-height: 1.75; }
.prose h2 { margin: var(--space-xl) 0 var(--space-sm); font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 var(--space-md); }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--navy); }
.prose dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem 1.5rem; margin: 0 0 var(--space-md); }
@media (min-width: 640px) { .prose dl { grid-template-columns: 220px minmax(0, 1fr); } }
.prose dt { font-weight: 600; color: var(--navy); }
.prose dd { margin: 0 0 0.6rem; }
.todo { padding: 0.05rem 0.4rem; border-radius: 4px; background: rgba(184, 107, 74, 0.12); color: #8f4a2c; font-weight: 600; font-size: 0.92em; }

/* ---------- Animations d'apparition ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Améliorations UI/UX (design-system/MASTER.md — skill UI/UX Pro Max)
   ========================================================================== */

/* Interaction : pas de délai tactile, retour visuel à l’appui, curseur explicite */
a, button, summary, label.choice, .preset { touch-action: manipulation; }
button, summary, [role="tab"], label.choice, label.check { cursor: pointer; }
.btn:active:not([disabled]) { transform: scale(0.97); transition-duration: 80ms; }
.btn--gold:active:not([disabled]) { box-shadow: var(--shadow-card); }

/* Lisibilité des paragraphes courts */
p, li, figcaption { text-wrap: pretty; }

/* Photos : liseré neutre pour détacher l’image du fond */
.hero__frame img, .phase__media img {
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

/* Apparitions plus brèves (≤ 500 ms) */
.js .reveal { transform: translateY(14px); transition-duration: 0.5s; }

/* CTA collant mobile (masqué à partir de 768 px) */
.mobile-cta {
  position: fixed; z-index: 45;
  left: 1rem; right: 1rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(15, 26, 46, 0.45);
  transform: translateY(calc(100% + 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.mobile-cta svg { width: 18px; height: 18px; }
.mobile-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .mobile-cta { display: none; } }
@media (max-width: 767px) {
  .mobile-cta.is-visible ~ .to-top { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}

/* Éléments ajoutés par les gabarits Blade */
.eyebrow--fit { width: fit-content; }
.timeline-note__icon { width: 18px; height: 18px; color: var(--gold-text); }
.testimonial__avatar--initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-light);
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.pricing__note .btn { margin-top: var(--space-sm); }
.error-page .container { gap: var(--space-md); }
.error-page .lead { max-width: 40rem; }
.error-page .hero__ctas { margin-top: var(--space-md); }
main:focus { outline: none; }

/* ---------- Pages de service (SEO) ---------- */
h1.eyebrow { margin: 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 13px; color: var(--slate); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--hairline); }
.breadcrumb a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 600; }
.service-hero .lead { max-width: 44rem; text-wrap: pretty; }
.service-hero .hero__ctas { margin-top: var(--space-sm); }
.service-figure { max-width: 820px; margin: var(--space-xl) auto 0; padding: 0 var(--margin); }
.service-figure img { width: 100%; height: auto; aspect-ratio: 1408 / 768; object-fit: cover; border-radius: var(--radius-lg); outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-text); }
.prose h2 { text-wrap: balance; }
.service-faq summary { font-size: 15px; }
.service-faq details p { font-size: 15px; }
.prose .service-links { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.service-links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.service-links svg { width: 16px; height: 16px; color: var(--gold-text); transition: transform 0.2s var(--ease); }
.service-links a:hover svg { transform: translateX(3px); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-md); border: 1px solid var(--hairline); border-radius: var(--radius); }
.bareme-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.bareme-table caption { caption-side: bottom; padding: 0.6rem 1rem; font-size: 13px; color: var(--slate); text-align: left; }
.bareme-table th, .bareme-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--hairline); }
.bareme-table thead th { background: var(--navy); color: var(--cream); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.bareme-table tbody th { font-weight: 600; color: var(--navy); }
.bareme-table td { font-weight: 700; color: var(--gold-text); }
.phase__link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.phase__link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.phase__link:hover svg { transform: translateX(3px); }
.pricing__more { display: block; width: fit-content; margin: var(--space-md) auto 0; padding: 0.6rem 0; color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.pricing__more:hover { color: var(--cream); }

/* ---------- Preloader (logo animé, première page de la session) ---------- */
.preloader { display: none; }
html.js:not(.deja-vu) .preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  animation: preloader-secours 0.5s 4s forwards; /* filet de sécurité si le script échoue */
  will-change: opacity; contain: strict; /* calque isolé : le rendu de la page dessous ne le perturbe pas */
}
.preloader.is-done { opacity: 0; visibility: hidden; }
/* Stabilité : dimensions fixes, polices système uniquement (comme le logo officiel), aucun déplacement ni zoom du texte */
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 280px; text-align: center; }
.preloader__rings { display: block; width: 112px; height: 72px; margin-bottom: 0.9rem; overflow: visible; shape-rendering: geometricPrecision; }
/* Tracé : longueur réelle du cercle (2π × 28 ≈ 176), sans pathLength (mal géré par d’anciens Safari) */
.preloader__ring {
  stroke-width: 12;
  stroke-dasharray: 176; stroke-dashoffset: 176;
  transform: rotate(-90deg); transform-origin: center; transform-box: fill-box;
  animation: preloader-trace 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.preloader__ring--navy { stroke: var(--navy); }
.preloader__ring--gold { stroke: var(--gold); animation-delay: 0.2s; }
.preloader__name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--navy); opacity: 0; animation: preloader-fondu 0.5s 0.55s var(--ease) forwards; }
.preloader__tag { font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); opacity: 0; animation: preloader-fondu 0.5s 0.7s var(--ease) forwards; }
/* Barre d’attente : visible seulement si la page n’est toujours pas prête après l’intro (classe posée par main.js) */
.preloader__bar { position: relative; width: 120px; height: 2px; margin-top: 1rem; overflow: hidden; border-radius: 2px; background: var(--hairline); opacity: 0; transition: opacity 0.3s var(--ease); }
.preloader__bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--gold); transform: translateX(-100%); animation: preloader-barre 1.1s ease-in-out infinite paused; }
.preloader.is-waiting .preloader__bar { opacity: 1; }
.preloader.is-waiting .preloader__bar span { animation-play-state: running; }
@keyframes preloader-trace { to { stroke-dashoffset: 0; } }
@keyframes preloader-barre { to { transform: translateX(250%); } }
@keyframes preloader-secours { to { opacity: 0; visibility: hidden; } }
/* Mouvements réduits (ex. « Effets d’animation » désactivés dans Windows) : même séquence, sans barre animée.
   La règle globale « * { animation-duration: 0.01ms } » est surchargée ici (tracé sur place et fondus : aucun déplacement). */
@media (prefers-reduced-motion: reduce) {
  html.js:not(.deja-vu) .preloader { transition-duration: 0.4s !important; }
  .preloader__ring { animation-duration: 0.7s !important; }
  .preloader__name, .preloader__tag { animation-duration: 0.5s !important; }
  .preloader__bar { display: none; }
}
@keyframes preloader-fondu { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pour qui ? (entreprises en cible principale, particuliers aussi) ---------- */
.audience__grid { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .audience__grid { grid-template-columns: 3fr 2fr; } }
.audience__card { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--cream); }
@media (min-width: 768px) { .audience__card { padding: var(--space-xl); } }
.audience__card p { color: var(--slate); text-wrap: pretty; }
.audience__card .phase__link { margin-top: auto; }
.audience__card--main { background: var(--navy); border-color: transparent; box-shadow: var(--shadow-float); }
.audience__card--main .h3 { color: var(--cream); }
.audience__card--main p { color: var(--muted-on-dark); }
.audience__card--main .phase__link { color: var(--gold-light); text-decoration-color: var(--gold); }
.audience__card--main .pillar__icon { background: rgba(255, 255, 255, 0.08); color: var(--gold); }

/* ---------- Espace client (créancier / débiteur) ---------- */
.espace { padding: var(--space-xl) 0 var(--space-2xl); }
.espace__container { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 1040px; }
.espace__container--etroit { max-width: 560px; }
.espace-retour { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--slate); }
.espace-retour svg { width: 16px; height: 16px; }
.espace-retour:hover { color: var(--navy); }
.espace-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--slate); }
.espace-barre span { display: inline-flex; align-items: center; gap: 0.4rem; overflow-wrap: anywhere; }
.espace-barre svg { width: 16px; height: 16px; color: var(--gold-text); }
.espace-message { padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 14.5px; background: var(--cream-deep); color: var(--navy); border-left: 3px solid var(--gold); }
.espace-message--succes { background: #e9f6ee; color: #14532d; border-left-color: #1f8a4c; }
.espace-message--erreur { background: #fdecec; color: #7f1d1d; border-left-color: #c0392b; }
.espace-choix { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .espace-choix { grid-template-columns: 1fr 1fr; } }
.espace-choix__carte { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg); border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--white); color: var(--text); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.espace-choix__carte:hover { border-color: var(--gold); box-shadow: var(--shadow-float); transform: translateY(-2px); }
.espace-choix__carte--principal { background: var(--navy); border-color: transparent; }
.espace-choix__carte--principal .h3 { color: var(--cream); }
.espace-choix__carte.espace-choix__carte--principal p { color: var(--muted-on-dark); }
.espace-choix__carte--principal .phase__link { color: var(--gold-light); }
.espace-choix__carte--principal .pillar__icon { background: rgba(255, 255, 255, 0.08); color: var(--gold); }
.espace-choix__carte p { color: var(--slate); }
.espace-choix__carte .phase__link { margin-top: auto; text-decoration: none; }
.espace__securite { display: flex; align-items: center; gap: 0.5rem; font-size: 13.5px; color: var(--slate); }
.espace__securite svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-text); }
.espace-carte { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-lg); border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--white); }
@media (min-width: 768px) { .espace-carte { padding: var(--space-xl); } }
.espace-carte--succes { border-color: #1f8a4c; background: #f3fbf6; }
.espace-carte .h4 { display: flex; align-items: center; gap: 0.5rem; color: var(--navy); }
.espace-carte .h4 svg { width: 22px; height: 22px; color: #1f8a4c; }
.espace-carte__note { font-size: 13.5px; color: var(--slate); }
.espace-form .btn { align-self: flex-start; }
.espace-form__aide { display: flex; align-items: center; gap: 0.4rem; font-size: 13px; color: var(--slate); }
.espace-form__aide svg { width: 15px; height: 15px; color: var(--gold-text); flex-shrink: 0; }
.espace-form__aide a { color: var(--navy); text-decoration: underline; }
.espace-code { font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.espace-kpis { display: grid; gap: var(--space-sm); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .espace-kpis { grid-template-columns: repeat(4, 1fr); } .espace-kpis--3 { grid-template-columns: repeat(3, 1fr); } }
.espace-kpi { display: flex; flex-direction: column; gap: 0.25rem; padding: var(--space-md); border-radius: var(--radius); background: var(--cream); }
.espace-kpi__valeur { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.espace-kpi__label { font-size: 12.5px; color: var(--slate); }
.espace-kpi--or { background: var(--navy); }
.espace-kpi--or .espace-kpi__valeur { color: var(--gold-light); }
.espace-kpi--or .espace-kpi__label { color: var(--muted-on-dark); }
.espace-table td { font-weight: 400; color: var(--text); }
.espace-table th a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.espace-grille { display: grid; gap: var(--space-lg); }
@media (min-width: 900px) { .espace-grille { grid-template-columns: 1fr 1fr; } }
.espace-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.espace-ligne:last-child { border-bottom: 0; }
.espace-vide { font-size: 14px; color: var(--slate); }
.espace-details { display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .espace-details { grid-template-columns: repeat(3, 1fr); } }
.espace-details dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.espace-details dd { font-weight: 600; color: var(--navy); }
.espace-historique { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.espace-historique li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-sm); font-size: 14.5px; padding-left: 0.75rem; border-left: 2px solid var(--gold-hairline); }
.espace-historique time { color: var(--slate); font-variant-numeric: tabular-nums; }
.espace-plan + .espace-plan { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px dashed var(--hairline); }
.espace-prose { max-width: none; margin: 0; padding: 0; }
.espace-progression { height: 8px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; }
.espace-progression__barre { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.espace-progression__barre--0 { width: 0; } .espace-progression__barre--10 { width: 10%; } .espace-progression__barre--20 { width: 20%; }
.espace-progression__barre--30 { width: 30%; } .espace-progression__barre--40 { width: 40%; } .espace-progression__barre--50 { width: 50%; }
.espace-progression__barre--60 { width: 60%; } .espace-progression__barre--70 { width: 70%; } .espace-progression__barre--80 { width: 80%; }
.espace-progression__barre--90 { width: 90%; } .espace-progression__barre--100 { width: 100%; }
.espace-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cream-deep); color: var(--navy); white-space: nowrap; }
.espace-badge--nouveau, .espace-badge--analyse, .espace-badge--propose, .espace-badge--en_attente { background: #fff4d6; color: #7a5b00; }
.espace-badge--amiable { background: #e7ecf6; color: var(--navy); }
.espace-badge--judiciaire { background: #e3f0fa; color: #134e74; }
.espace-badge--recouvre, .espace-badge--solde, .espace-badge--accepte, .espace-badge--tenue { background: #e3f5ea; color: #14532d; }
.espace-badge--clos, .espace-badge--rejete, .espace-badge--refuse, .espace-badge--non_tenue { background: #f1f2f4; color: #4b5563; }

.nav__link--espace { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav__link--espace svg { width: 15px; height: 15px; color: var(--gold-text); }

/* En-tête : intitulés sur une ligne, espacement resserré sur les écrans moyens (5 liens + bouton) */
.nav__link, .brand__name { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__list { gap: var(--space-md); } }
.espace-details dd { margin: 0; }
@media (min-width: 640px) { .espace-kpis--3 { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Système de mouvement (skill motion-foundations, transposé en CSS)
   Chaque animation guide l’attention, signale un état ou préserve la continuité.
   Uniquement transform / opacity ; « animations réduites » respecté en priorité.
   ========================================================================== */
:root {
  --duree-instant: 80ms;
  --duree-rapide: 180ms;
  --duree-normale: 350ms;
  --duree-lente: 600ms;
  --courbe-sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --courbe-nette: cubic-bezier(0.4, 0, 0.2, 1);
  --distance-s: 8px;
  --distance-m: 16px;
}

/* Transitions entre pages (navigateurs compatibles) : fondu court, en-tête immobile */
@view-transition { navigation: auto; }
.header { view-transition-name: entete; }
::view-transition-old(root) { animation: page-sortie var(--duree-rapide) var(--courbe-nette) both; }
::view-transition-new(root) { animation: page-entree var(--duree-normale) var(--courbe-sortie) both; }
@keyframes page-sortie { to { opacity: 0; } }
@keyframes page-entree { from { opacity: 0; transform: translateY(var(--distance-s)); } }

/* Questions fréquentes : ouverture fluide (amélioration progressive) */
@supports selector(::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--duree-normale) var(--courbe-sortie), content-visibility var(--duree-normale) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
.faq summary svg { transition: transform var(--duree-normale) var(--courbe-sortie); }

/* Formulaire en 3 étapes : l’étape arrive dans le sens de la progression */
.panel:not([hidden]) { animation: etape-avant var(--duree-normale) var(--courbe-sortie) both; }
form[data-sens="retour"] .panel:not([hidden]) { animation-name: etape-retour; }
@keyframes etape-avant { from { opacity: 0; transform: translateX(var(--distance-m)); } }
@keyframes etape-retour { from { opacity: 0; transform: translateX(calc(-1 * var(--distance-m))); } }

/* Cartes : léger soulèvement au survol (souris uniquement, jamais au toucher) */
@media (hover: hover) and (pointer: fine) {
  .pillar, .tier, .audience__card, .phase, .espace-carte--lien, .kpi {
    transition: transform var(--duree-normale) var(--courbe-sortie), box-shadow var(--duree-normale) var(--courbe-sortie);
  }
  .pillar:hover, .audience__card:hover, .phase:hover, .kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
  .tier:hover { transform: translateY(-3px); }
  .phase__link svg, .pricing__more, .service-links svg { transition: transform var(--duree-rapide) var(--courbe-sortie); }
  .phase__link:hover svg { transform: translateX(4px); }
}

/* Chiffres clés : chiffres à chasse fixe pendant le comptage */
.kpi__value, .stat-float__value, .espace-kpi__valeur { font-variant-numeric: tabular-nums; }

/* Espace client : messages et badges arrivent en douceur */
.espace-message { animation: message-entree var(--duree-normale) var(--courbe-sortie) both; }
@keyframes message-entree { from { opacity: 0; transform: translateY(calc(-1 * var(--distance-s))); } }
.espace-progression__barre { transform-origin: left; animation: progression var(--duree-lente) var(--courbe-sortie) both; }
@keyframes progression { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .panel:not([hidden]), .espace-message, .espace-progression__barre { animation: none !important; }
  .pillar:hover, .audience__card:hover, .phase:hover, .kpi:hover, .tier:hover { transform: none; }
}

/* ==========================================================================
   Responsive : corrections issues de l’audit mesuré (360 / 768 / 1024 px)
   ========================================================================== */
/* Lisibilité : aucune étiquette sous 12 px */
.eyebrow, .kpi__label, .stat-float__label, .phase__tag, .cta__badge, .field__label { font-size: 12px; }
/* Cibles tactiles d’au moins 44 px */
.brand, .phone-link { min-height: 44px; }
@media (max-width: 767px) {
  .footer__links { gap: 0; }
  .footer__links a, .footer__legal a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Secteurs : pictogramme au-dessus du nom, sans césure disgracieuse */
  .sectors li { flex-direction: column; gap: 0.35rem; text-align: center; font-size: 0.98rem; text-wrap: balance; }
  .eyebrow--pill { letter-spacing: 0.1em; }
}
/* Tablette : la photo du hero (portrait) n’occupe plus tout l’écran */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__frame { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
