/* =========================================================
   Mona Khouadja — Avocate au Barreau de Paris
   Feuille de style principale
   ========================================================= */

:root {
  /* Palette tirée du logo */
  --teal: #096663;
  --teal-deep: #064f4c;
  --teal-ink: #053b39;
  --teal-soft: #e3efec;
  --teal-mist: #f1f7f5;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #16221f;
  --muted: #5d6c69;
  --line: #d9e3e0;
  --line-strong: #b9cbc7;

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-sym: cubic-bezier(.45,0,.55,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--teal-ink);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); font-weight: 500; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--teal); }

.lead { font-size: 1.125rem; color: var(--muted); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border: 1px solid var(--teal); border-radius: 999px;
  font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--teal); background: transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--teal); color: var(--white); transform: translateY(-1px); }
.btn-solid { background: var(--teal); color: var(--white); }
.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--teal-deep); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; letter-spacing: .04em; font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- En-tête & navigation (onglets) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--teal); }
.brand svg { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.brand-title { font-size: 0.75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); opacity: .85; margin-top: 4px; }

.nav { display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-family: var(--font-body); font-size: 0.75rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav a::after, .nav button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav button:hover::after, .nav a[aria-current="page"]::after, .nav li.is-active > button::after { transform: scaleX(1); }
.nav a[aria-current="page"], .nav li.is-active > button { color: var(--teal); }
.nav .caret { width: 9px; height: 9px; transition: transform .3s var(--ease); }
.nav li.open > button .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 8px; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(7,58,54,.1); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav li:hover > .submenu, .nav li.open > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { display: block; }
.submenu a { display: block; padding: 12px 24px; font-size: 0.75rem; letter-spacing: .08em; text-transform: none; font-weight: 500; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--teal-mist); color: var(--teal); }
.submenu .submenu-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--teal); }

.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 12px 24px; font-size: 0.75rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--teal-ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 96px) 0 clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-mono { width: clamp(90px, 11vw, 140px); margin-bottom: 24px; color: var(--teal); }
.hero h1 { margin-bottom: 8px; }
.hero .hero-sub { font-family: var(--font-display); font-size: clamp(1.125rem, 1.8vw, 1.25rem); color: var(--teal); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; }
.hero .lead { max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-tags span { font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-art { color: var(--teal); }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(64px, 9vw, 96px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-teal { background: var(--teal-deep); color: rgba(255,255,255,.88); }
.section-teal h2, .section-teal h3 { color: var(--white); }
.section-teal .eyebrow { color: rgba(255,255,255,.8); }
.section-teal .eyebrow::before { background: rgba(255,255,255,.8); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Portrait */
.portrait { position: relative; max-width: 440px; }
.portrait img { border-radius: 2px; filter: saturate(.92); }
.portrait-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--teal); border-radius: 2px; z-index: -1;
}
.portrait-caption { margin-top: 24px; font-family: var(--font-display); color: var(--teal); font-size: 1rem; }
.portrait-caption small { display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Cartes domaines */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px 32px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  color: var(--ink);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(7,58,54,.09); border-color: var(--line-strong); color: var(--ink); }
.card .icon { width: 54px; height: 54px; color: var(--teal); }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.25rem; margin: 4px 0 0; }
.card p { color: var(--muted); font-size: 0.875rem; margin: 0; flex: 1; }
.card .link-arrow { margin-top: 4px; }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value h3 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 12px; }
.value h3 .num { font-family: var(--font-display); font-size: 0.875rem; color: var(--teal); letter-spacing: .1em; }
.value p { color: var(--muted); }
.section-teal .value p { color: rgba(255,255,255,.78); }
.section-teal .value h3 .num { color: rgba(255,255,255,.7); }

/* Bandeau CTA */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 640px; margin: 0 auto 12px; }
.cta-band p { max-width: 520px; margin: 0 auto 32px; }

/* ---------- En-tête de page intérieure ---------- */
.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 64px);
  background: linear-gradient(180deg, var(--white), var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-head .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { max-width: 560px; margin: 0; }
.page-head .art { color: var(--teal); justify-self: end; width: min(100%, 360px); }
.page-head .art svg { width: 100%; height: auto; }
.breadcrumb { font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* Contenu éditorial */
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 24px; margin-bottom: .5em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--teal); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 1px solid var(--teal); font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-ink); line-height: 1.4; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: 110px; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; }
.aside-box h4 { margin-bottom: 12px; }
.aside-box ul { list-style: none; padding: 0; margin: 0 0 16px; }
.aside-box li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.aside-box li:last-child { border-bottom: 0; }
.aside-box li a { color: var(--ink); display: flex; justify-content: space-between; }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--teal); }
.aside-box li a::after { content: "→"; opacity: .4; }
.aside-box .btn { width: 100%; }

/* Timeline parcours */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--teal); }
.timeline .when { font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 4px; }
.timeline h4 { margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* Faits clés */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.fact { border-top: 1px solid var(--teal); padding-top: 16px; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-ink); margin-bottom: 4px; }
.fact span { font-size: 0.875rem; color: var(--muted); }

/* Situations (listes en grille) */
.situations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; list-style: none; padding: 0; margin: 16px 0 0; }
.situations li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); }
.situations li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 1px; background: var(--teal); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); padding: 32px 24px; border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 1.875rem; color: var(--teal); display: block; margin-bottom: 8px; line-height: 1; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* Honoraires */
.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fee { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; }
.fee .icon { width: 48px; height: 48px; color: var(--teal); margin-bottom: 16px; }
.fee .icon svg { width: 100%; height: 100%; }
.fee h3 { font-size: 1.25rem; }
.fee p { color: var(--muted); font-size: 0.875rem; margin: 0; }
.note { background: var(--teal-mist); border-left: 2px solid var(--teal); padding: 24px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin: 0; }

/* FAQ / accordéon */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--teal); font-size: 1.25rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 720px; }

/* ---------- Formulaire de contact ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 16px; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(9,102,99,.14); }
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23096663' stroke-width='1.3'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--teal); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 0.75rem; }
.form-success { display: none; background: var(--teal-mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { margin: 0; color: var(--muted); }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: block; }

.contact-info h3 { font-size: 1.25rem; }
.contact-info p { color: var(--muted); }
.contact-info .art { color: var(--teal); max-width: 320px; margin-top: 32px; }
.contact-info .art svg { width: 100%; height: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--teal-ink); color: rgba(255,255,255,.8); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-name, .site-footer .brand-title { color: var(--white); }
.site-footer p { font-size: 0.875rem; max-width: 380px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: 0.875rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 0.75rem; color: rgba(255,255,255,.55); }
.footer-bottom a { font-size: 0.75rem; color: rgba(255,255,255,.55); }

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

/* Dessin au trait animé */
.draw path, .draw line, .draw circle, .draw polyline, .draw rect, .draw ellipse { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s var(--ease) forwards; }
.draw .d2 { animation-delay: .5s; }
.draw .d3 { animation-delay: .8s; }
.draw .d4 { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw * { animation: none !important; stroke-dashoffset: 0 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .aside { position: static; }
  .page-head .container { grid-template-columns: 1fr; }
  .page-head .art { display: none; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-header .container { height: 72px; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--paper); z-index: 40;
    padding: 24px 16px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 0.875rem; }
  .nav a::after, .nav button::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px; display: none; min-width: 0; }
  .nav li.open > .submenu { display: block; }
  .submenu li { border: 0; }
  .submenu a { padding: 12px 16px; font-size: 0.875rem; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; padding: 16px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .portrait { margin-inline: auto; }
  .values, .steps, .fees, .facts { grid-template-columns: 1fr; }
  .situations { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .portrait-frame::before { inset: 12px -12px -12px 12px; }
}

/* ---------- Logo (fichiers détourés) ---------- */
.brand img { width: 46px; height: 46px; object-fit: contain; }
.site-header .brand img { transition: transform .5s var(--ease); }
.site-header .brand:hover img { transform: scale(1.04); }
.hero-logo { width: min(100%, 330px); margin-bottom: 32px; }
.hero-logo img { width: 100%; height: auto; }
.site-footer .footer-logo { width: 150px; margin-bottom: 24px; }
.site-footer .footer-logo img { width: 100%; height: auto; opacity: .95; }
@media (max-width: 860px) {
  .brand img { width: 40px; height: 40px; }
  .hero-logo { width: min(100%, 260px); margin-inline: auto; }
  .hero .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
}

/* ---------- Menu : pas de retour à la ligne, version compacte sur écrans moyens ---------- */
.brand-text, .nav a, .nav button { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1260px) {
  .nav a, .nav button { padding: 8px 8px; font-size: 0.75rem; letter-spacing: .1em; }
  .nav a::after, .nav button::after { left: 10px; right: 10px; }
  .nav-cta { display: none; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Variantes de grilles ---------- */
.contact-cols { grid-template-columns: 1fr 360px; }
.cards-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .contact-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards-two { grid-template-columns: 1fr; } }

/* ---------- Menu mobile : l'en-tête ne doit pas servir de conteneur au panneau fixé ---------- */
@media (max-width: 860px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .nav ul { width: 100%; }
}

/* ---------- Sous-menu mobile replié par défaut ---------- */
@media (max-width: 860px) {
  .nav ul.submenu { display: none; }
  .nav li.open > ul.submenu { display: flex; flex-direction: column; }
}

/* ---------- Bouton « Prendre contact » du menu : priorité sur le style des liens du menu ---------- */
.nav .nav-cta .btn { background: var(--teal); color: var(--white); border: 1px solid var(--teal); border-radius: 999px; padding: 12px 24px; justify-content: center; letter-spacing: .14em; }
.nav .nav-cta .btn::after { display: none; }
.nav .nav-cta .btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
@media (max-width: 860px) { .nav .nav-cta .btn { width: 100%; padding: 16px; } }

/* ---------- En-tête : respiration entre le nom et les onglets sur grand écran ---------- */
.site-header .container { width: min(100% - 32px, 1220px); }
.nav a, .nav button { font-size: 0.75rem; letter-spacing: .12em; padding: 8px 12px; }
.nav a::after, .nav button::after { left: 12px; right: 12px; }
.brand-name { font-size: 1.125rem; }
.nav-cta { margin-left: 8px; }
@media (min-width: 861px) and (max-width: 1260px) {
  .nav a, .nav button { padding: 8px 8px; font-size: 0.75rem; letter-spacing: .1em; }
  .nav a::after, .nav button::after { left: 10px; right: 10px; }
  .nav-cta { display: none; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Sous-menu desktop : liste verticale (corrige un débordement horizontal) ---------- */
@media (min-width: 861px) {
  .nav ul.submenu { display: block; width: max-content; min-width: 300px; max-width: 360px; }
}
html, body { overflow-x: clip; }

/* ---------- Fonds unis pour les en-têtes (évite les bandes du dégradé entre deux blancs proches) ---------- */
.hero, .page-head { background: var(--white); }

/* =========================================================
   Animations (ouverture, titres, défilement, micro-interactions)
   ========================================================= */

/* Ouverture du site */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--white); }
.intro.is-leaving { animation: intro-wipe .8s var(--ease) .3s forwards; }
@keyframes intro-wipe { to { clip-path: inset(0 0 100% 0); } }
.intro-mark {
  --mw: clamp(120px, 15vw, 180px);
  position: fixed; z-index: 301; width: var(--mw); height: var(--mw); object-fit: contain;
  left: 50%; top: 50%; margin: calc(var(--mw) / -2) 0 0 calc(var(--mw) / -2);
  opacity: 0; animation: intro-in .9s var(--ease) .3s forwards;
}
@keyframes intro-in { from { opacity: 0; transform: scale(.88) translateY(12px); } to { opacity: 1; transform: none; } }
.intro-mark.is-flying { animation: none; opacity: 1; transition: transform .9s var(--ease); }
html.intro-skip .intro, html.intro-skip .intro-mark { display: none; }
html:not(.intro-done) .site-header .brand img { opacity: 0; }
html:not(.intro-done) .draw * { animation-play-state: paused; }

/* Titres mot à mot */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .14em 0; margin-bottom: -.14em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); transition: transform .95s var(--ease); }
html.intro-done .split-words.is-in .w > span { transform: none; }

/* Palais de justice séquencé + lanterne */
.draw .d3 path:nth-child(1) { animation-delay: .7s; }
.draw .d3 path:nth-child(2) { animation-delay: .85s; }
.draw .d3 path:nth-child(3) { animation-delay: 1s; }
.draw .d3 path:nth-child(4) { animation-delay: 1.15s; }
.draw .d3 path:nth-child(5) { animation-delay: 1.3s; }
.draw .d3 path:nth-child(6) { animation-delay: 1.45s; }
.draw .d4 { animation-delay: 1.5s; }
.draw .glow { stroke: none; opacity: 0; animation: glow 3.2s var(--ease-sym) 2.8s infinite alternate; transform-origin: 60px 251px; transform-box: view-box; }
@keyframes glow { from { opacity: 0; transform: scale(.7); } to { opacity: .16; transform: scale(1.15); } }

/* Transitions entre les pages */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) forwards; }
::view-transition-new(root) { animation: vt-in .55s var(--ease); }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.view-enter { animation: vt-in .55s var(--ease); }

/* Menu déroulant en cascade */
.submenu li { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nav li:hover > .submenu li, .nav li.open > .submenu li, .nav li:focus-within > .submenu li { opacity: 1; transform: none; }
.submenu li:nth-child(1) { transition-delay: .04s; }
.submenu li:nth-child(2) { transition-delay: .09s; }
.submenu li:nth-child(3) { transition-delay: .14s; }
.submenu li:nth-child(4) { transition-delay: .19s; }
.submenu li:nth-child(5) { transition-delay: .26s; }

/* En-tête compact, masqué à la descente */
.site-header { transition: transform .5s var(--ease), box-shadow .3s; }
.site-header .container { transition: height .3s var(--ease); }
.site-header .brand img { transition: transform .3s var(--ease), opacity .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(7,58,54,.06); }
.site-header.is-scrolled .container { height: 68px; }
.site-header.is-scrolled .brand img { transform: scale(.86); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Parallaxe */
.hero-art svg, .hero-logo img { will-change: transform; }

/* Portrait : balayage, zoom, cadre qui se trace */
.portrait { overflow: visible; }
.portrait img { transform: scale(1.06); transition: transform 1.3s var(--ease) .3s; }
.portrait.is-visible img { transform: none; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--teal); transform: scaleX(1); transform-origin: right; transition: transform 1s var(--ease) .3s; pointer-events: none; }
.portrait.is-visible .portrait-frame::after { transform: scaleX(0); }
.portrait-frame::before { clip-path: inset(0 100% 100% 0); transition: clip-path 1.1s var(--ease) .7s; }
.portrait.is-visible .portrait-frame::before { clip-path: inset(0); }

/* Frise du parcours */
.timeline { border-left: 0; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; }
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--teal); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform .3s linear; }
.timeline li { opacity: .3; transform: translateX(-8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.timeline li.is-lit { opacity: 1; transform: none; }
.timeline li::before { transition: background .5s, box-shadow .5s; }
.timeline li.is-lit::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(9,102,99,.14); }

/* Traits qui se tracent */
.reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .3s; }
.reveal.is-visible .eyebrow::before { transform: scaleX(1); }
.fact { border-top-color: transparent; position: relative; }
.fact::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.reveal.is-visible .fact::before { transform: scaleX(1); }
.reveal.is-visible .fact:nth-child(2)::before { transition-delay: .3s; }
.reveal.is-visible .fact:nth-child(3)::before { transition-delay: .3s; }
.situations li { border-bottom-color: transparent; }
.situations li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.reveal.is-visible .situations li::after { transform: scaleX(1); }
.situations li:nth-child(2)::after { transition-delay: .06s; }
.situations li:nth-child(3)::after { transition-delay: .3s; }
.situations li:nth-child(4)::after { transition-delay: .18s; }
.situations li:nth-child(5)::after { transition-delay: .24s; }
.situations li:nth-child(6)::after { transition-delay: .3s; }
.situations li:nth-child(7)::after { transition-delay: .36s; }
.situations li:nth-child(8)::after { transition-delay: .42s; }
.situations li:nth-child(9)::after { transition-delay: .48s; }
.situations li:nth-child(10)::after { transition-delay: .54s; }

/* Cartes : liseré et icônes réactives */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover::before { transform: scaleX(1); }
.card .icon .beam { transform-origin: 32px 20px; transform-box: view-box; }
.card:hover .icon .beam { animation: rock 1.8s var(--ease-sym) infinite; }
@keyframes rock { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 70% { transform: rotate(6deg); } }
.card .icon .leaves { transform-origin: 32px 56px; transform-box: view-box; transition: transform .7s var(--ease); }
.card:hover .icon .leaves { transform: scale(1.1); }
.card:hover .icon .fam { animation: bob 1.4s var(--ease-sym) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.card .icon .check { stroke-dasharray: 40; stroke-dashoffset: 0; }
.card:hover .icon .check { animation: drawcheck .8s var(--ease) forwards; }
@keyframes drawcheck { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* Illustrations de page : mouvements lents en boucle */
.page-head .art .beam { transform-origin: 180px 64px; transform-box: view-box; animation: rock-slow 7s var(--ease-sym) 3s infinite; }
@keyframes rock-slow { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }
.page-head .art .leaves { transform-origin: 180px 196px; transform-box: view-box; animation: sway 6s var(--ease-sym) 3s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2deg); } }

/* Formulaire : libellé actif, enveloppe, bouton qui valide */
.field label { transition: color .3s; }
.field:focus-within label { color: var(--teal); }
.contact-info .art .flap { transform-origin: 160px 52px; transform-box: view-box; transition: transform .7s var(--ease); }
.contact-info .art.is-open .flap { transform: scaleY(-1); }
.btn-send { position: relative; min-width: 230px; }
.btn-send .btn-label { transition: opacity .3s; }
.btn-send .btn-check { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; opacity: 0; }
.btn-send.is-sending { pointer-events: none; }
.btn-send.is-sending .btn-label { opacity: 0; }
.btn-send.is-sending::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-send.is-done::after { display: none; }
.btn-send.is-done .btn-check { opacity: 1; animation: drawcheck-btn .5s var(--ease) forwards; }
@keyframes drawcheck-btn { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }

/* Menu mobile : panneau sous l'en-tête compact, entrées en file indienne */
@media (max-width: 860px) {
  .nav { inset: 0; padding-top: 96px; }
  .site-header.is-scrolled .container { height: 64px; }
  .nav > ul > li, .nav .nav-cta { opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.is-open > ul > li, .nav.is-open .nav-cta { opacity: 1; transform: none; }
  .nav.is-open > ul > li:nth-child(1) { transition-delay: .06s; }
  .nav.is-open > ul > li:nth-child(2) { transition-delay: .11s; }
  .nav.is-open > ul > li:nth-child(3) { transition-delay: .16s; }
  .nav.is-open > ul > li:nth-child(4) { transition-delay: .21s; }
  .nav.is-open > ul > li:nth-child(5) { transition-delay: .26s; }
  .nav.is-open .nav-cta { transition-delay: .34s; }
}

/* Mouvement réduit : tout reste lisible, sans animation */
@media (prefers-reduced-motion: reduce) {
  .intro, .intro-mark { display: none; }
  .split-words .w > span { transform: none !important; transition: none; }
  .portrait img, .portrait-frame::after, .portrait-frame::before { transition: none; transform: none; clip-path: none; }
  .portrait-frame::after { display: none; }
  .timeline li { opacity: 1; transform: none; }
  .timeline::after { transform: scaleY(1); }
  .reveal .eyebrow::before, .fact::before, .situations li::after { transform: scaleX(1); transition: none; }
  .card:hover .icon .beam, .card:hover .icon .fam, .page-head .art .beam, .page-head .art .leaves, .draw .glow { animation: none; }
  .site-header, .submenu li { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Mobile : le logo et la croix restent au-dessus du panneau du menu */
@media (max-width: 860px) {
  .site-header .container { position: relative; z-index: 60; }
}
@media (max-width: 860px) {
  .site-header .brand, .site-header .nav-toggle { position: relative; z-index: 45; }
}

/* ---------- Accueil : la première vue tient dans l'écran, illustration centrée en face du bloc ---------- */
@media (min-width: 861px) {
  .hero { min-height: calc(100vh - 85px); min-height: calc(100svh - 85px); display: flex; align-items: center; padding: clamp(16px, 3.5vw, 40px) 0 clamp(16px, 3.5vw, 32px); }
  .hero .container { grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
  .hero-logo { width: min(100%, 230px); margin-bottom: 16px; }
  .hero h1 { font-size: clamp(1.875rem, 3.5vw, 3rem); margin-bottom: 8px; }
  .hero .lead { font-size: 1rem; max-width: 500px; }
  .hero-actions { margin-top: 24px; }
  .hero-tags { margin-top: 24px; padding-top: 16px; }
  .hero-art { width: 100%; max-width: 560px; justify-self: end; }
}
@media (min-width: 861px) and (max-height: 700px) {
  .hero-logo { width: min(100%, 190px); margin-bottom: 12px; }
  .hero h1 { font-size: clamp(1.875rem, 3vw, 2.25rem); }
  .hero-tags { display: none; }
}

/* Calques du dessin d'accueil (parallaxe à la souris) */
.hero-art .layer { will-change: transform; }

/* =========================================================
   Animations, seconde vague
   ========================================================= */

/* Défilement inertiel (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.lenis-on { scroll-behavior: auto; }

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--teal); transform: scaleX(0); transform-origin: left; pointer-events: none; transition: opacity .3s; }
.progress.is-hidden { opacity: 0; }

/* Pastille « Prendre contact » sur mobile */
.fab { display: none; }
@media (max-width: 860px) {
  .fab { display: inline-flex; align-items: center; justify-content: center; position: fixed; left: 50%; bottom: 18px; z-index: 110; padding: 12px 24px; border-radius: 999px; background: var(--teal); color: var(--white); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; box-shadow: 0 12px 30px rgba(5,59,57,.28); transform: translate(-50%, 90px) scale(.9); opacity: 0; transition: transform .5s var(--ease), opacity .5s; pointer-events: none; }
  .fab.is-shown { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
}

/* Bandeau vert : lignes qui glissent et monogramme en filigrane */
.section-teal { position: relative; overflow: hidden; }
.section-teal::before { content: ""; position: absolute; inset: -60% -60%; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 32px); animation: lines-drift 7s linear infinite; pointer-events: none; }
@keyframes lines-drift { to { transform: translate(22.63px, -22.63px); } }
.section-teal > .container { position: relative; z-index: 1; }
.watermark { position: absolute; right: -3%; top: 50%; width: clamp(240px, 30vw, 520px); aspect-ratio: 1 / 1; background: url("../img/monogram-white.png") center / contain no-repeat; opacity: .07; transform: translateY(-50%) rotate(-6deg); pointer-events: none; will-change: transform; }

/* Bandeau défilant */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 12px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-style: normal; font-size: 1.25rem; color: var(--teal); padding: 0 32px; white-space: nowrap; position: relative; }
.marquee-track span::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); transform: translateY(-50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cartes en cascade et inclinaison 3D */
.cards .card:nth-child(2) { transition-delay: .1s; }
.cards .card:nth-child(3) { transition-delay: .3s; }
.cards .card:nth-child(4) { transition-delay: .3s; }
.cards .card.is-visible { transition-delay: 0s; }
.cards .card:nth-child(2).is-visible { transition-delay: .1s; }
.cards .card:nth-child(3).is-visible { transition-delay: .3s; }
.cards .card:nth-child(4).is-visible { transition-delay: .3s; }
.card.is-tilt { transition: transform .3s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(9,102,99,.12), transparent 55%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover::after { opacity: 1; }

/* Boutons magnétiques */
.btn.is-magnet { transition: transform .5s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s; }

/* Lettres du menu qui basculent */
.flip { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.flip-l { display: inline-block; position: relative; transition: transform .5s var(--ease); }
.flip-l > span { display: block; }
.flip-l > span + span { position: absolute; left: 0; top: 100%; }
.nav > ul > li > a:hover .flip-l, .nav > ul > li > button:hover .flip-l { transform: translateY(-100%); }
@media (max-width: 860px) { .flip-l { transition: none; } .nav > ul > li > a:hover .flip-l, .nav > ul > li > button:hover .flip-l { transform: none; } }

/* Enveloppe qui s'envole */
.contact-info .art.is-flying { animation: fly .9s var(--ease) forwards; }
@keyframes fly { 25% { transform: translateY(8px); opacity: 1; } 100% { transform: translateY(-160px) scale(.9); opacity: 0; } }

/* Portrait épinglé sur la page Le Cabinet */
.cabinet-pin { align-items: start; }
.cabinet-pin .portrait-col { position: sticky; top: 110px; }
.cabinet-pin .parcours { margin-top: 64px; }
.brief { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.brief .eyebrow { grid-column: 1 / -1; margin: 0; }
.brief-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.brief-list li { position: relative; padding-left: 16px; font-size: 0.875rem; color: var(--muted); }
.brief-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--teal); }
@media (max-width: 860px) {
  .cabinet-pin .portrait-col { position: static; }
  .cabinet-pin .parcours { margin-top: 48px; }
  .brief { grid-template-columns: 1fr; }
}

/* Volet entre les vues du fichier unique */
.wipe { position: fixed; inset: 0; z-index: 250; background: var(--teal-deep); transform: scaleX(0); transform-origin: left; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.wipe img { width: 84px; height: 84px; object-fit: contain; opacity: 0; transition: opacity .3s .3s; }
.wipe.in { transform: scaleX(1); transition: transform .5s var(--ease); }
.wipe.in img { opacity: .9; }
.wipe.out { transform-origin: right; transform: scaleX(0); transition: transform .5s var(--ease); }
.wipe.out img { opacity: 0; transition: opacity .3s; }

/* Bouton « réduire les animations » */
.motion-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 0.75rem; color: rgba(255,255,255,.55); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle:hover { color: var(--white); }

/* Préférence « réduire les animations » choisie sur le site (même effet que le réglage système) */
html.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }
html.reduce-motion .draw * { animation: none !important; stroke-dashoffset: 0 !important; }
html.reduce-motion .intro, html.reduce-motion .intro-mark { display: none; }
html.reduce-motion .split-words .w > span { transform: none !important; transition: none; }
html.reduce-motion .portrait img, html.reduce-motion .portrait-frame::before { transition: none; transform: none; clip-path: none; }
html.reduce-motion .portrait-frame::after { display: none; }
html.reduce-motion .timeline li { opacity: 1; transform: none; }
html.reduce-motion .timeline::after { transform: scaleY(1); }
html.reduce-motion .reveal .eyebrow::before, html.reduce-motion .fact::before, html.reduce-motion .situations li::after { transform: scaleX(1); transition: none; }
html.reduce-motion .card:hover .icon .beam, html.reduce-motion .card:hover .icon .fam, html.reduce-motion .page-head .art .beam, html.reduce-motion .page-head .art .leaves, html.reduce-motion .draw .glow, html.reduce-motion .marquee-track, html.reduce-motion .section-teal::before { animation: none; }
html.reduce-motion .site-header, html.reduce-motion .submenu li, html.reduce-motion .flip-l, html.reduce-motion .card, html.reduce-motion .btn { transition: none; }
html.reduce-motion .nav > ul > li > a:hover .flip-l, html.reduce-motion .nav > ul > li > button:hover .flip-l { transform: none; }
html.reduce-motion .hero-art .layer, html.reduce-motion .hero-art svg, html.reduce-motion .hero-logo img { transform: none !important; }
html.reduce-motion .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .section-teal::before { animation: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .flip-l, .card, .btn { transition: none; }
  .nav > ul > li > a:hover .flip-l, .nav > ul > li > button:hover .flip-l { transform: none; }
  .fab { transition: none; }
}

/* Cadre et balayage limités à la photo (la légende reste en dehors) */
.portrait-frame { position: relative; }

/* =========================================================
   Blog : fiches pratiques
   ========================================================= */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.post-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(7,58,54,.09); border-color: var(--line-strong); color: var(--ink); }
.post-card:hover::before { transform: scaleX(1); }
.post-card .cat { font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.post-card h3 { font-size: 1.25rem; margin: 2px 0 0; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 0.875rem; margin: 0; flex: 1; }
.post-card .meta { font-size: 0.75rem; color: var(--muted); letter-spacing: .06em; }
.blog-section + .blog-section { margin-top: clamp(40px, 6vw, 80px); }
.blog-section h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 24px; scroll-margin-top: 96px; }
.blog-section h2 .link-arrow { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: .1em; }
.article { max-width: 740px; }
.article h2 { margin-top: 2.2em; scroll-margin-top: 96px; }
.article h3 { margin-top: 1.5em; font-size: 1.25rem; }
.article .takeaways { margin: 2.6em 0; }
.article .takeaways h2 { margin: 0 0 .6em; font-size: 1.25rem; }
.article .takeaways ul { margin: 0; }
.article .faq { margin-top: 1.2em; }
.disclaimer { margin-top: 3em; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.author { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author strong { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; color: var(--teal-ink); display: block; margin-bottom: 2px; }
.author span { font-size: 0.875rem; color: var(--muted); }
.toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.toc li:last-child { border-bottom: 0; }
.toc a { color: var(--ink); display: flex; gap: 12px; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-display); color: var(--teal); }
.toc a:hover { color: var(--teal); }
.aside-box + .aside-box { margin-top: 16px; }
.aside-box .link-arrow { display: inline-flex; margin-top: 12px; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* Menu : six onglets sur une ligne au-dessus de 1260 px */
@media (min-width: 1261px) {
  .nav a, .nav button { padding: 8px 8px; letter-spacing: .11em; font-size: 0.75rem; }
  .nav a::after, .nav button::after { left: 10px; right: 10px; }
}

/* =========================================================
   V2 — règles issues des skills Elaya Design (redesign / landing page)
   ========================================================= */

/* Typographie : mesure, césures, orphelins, chiffres tabulaires, graisses */
body { font-size: 1rem; line-height: 1.6; }
h1, h2, h3, h4 { text-wrap: balance; hyphens: none; }
p, li, .lead, .field label { text-wrap: pretty; hyphens: none; }
h1 { letter-spacing: -.01em; }
.prose p, .prose li, .lead { max-width: 65ch; }
.timeline .when, .fact strong, .article-meta, .toc a::before { font-variant-numeric: tabular-nums; }
.lead { font-weight: 400; }
strong { font-weight: 600; }
.brand-title { font-size: 10px; }

/* Boutons : minuscules, demi-gras, remplissage sur l'échelle, état pressé */
.btn { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; padding: 8px 16px; min-height: 44px; }
.nav-cta .btn, .nav .nav-cta .btn { font-size: .875rem; padding: 8px 16px; min-height: 40px; letter-spacing: 0; }
.btn-send { min-width: 0; }
.btn:active { transform: scale(.98) !important; }
.link-arrow { font-size: 1rem; letter-spacing: 0; font-weight: 600; }

/* Accessibilité : anneau de focus visible, lien d'évitement */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: 999px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 400; background: var(--teal); color: var(--white); padding: 8px 16px; border-radius: 999px; font-weight: 600; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }

/* Formulaire : erreurs en ligne, barre de progression au lieu de la roue */
.field-error { color: #9a3b2e; font-size: .875rem; margin: 4px 0 0; }
.is-invalid { border-color: #b4483a !important; }
.btn-send.is-sending::after { top: auto; bottom: 6px; left: 16px; right: 16px; width: auto; height: 2px; margin: 0; border: 0; border-radius: 0; background: rgba(255,255,255,.9); transform-origin: left; animation: bar 1.2s var(--ease) infinite; }
@keyframes bar { 0% { transform: scaleX(0); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: left; } 56% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* Surfaces : bordures sur tous les côtés ou aucun, ombres teintées, radius */
.note { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 4px; }
.prose blockquote { border: 0; padding: 0; font-size: 1.5rem; color: var(--teal); }
.prose blockquote::before { content: "« "; } .prose blockquote::after { content: " »"; }
.card, .post-card, .step, .fee, .aside-box, .author { border-radius: 8px; }
.card::before { height: 2px; }

/* Espacement : un cran de plus, bas légèrement supérieur au haut */
.section { padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 9vw, 96px); }
.section-tight { padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); }
.section-head { margin-bottom: clamp(32px, 5vw, 48px); }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; }
.center { text-align: center; } .jc-center { justify-content: center; }

/* Mise en page : casser les colonnes égales */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a a b" "c d d"; gap: 24px; }
.cards .card:nth-child(1) { grid-area: a; } .cards .card:nth-child(2) { grid-area: b; }
.cards .card:nth-child(3) { grid-area: c; } .cards .card:nth-child(4) { grid-area: d; }
.cards .card:nth-child(1), .cards .card:nth-child(4) { padding: 40px 40px 32px; }
.cards .card:nth-child(1) h3, .cards .card:nth-child(4) h3 { font-size: 1.875rem; }
.cards .card:nth-child(1) p, .cards .card:nth-child(4) p { max-width: 46ch; }
.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: none; }
.cards-two .card { grid-area: auto; padding: 32px 24px 24px; }
.cards-two .card h3 { font-size: 1.25rem; }
.values { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.value h3 .num { min-width: 32px; }
.value:nth-child(even) { padding-left: 0; }
.value h3 { margin: 0; } .value p { margin: 0; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.how li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; max-width: 760px; }
.how li:nth-child(2) { margin-left: 12%; } .how li:nth-child(3) { margin-left: 24%; }
.how .num { font-family: var(--font-display); font-size: 1.875rem; color: var(--teal); line-height: 1; }
.how h3 { font-size: 1.25rem; margin: 0 0 4px; } .how p { margin: 0; color: var(--muted); }

/* Phrase manifeste révélée mot à mot */
.tagline-section { padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 9vw, 96px); }
.tagline { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; color: var(--teal-ink); max-width: 680px; margin: 0; }
.split-fade span { opacity: .3; transition: opacity .5s var(--ease); }
.split-fade.is-in span { opacity: 1; }

/* FAQ côte à côte */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px 64px; align-items: start; }
.faq-grid .faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font-size: 1.25rem; padding: 16px 0; }

/* Preuve sous le titre d'accueil, lien secondaire */
.hero-actions { align-items: center; gap: 24px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); position: relative; }
.hero-proof span + span::before { content: "·"; margin-right: 16px; color: var(--line-strong); }

/* Mouvement : apparitions plus franches, en-tête sans animation de hauteur */
.reveal { transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.site-header .container { transition: none; }
.site-header.is-scrolled .container { height: 84px; }

/* Navigation flottante sur ordinateur, panneau mobile flouté */
@media (min-width: 861px) {
  .site-header { top: 12px; width: min(100% - 32px, 1200px); margin: 12px auto 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.74); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 8px 32px rgba(7,58,54,.06); }
  .site-header .container, .site-header.is-scrolled .container { width: 100%; height: 64px; padding: 0 8px 0 24px; }
  .site-header .brand img, .site-header.is-scrolled .brand img { width: 36px; height: 36px; transform: none; }
  .brand-name { font-size: 1rem; }
  .site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }
  .hero { min-height: calc(100svh - 88px); }
}
@media (max-width: 860px) {
  .nav { background: rgba(251,250,246,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .site-header.is-scrolled .container { height: 72px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d d"; }
  .value, .value:nth-child(even) { grid-template-columns: 1fr; padding-left: 0; }
  .how li, .how li:nth-child(2), .how li:nth-child(3) { margin-left: 0; grid-template-columns: 48px minmax(0, 1fr); padding: 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .cards .card:nth-child(1), .cards .card:nth-child(4) { padding: 32px 24px 24px; }
}

.check label { font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }

/* Ligne de preuve : texte en ligne, le point reste collé au mot précédent (jamais en début de ligne) */
.hero-proof { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.9; text-wrap: pretty; }
.hero-proof span { display: inline; }
.hero-proof span + span::before { content: none; }

/* Phrase manifeste en Manrope, plus posée */
.tagline { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.25; letter-spacing: -.01em; max-width: 720px; }

/* Bodoni Moda en version « texte » : déliés plus présents, même caractère que le logo */
h1, h2, h3, h4, .brand-name, .portrait-caption, .fact strong, .how .num, .value h3 .num, .step::before, .prose blockquote, .faq summary, .timeline h4, .author strong {
  font-optical-sizing: none; font-variation-settings: "opsz" 10; font-weight: 500;
}
h1 { font-variation-settings: "opsz" 9; font-weight: 600; }
.brand-name { font-variation-settings: "opsz" 12; }

/* Bouton du menu : même graisse que les autres boutons */
.nav .nav-cta .btn { font-weight: 600; }

/* Titre principal invisible (le logo porte le nom) et texte de présentation renforcé */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .lead { font-size: 1.25rem; max-width: 540px; }
.hero-logo { margin-bottom: 28px; }

/* Domaines d'intervention (accueil) : quatre colonnes égales, aucune mise en avant */
.cards:not(.cards-two) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: none; gap: 16px; }
.cards:not(.cards-two) .card { grid-area: auto; padding: 28px 24px 24px; }
.cards:not(.cards-two) .card .icon { width: 44px; height: 44px; }
.cards:not(.cards-two) .card h3 { font-size: 1.25rem; min-height: 2.5em; }
.cards:not(.cards-two) .card p { font-size: .875rem; max-width: none; }
@media (max-width: 1024px) { .cards:not(.cards-two) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards:not(.cards-two) { grid-template-columns: 1fr; } .cards:not(.cards-two) .card h3 { min-height: 0; } }

/* Page Domaines : grille 2 × 2 égale (neutralise les zones nommées de l'ancienne grille asymétrique) */
.cards.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: none; }
.cards.cards-two .card:nth-child(n) { grid-area: auto; padding: 32px 24px 24px; }
.cards.cards-two .card:nth-child(n) h3 { font-size: 1.25rem; }
.cards.cards-two .card:nth-child(n) p { max-width: none; }
@media (max-width: 560px) { .cards.cards-two { grid-template-columns: 1fr; } }


/* Formulaire : champ piège invisible et message d'erreur d'envoi */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border: 1px solid #efcfc8; border-radius: 8px; background: #fbefec; color: #8a3326; font-size: .9375rem; }
.form-alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
