/* ==========================================================================
   Sab Boost. — styles.css · Première version publique
   --------------------------------------------------------------------------
   Direction artistique : quiet luxury, sophistication éditoriale,
   minimalisme européen. Composition en « double page » : une colonne de
   marge à gauche (titres, repères), le contenu à droite.

   Typographie : Cormorant Garamond (titres, voix éditoriale, italiques)
                 Hanken Grotesk (textes, interface)
   Palette     : ivoire #F4F0EA · anthracite #282B29 · brun rosé #8D6658
                 taupe #C8B29C · blanc #FFFFFF
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette de marque */
  --ivory: #F4F0EA;
  --anthracite: #282B29;
  --rosewood: #8D6658;
  --rosewood-deep: #7A5648; /* même teinte, assombrie : réservée aux petits textes (contraste AA) */
  --taupe: #C8B29C;
  --white: #FFFFFF;

  /* Rôles — surchargés par les thèmes de section */
  --bg: var(--ivory);
  --fg: var(--anthracite);
  --muted: #655E5A;
  --accent: var(--rosewood);
  --accent-text: var(--rosewood-deep);
  --surface: var(--white);
  --line: rgba(40, 43, 41, 0.14);
  --line-strong: rgba(40, 43, 41, 0.42);

  /* Typographie */
  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rythme */
  --container: 86rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 4.75rem;
  --section-y: clamp(5rem, 11vw, 10rem);

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 220ms;
  --t-base: 420ms;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Thèmes de section — on ne change que les rôles, jamais la palette */
.theme-dark {
  --bg: var(--anthracite);
  --fg: var(--ivory);
  --muted: rgba(244, 240, 234, 0.72);
  --accent: var(--taupe);
  --accent-text: var(--taupe);
  --surface: #31342F;
  --line: rgba(244, 240, 234, 0.16);
  --line-strong: rgba(244, 240, 234, 0.5);
}
.theme-white {
  --bg: var(--white);
  --surface: var(--ivory);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: inherit; }

html {
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.012em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
img, svg, iframe { display: block; max-width: 100%; }
em { font-style: italic; }
strong { font-weight: 500; }
[hidden] { display: none !important; }

::selection { background: var(--taupe); color: var(--anthracite); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* Grain papier — texture discrète qui unifie les aplats */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.8rem 1.1rem;
  background: var(--anthracite);
  color: var(--ivory);
  font-size: 0.9375rem;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Système de mise en page
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}

/* « Double page » : marge à gauche (1/3), contenu à droite (2/3) */
.spread { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .spread {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .spread__aside {
    grid-column: 1 / 5;
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2.5rem);
  }
  .spread__main { grid-column: 5 / 13; }
}

.spread__title {
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  max-width: 14ch;
}
.spread__lead {
  margin-top: 1.25rem;
  max-width: 32ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Repère de section (titre courant) */
.runhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

/* Petit intertitre : phrase courte suivie d’un filet */
.label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.4;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Accent éditorial rare : brun rosé en italique, réservé aux grands titres (fond clair) */
.accent { font-style: italic; color: var(--rosewood); }

/* Textes */
.lead {
  font-size: clamp(1.125rem, 0.5vw + 0.95rem, 1.3125rem);
  line-height: 1.55;
  font-weight: 300;
  max-width: 54ch;
}
.statement {
  font-size: clamp(2.3rem, 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 300;
  text-wrap: balance;
}
.statement__line { display: block; }

/* --------------------------------------------------------------------------
   4. Composants d’interface
   -------------------------------------------------------------------------- */
.btn {
  --btn-fg: var(--fg);
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid var(--btn-border);
  color: var(--btn-fg);
  background: var(--btn-bg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color var(--t-base) var(--ease-smooth),
    color var(--t-base) var(--ease-smooth),
    border-color var(--t-base) var(--ease-smooth),
    transform var(--t-base) var(--ease-out);
}
.btn:hover { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-border: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-border: var(--fg); }
.btn--primary:hover { --btn-bg: var(--rosewood-deep); --btn-fg: var(--ivory); --btn-border: var(--rosewood-deep); }
.btn--compact { min-height: 2.5rem; padding: 0.55rem 1.1rem; font-size: 0.875rem; }

/* Lien externe (réseaux, chaînes) */
.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.link-ext::after { content: "↗"; font-weight: 400; transition: transform var(--t-base) var(--ease-out); }
.link-ext:hover { border-bottom-color: currentColor; }
.link-ext:hover::after { transform: translate(2px, -2px); }

/* Liste de réseaux sociaux (les réseaux non configurés sont retirés par main.js) */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.social a::after { content: "↗"; font-weight: 400; transition: transform var(--t-base) var(--ease-out); }
.social a:hover { border-bottom-color: currentColor; }
.social a:hover::after { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   5. Header & menu
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--anthracite);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-base) var(--ease-smooth),
    border-color var(--t-base) var(--ease-smooth),
    color var(--t-base) var(--ease-smooth);
}
.header.is-scrolled {
  background: rgba(244, 240, 234, 0.88);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(40, 43, 41, 0.1);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.logo__dot { color: var(--rosewood); }
.theme-dark .logo__dot { color: var(--taupe); }

.nav { display: none; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}
.burger__line {
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out);
}
.burger[aria-expanded="true"] .burger__line:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Navigation horizontale dès qu’il y a la place (tablette paysage et plus) */
@media (min-width: 48rem) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}
@media (min-width: 64rem) {
  .header__inner { gap: 2rem; }
  .nav__list { gap: 2.25rem; }
  .nav__link { font-size: 0.9375rem; }
}

/* Header au-dessus du menu ouvert : passe en ivoire sur anthracite */
html.menu-open .header {
  color: var(--ivory);
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.menu-open .logo__dot { color: var(--taupe); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  background: var(--anthracite);
  color: var(--ivory);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.7s var(--ease-out),
    opacity 0.35s var(--ease-smooth),
    visibility 0s 0.7s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 0.7s var(--ease-out),
    opacity 0.25s var(--ease-smooth),
    visibility 0s;
}
.menu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 2rem;
}
.menu__link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(244, 240, 234, 0.14);
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 8.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.menu.is-open .menu__link {
  opacity: 1;
  transform: none;
  transition-delay: calc(140ms + var(--i, 0) * 55ms);
}
.menu__footer { display: flex; flex-direction: column; gap: 1.25rem; }
.menu__mail {
  align-self: flex-start;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  border-bottom: 1px solid rgba(244, 240, 234, 0.5);
}
.menu .social a { color: rgba(244, 240, 234, 0.85); }

/* --------------------------------------------------------------------------
   6. Hero — composition typographique, sans photographie
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto;
  column-gap: var(--gutter);
  row-gap: clamp(1.5rem, 3vh, 2.5rem);
  padding-top: clamp(1.5rem, 4vh, 3rem);
}
.hero__kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.hero__kicker::before { content: ""; width: 2.25rem; height: 1px; background: var(--rosewood); flex: none; }

.hero__title {
  grid-column: 1 / -1;
  align-self: center;
  font-size: clamp(2.4rem, 9vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: none;
}
.hero__accent {
  font-style: italic;
  font-weight: 300;
  color: var(--rosewood);
}
.line {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.06em 0.1em 0;
  margin: -0.1em 0;
}
.line__inner { display: block; }

.hero__body {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.hero__lead {
  max-width: 42ch;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.3125rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

/* Sommaire des trois univers : une ligne éditoriale en bas de page d’ouverture */
.hero__index {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
}
.hero__index-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 0.6rem; }
.hero__index-list { display: grid; }
.hero__index-list li { border-top: 1px solid var(--line); }
.hero__index-list li:first-child { border-top: 0; }
.hero__index-list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem);
  line-height: 1.25;
  transition: color var(--t-fast);
}
.hero__index-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}
.hero__index-list a:hover::after,
.hero__index-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.hero__index-list a:hover { color: var(--accent-text); }

@media (min-width: 48rem) {
  .hero__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .hero__actions { justify-content: flex-end; }
  .hero__index { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem 2rem; align-items: start; }
  .hero__index-label { margin: 0; padding-top: 0.6rem; }
  .hero__index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
  .hero__index-list li { border-top: 0; border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .hero__index-list li:first-child { border-left: 0; padding-left: 0; }
}
@media (min-width: 64rem) {
  .hero__title { grid-column: 1 / 12; }
  .hero__body { grid-column: 1 / 12; }
}

/* --------------------------------------------------------------------------
   7. Photographies (emplacements réservés aux vraies photos)
   -------------------------------------------------------------------------- */
.photo__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.photo:hover .photo__frame img { transform: scale(1.025); }

/* --------------------------------------------------------------------------
   8. Philosophie
   -------------------------------------------------------------------------- */
.statement__line--accent { font-style: italic; color: var(--taupe); }
.philosophy__lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 40ch; }
.philosophy__body { display: grid; gap: 3rem; margin-top: clamp(2rem, 4vw, 3.5rem); }

.convictions { counter-reset: conviction; border-top: 1px solid var(--line); }
.conviction {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.conviction::before {
  counter-increment: conviction;
  content: counter(conviction, upper-roman);
  grid-row: 1 / 3;
  padding-top: 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-text);
}
.conviction h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); }
.conviction p { max-width: 46ch; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

.viewpoints { max-width: 22rem; }
.viewpoints svg { width: 100%; height: auto; overflow: visible; }
.viewpoints__edges line { stroke: rgba(244, 240, 234, 0.4); stroke-width: 1; }
.viewpoints__edges .viewpoints__spoke { stroke: rgba(244, 240, 234, 0.18); stroke-dasharray: 3 4; }
.viewpoints__nodes circle { fill: var(--taupe); }
.viewpoints__nodes .viewpoints__center { fill: var(--ivory); }
.viewpoints__labels text { fill: var(--ivory); font-family: var(--font-serif); font-size: 19px; letter-spacing: 0.01em; }
.viewpoints__labels .viewpoints__center-label { font-style: italic; fill: var(--taupe); font-size: 17px; }
.viewpoints figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); }

@media (min-width: 64rem) {
  .philosophy__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; align-items: start; }
  .viewpoints { justify-self: end; width: 100%; padding-top: 0.5rem; }
}

/* --------------------------------------------------------------------------
   9. Trois univers (liste dépliable)
   -------------------------------------------------------------------------- */
.universe-list { border-top: 1px solid var(--line-strong); }
.universe { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem); }

.universe__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  text-align: left;
}
.universe__head { display: grid; gap: 0.6rem; }
.universe__title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 1.4vw + 1rem, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  transition: color var(--t-fast);
}
.universe__desc {
  display: block;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}
@media (min-width: 64rem) {
  .universe__head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .universe__desc { padding-top: 0.45rem; }
}

.universe__icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base);
}
.universe__icon::before,
.universe__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out);
}
.universe__icon::before { width: 12px; height: 1px; transform: translate(-50%, -50%); }
.universe__icon::after  { width: 1px; height: 12px; transform: translate(-50%, -50%); }
.universe.is-open .universe__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.universe__toggle:hover .universe__icon,
.universe__toggle:focus-visible .universe__icon { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.universe__toggle:hover .universe__title { color: var(--accent-text); }

/* Le panneau s’ouvre et se ferme par sa hauteur réelle, mesurée en JavaScript */
.universe__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.55s var(--ease-out);
}
.universe__panel-content { padding: 0.25rem 0 clamp(1.75rem, 3vw, 2.5rem); }
.universe__cols { display: grid; gap: 1.75rem; }
.universe__col { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 64rem) {
  .universe__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; }
}

.questions { display: grid; gap: 0.9rem; }
.questions li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 0.5vw + 1rem, 1.45rem);
  line-height: 1.35;
}
.questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 1px;
  background: var(--accent-text);
}
.situations { display: grid; gap: 1rem; }
.situations li {
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}
.situations strong { display: block; margin-bottom: 0.15rem; font-weight: 500; color: var(--fg); }

/* --------------------------------------------------------------------------
   10. Chaînes officielles (liens vers YouTube et TikTok, sans lecteur)
   -------------------------------------------------------------------------- */
.channel-list { border-top: 1px solid var(--line-strong); }
.channel {
  display: grid;
  gap: 1rem 2rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.channel__text { display: grid; gap: 0.5rem; }
.channel__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  font-size: clamp(1.75rem, 1.6vw + 0.7rem, 2.5rem);
  letter-spacing: -0.015em;
}
.channel__handle { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.channel__desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 0.5vw + 0.95rem, 1.4rem);
  line-height: 1.35;
  color: var(--muted);
}
@media (min-width: 48rem) {
  .channel { grid-template-columns: 1fr auto; align-items: baseline; }
}

/* --------------------------------------------------------------------------
   11. À propos
   -------------------------------------------------------------------------- */
.about__photo { max-width: 22rem; }
@media (max-width: 39.99rem) { .about__photo { width: 80%; } }
.about__content { display: flex; flex-direction: column; gap: 1.75rem; }
.about__title { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -0.02em; }
.about__sub {
  margin-top: -0.9rem;
  max-width: 30ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.2vw + 0.8rem, 1.9rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--accent-text);
}
.about__text { display: grid; gap: 1.25rem; max-width: 58ch; }
.about__text p + p { color: var(--muted); }
.about__text p:first-child { font-size: 1.125rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact__title {
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 300;
  max-width: 12ch;
  text-wrap: balance;
}
.contact__main { display: flex; flex-direction: column; gap: 2rem; }
.contact__lead { color: var(--muted); max-width: 44ch; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.contact__mail {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding-bottom: 0.1em;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.contact__mail:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
@media (min-width: 64rem) {
  .contact__aside { position: static; }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg);
  color: var(--fg);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 2rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { margin-top: 1rem; max-width: 26ch; font-size: 0.9375rem; color: var(--muted); }
.footer__label {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--taupe);
}
.footer__list { display: grid; gap: 0.5rem; }
.footer__list a,
.footer__link { font-size: 0.9375rem; color: var(--muted); transition: color var(--t-fast); }
.footer__list a:hover,
.footer__link:hover { color: var(--ivory); }
.social--footer { display: grid; gap: 0.5rem; }
.social--footer a { padding-bottom: 0; border-bottom: 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer__top { display: inline-flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid var(--line-strong); transition: color var(--t-fast), border-color var(--t-fast); }
.footer__top::after { content: "↑"; transition: transform var(--t-base) var(--ease-out); }
.footer__top:hover, .footer__top:focus-visible { color: var(--ivory); border-bottom-color: var(--ivory); }
.footer__top:hover::after { transform: translateY(-2px); }
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   15. Dialogues (mentions légales, confidentialité) & toast
   -------------------------------------------------------------------------- */
.dialog {
  width: min(100% - 2rem, 44rem);
  max-height: min(85vh, 85svh);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--ivory);
  color: var(--anthracite);
  box-shadow: 0 32px 80px rgba(40, 43, 41, 0.28);
}
.dialog::backdrop {
  background: rgba(40, 43, 41, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dialog[open] { animation: dialog-in 0.45s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } }
.dialog__inner { position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(40, 43, 41, 0.42);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.dialog__close:hover { background: var(--anthracite); color: var(--ivory); }
.dialog__title { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0.5rem 3rem 1.5rem 0; }
.dialog__content { display: grid; gap: 0.6rem; font-size: 0.9375rem; line-height: 1.6; color: #655E5A; }
.dialog__content h3 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--anthracite);
}
.dialog__content a { border-bottom: 1px solid rgba(40, 43, 41, 0.42); color: var(--anthracite); }
.todo {
  padding: 0 0.3em;
  background: rgba(200, 178, 156, 0.4);
  color: var(--rosewood-deep);
  font-style: italic;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1.25rem;
  background: var(--anthracite);
  color: var(--ivory);
  border-radius: 999px;
  font-size: 0.875rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s 0.3s;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s;
}

/* --------------------------------------------------------------------------
   16. Animations : entrée du hero, apparitions au défilement
   -------------------------------------------------------------------------- */
html.js .hero .line__inner {
  transform: translateY(112%);
  animation: line-up 1.1s var(--ease-out) forwards;
  animation-delay: calc(140ms + var(--i, 0) * 120ms);
}
html.js .hero [data-hero-fade] {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-fade 0.9s var(--ease-out) forwards;
  animation-delay: calc(260ms + var(--i, 0) * 110ms);
}
@keyframes line-up { to { transform: translateY(0); } }
@keyframes hero-fade { to { opacity: 1; transform: none; } }

/* Apparition au défilement : fondu + léger déplacement, une seule fois (classe posée par main.js) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (max-width: 47.99rem) {
  html.js [data-reveal] { transform: translateY(8px); transition-duration: 0.45s, 0.5s; }
}

/* --------------------------------------------------------------------------
   17. Préférences de réduction du mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .hero .line__inner,
  html.js .hero [data-hero-fade] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .footer__top:hover::after { transform: none; }
  .menu, .menu.is-open { transition: none; clip-path: none; }
  .menu__link, .menu.is-open .menu__link { transition: none; }
  .universe__panel { transition: none; }
  .dialog[open] { animation: none; }
  .photo:hover .photo__frame img { transform: none; }
  .btn:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
