/* ============================================================
   JMP Advisory - Design system v2
   Style du site d'origine JMP : fond blanc, Arial, casse normale,
   marine #002752 - structure et rythme éditorial hérités de la
   référence design (sections, bandes, timeline, stats)
   ============================================================ */

/* Palette Rogo : encre #151515, blanc, crème papier #F5F2EB, gris #737373, accent bleu #0000EE */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f2eb;
  --navy-05: rgba(21, 21, 21, 0.05);
  --navy-10: rgba(21, 21, 21, 0.12);
  --ink: #151515;
  --muted: #737373;
  --faint: #6b6b6b;
  --navy: #151515;
  --brand: #0000ee;
  --brand-06: rgba(0, 0, 238, 0.05);
  --navy-deep: #0f0f0f;
  --line: #e6e5e2;
  --line-soft: rgba(230, 229, 226, 0.6);
  --max: 1180px;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Typographie ---------- */

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }

/* Titres éditoriaux en serif (Georgia), graisse normale, interlignage serré */
.h-hero, .h-section {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Micro-étiquettes en monospace, numérotées par section */
.kicker {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

main { counter-reset: sec; }

main > section:not(.hero):not(.cta-band) > .wrap > .kicker::before,
main > section:not(.hero):not(.cta-band) > .wrap > div > .kicker::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) " / ";
  color: var(--brand);
}

.h-hero {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.04;
}

.h-section {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.h-card { font-size: 1.06rem; font-weight: 600; margin-bottom: 10px; }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.accent { color: var(--brand); }

/* ---------- Header ---------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

header.scrolled { box-shadow: 0 8px 28px rgba(21, 21, 21, 0.07); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 24px;
}

.nav-logo img { height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }

.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }

.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---------- Boutons ---------- */

.btn, .btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.94rem; font-weight: 500;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn { background: var(--navy); color: #fff; }
.btn:hover { background: var(--brand); }

.btn-ghost {
  background: transparent; color: var(--navy);
  border: none;
  box-shadow: inset 0 0 0 1px var(--navy-10);
  transition: box-shadow 0.15s, background 0.15s;
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-06); }

.btn-sm { padding: 9px 18px; font-size: 0.84rem; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--navy-10);
  transition: box-shadow 0.15s, background 0.15s;
}
.btn-icon img { width: 20px; height: 20px; }
.btn-icon:hover { box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-06); }

/* Boutons sur fond marine (bandeaux CTA) */
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: #f5f2eb; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Sections ---------- */

section { padding: 88px 0; border-bottom: 1px solid var(--line-soft); }

.hero {
  padding: 104px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute; top: -30%; right: -15%;
  width: 55%; height: 130%;
  background: radial-gradient(ellipse at center, var(--brand-06), transparent 65%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero .lead { margin: 26px 0 14px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}

.stat { background: var(--navy); padding: 28px 24px; }

.stat b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.stat span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Bande logos ---------- */

.logo-band { padding: 52px 0; background: var(--bg-soft); }

.logo-band p {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  text-align: center; margin-bottom: 30px;
}

.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
}

.logo-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 168px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px;
}

.logo-chip img {
  max-height: 34px; max-width: 126px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
}

/* ---------- Grilles de cartes ---------- */

.grid { display: grid; gap: 18px; margin-top: 44px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex; flex-direction: column;
}

.card p { font-size: 0.93rem; color: var(--muted); }

a.card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.08);
  transform: translateY(-2px);
}

.card .more {
  display: inline-block; margin-top: 16px;
  font-size: 0.84rem; font-weight: 600;
  color: var(--brand);
}

.card-num {
  font-size: 0.82rem; font-weight: 600; color: var(--brand);
  letter-spacing: 0.1em; margin-bottom: 14px; display: block;
}

/* ---------- Tombstones ---------- */

.tomb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
}

.tomb-logos { display: flex; gap: 10px; align-items: center; }

.tomb-logos .logo-chip { width: 120px; height: 52px; padding: 9px 14px; }
.tomb-logos .logo-chip img { max-height: 26px; max-width: 92px; }

.tomb h3 { font-size: 1.04rem; font-weight: 600; min-height: 2.7em; }

.tomb .sector {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--faint);
}

.tomb ul { list-style: none; }

.tomb ul li {
  font-size: 0.91rem; color: var(--muted);
  padding-left: 16px; position: relative;
  margin-bottom: 6px;
}

.tomb ul li::before {
  content: "-"; position: absolute; left: 0; color: var(--brand);
}

.tomb .metric {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600; color: var(--navy);
  font-size: 0.98rem;
}

.tomb-foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: nowrap;
}

.tomb-foot .metric { margin-top: 0; padding-top: 0; border-top: none; font-size: 0.9rem; white-space: nowrap; }

.tomb-foot .more { font-size: 0.74rem; font-weight: 600; color: var(--brand); white-space: nowrap; }

.disclaimer {
  margin-top: 28px; font-size: 0.8rem; color: var(--faint);
  max-width: 60em;
}

/* ---------- Témoignages ---------- */

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--brand);
  padding: 30px 26px;
  display: flex; flex-direction: column;
}

.quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted); flex: 1;
}

.quote footer {
  margin-top: 22px; display: flex; align-items: center; gap: 14px;
  border: none; padding: 0; background: transparent;
}

.quote footer img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}

.quote footer b { display: block; font-size: 0.92rem; color: var(--ink); }
.quote footer span { font-size: 0.82rem; color: var(--faint); }

/* ---------- Méthode ---------- */

.step .card-num { font-size: 1.5rem; letter-spacing: 0; }

/* ---------- Timeline ---------- */

.timeline { margin-top: 44px; position: relative; padding-left: 40px; }

.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--navy-10);
}

.tl-item { position: relative; padding-bottom: 42px; }

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: ""; position: absolute; left: -35px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
}

.tl-item .year {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem; font-weight: 400; color: var(--brand);
  display: block; margin-bottom: 6px;
}

.tl-item h3 { font-size: 1.05rem; margin-bottom: 8px; }

.tl-item p { font-size: 0.94rem; color: var(--muted); max-width: 52em; }

/* ---------- Listes à tirets ---------- */

.dash-list { list-style: none; margin-top: 18px; }

.dash-list li {
  position: relative; padding-left: 20px;
  margin-bottom: 10px; color: var(--muted); font-size: 0.96rem;
}

.dash-list li::before {
  content: "-"; position: absolute; left: 0; color: var(--brand); font-weight: 600;
}

.dash-list li b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 22px 40px 22px 0;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--brand); font-size: 1.4rem; font-weight: 400;
}

.faq details[open] summary::after { content: "-"; }

.faq details p { padding: 0 0 24px; color: var(--muted); font-size: 0.95rem; max-width: 58em; }

/* ---------- Deux colonnes ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 24px; }

.split .portrait {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%; max-width: 420px;
}

/* ---------- Bloc de métadonnées (fiche éditoriale) ---------- */

.facts { margin-top: 36px; border-top: 1px solid var(--line); max-width: 420px; }

.facts > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}

.facts dd { font-size: 0.92rem; color: var(--ink); text-align: right; }

/* ---------- Formulaire ---------- */

form .field { margin-bottom: 20px; }

form label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}

form input, form select, form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 15px;
  font-family: inherit; font-size: 0.95rem;
  border-radius: 8px;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-05);
}

form textarea { min-height: 150px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Bandeau CTA ---------- */

.cta-band {
  text-align: center;
  background: var(--navy);
  border-bottom: none;
}

.cta-band .kicker { color: rgba(255, 255, 255, 0.75); }
.cta-band .h-section, .cta-band h1, .cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.82); }
.cta-band a { color: inherit; }

.cta-band .lead { margin: 20px auto 34px; }

.reassure {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 34px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.72);
}

.reassure span::before { content: "- "; color: rgba(255, 255, 255, 0.9); }

/* ---------- Footer ---------- */

.footer {
  padding: 60px 0 36px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.75);
  background: var(--navy-deep);
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 44px;
}

.footer img { height: 36px; width: auto; margin-bottom: 18px; }

.footer .footer-title {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; }

.footer a:hover { color: #fff; }

.footer .faint { color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.55);
}

/* ---------- Pages internes ---------- */

.page-hero { padding: 84px 0 64px; border-bottom: 1px solid var(--line-soft); }

@media (min-width: 900px) {
  .page-hero { min-height: 543px; }
}

.breadcrumb { font-size: 0.82rem; color: var(--faint); margin-bottom: 24px; }

.breadcrumb a:hover { color: var(--navy); }

.breadcrumb span { color: var(--brand); }

.prose { max-width: 46em; }

.prose p { color: var(--muted); margin-bottom: 18px; }

.prose h2 { font-size: 1.35rem; margin: 40px 0 16px; }

/* ---------- Bandeaux photographiques ---------- */

.photo-band {
  height: clamp(240px, 42vw, 440px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}

.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92);
}

/* ---------- Legendes photo ---------- */

.photo-band { position: relative; }

.photo-band figcaption {
  position: absolute; bottom: 18px; left: 24px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(15, 15, 15, 0.55);
  padding: 7px 13px; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* ---------- Manifeste ---------- */

section.alt { background: var(--bg-soft); }

.manifesto { text-align: center; padding: 110px 0; }

.manifesto-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 24em; margin: 0 auto;
  text-wrap: balance;
}

.manifesto-note {
  display: inline-block; margin-top: 26px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Cadres de documents (mockups) ---------- */

.doc-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px -22px rgba(21, 21, 21, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-frame:hover { transform: translateY(-6px); box-shadow: 0 26px 56px -24px rgba(21, 21, 21, 0.32); }

.doc-frame img { width: 100%; height: auto; display: block; }

.doc-note {
  margin-top: 22px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Visuels de tombstones ---------- */

.tomb-visual {
  margin: -30px -26px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}

.tomb-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Etoiles ---------- */

.stars { color: #f2a71b; letter-spacing: 0.35em; font-size: 0.95em; }

.stat .stars { display: block; font-size: 0.9rem; margin: 2px 0 4px; color: #ffc300; }

.stars-line { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Icones inline ---------- */

.icon-inline {
  height: 16px; width: auto;
  display: inline-block; vertical-align: -3px;
  margin-right: 8px;
  border-radius: 3px;
}

/* ---------- Bandeau cookies ---------- */

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(21, 21, 21, 0.08);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.86rem; color: var(--muted); max-width: 46em; margin: 0;
}

.cookie-banner a { text-decoration: underline; color: var(--navy); }

.cookie-actions { display: flex; gap: 12px; }

/* ---------- Effets (repris du site d'origine) ---------- */

/* Apparition au scroll - classes ajoutées par site.js */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

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

/* Survol des cartes : élévation + ombre marine */
.card, .tomb, .quote {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover, .tomb:hover, .quote:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -12px rgba(21, 21, 21, 0.18);
  border-color: rgba(21, 21, 21, 0.18);
}

.card .more { transition: transform 0.2s ease; }
a.card:hover .more { transform: translateX(4px); }

/* Boutons : ombre au survol */
.btn { transition: background 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn:hover { box-shadow: 0 8px 20px rgba(21, 21, 21, 0.25); transform: translateY(-1px); }

/* Logos : gris par défaut, couleur au survol */
.logo-chip img { transition: filter 0.25s ease, opacity 0.25s ease; }
.logo-chip:hover img { filter: grayscale(0); opacity: 1; }

/* Bande de logos défilante en boucle */
.logo-band .wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-row.marquee {
  flex-wrap: nowrap; justify-content: flex-start;
  gap: 0; width: max-content;
  animation: scroll-logos 35s linear infinite;
}

.logo-row.marquee .logo-chip { margin-right: 14px; flex-shrink: 0; }

.logo-row.marquee:hover { animation-play-state: paused; }

@keyframes scroll-logos { to { transform: translateX(-50%); } }

/* Halo du hero : pulsation lente */
.hero::after { animation: heroGlow 9s ease-in-out infinite; }

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* Chiffres clés : pulsation à l'apparition */
.stats.visible .stat b { animation: counterPulse 0.6s ease 0.25s backwards; }

@keyframes counterPulse {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* FAQ : contenu en fondu à l'ouverture */
.faq details[open] p { animation: fadeUp 0.3s ease backwards; }

/* Indicateur de scroll du hero */
.scroll-hint {
  display: flex; justify-content: center;
  margin-top: 44px; color: var(--brand);
  animation: hintBounce 1.6s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.visible, .stats.visible .stat b, .faq details[open] p, .hero::after, .scroll-hint, .logo-row.marquee { animation: none; }
  .card:hover, .tomb:hover, .quote:hover, .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 72px 0 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 24px; gap: 20px;
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }

  .nav-burger {
    display: block; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: var(--navy);
    user-select: none;
  }
}

.tl-logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 16px; }
.tl-logos img { height: 24px; width: auto; filter: grayscale(1); opacity: 0.72; transition: filter 0.2s ease, opacity 0.2s ease; }
.tl-logos img:hover { filter: grayscale(0); opacity: 1; }
.tl-item .dash-list { margin-top: 4px; }
.tl-item .dash-list li { font-size: 0.98rem; }

/* ---------- Corrections audit 25/08/2026 ---------- */

/* Navigation : 6 entrees ne tiennent pas sous ~1000px -> burger des 1000px */
.nav-logo { flex: 0 0 auto; }
.nav-logo img { max-width: none; }

.nav-toggle {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 24px; gap: 20px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-burger {
    display: block; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: var(--navy);
    user-select: none;
    padding: 10px 12px; margin: -10px -12px;
  }
  .nav-links a { padding: 6px 0; }
}

/* Burger accessible au clavier */
.nav-toggle:focus-visible ~ .nav-burger {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
}

/* Focus visible sur tous les elements interactifs */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* Debordement horizontal sur petits ecrans */
.grid > *, .tomb, .card { min-width: 0; }

@media (max-width: 420px) {
  .tomb-foot { flex-wrap: wrap; gap: 6px; }
}

/* Animations reduites */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-row { animation: none !important; }
}
