/* =========================================================
   Emelyne Bourdin — Neuropsychologue
   Design: soft, warm, rose & cream. Modern, airy, responsive.
   ========================================================= */

:root {
  /* Palette — terracotta, chaleureux, terreux */
  --bg:              #FBF8F5;
  --bg-alt:          #F2E2D8;    /* terracotta poudré pour démarquer les sections */
  --surface:         #FFFFFF;
  --ink:             #2B1E1A;
  --ink-soft:        #5C4640;
  --ink-mute:        #8B7069;
  --line:            #EED9CE;

  /* Variables --rose-* remappées en terracotta */
  --rose-50:         #FBF2EF;
  --rose-100:        #F4DFD6;
  --rose-200:        #EABFAF;
  --rose-300:        #DA9D88;
  --rose-400:        #C57B63;
  --rose-500:        #AF5541;   /* accent principal — terracotta */
  --rose-600:        #8E4334;
  --rose-700:        #6B3126;

  --blush:           #F3DDD2;
  --peach:           #F7E4D4;
  --cream:           #FCF5ED;

  /* Typo */
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(107, 49, 38, 0.04);
  --shadow:    0 10px 40px rgba(107, 49, 38, 0.08);
  --shadow-lg: 0 20px 60px rgba(107, 49, 38, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Texte visible pour lecteurs d'écran uniquement (accessibilité + SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Container & layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 2.5rem 0 7.5rem;
  position: relative;
  z-index: 1;
  background: var(--bg);

  /* Effet "carte empilée" : chaque section remonte de 3.5rem sur la précédente,
     avec des coins supérieurs arrondis pour créer une séparation nette. */
  border-top-left-radius: 3.5rem;
  border-top-right-radius: 3.5rem;
  margin-top: -3.5rem;
  padding-top: 6rem;  /* 2.5rem de contenu + 3.5rem pour compenser le chevauchement */
  box-shadow: 0 -0.875rem 2.5rem -1.25rem rgba(107, 49, 38, 0.10);
}

/* Sections au fond coloré — ombres un peu plus marquées */
.section--soft {
  background: var(--bg-alt);
  box-shadow: 0 -0.875rem 2.5rem -1.25rem rgba(142, 67, 52, 0.22);
}

/* La section contact conserve le traitement de carte empilée — le background est géré par .section / .section--soft */

.section__head { max-width: 56rem; margin-bottom: 3rem; }
.section__head--center {
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__head--center .section__title {
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin: 0 0 16px 0;
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 20px 0;
}
.section__title em {
  font-style: italic;
  color: var(--rose-500);
  font-weight: 400;
}
.section__lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s var(--ease);
}
.nav--scrolled {
  padding: 12px 0;
  background: rgba(251, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--rose-500); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rose-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav__cta:hover {
  background: var(--rose-500);
  box-shadow: var(--shadow);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: flex-end;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.nav__burger span:nth-child(2) { width: 16px; }
body.menu-open .nav__burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 22px; }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 22px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 28px 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--rose-100) 0%, transparent 55%),
    radial-gradient(800px 500px at 90% 110%, var(--peach) 0%, transparent 60%),
    var(--bg);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero__blob--1 {
  width: 480px; height: 480px;
  background: var(--rose-200);
  top: -120px; left: -120px;
  animation: float 18s ease-in-out infinite;
}
.hero__blob--2 {
  width: 380px; height: 380px;
  background: var(--peach);
  bottom: -80px; right: -60px;
  animation: float 22s ease-in-out infinite reverse;
}
.hero__blob--3 {
  width: 280px; height: 280px;
  background: var(--blush);
  top: 40%; right: 20%;
  opacity: 0.35;
  animation: float 26s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.06); }
  66% { transform: translate(-20px, 30px) scale(0.96); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s var(--ease) both;
}

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

/* Logo XXL — remplit tout l'espace disponible du hero */
.hero__logo-wrap {
  display: block;
  width: 100%;
  margin: 0;
  animation: fadeUp 0.8s var(--ease) both;
}
.hero__logo {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
  margin: -8vh auto 0; /* compense l'espace transparent en bas du PNG du logo, laisse un peu d'air */
}

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

.hero__scroll-hint {
  position: absolute;
  bottom: 96px;   /* au-dessus du chevauchement arrondi de la section suivante (~56px) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__scroll-hint:hover { color: var(--rose-500); }
.hero__scroll-hint svg {
  width: 22px;
  height: 22px;
  animation: scrollNudge 2.2s ease-in-out infinite;
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: background 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--rose-500);
  color: var(--bg);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--rose-500);
  color: var(--bg);
}

/* =========================================================
   Intro
   ========================================================= */
.intro { overflow: hidden; } /* pour contenir les bulles qui dépassent */

.intro__content {
  position: relative;
  z-index: 2;
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}
.intro__content .section__title {
  text-align: center;
  margin-bottom: 2.5rem; /* plus d'air avant le paragraphe */
}

.intro__p {
  font-size: 1.0625rem;     /* 17px */
  color: var(--ink-soft);
  margin: 0 0 1.125rem 0;
  line-height: 1.75;
  text-align: justify;
  text-align-last: center;  /* dernière ligne centrée, rend un bloc plus élégant */
  hyphens: auto;
}
.intro__content strong {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, var(--rose-100) 60%);
  padding: 0 2px;
}

/* Slider horizontal infini des mots-clés */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.875rem;      /* 14px */
  color: var(--ink-soft);
  white-space: nowrap;
  box-shadow: 0 0.25rem 0.875rem rgba(107, 49, 38, 0.06);
  cursor: default;
  flex-shrink: 0;
}

.marquee {
  position: relative;
  margin-top: 3.5rem;
  width: 100%;
  overflow: hidden;
  /* fondus sur les bords pour un effet doux */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: marquee 40s linear infinite;
}
.marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  padding-right: 0.75rem; /* espace constant entre les 2 copies */
  list-style: none;
  margin: 0;
}
.marquee__group .chip:nth-child(even) { background: var(--cream); }

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

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Cards grid (indicateurs) — icône à gauche, tailles uniformes
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-bottom: 4.5rem;
}
.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  min-height: 5.5rem;   /* hauteur uniforme quel que soit le texte */
}

.card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--rose-50);
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card p {
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.quote {
  max-width: 55rem;
  margin: 0 auto;
  padding: 2.25rem 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--rose-400);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: 28px;
  font-family: var(--font-serif);
  font-size: 90px;
  line-height: 1;
  color: var(--rose-200);
}
.quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

/* =========================================================
   Two-column (neuropsychologie)
   ========================================================= */
.twocol {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 62rem;
  margin: 0 auto;
}
.twocol__item { padding: 0.5rem 0; }
.twocol__item--card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-sm);
}
.twocol__title {
  font-family: var(--font-serif);
  font-size: 1.625rem;  /* 26px */
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1.25rem 0;
  line-height: 1.25;
}
.twocol__item p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1rem 0;
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}
.twocol__item strong {
  color: var(--ink);
  font-weight: 600;
}
.twocol__subhead {
  font-weight: 500 !important;
  color: var(--ink) !important;
  margin-top: 20px !important;
  margin-bottom: 12px !important;
}

.list-check { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px 0; }
.list-check li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23AF5541'><path d='M7.5 13.5L4 10l1.4-1.4 2.1 2.1L13.6 4.5 15 5.9z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--rose-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.note strong { color: var(--rose-600); }

/* =========================================================
   Steps
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  counter-reset: step;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.step__num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--rose-300);
  margin-bottom: 20px;
  font-style: italic;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px 0;
}
.step__body p {
  font-size: 0.9375rem;     /* 15px */
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem 0;
  text-align: justify;
  hyphens: auto;
}
.step__body p:last-child { margin-bottom: 0; }

/* =========================================================
   Tarifs — liste format "menu" avec prix à droite
   ========================================================= */
.pricing {
  max-width: 48rem;
  margin: 0 auto 3rem;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pricing__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.pricing__info { flex: 1; min-width: 0; }
.pricing__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;    /* 20px */
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.pricing__duration {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.4;
}
.pricing__price {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.625rem;   /* 26px */
  font-weight: 500;
  color: var(--rose-500);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pricing__price--free {
  font-style: italic;
  font-size: 1.375rem;
}

.pricing__notes {
  margin: 0 auto;
  padding: 1.75rem 2rem;
  background: var(--rose-50);
  border-radius: var(--radius);
}
.pricing__notes p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}
.pricing__notes p:last-child { margin-bottom: 0; }
.pricing__notes strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-bottom: 2.5rem; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Blocs d'info : titre + contenu */
.info-block__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.875rem;
  line-height: 1.3;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.info-list__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: var(--rose-500);
}
.info-list a {
  color: var(--ink);
  transition: color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.info-list a:hover {
  color: var(--rose-600);
  border-bottom-color: var(--rose-300);
}
.info-list--access li div strong {
  color: var(--ink);
  font-weight: 600;
}

.info-address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.info-address__detail {
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.info-pmr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--rose-700);
}
.info-pmr svg {
  width: 1rem;
  height: 1rem;
  color: var(--rose-500);
}

/* Carte Google Maps */
.contact__map {
  position: relative;
  min-height: 22rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
}
.contact__map-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.625rem 1rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.contact__map-link:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Mentions légales + copyright */
.copyright {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  line-height: 1.8;
}
.copyright span[aria-hidden] {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer__brand { display: flex; flex-direction: column; }
.footer__name { font-family: var(--font-serif); font-size: 18px; }
.footer__role { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; margin-top: 2px; }

.footer__nav { display: flex; gap: 24px; justify-content: center; }
.footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s var(--ease);
}
.footer__nav a:hover { color: var(--rose-300); }

.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  text-align: right;
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.cards .card.reveal { transition-delay: calc(var(--i, 0) * 50ms); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .section { padding: 6rem 0 8rem; }
  .contact { padding-bottom: 2.5rem; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 32px 28px; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section { padding: 5rem 0 7rem; }
  .contact { padding-bottom: 2rem; }
  .section__head { margin-bottom: 44px; }

  .intro__p { text-align: center; text-align-last: center; hyphens: none; }
  .marquee { margin-top: 2.5rem; }
  .marquee__track { animation-duration: 28s; } /* un peu plus rapide sur mobile */

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,0.08);
  }
  .nav__links a { font-size: 18px; }
  .nav__cta { padding: 9px 16px; font-size: 13px; }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__burger { display: flex; }

  .hero {
    padding: 96px 22px 80px;
    min-height: 100vh;
    align-items: center; /* centrage vertical logo + texte */
  }
  .hero__inner { gap: 28px; }
  .hero__logo { max-height: 42vh; }
  .hero__lead { margin-top: 0; } /* plus d'espace entre le logo et le texte */
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 140px; }
  .hero__scroll-hint { display: none; } /* sur mobile le scroll est évident */

  .twocol__item--card { padding: 32px 26px; }
  .cards { margin-bottom: 2rem; } /* moins d'espace entre les cards et la citation sur mobile */
  .contact__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact__map { min-height: 18rem; }
  .contact__map iframe { min-height: 18rem; }
  .copyright { font-size: 0.7rem; line-height: 1.9; }
  .copyright span[aria-hidden] { margin: 0 0.35rem; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .quote { padding: 28px 24px; }
  .quote p { font-size: 16px; }
  .hero__lead { font-size: 16px; }
  .section__title { font-size: clamp(28px, 8vw, 40px); }
}

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

:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--rose-200);
  color: var(--rose-700);
}
