/* ================================================================
   Pages de détail (Enseignement · Astronomie · Entrepreneuriat)
   Même palette et mêmes polices que l'accueil (index.html)
   ================================================================ */
:root {
  --wine:      #5d0811;
  --wine-mid:  #3d060c;
  --wine-deep: #150204;
  --crimson:   #9f2b33;
  --noir:      #0d0103;
  --card:      #1d0306;
  --gold:      #c8a15e;
  --champagne: #f2e2c6;
  --sand:      #cbb193;

  --text:       var(--champagne);
  --text-muted: rgba(242, 226, 198, .74);
  --text-soft:  rgba(242, 226, 198, .9);
  --line:       rgba(200, 161, 94, .38);

  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --sans:   "Montserrat", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
  --ease:   cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--wine-deep);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
html.i18n-pending body { visibility: hidden; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ——— Barre du haut ——— */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 26px;
}
.logo {
  font-family: var(--serif); font-size: 24px; line-height: 1.05; color: var(--champagne);
}
.logo span { text-transform: uppercase; letter-spacing: .08em; font-size: .82em; }
.top-right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--sans); letter-spacing: .12em; color: rgba(242,226,198,.4); }
.lang button {
  background: none; border: 0; cursor: pointer; padding: 6px 2px;
  font: inherit; letter-spacing: inherit; color: rgba(242,226,198,.55);
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.lang button:hover { color: var(--champagne); }
.lang button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.back {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 20px; border: 1px solid var(--gold); border-radius: 6px;
  transition: background .25s, color .25s;
}
.back:hover { background: var(--gold); color: var(--noir); }
.back svg { width: 16px; height: 16px; flex: none; }

/* Fil des chapitres */
.chapters {
  position: relative; z-index: 3;   /* reste au-dessus de la silhouette qui flotte */
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 0 auto; padding: 0; list-style: none;
}
.chapters a {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sand);
  transition: background .25s, color .25s, border-color .25s;
}
.chapters a:hover { border-color: var(--gold); color: var(--champagne); }
.chapters a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--noir); }

/* ——— En-tête de page ——— */
.d-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 75% 35%, var(--wine) 0%, rgba(93, 8, 17, 0) 75%),
    linear-gradient(160deg, #380309 0%, #2d0307 100%);
  border-bottom: 1px solid var(--line);
}
.d-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 4px);
}
.d-hero-main {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: 48px;
  padding-block: 40px 72px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 14px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.d-pre {
  margin: 0 0 4px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.2; letter-spacing: .01em; color: var(--sand);
}
.d-title {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7vw, 104px); line-height: .98; letter-spacing: .01em;
  text-transform: uppercase; color: var(--champagne);
  overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto;
}
.d-tag {
  margin: 4px 0 0;
  font-family: var(--script); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.2; color: var(--gold);
}
.d-lead {
  margin: 26px 0 0; max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 19px); font-weight: 300; line-height: 1.7; color: var(--text-soft);
}
.d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 32px; border: 1px solid var(--gold); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--gold); color: var(--noir); }
.btn.solid { background: var(--gold); color: var(--noir); }
.btn.solid:hover { background: var(--champagne); border-color: var(--champagne); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* Image en arche, contour doré décalé et chiffre romain */
.d-media { position: relative; justify-self: center; width: min(100%, 460px); padding: 18px 18px 0 0; }
.d-media .outline {
  position: absolute; inset: 0 0 0 18px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.d-media .frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, var(--wine-mid), var(--noir) 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.d-media img { width: 100%; height: 100%; object-fit: cover; }
.d-media .num {
  position: absolute; left: -18px; bottom: 28px; z-index: 2;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(29, 3, 6, .94); border: 1px solid var(--gold);
  font-family: var(--serif); font-size: 34px; letter-spacing: .12em; color: var(--gold);
}
/* Variante détourée (page Astronomie) : la silhouette sort de l'arche par le haut */
.d-media.cutout { justify-self: end; padding: 0; }
.d-media.cutout .outline { inset: 12% 0 0 10%; }
.d-media.cutout .frame {
  position: absolute; inset: 20% 6% 0 16%; aspect-ratio: auto;
  background: linear-gradient(180deg, var(--crimson) 0%, #6a0f19 45%, #41060c 100%);
  box-shadow: inset 0 0 80px rgba(21, 2, 4, .45), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.d-media.cutout .cut {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
}
.d-media.cutout { width: min(100%, 580px); }
/* image à gauche, texte à droite (ordinateur) */
.d-hero-main.flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 80px; }
.d-hero-main.flip .d-media { order: -1; justify-self: start; }
.d-hero-main.flip > div:not(.d-media) { position: relative; z-index: 2; }   /* le texte reste toujours lisible */
/* colonne de texte plus étroite : le titre reste sur une ligne, sans césure */
.d-hero-main.flip .d-title { font-size: clamp(40px, min(5.4vw, 11vh), 96px); hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.d-media.cutout .num { left: auto; right: -12px; bottom: 10px; }
/* vol : piloté par pages.js (--fx, --fy en px, --fr en degrés) ; l'arche part légèrement à l'opposé */
.d-media.cutout .cut { transform-origin: 40% 100%; translate: calc(var(--fx, 0) * 1px) calc(var(--fy, 0) * 1px); rotate: calc(var(--fr, 0) * 1deg); will-change: translate, rotate; }
.d-media.cutout .frame { translate: calc(var(--fx, 0) * -.25px) calc(var(--fy, 0) * -.2px); }
.d-media.cutout .outline { translate: calc(var(--fx, 0) * -.4px) calc(var(--fy, 0) * -.3px); }
.credit { margin: 12px 0 0; text-align: right; font-size: 12.5px; letter-spacing: .04em; color: rgba(242, 226, 198, .55); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ——— Chiffres clés ——— */
.facts { position: relative; background: #22030a; border-top: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { position: relative; padding: 32px 24px; }
.fact:first-child { padding-left: 0; }
.fact + .fact::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: var(--line);
}
.fact-value { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: var(--champagne); }
.fact-label { margin: 8px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }

/* ——— Sections ——— */
.d-section { padding-block: 100px; }
.d-section.alt { background: linear-gradient(180deg, #2b0206 0%, #1d0306 100%); }
.d-section.red {
  background: radial-gradient(ellipse 90% 85% at 50% 40%, #62091a 0%, var(--wine) 55%, #4a0710 100%);
  border-block: 1px solid rgba(200, 161, 94, .18);
}
.s-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; margin-bottom: 56px; }
.s-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.s-title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.4vw, 80px); line-height: .98; letter-spacing: .02em;
  text-transform: uppercase; color: var(--champagne);
}
.s-title .script { font-family: var(--script); text-transform: none; letter-spacing: 0; font-size: .72em; color: var(--gold); margin-left: .08em; }
.s-intro { margin: 0 0 10px; max-width: 38ch; font-size: clamp(16px, 1.3vw, 18px); font-weight: 300; line-height: 1.65; color: var(--text-soft); }

/* Texte long (mission, démarche) */
.prose { max-width: 70ch; }
.prose p:not([class]) { margin: 0 0 18px; font-size: clamp(16px, 1.25vw, 18px); font-weight: 300; line-height: 1.8; color: var(--text-soft); }
.prose strong { font-weight: 500; color: var(--champagne); }
.statement {
  margin: 0 0 40px; padding-left: 28px; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; color: var(--champagne);
}

/* Cartes (démarche, offre…) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 28px 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: 180px 180px 0 0;
  text-align: center; align-items: center;
  transition: border-color .3s, transform .4s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 10px 0 18px;
  display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold);
}
.card-ico svg { width: 28px; height: 28px; }
.card-step { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; letter-spacing: .3em; color: var(--gold); }
.card h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; color: var(--champagne); }
.card p { margin: 0; font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--text-soft); }

/* Frise chronologique */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; max-width: 980px; }
.timeline::before {
  content: ""; position: absolute; left: 190px; top: 8px; bottom: 8px; width: 1px; background: var(--line);
}
.tl-item { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 48px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 190px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  transform: translateX(-5px); background: var(--wine-deep); border: 1px solid var(--gold);
}
.tl-item.now::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(200, 161, 94, .18); }
.tl-date { margin: 2px 0 0; padding-right: 24px; text-align: right; font-size: 13.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
.tl-body h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--champagne); }
.tl-place { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; color: var(--sand); }
.tl-body p.tl-text { margin: 0; max-width: 62ch; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--text-soft); }
.tl-body ul { margin: 10px 0 0; padding-left: 18px; font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--text-soft); }
.tl-body li::marker { color: var(--gold); }

/* Boutons sous chaque étape de la frise */
.tl-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; }
.tl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--gold); border-radius: 999px;
  font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--champagne);
  transition: background .25s, color .25s;
}
.tl-btn:hover { background: var(--gold); color: var(--noir); }
.tl-btn.doc { background: rgba(200, 161, 94, .12); }
.tl-btn svg { width: 14px; height: 14px; flex: none; }

/* Pastilles (compétences, centres d'intérêt) */
.chips-group + .chips-group { margin-top: 34px; }
.chips-title { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 10px 16px; border: 1px solid rgba(200, 161, 94, .35); border-radius: 999px;
  font-size: 15px; letter-spacing: .02em; color: var(--champagne); background: rgba(13, 1, 3, .35);
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }

/* Galerie photo (en classe) : deux portraits + une grande vue */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: clamp(260px, 34vw, 480px); object-fit: cover;
  border: 1px solid var(--line); background: var(--card);
}
.gallery figure:first-child img { border-radius: 999px 999px 0 0; }
.gallery figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--sand); }
.gallery.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* grande arche au centre (TART) */
.gallery.centre { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.gallery.four figure:first-child img { border-radius: 999px 999px 0 0; }
.gallery.land { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.land img, .gallery.land figure:first-child img { height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.gallery .wide figcaption { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--champagne); }

/* Section terrain : texte à gauche, deux photos à droite */
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.field .statement { margin-bottom: 28px; }
.gallery.duo { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.gallery.solo { grid-template-columns: minmax(0, 1fr); }
/* deux photos de groupe à leurs vraies proportions, même hauteur, arche aplatie */
.gallery.pair { grid-template-columns: minmax(0, 1.333fr) minmax(0, 1.418fr); }
.gallery.pair img, .gallery.pair figure:first-child img { height: auto; aspect-ratio: 4 / 3; }
.field:has(.gallery.pair) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 40px; }
.gallery.pair .wide-arch img { border-radius: 50% 50% 0 0 / 28% 28% 0 0; }
.gallery.pair figure:last-child img { aspect-ratio: 1400 / 987; }
/* relevé officiel (Pan-STARRS) */
.record { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; color: var(--champagne); }
.record caption { caption-side: top; text-align: left; padding-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.record th { padding: 10px 12px; text-align: left; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); border-bottom: 1px solid var(--gold); }
.record td { padding: 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); font-variant-numeric: lining-nums; }
.record tbody tr { background: rgba(200, 161, 94, .08); }
.gallery.solo img { height: clamp(260px, 32vw, 460px); }
.field-note { margin: 0; font-size: clamp(15px, 1.2vw, 17px); font-weight: 300; line-height: 1.7; color: var(--text-soft); }
.gallery.duo img { height: clamp(260px, 32vw, 460px); }
.gallery.duo figure:first-child img { border-radius: 0; }
.gallery.duo figure:last-child img { border-radius: 999px 999px 0 0; }

/* Galeries en arche, filet or + second filet discret (Kenya, HartRAO) */
.gallery.arches figure img, .gallery.arches figure:first-child img, .gallery.arches figure:last-child img {
  border-radius: 999px 999px 0 0;
  border: 2px solid var(--gold);
  outline: 1px solid rgba(200, 161, 94, .75); outline-offset: 6px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.gallery.arches { padding-top: 8px; }       /* place pour le second filet */
.gallery.arches figcaption { text-align: center; margin-top: 16px; }

/* ——— Carte du ciel (compétences & intérêts) ——— */
.sky { position: relative; overflow: hidden;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(242,226,198,.7), transparent), radial-gradient(1px 1px at 78% 12%, rgba(242,226,198,.5), transparent),
    radial-gradient(1.5px 1.5px at 42% 64%, rgba(242,226,198,.6), transparent), radial-gradient(1px 1px at 88% 72%, rgba(242,226,198,.5), transparent),
    radial-gradient(1px 1px at 22% 86%, rgba(242,226,198,.4), transparent), radial-gradient(1px 1px at 62% 32%, rgba(242,226,198,.45), transparent),
    radial-gradient(ellipse 70% 60% at 50% 45%, #2a0409 0%, var(--wine-deep) 75%);
}
/* Cap sur le doctorat : trajectoire + étoile filante */
.sky-next { position: relative; max-width: 420px; padding-top: 6px; }
.sky-next .traj { display: block; width: 100%; height: 54px; overflow: visible; }
.sky-next .traj path { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 6; opacity: .7; vector-effect: non-scaling-stroke; }
.sky-next .traj .goal { fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.sky-next .traj .shoot { fill: var(--champagne); filter: drop-shadow(0 0 6px var(--gold)); }
.sky-next-label { margin: 6px 0 4px; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.sky-next-text { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; color: var(--champagne); }

/* Trois orbites */
.sky-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sky-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 24px 26px;
  border: 1.5px solid var(--gold); border-bottom-width: 1px; border-radius: 999px 999px 0 0;
  outline: 1px solid rgba(200, 161, 94, .35); outline-offset: 6px;
  background: linear-gradient(180deg, rgba(93, 8, 17, .35) 0%, rgba(13, 1, 3, .6) 100%);
}
.sky-card .orb { width: 70%; max-width: 190px; margin: 14px 0 8px; overflow: visible; }
.sky-card .orb ellipse { fill: none; stroke: rgba(200, 161, 94, .55); stroke-width: 1; }
.sky-card .orb .sun { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(200, 161, 94, .8)); }
.sky-card .orb .planet { fill: var(--champagne); }
.sky-num { margin: 0 0 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sky-card h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; color: var(--champagne); }
.sky-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.sky-list li { position: relative; padding-left: 14px; font-size: 15px; color: var(--text-soft); white-space: nowrap; }
.sky-list li::before { content: "✦"; position: absolute; left: 0; top: .15em; font-size: 9px; color: var(--gold); }

/* Constellation de recherche : étoiles reliées par des traits */
.sky-const { margin-top: 34px; text-align: center; }
.sky-const-label { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.sky-stars { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; justify-items: start; column-gap: 64px; row-gap: 14px; margin: 0; padding: 0; list-style: none; }
.sky-stars li { position: relative; display: inline-flex; align-items: center; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); color: var(--champagne); white-space: nowrap; }
.sky-stars li::before { content: ""; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 0 3px rgba(200, 161, 94, .25), 0 0 10px var(--gold); }
.sky-stars li:not(:nth-child(3n))::after { content: ""; position: absolute; left: calc(100% + 10px); top: 50%; width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(200, 161, 94, .25)); }

@media (prefers-reduced-motion: reduce) { .sky-next .traj .shoot { display: none; } }

/* Projets liés */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.proj {
  display: flex; flex-direction: column;
  padding: 26px 24px 24px; background: var(--card);
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  transition: border-color .3s, transform .4s var(--ease);
}
.proj:hover { border-color: var(--gold); transform: translateY(-4px); }
.proj-meta { margin: 0 0 10px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.proj h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.15; color: var(--champagne); }
.proj p { margin: 0 0 16px; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--text-soft); }
.proj .stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.proj .stack li { font: 500 12px/1 var(--sans); letter-spacing: .04em; color: var(--sand); padding: 6px 9px; border: 1px solid rgba(200, 161, 94, .3); border-radius: 999px; }
.proj-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.proj-links a {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--gold);
  font: 500 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); transition: color .25s;
}
.proj-links a:hover { color: var(--gold); }
.proj-links svg { width: 14px; height: 14px; }
.proj-links .note { font: italic 400 13.5px/1.4 var(--sans); color: var(--sand); }

/* ——— Autres chapitres ——— */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pager a {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 28px;
  padding: 18px 28px 18px 18px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.pager a:hover { border-color: var(--gold); transform: translateY(-4px); }
.pager .thumb { aspect-ratio: 1; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--wine-mid); }
.pager .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pager small { display: block; margin-bottom: 6px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pager strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; color: var(--champagne); }
.pager em { display: block; margin-top: 2px; font-family: var(--script); font-style: normal; font-size: clamp(22px, 1.8vw, 28px); color: var(--gold); }

/* ——— Contact ——— */
.d-contact { padding-block: 90px; text-align: center; background: #110102; border-top: 1px solid rgba(200, 161, 94, .18); }
.d-contact h2 {
  margin: 0 auto 30px; max-width: 820px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; color: var(--champagne);
}
.d-contact .d-actions { justify-content: center; margin-top: 0; }
.footer-band { background: var(--noir); border-top: 1px solid rgba(200, 161, 94, .25); }
.footer-band .wrap { display: flex; align-items: center; gap: 18px; padding-block: 18px; color: var(--gold); }
.footer-band .rule { flex: 1; height: 1px; background: rgba(200, 161, 94, .45); }
.footer-band svg { width: 13px; height: 13px; flex: none; }
.footer-band p { margin: 0; white-space: nowrap; font-family: var(--serif); font-size: clamp(14px, 1.4vw, 19px); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

/* ——— Une section par écran (ordinateur) ———
   même principe que l'accueil : chaque section occupe l'écran et s'y cale,
   un cran de molette = une section (voir pages.js) */
@media (min-width: 901px) and (min-height: 560px) {
  html { scroll-snap-type: y mandatory; scroll-behavior: auto; }
  .d-hero, .d-section { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
  body > footer { scroll-snap-align: end; }

  /* 1er écran : barre, chapitres, titre + image, chiffres clés */
  .d-hero { display: flex; flex-direction: column; }
  .top { padding-block: clamp(12px, 2.6vh, 26px); }
  .d-hero-main { flex: 1; padding-block: 2vh 3.5vh; gap: 40px; }
  .eyebrow { margin-bottom: 1.6vh; }
  .d-pre { font-size: clamp(20px, min(2.3vw, 4vh), 34px); margin-bottom: .4vh; }
  .d-title { font-size: clamp(40px, min(7vw, 12vh), 104px); }
  .d-tag { font-size: clamp(28px, min(3.6vw, 6vh), 52px); }
  .d-lead { margin-top: 2.6vh; line-height: 1.6; }
  .d-actions { margin-top: 3.4vh; }
  .btn { padding-block: clamp(12px, 1.9vh, 16px); }
  .d-media { width: min(100%, 440px, calc((100vh - 340px) * .78)); padding-top: 14px; }
  .d-media.cutout { width: min(100%, 450px, calc((100vh - 350px) * .86)); padding-top: 0; }
  .d-media .num { width: clamp(72px, 11vh, 104px); height: clamp(72px, 11vh, 104px); font-size: clamp(24px, 3.8vh, 34px); }
  .credit { margin-top: 6px; }
  .fact { padding-block: clamp(12px, 2.8vh, 32px); }
  .fact-value { font-size: clamp(26px, min(3vw, 5vh), 42px); }
  .fact-label { margin-top: .8vh; }

  /* sections suivantes : contenu centré verticalement */
  .d-section { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(24px, 5vh, 90px); }
  .s-head { margin-bottom: clamp(18px, 4vh, 56px); }
  .s-title { font-size: clamp(36px, min(5.4vw, 9vh), 80px); }
  .statement { margin-bottom: 3vh; }
  .prose p:not([class]) { margin-bottom: 1.8vh; line-height: 1.7; }

  /* cartes */
  .card { padding: clamp(18px, 3.4vh, 34px) 26px clamp(18px, 3vh, 30px); }
  .card-ico { width: clamp(46px, 7vh, 64px); height: clamp(46px, 7vh, 64px); margin: 1vh 0 1.6vh; }
  .card-ico svg { width: 44%; height: 44%; }
  .card h3 { margin-bottom: 1.2vh; }

  /* frise sur deux colonnes : tout le parcours tient dans l'écran */
  .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3.6vh, 40px) 56px; max-width: none; }
  .timeline::before { display: none; }
  .tl-item { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 0 0 0 30px; border-left: 1px solid var(--line); }
  .tl-item::before { left: 0; top: 4px; }
  .tl-date { text-align: left; padding: 0; margin: 0 0 .8vh; }
  .tl-place { margin-bottom: .8vh; }
  .tl-body p.tl-text, .tl-body ul { font-size: 15px; line-height: 1.6; }
  .tl-body ul { margin-top: .6vh; }
  .tl-links { margin-top: 1vh; }
  /* grands écrans : 3 colonnes, les 6 étapes tiennent sur 2 rangées */
  @media (min-width: 1200px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }

  /* compétences */
  .chips-group + .chips-group { margin-top: 3vh; }
  .chips { gap: 8px; }
  .chips li { padding: clamp(7px, 1.1vh, 10px) 14px; }

  /* projets : une rangée */
  .projects { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .proj { padding: clamp(16px, 2.8vh, 26px) 22px clamp(16px, 2.6vh, 24px); }
  .proj p { margin-bottom: 1.6vh; }
  .proj .stack { margin-bottom: 1.8vh; }

  .gallery img { height: clamp(200px, calc(100vh - 420px), 540px); }
  .gallery.land img { height: auto; }
  .gallery.duo img, .gallery.solo img { height: clamp(220px, calc(100vh - 380px), 520px); }
  .sky-card { padding-block: 1.2vh 2.4vh; }
  .sky-card .orb { margin-block: 1.4vh .6vh; max-width: min(190px, 15vh); }
  .sky-card h3 { margin-bottom: 1.4vh; }
  .sky-const { margin-top: 3.6vh; }
  .sky-next .traj { height: clamp(30px, 6vh, 54px); }
  .record td { padding-block: 8px; }
  .record { margin-bottom: 12px; }
  .gallery figcaption { margin-top: 1.2vh; }
  .pager .thumb { height: clamp(90px, 18vh, 150px); width: auto; }
  .pager a { grid-template-columns: auto minmax(0, 1fr); }

  /* dernier écran : contact + bandeau, calé en bas */
  .d-contact { padding-block: clamp(40px, 9vh, 90px); }
}
/* écrans d'ordinateur peu hauts (≤ 800 px) : on resserre encore */
@media (min-width: 901px) and (min-height: 560px) and (max-height: 800px) {
  .chapters a { padding-block: 7px; }
  .d-lead { font-size: 16px; }
  .card p { font-size: 14.5px; line-height: 1.55; }
  .card-step { display: none; }
  .tl-body p.tl-text, .tl-body ul { font-size: 14.5px; line-height: 1.5; }
  .tl-place { display: none; }
  .proj p { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .s-intro { font-size: 15px; }
}

/* très peu haut (≈ 600–680 px) : les chapitres restent accessibles en bas de page */
@media (min-width: 901px) and (min-height: 560px) and (max-height: 680px) {
  .d-hero nav .chapters { display: none; }
  .eyebrow { display: none; }
  .d-lead { font-size: 15px; line-height: 1.5; }
  .fact-label { font-size: 12px; letter-spacing: .06em; line-height: 1.4; }
  .d-media { width: min(100%, 440px, calc((100vh - 250px) * .78)); }
  .d-hero-main { padding-block: 1vh 2vh; }
  .gallery.pair { max-width: 500px; margin-left: auto; }
  .record caption { padding-bottom: 6px; }
  .record { margin-bottom: 8px; }
  .field-note { font-size: 14px; line-height: 1.5; }
  .fact { padding-block: 10px; }
  .s-head { margin-bottom: 14px; }
  .timeline { row-gap: 14px; }
  .tl-body ul, .tl-body p.tl-text { line-height: 1.35; font-size: 13.5px; }
  .tl-links { margin-top: 5px; gap: 6px; }
  .tl-btn { padding: 5px 10px; }
  .d-section { padding-block: 14px; }
  .s-head { margin-bottom: 10px; }
  .s-title { font-size: 34px; }
  .timeline { row-gap: 10px; }
  .tl-body h3 { font-size: 21px; }
  .tl-date { margin-bottom: 2px; }
  .d-actions { margin-top: 2.4vh; }
  .d-tag { line-height: 1.1; }
}

/* ——— Apparitions au défilement ——— */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .d-hero .d-media .frame img { animation: zoomOut 2.4s var(--ease) both; }
  .d-hero .d-media .cut { transform-origin: 50% 100%; animation: cutIn 1.6s var(--ease) .2s both; }
  @keyframes cutIn { from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(8px); } }
  @keyframes zoomOut { from { transform: scale(1.12); filter: blur(6px); } }
}
@media (hover: none) {
  .card:hover, .proj:hover, .pager a:hover { transform: none; }
}

/* ——— Responsive ——— */
@media (max-width: 1000px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(3)::before { display: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pager { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .d-hero-main { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 20px 60px; text-align: center; }
  .d-lead { margin-inline: auto; }
  .d-actions { justify-content: center; }
  .d-media { width: min(100%, 380px); }
  .d-hero-main.flip { grid-template-columns: minmax(0, 1fr); }
  .d-hero-main .d-media.cutout { width: min(100%, 460px); }
  .d-media.cutout, .d-hero-main.flip .d-media { justify-self: center; order: 0; }
  .credit { text-align: center; }
  .d-section { padding-block: 72px; }
  .s-head { margin-bottom: 40px; justify-content: center; text-align: center; }
  .s-intro { margin-inline: auto; }
  .prose { margin-inline: auto; }
  /* frise : dates au-dessus, trait à gauche */
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); padding-left: 34px; padding-bottom: 36px; }
  .tl-item::before { left: 5px; top: 5px; }
  .tl-date { text-align: left; padding: 0; margin: 0 0 8px; }
  .chips-group { text-align: center; }
  .chips { justify-content: center; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery .wide { grid-column: 1 / -1; order: -1; }
  .gallery.four, .gallery.land, .gallery.centre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sky-cards { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 460px; margin-inline: auto; }
  .sky-next { margin-inline: auto; text-align: center; }
  .sky-stars { grid-template-columns: auto; row-gap: 18px; }
  .sky-stars li::after { display: none; }
  /* constellation verticale : un trait relie chaque étoile à la suivante */
  .sky-stars li:not(:last-child)::after { display: block; content: ""; position: absolute; left: 3px; top: calc(50% + 7px); width: 1px; height: calc(100% + 18px - 14px); background: linear-gradient(var(--gold), rgba(200, 161, 94, .3)); }
  .field, .field:has(.gallery.pair) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .field-text { text-align: center; }
  .field .statement { border-left: 0; padding-left: 0; }
  .gallery.duo { grid-template-columns: minmax(0, 1fr); }
  .gallery.duo img, .gallery.solo img { height: auto; aspect-ratio: 4 / 3; }
  .gallery.pair { grid-template-columns: minmax(0, 1fr); }
  .record caption { text-align: center; }
  .gallery.duo figure:last-child img { border-radius: 0; }
  .gallery.land img { aspect-ratio: 4 / 3; }
  .gallery img { height: auto; aspect-ratio: 3 / 4; }
  .gallery .wide img { aspect-ratio: 4 / 3; }
  .gallery figcaption { text-align: center; }
}
@media (max-width: 560px) {
  .top { padding-block: 20px; }
  .logo { font-size: 18px; }
  .logo span { display: block; }
  .top-right { gap: 14px; }
  .back { padding: 10px 14px; font-size: 12px; }
  .eyebrow { font-size: 12.5px; letter-spacing: .14em; }
  .s-title .script { display: block; margin-left: 0; margin-top: 2px; }
  .d-media .num { width: 84px; height: 84px; font-size: 28px; left: -8px; }
  .fact, .fact:nth-child(3) { padding: 22px 10px; text-align: center; }
  .fact:first-child { padding-left: 10px; }
  .fact-label { font-size: 12px; letter-spacing: .06em; }
  .statement { padding-left: 18px; }
  .card { padding: 30px 20px 26px; }
  .pager a { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 14px 18px 14px 14px; }
  .btn { padding: 15px 26px; }
  .d-contact h2 { letter-spacing: .12em; }
  .footer-band .rule { display: none; }
  .footer-band .wrap { justify-content: center; gap: 10px; }
  .footer-band p { white-space: normal; text-align: center; font-size: 12.5px; letter-spacing: .12em; line-height: 1.6; }
}
/* très petits écrans : le bouton retour ne garde que la flèche */
@media (max-width: 400px) {
  .back .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back { padding: 10px 12px; }
  .chapters a { padding: 8px 10px; font-size: 12px; letter-spacing: .04em; }
  .record th, .record td { padding-inline: 8px; }
  .record th { letter-spacing: .04em; }
  .record caption { letter-spacing: .06em; }
  .record td { font-size: 18px; }
  .s-title { font-size: clamp(32px, 11vw, 42px); }
  .pager a { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .pager strong { font-size: 22px; }
  .pager em { font-size: 20px; }
}
/* cartes de projets étroites (4 par rangée sur petit portable) */
@media (min-width: 901px) and (max-width: 1100px) {
  .proj-meta { letter-spacing: .06em; }
  .proj { padding-inline: 18px; }
}
/* filet de sécurité : un mot très long se coupe plutôt que de déborder */
.proj-meta, .s-title, .pager strong, .fact-label, .fact-value, .card h3, .proj h3, .tl-body h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* titres de la frise : jamais de césure (placé en dernier pour l'emporter) */
.timeline .tl-body h3, .projects .proj h3 { hyphens: manual; -webkit-hyphens: manual; }

/* ================================================================
   Animations de la page Astronomie (body.astro)
   Toutes désactivées si le visiteur limite les animations.
   ================================================================ */
.anim .d-hero .starfield { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(200, 161, 94, .3), var(--gold) 60%, var(--champagne)); box-shadow: 0 0 10px rgba(200, 161, 94, .6); pointer-events: none; }
.anim .d-title .ch { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* — Premier écran : entrée en scène — */
  .anim .d-hero .chapters { animation: fadeDown 1s var(--ease) .1s both; }
  .anim .d-hero .eyebrow { animation: fadeUp 1s var(--ease) .25s both; }
  .anim .d-pre { animation: blurIn 1.4s var(--ease) .45s both; }
  .anim .d-title .ch { animation: letterUp 1.1s var(--ease) both; animation-delay: calc(.6s + var(--i) * .055s); }
  .anim .d-lead { animation: fadeUp 1.2s var(--ease) 1.2s both; }
  .anim .d-hero .d-actions .btn { animation: fadeUp 1s var(--ease) both; }
  .anim .d-hero .d-actions .btn:nth-child(1) { animation-delay: 1.4s; }
  .anim .d-hero .d-actions .btn:nth-child(2) { animation-delay: 1.52s; }
  .anim .d-hero .fact { animation: fadeUp 1s var(--ease) both; }
  .anim .d-hero .fact:nth-child(1) { animation-delay: 1.6s; } .anim .d-hero .fact:nth-child(2) { animation-delay: 1.7s; }
  .anim .d-hero .fact:nth-child(3) { animation-delay: 1.8s; } .anim .d-hero .fact:nth-child(4) { animation-delay: 1.9s; }
  .anim .d-hero .d-media.cutout .outline { animation: drawArch 1.8s var(--ease) .3s both; }
  .anim .d-hero .d-media.cutout .frame { transform-origin: 50% 100%; animation: archUp 1.5s var(--ease) .15s both; }
  .anim .d-hero .d-media .num { animation: popIn 1.2s var(--ease) 1.3s both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
  @keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }
  @keyframes blurIn { from { opacity: 0; filter: blur(10px); letter-spacing: .12em; } }
  @keyframes letterUp { from { opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(6px); } }
  @keyframes drawArch { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes archUp { from { transform: scaleY(0); } }
  @keyframes popIn { from { opacity: 0; transform: scale(.3) rotate(-90deg); } }

  /* — Apparitions en cascade dans chaque section (--d posé par le script) — */
  .js .anim .rv { transition-delay: var(--d, 0s); }

  /* Titres de section : balayage + mot calligraphié qui se dévoile */
  .js .anim .s-head .s-title { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease) .1s; }
  .js .anim .s-head.in .s-title { clip-path: inset(-20% -5% -20% 0); }
  .js .anim .s-head .s-title .script { display: inline-block; opacity: 0; filter: blur(8px); transform: translateX(-12px); transition: opacity 1s ease .7s, filter 1s ease .7s, transform 1.2s var(--ease) .7s; }
  .js .anim .s-head.in .s-title .script { opacity: 1; filter: none; transform: none; }
  .js .anim .s-head .s-kicker { letter-spacing: .6em; opacity: 0; transition: letter-spacing 1.4s var(--ease), opacity 1s ease; }
  .js .anim .s-head.in .s-kicker { letter-spacing: .24em; opacity: 1; }

  /* Photos en arche : l'astre se lève (dévoilement par le bas + léger zoom arrière) */
  .js .anim .gallery.arches figure.rv { transform: none; }
  .js .anim .gallery.arches figure.rv img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.5s var(--ease) var(--d, 0s), transform 2.2s var(--ease) var(--d, 0s); }
  .js .anim .gallery.arches figure.rv.in img { clip-path: inset(-10px -10px 0 -10px); transform: none; }
  .js .anim .gallery.arches figure.rv figcaption { opacity: 0; transition: opacity 1s ease calc(var(--d, 0s) + .8s); }
  .js .anim .gallery.arches figure.rv.in figcaption { opacity: 1; }

  /* Frise : les points s'allument l'un après l'autre */
  .js .anim .tl-item.rv::before { transform: translateX(-5px) scale(0); transition: transform .8s cubic-bezier(.34, 1.8, .5, 1) calc(var(--d, 0s) + .3s); }
  .js .anim .tl-item.rv.in::before { transform: translateX(-5px) scale(1); }
  .anim .tl-item.now::before { animation: nowPulse 2.6s ease-in-out infinite; }
  @keyframes nowPulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(200, 161, 94, .18); } 50% { box-shadow: 0 0 0 10px rgba(200, 161, 94, 0), 0 0 14px var(--gold); } }

  /* Carte du ciel : les orbites montent, la constellation se trace */
  .js .anim .sky-card.rv { transform: translateY(50px) scale(.96); }
  .js .anim .sky-card.rv.in { transform: none; }
  .anim .sky-card .orb .sun { animation: sunGlow 3.4s ease-in-out infinite; }
  @keyframes sunGlow { 50% { filter: drop-shadow(0 0 12px rgba(242, 226, 198, .9)); } }
  .js .anim .sky-const .sky-stars li { opacity: 0; transform: scale(.8); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(.2s + var(--i, 0) * .22s); }
  .js .anim .sky-const.in .sky-stars li { opacity: 1; transform: none; }
  .js .anim .sky-const .sky-stars li::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease) calc(.45s + var(--i, 0) * .22s); }
  .js .anim .sky-const.in .sky-stars li::after { transform: none; }
  .anim .sky-stars li::before { animation: twinkle 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .5s); }
  @keyframes twinkle { 50% { box-shadow: 0 0 0 5px rgba(200, 161, 94, .12), 0 0 16px var(--champagne); } }

  /* Relevé officiel : les lignes glissent en place */
  .js .anim .field-text.rv .record tbody tr { opacity: 0; transform: translateX(-20px); transition: opacity .8s ease, transform 1s var(--ease); }
  .js .anim .field-text.rv.in .record tbody tr { opacity: 1; transform: none; }
  .js .anim .field-text.rv.in .record tbody tr:nth-child(1) { transition-delay: .5s; }
  .js .anim .field-text.rv.in .record tbody tr:nth-child(2) { transition-delay: .7s; }

  /* Boutons : reflet doré au survol */
  .anim .btn, .anim .tl-btn { position: relative; overflow: hidden; isolation: isolate; }
  .anim .btn::before, .anim .tl-btn::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 210, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .9s var(--ease); }
  .anim .btn:hover::before, .anim .tl-btn:hover::before { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* Projets liés : cartes plus grandes (placé en dernier pour l'emporter) */
.projects { gap: 28px; }
.proj { padding: 34px 30px 30px; }
.proj-meta { font-size: 13px; margin-bottom: 14px; }
.proj h3 { font-size: clamp(27px, 2.2vw, 32px); margin-bottom: 14px; }
.proj p { font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.proj .stack { gap: 8px; margin-bottom: 26px; }
.proj .stack li { font-size: 13px; padding: 7px 11px; }
.proj-links a { font-size: 13px; }
.proj-links .note { font-size: 14.5px; }
@media (min-width: 1300px) { #projets .wrap { width: min(1400px, 100% - 64px); } }
@media (min-width: 901px) and (min-height: 560px) {
  .proj { min-height: clamp(340px, 58vh, 540px); padding-block: clamp(22px, 4vh, 40px); }
}
@media (min-width: 901px) and (min-height: 560px) and (max-height: 800px) {
  .proj p { font-size: 15px; line-height: 1.55; }
  .proj h3 { font-size: 25px; }
}

/* ——— Triptyque des chapitres : trois arches-portails ——— */
.portals-sec { background:
  radial-gradient(ellipse 60% 55% at 50% 70%, rgba(93, 8, 17, .45), transparent 70%), var(--wine-deep); }
.portals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; }
.portal {
  position: relative; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; isolation: isolate;
  container-type: inline-size;   /* le titre se règle sur la largeur de l'arche */
  border: 1.5px solid var(--gold); border-bottom-width: 1px; border-radius: 999px 999px 0 0;
  outline: 1px solid rgba(200, 161, 94, .4); outline-offset: 7px;
  color: var(--champagne); text-align: center;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s;
}
.portal img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; }
.portal::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 2, 4, .05) 0%, rgba(21, 2, 4, .45) 40%, rgba(21, 2, 4, .95) 78%, var(--wine-deep) 100%); }
.portal-num { position: absolute; top: 16%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 7vw, 110px); line-height: 1; letter-spacing: .08em;
  color: rgba(242, 226, 198, .9); text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.portal-body { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0 26px 30px; }
.portal small { font: 500 12.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.portal strong { max-width: 100%; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 38px); font-size: min(40px, calc((100cqw - 60px) / 12.5)); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.portal em { font-family: var(--script); font-style: normal; font-size: clamp(24px, 2vw, 30px); color: var(--gold); }
.portal-text { max-width: 30ch; margin-top: 4px; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--text-soft); }
.portal-cta, .portal-here {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 22px; border-radius: 999px;
  font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.portal-cta { background: var(--gold); color: var(--noir); transition: background .3s, gap .3s; }
.portal-cta svg { width: 16px; height: 16px; }
.portal-here { border: 1px solid var(--line); color: var(--sand); }
.portal:hover { transform: translateY(-8px); border-color: var(--champagne); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(200, 161, 94, .45); }
.portal:hover img { transform: scale(1.07); }
.portal:hover .portal-cta { background: var(--champagne); gap: 14px; }
.portal:focus-visible { outline: 2px solid var(--champagne); outline-offset: 7px; }
/* chapitre en cours : présent mais estompé */
.portal.is-current { border-color: var(--line); outline-color: rgba(200, 161, 94, .15); }
.portal.is-current img { filter: grayscale(.8) brightness(.55); }
.portal.is-current .portal-num { color: rgba(242, 226, 198, .45); }

@media (min-width: 901px) and (min-height: 560px) {
  .portal { min-height: clamp(300px, calc(100vh - 290px), 620px); }
  .portal-body { padding-bottom: clamp(18px, 3.4vh, 34px); }
  .portal-text { margin-top: 0; }
}
@media (min-width: 901px) and (min-height: 560px) and (max-height: 760px) {
  .portal-text { display: none; }
  .portal-num { top: 12%; font-size: clamp(54px, 10vh, 90px); }
}
@media (max-width: 860px) {
  .portals { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 460px; margin-inline: auto; }
  .portal { min-height: 420px; }
  .portal-body { padding-inline: 18px; }
}
@media (hover: none) { .portal:hover { transform: none; } }

/* Portrait détouré (page Enseignement) : buste coupé net en bas de l'arche, la tête dépasse en haut */
.d-media.cutout.portrait { width: min(100%, 440px); }
.d-media.cutout.portrait .outline { inset: 16% 6% 0 0; }
.d-media.cutout.portrait .frame { inset: 24% 12% 0 6%; }
/* la photo repose sur le bandeau des chiffres clés, qui passe devant son bas (coupé en biais à l'origine) */
.d-hero-main:has(.portrait) { padding-bottom: 0; }
.d-media.cutout.portrait { align-self: end; }
.d-media.cutout.portrait .cut { margin-bottom: -14px; transform-origin: 50% 100%; }   /* marge sous le bandeau : le bas reste caché quand la photo monte */
.d-hero:has(.portrait) .facts { z-index: 2; }
.d-media.cutout.portrait .num { right: -6px; bottom: 18px; }
@media (min-width: 901px) and (min-height: 560px) {
  .d-media.cutout.portrait { width: min(100%, 580px, calc((100vh - 320px) * .78)); }
}
@media (max-width: 860px) { .d-hero-main .d-media.cutout.portrait { width: min(100%, 380px); } }
/* titre de la page Enseignement : jamais de césure, taille réglée pour tenir sur une ligne */
.d-hero-main:has(.portrait) .d-title { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; font-size: clamp(34px, min(4.6vw, 10vh), 80px); }
@media (max-width: 560px) { .d-hero-main:has(.portrait) .d-title { font-size: clamp(30px, 11vw, 44px); } }
@media (prefers-reduced-motion: no-preference) {
  /* entrée douce du portrait : simple fondu avec une légère montée */
  .d-hero .d-media.cutout.portrait .cut { animation: portraitIn 2.4s cubic-bezier(.25, .8, .25, 1) .3s both; }
  @keyframes portraitIn { from { opacity: 0; transform: translateY(14px); } }
}

/* Portrait Enseignement : couches en parallaxe, mêmes amplitudes que le hero de l'accueil */
.d-media.cutout.portrait .cut     { translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -8px); rotate: none; }
.d-media.cutout.portrait .frame   { translate: calc(var(--px, 0) * 6px)   calc(var(--py, 0) * 4px); }
.d-media.cutout.portrait .outline { translate: calc(var(--px, 0) * 10px)  calc(var(--py, 0) * 6px); }
.d-media.cutout.portrait .num     { translate: calc(var(--px, 0) * 22px)  calc(var(--py, 0) * 14px); }

/* Page Enseignement : toutes les photos en arche à filet or ; les photos en largeur ont une arche aplatie */
.gallery.arches.land img, .gallery.arches.land figure:first-child img,
.gallery.arches .wide img { border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.gallery.arches figcaption { text-align: center; }
.gallery.arches .wide figcaption { text-align: center; }

/* « Ma démarche » : chaque principe montre sa preuve (vignette en arche + lien vers la section photos) */
.card-thumb { display: block; width: 96px; aspect-ratio: 4 / 5; margin: 6px 0 16px; overflow: hidden;
  border: 1.5px solid var(--gold); border-radius: 999px 999px 0 0; outline: 1px solid rgba(200, 161, 94, .45); outline-offset: 4px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.08); }
.card-proof { margin-top: auto; align-self: center; }
.card p { margin-bottom: 18px; }
@media (min-width: 901px) and (min-height: 560px) {
  .card-thumb { width: clamp(64px, 11vh, 110px); margin-bottom: 1.4vh; }
}

/* ——— « Ma démarche » : triptyque d'arches, la photo au sommet, médaillon doré, fil qui relie ——— */
.principles-sec { background:
  radial-gradient(ellipse 55% 50% at 50% 62%, rgba(93, 8, 17, .5), transparent 72%),
  radial-gradient(1px 1px at 14% 22%, rgba(242,226,198,.5), transparent), radial-gradient(1px 1px at 86% 18%, rgba(242,226,198,.4), transparent),
  var(--wine-deep); }
.principles { position: relative; gap: 34px; }
/* fil doré qui relie les trois médaillons */
.principles::before { content: ""; position: absolute; left: 8%; right: 8%; top: var(--thread, 250px); height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); opacity: .55; }
.principles .card {
  z-index: 1; padding: 0 0 28px; overflow: hidden;
  border: 1.5px solid var(--gold); border-radius: 999px 999px 0 0;
  outline: 1px solid rgba(200, 161, 94, .4); outline-offset: 7px;
  background: linear-gradient(180deg, #2a0409 0%, var(--card) 55%, #120103 100%);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .85);
}
.principles .card:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .85), 0 0 40px -12px rgba(200, 161, 94, .5); }
.principles .card-thumb { position: relative; width: 100%; height: clamp(170px, 18vw, 260px); aspect-ratio: auto; margin: 0;
  border: 0; outline: 0; border-radius: 0; }
.principles .card-thumb::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 2, 4, 0) 45%, rgba(29, 3, 6, .85) 88%, var(--card) 100%); }
.principles .card-step {
  position: relative; z-index: 2; width: 66px; height: 66px; margin: -33px 0 14px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--card);
  box-shadow: 0 0 0 6px rgba(29, 3, 6, .9), 0 0 24px rgba(200, 161, 94, .35);
  font-family: var(--serif); font-size: 24px; letter-spacing: .08em; color: var(--gold);
}
.principles .card h3 { padding: 0 24px; font-size: clamp(26px, 2.3vw, 34px); }
.principles .card h3::after { content: ""; display: block; width: 44px; height: 1px; margin: 14px auto 0; background: var(--gold); }
.principles .card p { padding: 0 28px; max-width: 34ch; }
.principles .card-proof { margin-top: auto; }
@media (min-width: 901px) and (min-height: 560px) {
  .principles .card-thumb { width: 100%; height: clamp(120px, 24vh, 250px); margin: 0; }
  .principles .card-step { width: clamp(50px, 7.5vh, 66px); height: clamp(50px, 7.5vh, 66px); margin: calc(clamp(50px, 7.5vh, 66px) / -2) 0 1.4vh; font-size: clamp(18px, 2.8vh, 24px); }
  .principles .card h3::after { margin-top: 1.4vh; }
  .principles .card { padding-bottom: clamp(16px, 3vh, 28px); }
}
@media (min-width: 901px) and (min-height: 560px) and (max-height: 800px) {
  .principles .card p { font-size: 14.5px; line-height: 1.5; }
}
@media (max-width: 860px) {
  .principles::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent); }
}
@media (hover: none) { .principles .card:hover { transform: none; } }
.principles .card-step { font-size: 20px; letter-spacing: 0; }
/* sans médaillons : pas de fil, un peu d'air entre la photo et le titre */
.principles::before { display: none; }
.principles .card h3 { margin-top: 6px; }
/* frise à 4 étapes : grille 2 × 2 plutôt que 3 colonnes (évite une étape seule sur la 2e ligne) */
@media (min-width: 1200px) and (min-height: 560px) {
  .timeline:has(> .tl-item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
}

/* ——— Ateliers du samedi : texte + chiffres à gauche, collage d'arches à droite ——— */
.workshop-sec { background:
  radial-gradient(ellipse 50% 60% at 72% 55%, rgba(93, 8, 17, .5), transparent 70%),
  radial-gradient(1px 1px at 10% 20%, rgba(242,226,198,.5), transparent), radial-gradient(1.5px 1.5px at 40% 80%, rgba(200,161,94,.6), transparent),
  var(--wine-deep); }
.workshop { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.ws-lead { margin: 22px 0 0; max-width: 42ch; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; color: var(--champagne); }
.ws-facts { display: flex; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }
.ws-facts li { display: flex; flex-direction: column; gap: 4px; padding: 0 26px; border-left: 1px solid var(--line); }
.ws-facts li:first-child { padding-left: 0; border-left: 0; }
.ws-facts strong { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 58px); line-height: 1; color: var(--gold); }
.ws-facts span { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); line-height: 1.5; }

.ws-collage { position: relative; aspect-ratio: 1.12; }
.ws-collage figure { position: absolute; margin: 0; }
.ws-collage img { display: block; width: 100%; height: 100%; object-fit: cover;
  border: 1.5px solid var(--gold); outline: 1px solid rgba(200, 161, 94, .45); outline-offset: 6px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .85); }
.ws-collage figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--sand); }
.ws-big { left: 12%; right: 0; top: 0; height: 74%; }
.ws-big img { border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.ws-big figcaption { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--champagne); }
.ws-small { width: 36%; }
.ws-small img { aspect-ratio: 4 / 5; height: auto; border-radius: 999px 999px 0 0; }
.ws-a { left: 0; bottom: 0; z-index: 2; }
.ws-b { right: 6%; bottom: -2%; z-index: 2; width: 30%; }
.ws-collage .ws-small img { box-shadow: 0 0 0 8px var(--wine-deep), 0 30px 60px -20px rgba(0, 0, 0, .9); }

@media (min-width: 901px) and (min-height: 560px) {
  .ws-collage { width: min(100%, calc((100vh - 170px) * 1.12)); justify-self: center; }
  .ws-facts { margin-top: 3.4vh; }
}
@media (max-width: 860px) {
  .workshop { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ws-text { text-align: center; }
  .ws-lead { margin-inline: auto; }
  .ws-facts { justify-content: center; }
  .ws-facts li { padding: 0 16px; }
  .ws-collage { aspect-ratio: .95; max-width: 520px; width: 100%; margin-inline: auto; }
  .ws-big { left: 0; height: 62%; }
  .ws-small { width: 44%; } .ws-b { width: 40%; right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .ws-collage .ws-small.rv { transform: translateY(40px) rotate(-3deg); }
  .js .ws-collage .ws-b.rv { transform: translateY(40px) rotate(3deg); }
  .js .ws-collage .ws-small.rv.in { transform: none; }
}
.workshop .s-title { white-space: nowrap; font-size: clamp(32px, min(3.9vw, 8.5vh), 56px); }
.ws-big figcaption { position: absolute; top: 20%; right: -10px; margin: 0; padding: 8px 16px; border-radius: 999px;
  background: var(--gold); color: var(--noir); font-size: 17px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
@media (max-width: 860px) {
  .workshop .s-title { white-space: normal; }
  .ws-facts li { padding: 0 clamp(8px, 3vw, 16px); }
  .ws-facts span { font-size: 11.5px; letter-spacing: .06em; }
  .ws-facts strong { font-size: 38px; }
  .ws-big figcaption { right: 4px; font-size: 14px; }
}

/* ——— Animations propres à la page Enseignement ——— */
@media (prefers-reduced-motion: no-preference) {
  /* « Donner du sens » : les arches se lèvent l'une après l'autre, la photo se dévoile par le bas */
  .js .anim .principles .card.rv { transform: translateY(70px) scale(.95); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
  .js .anim .principles .card.rv.in { transform: none; }
  .js .anim .principles .card.rv .card-thumb img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.4s var(--ease) calc(var(--d, 0s) + .25s), transform 2s var(--ease) calc(var(--d, 0s) + .25s); }
  .js .anim .principles .card.rv.in .card-thumb img { clip-path: inset(0); transform: none; }
  .js .anim .principles .card.rv h3::after { transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--d, 0s) + .8s); }
  .js .anim .principles .card.rv.in h3::after { transform: none; }

  /* Atelier : la grande photo s'ouvre, puis les deux petites se posent comme des photos d'album */
  .js .anim .ws-collage .ws-big.rv img { clip-path: inset(0 50% 0 50%); transition: clip-path 1.4s var(--ease) .1s; }
  .js .anim .ws-collage .ws-big.rv.in img { clip-path: inset(-10px); }
  .js .anim .ws-collage .ws-small.rv { opacity: 0; transform: translateY(-60px) rotate(-8deg) scale(1.08); transition: opacity .8s ease, transform 1.3s cubic-bezier(.34, 1.4, .5, 1); }
  .js .anim .ws-collage .ws-a.rv { transition-delay: .6s; }
  .js .anim .ws-collage .ws-b.rv { transform: translateY(-60px) rotate(8deg) scale(1.08); transition-delay: .85s; }
  .js .anim .ws-collage .ws-small.rv.in { opacity: 1; transform: none; }
  .js .anim .ws-big figcaption { transform: scale(0); transition: transform .8s cubic-bezier(.34, 1.6, .5, 1) 1.3s; }
  .js .anim .ws-big.in figcaption { transform: none; }
  /* chiffres de l'atelier : ils montent l'un après l'autre */
  .js .anim .ws-facts.rv li { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform 1s var(--ease); }
  .js .anim .ws-facts.rv.in li { opacity: 1; transform: none; }
  .js .anim .ws-facts.rv.in li:nth-child(2) { transition-delay: .15s; } .js .anim .ws-facts.rv.in li:nth-child(3) { transition-delay: .3s; }

  /* Portraits en arche des galeries : léger zoom au survol */
  .anim .gallery.arches figure img { transition: clip-path 1.5s var(--ease) var(--d, 0s), transform 2.2s var(--ease) var(--d, 0s), filter .5s; }
}
/* « TEACHING » (anglais) est plus court qu'« ENSEIGNEMENT » : il peut être plus grand */
html[lang="en"] .d-hero-main:has(.portrait) .d-title { font-size: clamp(44px, min(6.8vw, 13vh), 118px); }
@media (max-width: 560px) { html[lang="en"] .d-hero-main:has(.portrait) .d-title { font-size: clamp(40px, 14vw, 60px); } }

/* ——— Apparitions des photos : une manière différente par section ———
   (la règle générale « lever par le bas » reste pour HartRAO et Donner du sens) */
@media (prefers-reduced-motion: no-preference) {
  /* Diplômée : rideau qui s'ouvre de gauche à droite */
  .js .anim #diplome .gallery.arches figure.rv img { clip-path: inset(0 100% 0 0); transform: none; transition: clip-path 1.6s cubic-bezier(.77, 0, .18, 1) var(--d, 0s); }
  .js .anim #diplome .gallery.arches figure.rv.in img { clip-path: inset(-10px); }

  /* Au tableau : balayage comme une craie, avec un léger glissement */
  .js .anim #classe .gallery.arches figure.rv img { clip-path: inset(0 100% 0 0); transform: translateX(-24px); transition: clip-path 1.2s linear var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
  .js .anim #classe .gallery.arches figure.rv.in img { clip-path: inset(-10px); transform: none; }

  /* Au labo : chaque photo tombe comme une goutte, du flou au net */
  .js .anim #labo .gallery.arches figure.rv img { clip-path: none; opacity: 0; transform: translateY(-60px); filter: blur(10px);
    transition: opacity .9s ease var(--d, 0s), transform 1.3s cubic-bezier(.34, 1.45, .5, 1) var(--d, 0s), filter 1.1s ease var(--d, 0s); }
  .js .anim #labo .gallery.arches figure.rv.in img { opacity: 1; transform: none; filter: none; }

  /* Pan-STARRS : ouverture en cercle, comme un diaphragme de télescope */
  .js .anim #pan-starrs .gallery.arches figure.rv img { clip-path: circle(0% at 50% 55%); transform: scale(1.08); transition: clip-path 1.6s var(--ease) var(--d, 0s), transform 2s var(--ease) var(--d, 0s); }
  .js .anim #pan-starrs .gallery.arches figure.rv.in img { clip-path: circle(150% at 50% 55%); transform: none; }

  /* Kenya : mise au point, du flou au net */
  .js .anim #kenya .gallery.arches figure.rv img { clip-path: none; opacity: 0; filter: blur(18px) brightness(.6); transform: scale(1.06);
    transition: opacity 1s ease var(--d, 0s), filter 1.8s ease var(--d, 0s), transform 2.2s var(--ease) var(--d, 0s); }
  .js .anim #kenya .gallery.arches figure.rv.in img { opacity: 1; filter: none; transform: none; }

  /* Certifiée : éclat lumineux qui se dissipe */
  .js .anim #certificats .gallery.arches figure.rv img { clip-path: none; opacity: 0; filter: brightness(2.6) saturate(.3); transform: scale(1.04);
    transition: opacity .6s ease var(--d, 0s), filter 1.6s ease calc(var(--d, 0s) + .15s), transform 2s var(--ease) var(--d, 0s); }
  .js .anim #certificats .gallery.arches figure.rv.in img { opacity: 1; filter: none; transform: none; }

  /* TART : la photo centrale s'ouvre depuis le milieu, les côtés glissent vers elle */
  .js .anim #tart .gallery.arches figure.rv img { clip-path: none; opacity: 0; transition: opacity 1s ease, transform 1.4s var(--ease); }
  .js .anim #tart .gallery.arches figure.rv:nth-child(1) img { transform: translateX(-80px); transition-delay: .55s; }
  .js .anim #tart .gallery.arches figure.rv:nth-child(3) img { transform: translateX(80px); transition-delay: .55s; }
  .js .anim #tart .gallery.arches figure.rv.wide img { opacity: 1; clip-path: inset(0 50% 0 50%); transition: clip-path 1.4s cubic-bezier(.77, 0, .18, 1) .1s; }
  .js .anim #tart .gallery.arches figure.rv.in img { opacity: 1; transform: none; }
  .js .anim #tart .gallery.arches figure.rv.wide.in img { clip-path: inset(-10px); }
}

/* ================= Page Entrepreneuriat (body.biz) ================= */
/* Titre : jamais de césure, taille réglée pour tenir sur une ligne */
.biz .d-title { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; font-size: clamp(30px, min(3.7vw, 9vh), 64px); }
@media (max-width: 560px) { .biz .d-title { font-size: clamp(22px, 7.4vw, 40px); } }

/* Scène « studio » : arche rouge, fenêtre de navigateur, étiquettes flottantes */
.d-media.studio { width: min(100%, 500px); padding: 0; aspect-ratio: 5 / 5.4; justify-self: start; }
.d-media.studio .outline { inset: 0 6% 0 0; }
.d-media.studio .frame { position: absolute; inset: 9% 13% 0 7%; aspect-ratio: auto; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--crimson) 0%, #6a0f19 45%, #41060c 100%); box-shadow: inset 0 0 80px rgba(21, 2, 4, .45); }
.d-media.studio .browser { position: absolute; left: -4%; right: 2%; top: 30%; z-index: 2;
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(200, 161, 94, .55);
  background: #0f0204; box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .9), 0 0 0 6px rgba(21, 2, 4, .6); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #1d0306; border-bottom: 1px solid rgba(200, 161, 94, .25); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(200, 161, 94, .55); }
.browser-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35);
  font: 500 11px/1.3 var(--sans); letter-spacing: .04em; color: var(--sand); }
.d-media.studio .browser img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 541; object-fit: cover; }
.chip-float { position: absolute; z-index: 3; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  font: 500 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
.chip-float.c1 { left: 2%; top: 17%; background: var(--gold); color: var(--noir); }
.chip-float.c2 { right: -4%; top: 22%; background: rgba(13, 1, 3, .9); color: var(--champagne); border: 1px solid var(--gold); }
.chip-float.c3 { left: 8%; bottom: 7%; background: rgba(13, 1, 3, .9); color: var(--gold); border: 1px solid var(--line); }
.d-media.studio .num { left: auto; right: 2%; bottom: 3%; z-index: 3; }
/* parallaxe en couches (mêmes réglages que le portrait) */
.d-media.studio .browser  { translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -8px); }
.d-media.studio .frame    { translate: calc(var(--px, 0) * 6px)   calc(var(--py, 0) * 4px); }
.d-media.studio .outline  { translate: calc(var(--px, 0) * 10px)  calc(var(--py, 0) * 6px); }
.d-media.studio .c1       { translate: calc(var(--px, 0) * 26px)  calc(var(--py, 0) * 16px); }
.d-media.studio .c2       { translate: calc(var(--px, 0) * -24px) calc(var(--py, 0) * 12px); }
.d-media.studio .c3       { translate: calc(var(--px, 0) * 20px)  calc(var(--py, 0) * -14px); }
.d-media.studio .num      { translate: calc(var(--px, 0) * 22px)  calc(var(--py, 0) * 14px); }
@media (min-width: 901px) and (min-height: 560px) {
  .d-media.studio { width: min(100%, 500px, calc((100vh - 330px) * .93)); }
}
@media (max-width: 860px) {
  .d-media.studio { width: min(100% - 20px, 420px); justify-self: center; }
  .chip-float { font-size: 11px; padding: 8px 12px; }
  .chip-float.c2 { right: 0; }
}

/* Mission : texte + tableau Aujourd'hui → Avec Regulus Studio */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mission .prose { max-width: none; }
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 16px; }
.shift-col { padding: 34px 26px 28px; border-radius: 999px 999px 0 0; text-align: center; }
.shift-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.shift-label { margin: 0 0 18px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.shift-col.before { border: 1px dashed rgba(200, 161, 94, .35); background: rgba(13, 1, 3, .35); }
.shift-col.before .shift-label { color: var(--sand); }
.shift-col.before li { font-size: 15px; color: rgba(242, 226, 198, .55); text-decoration: line-through; text-decoration-color: rgba(200, 161, 94, .7); }
.shift-col.after { border: 1.5px solid var(--gold); outline: 1px solid rgba(200, 161, 94, .4); outline-offset: 6px;
  background: linear-gradient(180deg, rgba(93, 8, 17, .6), rgba(29, 3, 6, .9)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.shift-col.after .shift-label { color: var(--gold); }
.shift-col.after li { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; color: var(--champagne); }
.shift-arrow { display: grid; place-items: center; color: var(--gold); }
.shift-arrow svg { width: 34px; height: 34px; }
@media (max-width: 1000px) { .mission { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) {
  .shift { grid-template-columns: minmax(0, 1fr); }
  .shift-arrow svg { transform: rotate(90deg); }
}

/* Méthode : trois arches reliées par un fil doré qui passe par les icônes */
.process { position: relative; gap: 34px; }
.process::before { content: ""; position: absolute; left: 10%; right: 10%; top: var(--thread, 74px); height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); opacity: .6; }
.process .card { z-index: 1; border: 1.5px solid var(--gold); outline: 1px solid rgba(200, 161, 94, .4); outline-offset: 7px;
  border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #2a0409 0%, var(--card) 60%, #120103 100%);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .85); padding-top: 44px; }
.process .card-ico { width: 78px; height: 78px; background: var(--card); box-shadow: 0 0 0 7px rgba(29, 3, 6, .95), 0 0 26px rgba(200, 161, 94, .35); }
.process .card-ico svg { width: 34px; height: 34px; }
.process .card h3::after { content: ""; display: block; width: 44px; height: 1px; margin: 14px auto 0; background: var(--gold); }
@media (max-width: 860px) { .process::before { display: none; } }

/* Réalisations : cartes à sommet en arche */
.biz .projects .proj { border: 1.5px solid var(--gold); border-top-width: 1.5px; border-radius: 180px 180px 0 0;
  padding-top: clamp(46px, 7vh, 64px); text-align: center; align-items: center;
  background: linear-gradient(180deg, #2a0409 0%, var(--card) 45%); }
.biz .projects .proj .stack, .biz .projects .proj .proj-links { justify-content: center; }

/* Animations propres à la page */
@media (prefers-reduced-motion: no-preference) {
  .js .anim .shift.rv .shift-col.before li { transition: text-decoration-color .6s ease, opacity .6s ease; }
  .js .anim .shift.rv:not(.in) .shift-col.before li { text-decoration-color: transparent; }
  .js .anim .shift.rv.in .shift-col.before li:nth-child(1) { transition-delay: .6s; } .js .anim .shift.rv.in .shift-col.before li:nth-child(2) { transition-delay: .8s; }
  .js .anim .shift.rv.in .shift-col.before li:nth-child(3) { transition-delay: 1s; }  .js .anim .shift.rv.in .shift-col.before li:nth-child(4) { transition-delay: 1.2s; }
  .js .anim .shift.rv .shift-col.after { opacity: 0; transform: translateX(40px); transition: opacity 1s ease 1.3s, transform 1.2s var(--ease) 1.3s; }
  .js .anim .shift.rv.in .shift-col.after { opacity: 1; transform: none; }
  .js .anim .shift.rv .shift-arrow svg { transform: translateX(-20px); opacity: 0; transition: transform 1s var(--ease) 1.1s, opacity .6s ease 1.1s; }
  .js .anim .shift.rv.in .shift-arrow svg { transform: none; opacity: 1; }
  .js .anim .process .card.rv { transform: translateY(70px) scale(.95); }
  .js .anim .process .card.rv.in { transform: none; }
  .js .anim .process .card.rv .card-ico { transform: scale(0) rotate(-120deg); transition: transform 1s cubic-bezier(.34, 1.6, .5, 1) calc(var(--d, 0s) + .4s); }
  .js .anim .process .card.rv.in .card-ico { transform: none; }
  .js .anim .biz .projects .proj.rv { transform: translateY(60px) rotate(-2deg); }
  .anim.biz .d-hero .chip-float { animation: chipIn 1s cubic-bezier(.34, 1.6, .5, 1) both; }
  .anim.biz .d-hero .chip-float.c1 { animation-delay: 1.5s; } .anim.biz .d-hero .chip-float.c2 { animation-delay: 1.7s; } .anim.biz .d-hero .chip-float.c3 { animation-delay: 1.9s; }
  @keyframes chipIn { from { opacity: 0; transform: scale(.4); } }
  .anim.biz .d-hero .browser { animation: browserIn 1.6s var(--ease) .5s both; }
  @keyframes browserIn { from { opacity: 0; transform: translateY(40px) perspective(900px) rotateX(18deg); } }
}
@media (hover: none) { .biz .projects .proj:hover { transform: none; } }
/* corrections Entrepreneuriat */
.biz .d-hero-main .d-title { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; font-size: clamp(28px, min(3.6vw, 9vh), 62px); }
@media (max-width: 560px) { .biz .d-hero-main .d-title { font-size: clamp(21px, 7.2vw, 40px); } }
.d-media.studio .browser { top: 22%; }
.d-media.studio .num { right: 0; bottom: -4%; width: 84px; height: 84px; font-size: 28px; }
.d-media.studio .chip-float.c3 { bottom: 4%; }
.biz .projects .proj-meta { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; letter-spacing: .08em; }
.browser-bar span { font-size: 12px; }
@media (max-width: 860px) { .chip-float { font-size: 12px; } }
@media (max-width: 860px) { .ws-facts span { font-size: 12px; } }
@media (min-width: 901px) and (max-width: 1100px) { .biz .projects .proj { padding-inline: 16px; } .biz .projects .proj p { font-size: 14px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; } }

/* Aucune section ne doit élargir la page : les photos décalées en attente d'animation
   (glissements, rotations, zooms) sont coupées à la largeur de l'écran.
   « clip » ne crée pas de zone de défilement (le défilement de la page reste normal). */
.d-section, body > footer, main { overflow-x: clip; }
