/* ==========================================================================
   Projet Immo Alsace — feuille de style principale
   Charte : marine #0B2D4E · or #A77435 · fond blanc cassé chaleureux
   ========================================================================== */

:root {
  --navy: #0B2D4E;
  --navy-deep: #071F38;
  --navy-soft: #1C466E;
  /* Bronze du logo : réservé aux accents discrets (kickers, filets) */
  --gold: #A77435;
  /* Or champagne lumineux : couleur d'action (CTA, badges, survols) */
  --gold-bright: #EDBB4D;
  --gold-light: #F5D076;
  --gold-pale: #F9EED3;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --ink: #16273B;
  --muted: #4A5B6E;
  --line: #E4DDD0;
  --shadow-sm: 0 2px 8px rgba(11, 45, 78, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 45, 78, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 31, 56, 0.22);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-brand: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

.kicker {
  font-family: var(--font-brand);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--white); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #E9EEF4;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .kicker { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #C6D3E0; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn svg { flex: none; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(237, 187, 77, 0.4);
}
.btn--gold:hover {
  box-shadow: 0 0 0 6px rgba(237, 187, 77, 0.22), 0 14px 34px rgba(237, 187, 77, 0.55);
  transform: translateY(-2px) scale(1.02);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--outline-light:hover { background: var(--white); color: var(--navy); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter posé directement
   sur .site-header en ferait le bloc conteneur du menu mobile en position:fixed. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.brand-sub {
  font-family: var(--font-brand);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--gold);
}
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .btn { padding: 0.65rem 1.4rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.2rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 55;
  }
  .main-nav a { font-size: 1.25rem; }
  .main-nav.is-open { transform: translateY(0); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: hero-zoom 14s ease-out forwards;
}
@keyframes hero-zoom {
  to { transform: scale(1); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 31, 56, 0.92) 0%, rgba(11, 45, 78, 0.72) 45%, rgba(11, 45, 78, 0.35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__sub {
  font-size: 1.15rem;
  max-width: 54ch;
  color: #D9E2EC;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 2.5rem;
  max-width: 780px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.8rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat__label { font-size: 0.86rem; color: #C6D3E0; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   Cartes bénéfices
   -------------------------------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold-pale); }
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-pale);
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Processus 7 étapes
   -------------------------------------------------------------------------- */
.steps { position: relative; counter-reset: step; display: grid; gap: 0; max-width: 860px; margin-inline: auto; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.4rem 0;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 78px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(var(--gold-light), rgba(200, 154, 85, 0.15));
}
.step__num {
  counter-increment: step;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--white);
  border: 1.5px solid var(--gold-bright);
  box-shadow: var(--shadow-sm);
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 0.25em; }
.step p { color: var(--muted); margin: 0; max-width: 60ch; }

/* --------------------------------------------------------------------------
   Projets
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.project-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project-card__loc {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
}
.project-card h3 { margin: 0; font-size: 1.35rem; }
.project-card__figures {
  display: flex;
  gap: 1.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.project-card__figures strong { display: block; color: var(--navy); font-size: 1.05rem; }
.project-card__cta {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Fiche projet */
.project-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 31, 56, 0.85), rgba(7, 31, 56, 0.65));
}
.project-hero .container { position: relative; }
.project-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.project-hero .kicker { color: var(--gold-light); }

.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.figure-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.figure-tile__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.figure-tile__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
}
.figure-tile--gold .figure-tile__value { color: var(--gold); }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose strong { color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 31, 56, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Fondateur
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.founder__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.founder__media img { width: 100%; height: 100%; object-fit: cover; }
.founder__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  pointer-events: none;
}
.founder__quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
  margin: 1.5rem 0;
}
.founder__sign {
  font-family: var(--font-brand);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; }
  .founder__media { max-width: 420px; }
}

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.testimonial__stars { color: var(--gold-light); letter-spacing: 0.15em; font-size: 0.95rem; }
.testimonial blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: #DCE5EE;
  flex: 1;
}
.testimonial figcaption { display: flex; align-items: center; gap: 0.9rem; }
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1rem;
  flex: none;
}
.testimonial__name { font-weight: 600; color: var(--white); }
.testimonial__meta { font-size: 0.85rem; color: #9FB2C4; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.5rem 1.3rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Bande CTA
   -------------------------------------------------------------------------- */
.cta-band {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200, 154, 85, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.cta-band h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #C6D3E0; max-width: 56ch; margin: 0 auto 2rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.1rem; }
.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}
.contact-info__item svg { color: var(--gold); flex: none; margin-top: 0.2rem; }
.contact-info__item a { text-decoration: none; font-weight: 600; }
.contact-info__item a:hover { color: var(--gold); }
.calendly-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 700px;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.post-card h2, .post-card h3 { font-size: 1.3rem; margin: 0; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-card__date { font-size: 0.83rem; color: var(--muted); }

.article-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.article-hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 24ch; }
.article-hero .kicker { color: var(--gold-light); }
.article-hero__meta { color: #9FB2C4; font-size: 0.9rem; }

.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.article-body h2 { font-size: 1.8rem; margin-top: 2.2em; }
.article-body h3 { font-size: 1.35rem; margin-top: 1.8em; }
.article-body p, .article-body li { color: #33475C; font-size: 1.05rem; }
.article-body img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow-md); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
}
.article-body th { background: var(--gold-pale); color: var(--navy); }
.article-callout {
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0;
}
.article-callout p { margin: 0 0 1rem; }
.article-callout p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; margin-inline: auto; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #B9C7D6;
  padding: 4rem 0 2rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #D5DEE8; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand img { height: 56px; margin-bottom: 1rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.83rem;
  color: #8CA0B4;
}

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

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

/* Breadcrumb simple */
.breadcrumb {
  font-size: 0.85rem;
  color: #9FB2C4;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #C6D3E0; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Hero immersif — visite au défilement (scroll-scrub)
   -------------------------------------------------------------------------- */
.scrub-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.scrub-hero__canvas,
.scrub-hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrub-hero__fallback {
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.scrub-hero.is-ready .scrub-hero__fallback { opacity: 0; }
.scrub-hero--static .scrub-hero__canvas { display: none; }
.scrub-hero--static .scrub-hero__fallback { opacity: 1; }

.scrub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 31, 56, 0.82) 0%, rgba(7, 31, 56, 0.45) 45%, rgba(7, 31, 56, 0.15) 75%);
  pointer-events: none;
}
.scrub-hero__overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(0);
  translate: -50% -50%;
  z-index: 2;
  width: min(1160px, 100% - 3rem);
}
.scrub-hero__overlay h1 {
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.scrub-hero__overlay h1 em { font-style: italic; color: var(--gold-light); }
.scrub-hero__sub {
  font-size: 1.15rem;
  max-width: 52ch;
  color: #D9E2EC;
  margin-bottom: 2rem;
}
.scrub-hero__captions { position: absolute; z-index: 2; left: 0; right: 0; bottom: 4.5rem; pointer-events: none; }
.scrub-hero__caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  width: min(1160px, 100% - 3rem);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.scrub-hero__caption.is-active { opacity: 1; transform: translateX(-50%) translateY(0); }
.scrub-hero__caption .kicker { color: var(--gold-light); margin-bottom: 0.3rem; }
.scrub-hero__caption p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--white);
  margin: 0;
  max-width: 30ch;
  text-shadow: 0 2px 18px rgba(7, 31, 56, 0.7);
}
.scrub-hero__progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.scrub-hero__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}
.scrub-hero__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C6D3E0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.scrub-hero__hint svg { animation: hint-bounce 1.8s ease-in-out infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scrub-hero__hint svg { animation: none; }
}

/* Bande de stats sous le hero */
.stats-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 2.6rem 0;
}
.stats-band .hero__stats {
  border-top: none;
  padding-top: 0;
  max-width: none;
}
.scrub-hero--static .scrub-hero__captions,
.scrub-hero--static .scrub-hero__progress,
.scrub-hero--static .scrub-hero__hint { display: none; }

/* Fraunces : désactive les lettres fantaisie (WONK) et calme les formes
   des grandes tailles (opsz) — corrige les f/J jugés « déformés » */
h1, h2, h3, .kicker, .stat__num, .figure-tile__value, .founder__quote,
.scrub-hero__caption p, .article-body blockquote, .step__num {
  font-variation-settings: "opsz" 30, "SOFT" 0, "WONK" 0;
}

/* --------------------------------------------------------------------------
   Responsive mobile/tablette — garde-fous
   -------------------------------------------------------------------------- */
/* Tableaux d'articles : défilement horizontal interne, jamais de scroll page */
.article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .article-body table { display: table; white-space: normal; }
}
/* Sécurité anti-débordement horizontal global */
html, body { overflow-x: clip; }
/* Stats : 2 colonnes propres sur mobile */
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.5rem; }
  .stat__num { font-size: 1.7rem; }
}
/* Galeries plus denses sur mobile */
@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .figures-grid { grid-template-columns: repeat(2, 1fr); }
}
