/* ═══════════════════════════════════════════════════════════════
   CABINET MAÎTRE MAUD JAAOUANE-POMMIER — SITE 4
   "LA FORMULE PARFAITE" :
   • Hero & Header : Sombre "Encre Profonde & Or Brossé" (Site 1)
   • Corps de page : Éditorial & Chaleureux "Grège, Sable & Bronze" (Site 2)
   • Encart Thématique : Dark Prestige (Engagement / MIST)
   • Performance : Animations CSS natives, Fallback gracieux, A11y & SEO
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  /* Nuances sombres (Hero, Header, Encart MIST, Footer) */
  --ink:          #0d1219;
  --ink-2:        #131a25;
  --ink-3:        #1a2331;
  --anthracite:   #1c1917;

  /* Nuances d'or & bronze */
  --gold:         #c3a05f;
  --gold-soft:    #e0c88f;
  --gold-dark:    #96783f;
  --gold-glow:    rgba(195, 160, 95, 0.22);
  --bronze:       #A87B4F;
  --bronze-clair: #C9A87C;
  --bronze-fonce: #8C6A3F;

  /* Nuances claires (Corps de page, Sections éditoriales) */
  --grege:        #F6F3EE;
  --sable:        #ECE6DB;
  --blanc:        #FCFAF7;
  --encre:        #2A2520;
  --encre-douce:  #3D3731;
  --muted:        #6E665C;
  --muted-clair:  #A79D90;

  /* Texte du header — couleurs identiques au Site 1 */
  --ivory:        #F4EFE5;
  --ivory-dim:    #CFC9BC;
  --nav-muted:    #8D96A6;

  /* Lignes & Séparateurs */
  --line-dark:    rgba(195, 160, 95, 0.24);
  --line-light:   rgba(42, 37, 32, 0.12);

  /* Typographies */
  --serif:        "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:         "Jost", system-ui, -apple-system, sans-serif;

  /* Dimensions & Timing */
  --container:    min(74rem, 92vw);
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --header-h:     4.85rem;
}

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.2rem);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--encre);
  background-color: var(--grege);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Grain papier subtil en overlay non-bloquant */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23noise)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Lien d'évitement A11Y */
.skip-link {
  position: absolute;
  left: 1.5rem;
  top: -5rem;
  z-index: 2000;
  padding: .75rem 1.4rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
  border-radius: 0 0 6px 6px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ── Typographie et Ornements ──────────────────────────────────── */
.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
  opacity: .85;
}
.eyebrow--light {
  color: var(--bronze);
}
.eyebrow--light::before {
  background: var(--bronze);
}

.section-lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  color: var(--muted);
  max-width: 44rem;
  line-height: 1.4;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Boutons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .95rem 2.2rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s, border-color .35s;
}

.btn--gold {
  background: linear-gradient(125deg, var(--gold-dark), var(--gold) 45%, var(--gold-soft));
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(195, 160, 95, 0.45);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(195, 160, 95, 0.6);
}

.btn--ghost {
  border-color: rgba(246, 243, 238, 0.28);
  color: var(--grege);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--ink);
  color: var(--grege);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--bronze-fonce);
  border-color: var(--bronze-fonce);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(42, 37, 32, 0.35);
}

.btn--nav {
  padding: .65rem 1.4rem;
  font-size: .72rem;
  border-color: var(--gold);
  color: var(--gold);
}
.btn--nav:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Barre de navigation (Identique au Site 1) ---------- */
#nav-toggle { display: none; }
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.3rem 0;
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 18, 25, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ivory);
  white-space: nowrap;
}
.brand-name span { color: var(--gold); }
.brand-sub {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--nav-muted);
  margin-top: .15rem;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.4vw, 1.8rem);
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links li {
  white-space: nowrap;
}
.nav-links a {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ivory-dim);
  position: relative;
  padding: .4rem 0;
  transition: color .3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Onglet actif : soulignement or persistant (scroll-spy) */
.nav-links a.is-active { color: var(--ivory); }
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(195, 160, 95, 0.45);
  color: var(--gold-soft) !important;
  background: rgba(195, 160, 95, 0.08);
  padding: 0 !important;
  transition: all .35s var(--ease) !important;
}
.nav-phone-btn::after { display: none !important; }
.nav-phone-btn:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(195, 160, 95, 0.35);
}
.nav-cta {
  border: 1px solid var(--gold) !important;
  padding: .72rem 1.5rem !important;
  color: var(--gold) !important;
  transition: background .35s, color .35s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}
.burger {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  z-index: 110;
}
.burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--grege);
  transition: transform .4s var(--ease), opacity .3s;
}
#nav-toggle:checked ~ .nav .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
#nav-toggle:checked ~ .nav .burger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .nav .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ── HERO (Atmosphère Sombre, Solennelle & Or avec Fond Immersif) ──── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  color: var(--grege);
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Image de fond avec masquage dégradé équilibré (lumineux à droite, contrasté à gauche) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  --hero-img: url("../images/hero-bg.jpg?v=3");
  background-image:
    radial-gradient(900px 550px at 80% 25%, rgba(195, 160, 95, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(9, 13, 19, 0.72) 0%, rgba(13, 18, 25, 0.58) 50%, #0b0f16 100%),
    linear-gradient(90deg, rgba(9, 13, 19, 0.92) 0%, rgba(13, 18, 25, 0.70) 45%, rgba(9, 13, 19, 0.40) 80%, rgba(9, 13, 19, 0.55) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  filter: contrast(102%) brightness(96%);
}

/* WebP quand le navigateur le supporte (sinon le JPEG ci-dessus est conservé) */
@supports (background-image: image-set(url("hero-bg.webp") type("image/webp"))) {
  .hero::before {
    --hero-img: image-set(
      url("../images/hero-bg.webp?v=3") type("image/webp"),
      url("../images/hero-bg.jpg?v=3") type("image/jpeg")
    );
  }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: linear-gradient(90deg, rgba(246, 243, 238, 0.035) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 0 6.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8.2vw, 6.8rem);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.03;
  margin-bottom: 2rem;
}
.hero-title .row { display: block; overflow: hidden; }
.hero-title .row span {
  display: inline-block;
  transform: translateY(115%);
  animation: riseUp 1.15s var(--ease) forwards;
}
.hero-title .row:nth-child(1) span { animation-delay: .2s; }
.hero-title .row:nth-child(2) span {
  animation-delay: .35s;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.hero-barreau {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -.8rem;
  margin-bottom: 1.4rem;
  animation: fadeSlide 1s var(--ease) .45s backwards;
}

/* Filet bronze animé du Site 2 */
.rule {
  width: min(28rem, 65%);
  height: 1px;
  margin: 1.8rem 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  animation: ruleDraw 1.4s var(--ease) .5s both;
}
@keyframes ruleDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-sub {
  max-width: 48ch;
  color: var(--muted-clair);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.65;
  animation: fadeSlide 1s var(--ease) .75s backwards;
}
.hero-sub strong {
  color: var(--blanc);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 2.6rem 0 2.8rem;
  animation: fadeSlide 1s var(--ease) .95s backwards;
}

.hero-urgence {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
  font-size: .95rem;
  color: var(--muted-clair);
  background: rgba(26, 35, 49, 0.45);
  border: 1px solid var(--line-dark);
  padding: .65rem 1.2rem;
  border-radius: 4px;
  animation: fadeSlide 1s var(--ease) 1.1s backwards;
}
.hero-urgence-header {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.hero-urgence-call {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
}
.hero-urgence a {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(224, 200, 143, 0.4);
  transition: color .3s, border-color .3s;
}
.hero-urgence a:hover {
  color: var(--blanc);
  border-color: var(--blanc);
}
.hero-urgence em {
  font-style: normal;
  font-size: .85rem;
  opacity: .85;
}

.pulse {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: #f87171;
  animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
  0%   { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7); }
  70%  { box-shadow: 0 0 0 .75rem rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.hero-side {
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: .68rem;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: rgba(195, 160, 95, 0.55);
  animation: fadeSlide 1.4s var(--ease) 1.2s backwards;
}

.monogram {
  position: absolute;
  right: 4vw;
  bottom: 4vh;
  z-index: 0;
  pointer-events: none;
  font-family: var(--serif);
  font-size: clamp(10rem, 24vw, 20rem);
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(195, 160, 95, 0.12);
  line-height: 1;
  user-select: none;
  animation: fadeSlide 1.6s var(--ease) .4s backwards;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .62rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted-clair);
  animation: fadeSlide 1.2s var(--ease) 1.4s backwards;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip {
  0% { transform: scaleY(.2); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(.15); transform-origin: bottom; }
}

@keyframes riseUp { to { transform: translateY(0); } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ── BANDEAU DÉFILANT (TICKER) ─────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line-light);
  background: var(--sable);
  padding: .9rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--encre);
  display: inline-flex;
  align-items: center;
  gap: 2.8rem;
  padding-right: 2.8rem;
}
.ticker-track span i {
  font-style: normal;
  color: var(--bronze);
  font-size: .8rem;
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

/* ── SECTIONS GÉNÉRALES (Éditorial & Clair) ────────────────────── */
.section {
  padding: 7rem 0;
  position: relative;
}
.section--alt {
  background-color: var(--sable);
}
.section-index {
  position: absolute;
  top: 4.2rem;
  right: calc((100% - var(--container)) / 2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bronze);
  opacity: .75;
  letter-spacing: .12em;
}

.section-head {
  margin-bottom: 3.5rem;
}
.section-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--encre);
  margin-top: .5rem;
  margin-bottom: 1.2rem;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--bronze);
}

/* ── EXPERTISES (Grille de Cartes Claires) ──────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cards--expertises {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--blanc);
  border: 1px solid var(--line-light);
  padding: 2.6rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -15px rgba(42, 37, 32, 0.12);
  border-color: var(--bronze-clair);
}
.card--specialist {
  border-color: var(--bronze);
  background: linear-gradient(180deg, var(--blanc) 0%, rgba(236, 230, 219, 0.4) 100%);
}
.card-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--bronze);
  color: var(--blanc);
  padding: .3rem .65rem;
  font-weight: 500;
  border-radius: 2px;
}

.card-title-inline {
  display: flex;
  align-items: center;
  gap: .95rem;
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
  color: var(--encre);
}
.card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--sable);
  border: 1px solid var(--line-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze-fonce);
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.card:hover .card-icon {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--gold-soft);
  border-color: var(--gold);
}
.card-icon--gold {
  background: rgba(195, 160, 95, 0.18);
  border-color: var(--bronze);
  color: var(--bronze-fonce);
}
.card--specialist:hover .card-icon--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.card p {
  color: var(--encre-douce);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.card ul {
  list-style: none;
  border-top: 1px solid var(--line-light);
  padding-top: 1.2rem;
  margin-top: auto;
}
.card ul li {
  font-size: .9rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .6rem;
}
.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--bronze);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bronze-fonce);
  font-weight: 500;
  margin-top: auto;
  transition: gap .3s var(--ease), color .3s;
}
.card-link:hover {
  color: var(--encre);
  gap: .9rem;
}

/* ── SECTION II : L'ENGAGEMENT / MIST (Encart Sombre Haute Stature) ── */
.section--dark {
  background: linear-gradient(180deg, #090d13 0%, var(--ink-2) 50%, #0b0f16 100%);
  color: var(--grege);
  border-block: 1px solid var(--line-dark);
}
.section--dark .section-index { color: var(--gold); }
.section--dark .section-title { color: var(--blanc); }
.section--dark .section-title em { color: var(--gold-soft); }
.section--dark .section-lead { color: var(--muted-clair); }

.mist-bg {
  position: absolute;
  top: 50%;
  right: 2vw;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(10rem, 26vw, 22rem);
  font-weight: 600;
  color: rgba(195, 160, 95, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.mist-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4.5rem;
}
.mist-lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--gold-soft);
}
.mist-lead strong {
  color: var(--blanc);
  font-style: normal;
  font-weight: 500;
}
.mist-body p {
  color: var(--muted-clair);
  font-size: 1.05rem;
  line-height: 1.7;
}

.mist-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 3.5rem;
}
.mist-points li {
  background: rgba(26, 35, 49, 0.4);
  border: 1px solid var(--line-dark);
  padding: 2.2rem 2rem;
}
.mist-points h3 {
  font-size: 1.45rem;
  color: var(--gold-soft);
  margin-bottom: .85rem;
}
.mist-points p {
  font-size: .95rem;
  color: var(--muted-clair);
  line-height: 1.65;
}

/* ── PARCOURS (Les 4 Étapes Claires) ───────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.step {
  background: var(--blanc);
  border: 1px solid var(--line-light);
  padding: 2.5rem 1.8rem;
  position: relative;
  transition: transform .4s var(--ease), border-color .4s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--bronze);
}
.step-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--bronze);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.step h3 {
  font-size: 1.35rem;
  margin-bottom: .85rem;
  color: var(--encre);
}
.step p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Encart d'urgence garde à vue dans le parcours */
.parcours-urgence {
  margin-top: 3.2rem;
  background: var(--blanc);
  border: 1px solid var(--bronze-clair);
  border-left: 4px solid #f87171;
  padding: 1.8rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 12px 28px -10px rgba(42, 37, 32, 0.08);
}
.parcours-urgence-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.parcours-urgence-content {
  flex-grow: 1;
}
.parcours-urgence-content h4 {
  font-size: 1.35rem;
  color: var(--encre);
  margin-bottom: .35rem;
}
.parcours-urgence-content p {
  margin: 0;
  color: var(--encre-douce);
  font-size: .98rem;
  line-height: 1.55;
}
.btn--urgence-call {
  background: var(--ink);
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: .85rem 1.6rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  transition: all .3s ease;
  box-shadow: 0 4px 14px rgba(11, 15, 22, 0.15);
}
.btn--urgence-call strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .04em;
  color: var(--blanc);
  font-weight: 600;
}
.btn--urgence-call:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(195, 160, 95, 0.35);
}
.btn--urgence-call:hover strong {
  color: var(--ink);
}

.parcours-urgence .btn {
  flex-shrink: 0;
}

@media (max-width: 54rem) {
  .parcours-urgence {
    flex-direction: column;
    align-items: stretch;
    padding: 1.6rem 1.4rem;
    gap: 1.25rem;
  }
  .parcours-urgence .btn--urgence-call {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: .9rem 1rem;
    font-size: .78rem;
    letter-spacing: .08em;
    gap: .4rem;
    white-space: normal;
  }
  .btn--urgence-call strong {
    font-size: 1.1rem;
    white-space: nowrap;
  }
}

/* ── LE CABINET & 4 PILIERS ─────────────────────────────────────── */
.cabinet-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: start;
}
.cabinet-head {
  margin-bottom: 1.8rem;
}
.cabinet-head .section-title {
  margin-top: .4rem;
  margin-bottom: 0;
}
.cabinet-intro {
  margin-bottom: 2.2rem;
}
.cabinet-intro p {
  color: var(--encre-douce);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Grille des 4 piliers d'exception */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  list-style: none;
}
.pillar-card {
  background: var(--blanc);
  border: 1px solid var(--line-light);
  padding: 1.8rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 160px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--bronze);
  box-shadow: 0 12px 28px -10px rgba(42, 37, 32, 0.1);
}
.pillar-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
}
.pillar-head svg {
  color: var(--bronze);
  flex-shrink: 0;
}
.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--encre);
  margin: 0;
}
.pillar-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Carte de localisation interactive du cabinet */
.cabinet-card {
  font-style: normal;
  background: var(--blanc);
  border: 1px solid var(--line-light);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 14px 34px -10px rgba(42, 37, 32, 0.08);
}
.cabinet-map-wrap {
  width: 100%;
  height: 250px;
  position: relative;
  background: var(--sable);
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}
/* Recadrage chirurgical de l'iframe pour masquer le bandeau gris OpenStreetMap sous le bord */
.cabinet-map-wrap iframe {
  width: 100%;
  height: calc(100% + 42px);
  margin-top: 0;
  border: 0;
  display: block;
}
.cabinet-card-body {
  padding: 2.2rem 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.cabinet-card h3 {
  font-size: 1.45rem;
  margin-bottom: .9rem;
  color: var(--encre);
}
.cabinet-card p {
  color: var(--encre-douce);
  font-size: .95rem;
  margin-bottom: .6rem;
  line-height: 1.55;
}
.cabinet-card-meta {
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line-light);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ── HONORAIRES (Transparence & Cartes) ─────────────────────────── */
.cards--fees {
  grid-template-columns: repeat(3, 1fr);
}
.card--featured {
  background: var(--blanc);
  border: 2px solid var(--bronze);
  box-shadow: 0 16px 36px -12px rgba(168, 123, 79, 0.25);
  transform: scale(1.02);
}
.card-tag {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  background: var(--bronze);
  color: var(--blanc);
  padding: .35rem .75rem;
  font-weight: 500;
}

/* ── FAQ (Balises HTML Natives details / summary) ───────────────── */
.faq {
  max-width: 52rem;
  margin-inline: auto;
}
details {
  border-bottom: 1px solid var(--line-light);
  padding: 1.6rem 0;
  transition: padding .3s;
}
details:first-of-type { border-top: 1px solid var(--line-light); }
details[open] { padding-bottom: 2rem; }

summary {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--encre);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: color .3s;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--bronze);
  transition: transform .35s var(--ease);
}
details[open] summary::after {
  transform: rotate(45deg);
}
summary:hover { color: var(--bronze-fonce); }

.faq-body {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ── RENDEZ-VOUS & CONTACT (Labels flottants + Traitement Mailto) ── */
.rdv-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: stretch;
}

.rdv-contact {
  background: var(--blanc);
  border: 1px solid var(--line-light);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px -10px rgba(42, 37, 32, 0.08);
  display: flex;
  flex-direction: column;
}
.rdv-map-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  background: var(--sable);
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}
.rdv-map-wrap iframe {
  width: 100%;
  height: calc(100% + 42px);
  margin-top: 0;
  border: 0;
  display: block;
}
.rdv-contact-body {
  padding: 2.4rem 2.4rem 2rem;
  flex: 1;
}
.rdv-contact-label {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.rdv-phone {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--bronze-fonce);
  display: block;
  margin-bottom: .8rem;
  transition: color .3s;
}
.rdv-phone:hover { color: var(--encre); }
.rdv-urgence {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .92rem;
  color: var(--muted);
}

.rdv-form {
  background: var(--blanc);
  border: 1px solid var(--line-light);
  padding: 3.2rem 2.8rem;
  box-shadow: 0 14px 34px -10px rgba(42, 37, 32, 0.08);
  display: flex;
  flex-direction: column;
}

.rdv-form .field--textarea {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}
.rdv-form .field--textarea textarea {
  flex: 1;
  min-height: 100px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.field {
  position: relative;
  margin-bottom: 1.8rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--encre);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-light);
  padding: 1rem 0 .5rem;
  border-radius: 0;
  transition: border-color .3s;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--bronze);
}

/* Labels flottants CSS purs */
.field label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: .95rem;
  color: var(--muted);
  pointer-events: none;
  transition: top .3s var(--ease), font-size .3s var(--ease), color .3s;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: -.5rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze-fonce);
}

.field--select label {
  position: static;
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze-fonce);
  margin-bottom: .4rem;
}

/* Interrupteur Urgence */
.toggle {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  margin-bottom: 2.2rem;
  user-select: none;
}
.toggle input { display: none; }
.toggle-track {
  width: 44px;
  height: 24px;
  background: #dcd6cb;
  border-radius: 12px;
  position: relative;
  transition: background .3s;
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--blanc);
  border-radius: 50%;
  transition: transform .3s var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle input:checked ~ .toggle-track {
  background: #f87171;
}
.toggle input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(20px);
}
.toggle-label {
  font-size: .92rem;
  color: var(--encre);
}

.form-feedback {
  display: none;
  background: rgba(195, 160, 95, 0.12);
  border: 1px solid var(--bronze);
  padding: 1.2rem 1.5rem;
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--encre);
}
.form-feedback.show { display: block; }
.form-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.2rem;
  line-height: 1.5;
}

/* ── FOOTER (Sombre & Complet) ─────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--grege);
  border-top: 1px solid var(--line-dark);
  padding: 5.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand .brand-mark {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--muted-clair);
  font-size: .95rem;
  max-width: 32ch;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.footer-nav a {
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-clair);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--gold-soft); }

.footer-contact p {
  color: var(--muted-clair);
  font-size: .95rem;
  line-height: 1.6;
}
.footer-contact a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal {
  border-top: 1px solid rgba(246, 243, 238, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--muted-clair);
}
.footer-legal a { color: var(--muted-clair); }
.footer-legal a:hover { color: var(--blanc); }

/* ── ANIMATIONS AU SCROLL NATIVES CSS (View Timeline) ──────────── */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    animation: scrollFadeIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 28%;
  }
  @keyframes scrollFadeIn {
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@supports not (animation-timeline: view()) {
  /* Dégradation gracieuse : éléments visibles immédiatement */
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 64rem) {
  .cards, .mist-points, .steps, .cabinet-grid, .cards--fees {
    grid-template-columns: 1fr 1fr;
  }
  .mist-grid, .rdv-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .rdv-form .field--textarea {
    flex: initial;
    min-height: auto;
  }
}

/* Menu mobile : la barre complète (6 liens + tél + CTA) ne tient plus
   au-dessous de ~1165px, on bascule donc sur le burger bien avant 48rem. */
@media (max-width: 74rem) {
  .burger { 
    display: flex;
    z-index: 120;
    position: relative;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 105;
    background: #0b0f16;
    background: rgba(11, 15, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    padding: calc(var(--header-h) + 1rem) 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s ease, transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    font-size: 1.05rem;
    letter-spacing: .25em;
    padding: .5rem 1rem;
    text-align: center;
  }
  #nav-toggle:checked ~ .nav .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  #nav-toggle:not(:checked) ~ .nav .nav-links {
    pointer-events: none;
  }
  #nav-toggle:checked ~ .nav {
    background: rgba(11, 15, 22, 0.98);
    /* Le backdrop-filter de la barre scrollée crée un "backdrop root" (et un
       containing block) qui casse le menu plein écran : on le retire tant que
       le menu est ouvert. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 48rem) {
  .hero-side, .scroll-hint, .brand-name small, .monogram { display: none; }
  .cards, .mist-points, .steps, .cabinet-grid, .cards--fees, .field-row {
    grid-template-columns: 1fr;
  }
  .pillars-grid { grid-template-columns: 1fr; }
  .card--featured { transform: none; }

  /* Optimisation Hero Mobile */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    padding-bottom: 1.5rem;
  }
  .hero::before {
    background-position: center 30%;
    /* Accentuer l'obscurcissement vertical pour garder une lisibilité parfaite */
    background-image:
      linear-gradient(180deg, rgba(9, 13, 19, 0.88) 0%, rgba(13, 18, 25, 0.82) 45%, #0b0f16 100%),
      var(--hero-img);
  }
  .hero-inner {
    padding: 1rem 0 1.5rem;
  }
  .hero-title {
    font-size: clamp(2.35rem, 10.5vw, 3.4rem);
    letter-spacing: .01em;
    line-height: 1.08;
    margin-bottom: .85rem;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  .hero-barreau {
    font-size: .72rem;
    letter-spacing: .22em;
    margin-top: 0;
    margin-bottom: 1.1rem;
    line-height: 1.35;
  }
  .rule {
    margin: 1rem 0;
    width: 4rem;
  }
  .hero-sub {
    font-size: 1rem;
    line-height: 1.55;
    max-width: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
    margin: 1.8rem 0 1.6rem;
  }
  .hero-actions .btn {
    width: 100%;
    padding: .9rem 1.4rem;
    letter-spacing: .18em;
    font-size: .75rem;
    text-align: center;
  }
  .hero-urgence {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding: .85rem 1rem;
    font-size: .88rem;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-urgence-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .85rem;
  }
  .hero-urgence-call {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
  }
  .hero-urgence a {
    font-size: 1.2rem;
  }

  /* Bandeau défilant (Ticker) sur mobile : éléments rapprochés + tiret */
  .ticker {
    padding: .65rem 0;
  }
  .ticker-track {
    animation-duration: 22s;
  }
  .ticker-track span {
    font-size: 1.02rem;
    gap: 1.2rem;
    padding-right: 1.2rem;
  }
  .ticker-track span i {
    display: inline-block;
    font-size: 0;
    line-height: 1;
  }
  .ticker-track span i::after {
    content: "—";
    font-size: .85rem;
    color: var(--bronze);
    letter-spacing: normal;
  }
}

/* Écrans très étroits (< 360px comme iPhone SE / Galaxy plié) */
@media (max-width: 23rem) {
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 2.35rem);
  }
  .eyebrow {
    font-size: .6rem;
    letter-spacing: .18em;
  }
}

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