/* ==========================================================================
   Flavia Monteiro — Consultante Wellness
   Système visuel dérivé du logo : cercle anthracite, point orange en orbite.
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #262524;
  --ink-soft:   #4A4744;
  --muted:      #7C766F;
  --line:       #E3DCD2;
  --cream:      #FAF7F2;
  --cream-deep: #F3EDE4;
  --white:      #FFFFFF;
  --accent:     #E9924B;
  --accent-dark:#D97F36;
  --accent-wash:#FBEEE0;

  /* Typo */
  --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9rem);
  --radius: 20px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* ── Typographie ─────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-dark);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 52ch;
}

/* ── Layout ──────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--cream-deep); }

/* Sépare deux sections de même fond qui se suivent. */
.section-divided { border-top: 1px solid var(--line); }

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }

/* ── Boutons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--cream) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.brand-text em {
  font-style: normal;
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-inline-start: auto;
}

/* Sélecteur de langue et bouton sandwich : toujours dans la barre,
   jamais dans le panneau déroulant. */
.header-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav > a:not(.btn) {
  position: relative;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .25rem;
  transition: color .25s var(--ease);
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a:not(.btn):hover::after,
.nav > a.is-active::after { transform: scaleX(1); }
.nav > a.is-active { color: var(--ink); }

/* Sélecteur de langue */
.lang {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  letter-spacing: .08em;
}
.lang a,
.lang .lang-current {
  text-decoration: none;
  transition: color .25s var(--ease);
}
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang .lang-current { color: var(--ink); font-weight: 500; }
.lang > :first-child + *::before {
  content: "/";
  margin-right: .5rem;
  color: var(--line);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  /* 40 px de moins qu'à l'origine, mais jamais sous 25 px : sur mobile
     et tablette la soustraction collait le titre à l'en-tête. */
  padding-top: max(25px, calc(clamp(3.5rem, 7vw, 6rem) - 40px));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -28vw;
  right: -18vw;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
              color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero-copy h1 { margin-bottom: 1.75rem; }
.hero-copy .lead { margin-bottom: 2.25rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 1.25rem;
}

/* Orbite — reprise directe du logo */
.hero-mark {
  display: grid;
  place-items: center;
}
.orbit {
  position: relative;
  width: min(30rem, 82vw);
  aspect-ratio: 1;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 7px solid var(--ink);
  border-radius: 50%;
}
.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit-ring::before { inset: -8%; }
.orbit-ring::after  { inset: -18%; border-style: dashed; opacity: .7; }

.orbit-dot {
  position: absolute;
  inset: -6%;
  animation: spin 26s linear infinite;
}
.orbit-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 12.5%;
  aspect-ratio: 1;
  margin-top: -6.25%;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bandeau défilant */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--cream-deep) 60%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1rem, .9rem + .5vw, 1.35rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Expertise ───────────────────────────────────────── */
.big-text {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -.015em;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}

.principles { display: grid; gap: 2rem; }
.principle { position: relative; padding-left: 2rem; }
.principle .dot {
  position: absolute;
  left: 0;
  top: .5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.principle:nth-child(2) .dot { background: var(--accent); border-color: var(--accent); }
.principle h3 { margin-bottom: .4rem; }
.principle p { color: var(--muted); font-size: .9375rem; }

/* ── Cartes services ─────────────────────────────────── */
/* Sous-titre à l'intérieur d'une section (ex. « Les formules ») */
/* Trois cartes par rangée, et toute rangée incomplète reste centrée
   plutôt que de s'étirer sur la largeur (cas des 5 domaines). */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.cards > .card {
  flex: 0 1 calc((100% - 2.5rem) / 3);
  min-width: min(17rem, 100%);
}

/* Les quatre domaines : deux par ligne jusqu'à la tablette,
   les quatre sur une seule ligne à partir du format PC. */
.cards-quad > .card {
  flex: 0 1 calc((100% - 1.25rem) / 2);
  min-width: 0;
}
@media (min-width: 62rem) {
  .cards-quad > .card { flex-basis: calc((100% - 3.75rem) / 4); }
}
/* À deux par ligne sur petit écran, la carte doit respirer autrement. */
@media (max-width: 40rem) {
  .cards-quad > .card { padding: 1.25rem 1.1rem; }
  .cards-quad .card-index { margin-bottom: .9rem; }
  .cards-quad .card h3 { font-size: 1.1rem; }
  .cards-quad .card-sub { font-size: .625rem; letter-spacing: .06em; margin-bottom: .75rem; }
  .cards-quad .card ul { margin-top: .4rem; padding-top: 1rem; gap: .5rem; }
  .cards-quad .card li { font-size: .8125rem; padding-left: 1rem; }
  .cards-quad .card li::before { top: .5rem; width: 5px; height: 5px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 50px -28px rgba(38, 37, 36, .32);
}

.card-index {
  font-family: var(--display);
  font-size: .875rem;
  color: var(--muted);
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: .35rem; font-size: 1.4rem; }
.card-sub {
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.card > p:not(.card-sub) { color: var(--ink-soft); font-size: .9375rem; }

.card ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .7rem;
}
/* Cartes sans texte descriptif : la liste remonte sous le sous-titre. */
.card .card-sub + ul { margin-top: .5rem; }

.card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .875rem;
  color: var(--muted);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Actuellement sans usage : ajouter la classe card-feature à une
   carte suffit à la remettre en avant. */
.card-feature {
  background: var(--ink);
  border-color: var(--ink);
}
.card-feature h3, .card-feature .card-index { color: var(--cream); }
.card-feature .card-index { opacity: .55; }
.card-feature .card-sub { color: var(--accent); }
.card-feature > p:not(.card-sub) { color: color-mix(in srgb, var(--cream) 78%, transparent); }
.card-feature ul { border-top-color: rgba(250, 247, 242, .15); }
.card-feature li { color: color-mix(in srgb, var(--cream) 66%, transparent); }

.badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: .3rem .7rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 999px;
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Témoignages ─────────────────────────────────────── */
.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark h2 { color: var(--cream); }
.section-dark h2 em { color: var(--accent); }
.section-dark .eyebrow { color: color-mix(in srgb, var(--cream) 55%, transparent); }

/* Expérience clients — récit sur fond sombre */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.story-lead {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -.015em;
  color: var(--cream);
  text-align: justify;
  hyphens: auto;
}
.story-body { display: grid; gap: 1.25rem; }
.story-body p {
  font-size: .9375rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
  text-align: justify;
  hyphens: auto;
}

/* ── Mon histoire ────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-visual { position: relative; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--line);
  background: var(--cream-deep);
}
.about-badge {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  padding: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 18px 40px -24px rgba(38, 37, 36, .5);
}
.about-badge img { border-radius: 50%; mix-blend-mode: multiply; }

.about-copy .eyebrow { margin-bottom: 1rem; }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-copy .lead { margin-bottom: 1.25rem; }
.about-copy p + p { margin-top: 1.25rem; }
/* Texte de la biographie : taille unique et justifié. */
.about-copy .lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

/* Les trois piliers, à la même taille que le texte qui les entoure. */
.pillars {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}
.pillars li {
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}
.pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.pillars strong { font-weight: 500; color: var(--ink); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.0625rem;
}

/* Chapitres de « Mon histoire » : intitulé à gauche, récit à droite */
.chapters { margin-top: clamp(3rem, 6vw, 4.5rem); }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.chapter h3 {
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  line-height: 1.2;
}
.chapter-body { display: grid; gap: 1rem; }
.chapter-body p {
  font-size: .9375rem;
  color: var(--ink-soft);
}

.chapter-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin-block: .25rem;
}
.chapter-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9375rem;
  color: var(--muted);
}
.chapter-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.chapter-list strong {
  font-weight: 500;
  color: var(--ink);
}

.chapter-close {
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--ink) !important;
}

/* ── Contact ─────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy .eyebrow { margin-bottom: 1rem; }
.contact-copy h2 { margin-bottom: 1.25rem; }

/* Intitulés des lignes de contact */
.contact-card .label {
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Carte de contact direct — remplace l'ancien formulaire. */
.contact-card {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-line {
  display: grid;
  gap: .45rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-line .value {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  letter-spacing: -.01em;
  word-break: break-word;
  transition: color .25s var(--ease);
}
.contact-line:hover .value { color: var(--accent-dark); }

/* ── Modale (mentions légales) ───────────────────────── */
.link-like {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-like:hover { color: var(--ink); }

.modal {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(84vh, 48rem);
  padding: 0;
  /* Centrée horizontalement, ancrée en bas de l'écran. La marge haute
     automatique repousse la boîte vers le bas, quelle que soit sa hauteur. */
  margin-inline: auto;
  margin-top: auto;
  margin-bottom: clamp(1rem, 4vh, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: none; }
}
.modal[open] { animation: modal-in .35s var(--ease); }

.modal::backdrop {
  background: rgba(38, 37, 36, .45);
  backdrop-filter: blur(3px);
}

.modal-inner { position: relative; padding: clamp(1.75rem, 4vw, 2.75rem); }

.modal-close {
  position: absolute;
  top: .75rem;
  right: .9rem;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.modal-close:hover { color: var(--ink); background: var(--cream-deep); }

.modal .eyebrow { margin-bottom: .6rem; }
.modal h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 1.75rem; }
.modal h3 {
  font-size: .6875rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.modal h3:first-of-type { margin-top: 0; }
.modal p { margin-top: .6rem; font-size: .9375rem; color: var(--ink-soft); }
.modal a { color: var(--accent-dark); }

/* Champs restant à renseigner : volontairement voyants. */
.todo {
  display: inline-block;
  padding: .05rem .4rem;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: .8125rem;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a {
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }
.copyright {
  flex-basis: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--muted);
}
.copyright a { color: inherit; }

/* ── Apparitions au scroll ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner,
  .split,
  .story,
  .about,
  .chapter,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .hero-mark { order: -1; }
  .orbit { width: min(20rem, 62vw); }

  .about-visual { max-width: 24rem; }
}

@media (max-width: 780px) {
  .burger { display: flex; }

  /* Panneau replié par la hauteur plutôt que par une translation :
     une translation en pourcentage laissait dépasser un liseré sous le
     header quand le panneau était fermé. Ici, fermé = hauteur nulle. */
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--cream);
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    /* Retire aussi les liens du parcours clavier tant que le menu est fermé. */
    visibility: hidden;
    transition: max-height .45s var(--ease), padding .45s var(--ease),
                opacity .3s var(--ease), border-color .45s var(--ease),
                visibility 0s linear .45s;
  }
  .nav.is-open {
    max-height: calc(100svh - 4.75rem);
    padding: 1rem var(--gutter) 2rem;
    border-bottom-color: var(--line);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    overflow-y: auto;
    box-shadow: 0 24px 40px -30px rgba(38, 37, 36, .5);
  }
  .nav > a:not(.btn) {
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav > .btn { margin-top: 1.25rem; }

  .facts { gap: 1.75rem; }
  .about-badge { right: 0; bottom: -1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .burger, .marquee, .hero-mark { display: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
