/* ==========================================================================
   GROUPE EC PATRIMOINE — Design System
   Feuille de style unique, partagée par toutes les pages du site.
   Palette : navy #0D1B3E · or #C9A84C · clair #F0F2F7
   Typographies : Marcellus (titres) · Figtree (texte)
   ========================================================================== */

:root {
  --navy: #0D1B3E;
  --navy-deep: #091430;
  --gold: #C9A84C;
  --gold-soft: #DDC58A;
  --light: #F0F2F7;
  --white: #FFFFFF;
  --ink: #1C2438;
  --muted: #5C6478;
  --hairline: rgba(13, 27, 62, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.18);
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1180px;
  --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::after { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--gold); margin-left: 12px; vertical-align: middle; }

.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--hairline-light); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--hairline); }
.btn-outline-navy:hover { border-color: var(--gold); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: 0.14em; color: var(--navy); text-transform: uppercase; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a { font-size: 0.95rem; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; }
.main-nav > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.25s ease; }
.main-nav > a:hover::after, .main-nav > a.active::after { width: 100%; }

.nav-group { position: relative; }
.nav-group > button {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--ink);
  background: none; border: none; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-group > button .caret { width: 8px; height: 8px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.nav-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 300px; background: var(--white); border: 1px solid var(--hairline);
  box-shadow: 0 18px 44px rgba(13, 27, 62, 0.10);
  padding: 10px 0; opacity: 0; visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.3s;
}
.nav-group:hover .nav-panel, .nav-group:focus-within .nav-panel {
  opacity: 1; visibility: visible;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}
@media (min-width: 901px) {
  .nav-group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 14px;
  }
}
.nav-panel a { display: block; padding: 11px 24px; font-size: 0.94rem; color: var(--ink); }
.nav-panel a:hover { background: var(--light); color: var(--navy); }
.nav-panel a span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 1px; }

.header-cta { margin-left: 8px; padding: 12px 24px; font-size: 0.9rem; }

/* Burger mobile */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Hero (photo plein écran) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background:
    linear-gradient(to bottom, rgba(9, 20, 48, 0.50), rgba(9, 20, 48, 0.66) 60%, var(--navy-deep) 100%),
    url('../img/ecp_accueil.jpg') center center / cover no-repeat;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 28px 140px;
  text-align: center;
  position: relative;
}
.hero .eyebrow::after { display: none; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .hero-sub { font-size: 1.16rem; color: rgba(255, 255, 255, 0.82); max-width: 58ch; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-note { font-size: 0.86rem; color: rgba(255, 255, 255, 0.58); margin-top: 20px; }

/* Bandeau chiffres sous le hero */
.stats-band { background: var(--navy-deep); color: var(--white); border-top: 1px solid var(--hairline-light); }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 16px; border-left: 1px solid var(--hairline-light); }
.stat:first-child { border-left: none; }
.stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold-soft); display: block; }
.stat-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* Interlude photographique */
.interlude {
  min-height: 480px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(9, 20, 48, 0.62), rgba(9, 20, 48, 0.62)),
    url('../img/hero-paris.jpg') center 8% / cover no-repeat;
  color: var(--white);
}
.interlude-quote { max-width: 720px; margin: 0 auto; text-align: center; padding: 80px 28px; }
.interlude-quote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; }
.interlude-quote cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.hidden { display: none !important; }

/* ---------- Modal (confirmation / demande de renseignement) ---------- */
.ecp-modal-overlay { position: fixed; inset: 0; background: rgba(13,27,62,0.55); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.ecp-modal { background: var(--white); max-width: 460px; width: 100%; padding: 40px 34px; position: relative; border-radius: 4px; box-shadow: 0 30px 80px rgba(13,27,62,0.32); }
.ecp-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.ecp-modal-close:hover { color: var(--navy); }
.ecp-modal-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #2f9e5c; font-size: 1.3rem; font-weight: 700; }
.ecp-modal h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; }
.ecp-modal p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.ecp-modal textarea { width: 100%; border: 1px solid var(--hairline); padding: 12px; font-family: var(--font-body); font-size: 0.95rem; margin: 16px 0; resize: vertical; min-height: 90px; border-radius: 2px; }
.ecp-modal textarea:focus { outline: none; border-color: var(--gold); }
.ecp-modal .btn { margin-top: 8px; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Profils (Vous êtes) ---------- */
.profil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.profil-card {
  background: var(--white);
  padding: 44px 32px 40px;
  display: flex; flex-direction: column;
  transition: background 0.25s ease;
  position: relative;
}
.profil-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: transparent; transition: background 0.25s ease; }
.profil-card:hover { background: var(--light); }
.profil-card:hover::before { background: var(--gold); }
.profil-initiale { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 22px; }
.profil-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.profil-card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.profil-link { font-size: 0.9rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.profil-link::after { content: " →"; color: var(--gold); }

/* ---------- Expertises ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.expertise-item { border-top: 1px solid var(--hairline); padding-top: 26px; }
.expertise-item h3 { margin-bottom: 8px; }
.expertise-item p { font-size: 0.97rem; color: var(--muted); margin-bottom: 12px; }
.expertise-item a { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.expertise-item a::after { content: " →"; color: var(--gold); }

/* ---------- Méthode ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.method-step { position: relative; padding-top: 8px; }
.method-num { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 16px; }
.method-step h3 { color: var(--white); font-size: 1.25rem; }
.method-step p { color: rgba(255, 255, 255, 0.72); font-size: 0.97rem; }
.method-step .duree { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }

/* ---------- Témoignages ---------- */
.temoin-note { display: flex; align-items: baseline; gap: 14px; justify-content: center; margin-bottom: 48px; }
.temoin-note .note { font-family: var(--font-display); font-size: 2.6rem; color: var(--navy); }
.temoin-note .sur { color: var(--muted); font-size: 0.95rem; }
.temoin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.temoin { border-left: 2px solid var(--gold); padding-left: 26px; }
.temoin blockquote { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.temoin figcaption { font-size: 0.88rem; color: var(--muted); }
.temoin figcaption strong { color: var(--navy); font-weight: 600; }

/* ---------- Article (blog) content helpers ---------- */
.article-callout { background: var(--light); border-left: 3px solid var(--gold); padding: 22px 26px; margin: 30px 0; font-size: 0.97rem; }
.article-callout strong { color: var(--navy); }
.article-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.article-compare > div { border: 1px solid var(--hairline); padding: 22px 24px; }
.article-compare h4 { font-size: 0.92rem; letter-spacing: 0.02em; color: var(--navy); margin-bottom: 12px; }
.article-compare ul { list-style: none; padding: 0; margin: 0; }
.article-compare li { font-size: 0.9rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.article-compare li:last-child { border-bottom: none; }
@media (max-width: 640px) { .article-compare { grid-template-columns: 1fr; } }

.article-table-wrap { margin: 30px 0; overflow-x: auto; }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.article-table caption { text-align: left; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-table th, .article-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hairline); }
.article-table thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--navy); }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table td.num, .article-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.article-table tbody tr.is-best td { background: var(--light); font-weight: 600; color: var(--navy); }

.article-chart-wrap { margin: 30px 0; }
.article-chart-caption { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-chart-wrap svg { width: 100%; height: auto; }
.article-chart-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.article-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.article-chart-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Cabinet ---------- */
.cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cabinet-engagements { list-style: none; padding: 0; margin: 26px 0 34px; }
.cabinet-engagements li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--hairline); position: relative; font-size: 0.99rem; }
.cabinet-engagements li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.associes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.associe { display: block; color: inherit; }
.associe img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(12%); margin-bottom: 16px; transition: filter 0.25s ease; }
.associe h4 { font-size: 1.08rem; margin-bottom: 2px; transition: color 0.25s ease; }
.associe .role { font-size: 0.84rem; color: var(--muted); letter-spacing: 0.04em; }
.associe:hover img { filter: grayscale(0%); }
.associe:hover h4 { color: var(--gold); }

/* ---------- Partenaires ---------- */
.partners { padding: 56px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.partners-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.partners-label { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.partners-viewport { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.partners-logos { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.partners-viewport:hover .partners-logos { animation-play-state: paused; }
.partners-logos img { height: 34px; width: auto; filter: grayscale(100%) opacity(0.55); transition: filter 0.25s ease; }
.partners-logos img:hover { filter: grayscale(0%) opacity(1); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partners-logos { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Rendez-vous ---------- */
.rdv-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.rdv-includes { list-style: none; padding: 0; margin: 28px 0; }
.rdv-includes li { padding: 12px 0 12px 30px; position: relative; font-size: 0.99rem; border-bottom: 1px solid var(--hairline); }
.rdv-includes li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.rdv-alt { font-size: 0.92rem; color: var(--muted); }
.rdv-alt a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }
.rdv-embed { background: var(--white); border: 1px solid var(--hairline); min-height: 640px; }
.meetings-iframe-container { min-height: 640px; }

/* ---------- Liens contextuels dans le texte ---------- */
.section p a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.section p a:hover { color: var(--gold); }

/* ---------- Ancres de navigation (menu Ressources) ---------- */
/* Empêche le header sticky de masquer le haut d'une section visée par un lien #ancre,
   et évite qu'un clic depuis le menu n'atterrisse sur une section qui semble vide. */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
#articles, #outils { padding-top: 40px; }
#articles .section-head, #outils .section-head { margin-bottom: 28px; }

/* ---------- Articles (Ressources) ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-tab {
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600;
  padding: 9px 20px; border: 1px solid var(--hairline); background: var(--white);
  color: var(--muted); border-radius: 20px; cursor: pointer; transition: all 0.2s ease;
}
.filter-tab:hover { border-color: var(--gold); color: var(--navy); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card {
  display: flex; flex-direction: column; border: 1px solid var(--hairline);
  background: var(--white); transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.article-card:hover { box-shadow: 0 18px 40px rgba(13, 27, 62, 0.12); transform: translateY(-3px); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card .article-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .article-meta { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.article-card p { font-size: 0.9rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.article-card .article-link { font-size: 0.87rem; font-weight: 600; color: var(--navy); }
.article-card .article-link::after { content: " →"; color: var(--gold); }

@media (max-width: 1024px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures (profils, fondateurs, RDV) ---------- */
.page-hero { background: var(--navy-deep); color: var(--white); padding: 68px 0 58px; text-align: center; }
.page-hero .container { max-width: 760px; }
.page-hero h1 { color: var(--white); margin-bottom: 0; }
.page-hero .lead { color: rgba(255, 255, 255, 0.72); margin: 14px auto 0; }

.bio-role { font-size: 0.98rem; color: var(--gold); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 22px; }
.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.bio-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(12%); position: sticky; top: calc(var(--header-h) + 28px); }
.bio-grid h3 { margin-top: 1.6em; }
.bio-grid h3:first-child { margin-top: 0; }
.source-note { font-size: 0.85rem; color: var(--muted); }
.source-note a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }

.approche { display: flex; flex-direction: column; }
.approche-step { display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding-bottom: 44px; position: relative; }
.approche-step:last-child { padding-bottom: 0; }
.approche-step::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: var(--hairline); }
.approche-step:last-child::after { display: none; }
.approche-num {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); background: var(--white);
}
.approche-step h3 { margin-bottom: 6px; }
.approche-step p { color: var(--muted); margin-bottom: 0; }

.case-study { background: var(--light); border-left: 3px solid var(--gold); padding: 44px 48px; }
.case-study blockquote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; margin: 0 0 22px; color: var(--navy); }
.case-study .case-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.case-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.case-stat .n { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); display: block; }
.case-stat .l { font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

.cta-band { background: var(--light); padding: 68px 0; text-align: center; }
.cta-band .container { max-width: 640px; }
.cta-band p.lead { margin: 0 auto 30px; }

@media (max-width: 1024px) {
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio-grid img { position: static; }
}
@media (max-width: 640px) {
  .case-study { padding: 32px 26px; }
  .approche-step { grid-template-columns: 44px 1fr; gap: 18px; }
  .approche-num { width: 44px; height: 44px; font-size: 1.05rem; }
  .approche-step::after { left: 21px; top: 44px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding: 72px 0 36px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.1rem; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: rgba(255, 255, 255, 0.6); }
.footer-title { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--hairline-light); padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.83rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { min-height: 78vh; }
  .hero-inner { padding: 90px 24px 110px; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--hairline-light); }
  .stat:nth-child(-n+2) { border-top: none; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 36px; }
  .temoin-grid { grid-template-columns: 1fr; gap: 32px; }
  .cabinet-grid { grid-template-columns: 1fr; gap: 48px; }
  .rdv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 28px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a, .nav-group > button { padding: 14px 0; width: 100%; text-align: left; border-bottom: 1px solid var(--hairline); font-size: 1.02rem; }
  .nav-panel { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 6px 14px; display: none; }
  .nav-group.open .nav-panel { display: block; }
  .header-cta { margin: 18px 0 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
/* ---------- Quiz simulateurs (mini-questionnaire, max 5 questions) ---------- */
.quiz-card { background: var(--white); border: 1px solid var(--hairline); box-shadow: 0 24px 60px rgba(13,27,62,0.08); padding: 44px; }
.quiz-progress { height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.quiz-progress-fill { height: 100%; background: var(--gold); transition: width 0.3s ease; }
.quiz-step-counter { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 24px; }
.quiz-question { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 26px; line-height: 1.35; }
.quiz-hint { font-size: 0.82rem; color: var(--muted); margin: -18px 0 18px; }
.quiz-choices { display: flex; flex-direction: column; gap: 12px; }
.quiz-choice { text-align: left; padding: 16px 20px; border: 1px solid var(--hairline); background: var(--white); border-radius: 2px; font-family: var(--font-body); font-size: 0.98rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: all 0.18s ease; }
.quiz-choice:hover { border-color: var(--gold); }
.quiz-choice.selected { border-color: var(--gold); background: var(--light); color: var(--navy); font-weight: 700; }
.quiz-range-row { display: flex; align-items: center; gap: 16px; }
.quiz-range-row input[type="range"] { flex: 1; accent-color: var(--gold); height: 4px; }
.quiz-range-row input[type="number"] { width: 130px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 2px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--navy); text-align: right; }
.quiz-unit { font-weight: 600; color: var(--navy); }
.quiz-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-contact-fields input { width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 2px; font-family: var(--font-body); font-size: 0.95rem; box-sizing: border-box; }
.quiz-contact-fields input:focus { outline: none; border-color: var(--gold); }
.quiz-note { font-size: 0.76rem; color: var(--muted); margin-top: 14px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.quiz-shake { animation: quiz-shake 0.4s ease; }
@keyframes quiz-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-analyzing { text-align: center; padding: 60px 20px; }
.quiz-spinner { width: 44px; height: 44px; border: 3px solid var(--hairline); border-top-color: var(--gold); border-radius: 50%; margin: 0 auto 24px; animation: quiz-spin 0.9s linear infinite; }
@keyframes quiz-spin { to { transform: rotate(360deg); } }
.quiz-analyzing p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
  .quiz-card { padding: 28px 22px; }
  .quiz-contact-fields { grid-template-columns: 1fr; }
}

.formation-form-card { max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--hairline); box-shadow: 0 24px 60px rgba(13,27,62,0.08); padding: 40px; }
.formation-form .quiz-contact-fields { grid-template-columns: 1fr; margin-bottom: 20px; }
.formation-rgpd { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--muted); text-align: left; margin-bottom: 26px; cursor: pointer; }
.formation-rgpd input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.formation-submit { width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .profil-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; gap: 36px; }
  .associes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.5rem; }
}