@import url("fonts.css?v=d317e10c8c31");

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/CinzelDecorative-Regular.ttf?v=f4adcf85e403") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/CinzelDecorative-Bold.ttf?v=d95da68eec44") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-heading: "Cinzel Decorative", Georgia, serif;
  --font-text: "Roboto", Arial, Helvetica, sans-serif;
  --font-menu: "Cinzel", Georgia, serif;
  --font-secondary: Arial, Helvetica, sans-serif;
  --ink: #06100f;
  --ink-soft: #0b1a18;
  --forest: #102923;
  --forest-artwork: url("../images/hero-forest-hd.webp?v=549cccd3a627");
  --teal: #1a877e;
  --teal-light: #79d7c8;
  --gold: #c9a96a;
  --gold-light: #ead39c;
  --paper: #eee5d0;
  --white: #fbfaf5;
  --muted: #b7c1bd;
  --border: rgba(201, 169, 106, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --content: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Justifier les paragraphes de lecture, avec une dernière ligne naturelle.
   Les intitulés courts, sous-titres et libellés gardent leur alignement. */
main p:not(.eyebrow, .hero-subtitle, .gallery-credit, .form-status):not(.person-card p) {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--gold-light);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(4, 13, 12, 0.91);
  border-color: var(--border);
  backdrop-filter: blur(15px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(121, 215, 200, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.45rem);
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  color: rgba(251, 250, 245, 0.82);
  font-family: var(--font-menu);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--white);
  background: rgba(4, 13, 12, 0.48);
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 8rem 1.5rem 6rem;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(2, 9, 8, 0.28), rgba(2, 9, 8, 0.5) 60%, var(--ink) 100%),
    var(--forest-artwork) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 49%, rgba(137, 235, 216, 0.02) 0 14%, rgba(4, 13, 12, 0.2) 40%, rgba(2, 7, 7, 0.72) 100%);
}

.hero-content {
  width: min(900px, 100%);
  text-align: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.95);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(3.6rem, 11vw, 8.6rem);
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 0.95;
}

.hero-subtitle {
  margin: 0.9rem 0 1.6rem;
  color: var(--teal-light);
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 2rem);
  letter-spacing: 0.08em;
}

.hero-intro {
  max-width: 690px;
  margin: 0 auto 2rem;
  color: rgba(251, 250, 245, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--gold-light);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--white);
  background: var(--teal);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 44px;
  margin-top: 1rem;
  padding: .25rem .75rem;
  border-radius: .35rem;
  color: var(--gold-light);
  font-family: var(--font-text);
  font-size: .66rem;
  line-height: 1.4;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue:hover,
.scroll-cue:focus-visible { color: #fff; }
.scroll-cue:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 3px; }
.scroll-cue-arrow { animation: scroll-cue-float 2.2s ease-in-out infinite; }

.portal-section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% -20%, rgba(26, 135, 126, 0.22), transparent 42%),
    var(--ink);
}

.section-heading {
  width: min(var(--content), 100%);
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.2;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.portal-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px 999px 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}

.portal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 8, 8, 0.9) 100%);
}

.portal-overlay {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1.5rem;
  left: 1.2rem;
  display: grid;
  gap: 0.25rem;
  text-align: center;
}

.portal-kicker {
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-overlay strong {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.portal-card:hover img,
.portal-card:focus-visible img {
  filter: saturate(1.15) brightness(1.06);
  transform: scale(1.055);
}

.portal-card:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 4px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  padding: 2.5rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #030a09;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
}

.site-footer p { margin: 0.25rem 0 0; }
.footer-brand {
  color: var(--white);
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.15rem;
  text-decoration: none;
}
.social-links { display: flex; gap: 1.2rem; }
.social-links a { color: var(--gold-light); text-underline-offset: 0.25em; }
.copyright { justify-self: end; text-align: right; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    padding: 0 clamp(1rem, 4vw, 4rem);
    background: rgba(4, 13, 12, 0.98);
    opacity: 0;
    transition: max-height 240ms ease, opacity 180ms ease, padding 240ms ease;
  }
  .site-header.menu-open .site-nav {
    max-height: 32rem;
    padding-top: 0.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    opacity: 1;
  }
  .site-nav a { font-size: 0.86rem; }
  .site-header.menu-open .nav-toggle > span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .site-header.menu-open .nav-toggle > span:nth-child(3) { opacity: 0; }
  .site-header.menu-open .nav-toggle > span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { min-height: 72px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 0.9rem; }
  .hero { background-position: 55% center; }
  .hero-content,
  .page-hero-content { width: calc(100vw - 3rem); max-width: 100%; }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 5rem); }
  .hero-intro { max-width: 34rem; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: min(118vw, 540px); border-radius: 45vw 45vw 1.25rem 1.25rem; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .copyright { justify-self: start; text-align: left; }
}

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

/* Pages intérieures */
.site-header.is-solid {
  background: rgba(4, 13, 12, 0.9);
  border-color: var(--border);
  backdrop-filter: blur(15px);
}

.inner-page main { overflow: hidden; }
.inner-page h1,
.inner-page h2,
.inner-page h3 {
  font-family: "Cinzel Decorative", Georgia, serif;
}

.inner-page h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.16;
}

.inner-page h3 { line-height: 1.28; }

.page-hero {
  position: relative;
  display: grid;
  min-height: min(72svh, 760px);
  place-items: end center;
  padding: 10rem 1.25rem 6rem;
  overflow: hidden;
  isolation: isolate;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 7, 0.24), rgba(2, 8, 7, 0.42) 48%, var(--ink) 100%);
}

.page-hero-content {
  width: min(900px, 100%);
  text-align: center;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.95);
}

.page-hero-content h1 {
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.5rem);
  letter-spacing: 0.035em;
  line-height: 1;
}

.page-hero-content > p:last-child {
  max-width: 690px;
  margin: 1.4rem auto 0;
  color: rgba(251, 250, 245, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.prose-section,
.timeline-section,
.people-section,
.credits-section,
.world-section,
.places-section,
.contact-section {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.1rem, 5vw, 4rem);
}

.prose-section,
.people-section,
.places-section { background: var(--ink-soft); }

.two-column-intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.prose-copy {
  color: rgba(251, 250, 245, 0.82);
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
}

.prose-copy p:first-child { margin-top: 0; }
.prose-copy p:last-child { margin-bottom: 0; }
.prose-copy strong { color: var(--white); }

.story-image-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(var(--content), calc(100% - 2.2rem));
  margin: clamp(4rem, 8vw, 7rem) auto;
  padding: 0;
  background: transparent;
}

.story-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50% 50% 1rem 1rem / 16% 16% 1rem 1rem;
  box-shadow: var(--shadow);
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(2, 8, 7, 0.55);
}

.story-image img { width: 100%; min-height: 430px; object-fit: cover; }

.pitch-card,
.intention-card {
  position: relative;
  width: min(920px, calc(100% - 2.2rem));
  margin: clamp(4rem, 9vw, 8rem) auto;
  padding: clamp(2rem, 7vw, 5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(238, 229, 208, 0.95), rgba(238, 229, 208, 0.95)),
    url("../images/paper-texture.jpg?v=b85babe501d8") center / cover;
  box-shadow: var(--shadow);
  color: #20201b;
  text-align: center;
}

.pitch-card::before,
.intention-card::before {
  content: "✦";
  position: absolute;
  top: -1.05rem;
  left: 50%;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  place-items: center;
  color: var(--gold-light);
  background: var(--ink);
  transform: translateX(-50%);
}

.pitch-card .eyebrow,
.intention-card .eyebrow { color: #715929; }
.pitch-card h2,
.intention-card h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.pitch-card p:last-child,
.intention-card p { max-width: 750px; margin-right: auto; margin-left: auto; }

.timeline-section {
  background: radial-gradient(circle at 50% 0, rgba(26, 135, 126, 0.16), transparent 36%);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  width: min(900px, 100%);
  margin: 4rem auto 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8.6rem;
  width: 1px;
  background: linear-gradient(transparent, var(--gold), transparent);
}

.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 3rem;
  padding: 0 0 3.6rem;
}

.timeline-year {
  color: var(--gold-light);
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.35rem;
  text-align: right;
}

.timeline li > div { position: relative; }
.timeline li > div::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -3.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 7px rgba(201, 169, 106, 0.1);
}

.timeline h3 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.timeline p { margin: 0; color: var(--muted); }

.closing-statement {
  padding: clamp(5rem, 11vw, 10rem) max(1.1rem, calc((100vw - 850px) / 2));
  background:
    linear-gradient(rgba(3, 12, 10, 0.78), rgba(3, 12, 10, 0.95)),
    var(--forest-artwork) center 74% / cover fixed;
  text-align: center;
}

.closing-statement h2 { font-size: clamp(2.2rem, 5.2vw, 4.3rem); }
.closing-statement > p:not(.eyebrow) { max-width: 740px; margin: 1.5rem auto 2rem; color: var(--muted); }

/* Équipe */
.intention-section { padding: 1px 0; }
.people-section:nth-of-type(even) { background: var(--ink); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px 999px 1rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.person-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person-card > div { min-height: 112px; padding: 1.2rem 1rem 1.4rem; text-align: center; }
.person-card h3 { margin: 0 0 0.3rem; font-size: clamp(1rem, 2vw, 1.27rem); }
.person-card p { margin: 0; color: var(--gold-light); font-family: var(--font-text); font-size: 0.82rem; }
a.person-card { text-decoration: none; }
a.person-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
a.person-card:is(:hover, :focus-visible) h3 { color: var(--gold-light); text-decoration: underline; text-underline-offset: .25em; }
.person-placeholder img { padding: 22%; background: radial-gradient(circle, rgba(26, 135, 126, 0.2), transparent 65%); object-fit: contain; }

.credits-section { background: var(--ink); }
.supporting-cast { padding-top: 0; }

/* Carte et univers */
.map-section { padding: clamp(4.5rem, 9vw, 8rem) 0; background: #e8dfc9; color: #202018; }
.map-section .eyebrow { color: #715929; }
.map-heading { padding: 0 1.1rem; }
.map-heading > p:last-child { max-width: 700px; margin: 1rem auto 0; color: #625d51; }

.map-canvas { position: relative; overflow: hidden; background: #cfbf9e; }
.map-canvas > img { width: 100%; height: 100%; object-fit: cover; }
.map-overlay { --map-highlight: #366653; position: absolute; inset: 0; width: 100%; height: 100%; }
.map-shape { cursor: pointer; }
.map-shape:focus { outline: none; }
.map-region {
  fill: rgba(74, 41, 24, .065);
  stroke: #43261a;
  stroke-width: 2.3px;
  stroke-linejoin: round;
  pointer-events: visibleFill;
  vector-effect: non-scaling-stroke;
}
.map-region:is(:hover, :focus-visible, .is-selected) {
  fill: var(--map-highlight);
  fill-opacity: .42;
  stroke: #30190e;
  stroke-width: 2.65px;
}
.map-point-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 14px;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
}
.map-point-marker {
  fill: #f5dfab;
  stroke: #274b3f;
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.map-point:is(:hover, :focus-visible, .is-selected) .map-point-marker {
  fill: var(--map-highlight);
  stroke: #ffe9b5;
  stroke-width: 1.45px;
}

.map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: min(230px, calc(100% - 16px));
  padding: 0.5rem 0.75rem;
  border-radius: 0.3rem;
  color: var(--white);
  background: rgba(4, 13, 12, 0.93);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  font-family: var(--font-text);
  font-size: 0.77rem;
  pointer-events: none;
  opacity: 0;
  overflow-wrap: anywhere;
}
.map-tooltip.is-visible { opacity: 1; }

.world-section { background: var(--ink); }
.region-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  width: min(var(--content), 100%);
  margin: 0 auto;
}
.region-card { grid-column: span 2; padding: clamp(1.5rem, 3vw, 2.3rem); border: 1px solid var(--border); border-radius: 0.75rem; background: linear-gradient(145deg, rgba(26, 135, 126, 0.09), transparent); }
.region-card:nth-child(4) { grid-column: 2 / span 2; }
.region-number { color: var(--gold); font-family: "Cinzel Decorative", Georgia, serif; font-size: 2.5rem; opacity: 0.55; }
.region-card h3 { margin: 0.3rem 0 0.9rem; font-size: 1.55rem; }
.region-card p { color: var(--muted); }

.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; width: min(var(--content), 100%); margin: 0 auto; }
.place-card { display: grid; grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr); overflow: hidden; border: 1px solid var(--border); border-radius: 0.75rem; background: #071210; }
.place-card img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.place-card > div { padding: clamp(1.2rem, 3vw, 2rem); }
.place-card h3 { margin: 0 0 0.75rem; font-size: 1.3rem; }
.place-card p { margin: 0; color: var(--muted); }

/* Galerie */
.gallery-section { padding: clamp(4rem, 8vw, 7rem) clamp(0.75rem, 3vw, 2rem); background: var(--ink-soft); }
.gallery-section.alternate { background: var(--ink); }
.gallery-intro { display: grid; grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr); gap: 2rem; align-items: end; width: min(var(--content), 100%); margin: 0 auto 2rem; }
.gallery-intro h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
.gallery-intro > p { max-width: 660px; margin: 0 0 0.5rem; color: var(--muted); }
.photo-grid { display: grid; grid-auto-flow: dense; grid-auto-rows: 240px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; width: min(1400px, 100%); margin: 0 auto; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 0.35rem; background: #020606; cursor: zoom-in; }
.gallery-item-wide { grid-column: span 2; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease, filter 350ms ease; }
.gallery-item::after { content: "+"; position: absolute; right: 0.7rem; bottom: 0.7rem; display: grid; width: 2.15rem; height: 2.15rem; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; place-items: center; color: var(--white); background: rgba(4, 13, 12, .62); opacity: 0; transition: opacity 180ms ease; }
.gallery-item:hover img,
.gallery-item:focus-visible img { filter: brightness(1.08); transform: scale(1.045); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }

.lightbox {
  --lightbox-gutter: clamp(.5rem, 2vw, 1.25rem);
  --lightbox-gap: clamp(.35rem, 1vw, .75rem);
  --lightbox-button: clamp(44px, 4vw, 50px);
  --lightbox-top: 3.75rem;
  --lightbox-bottom: 1.125rem;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--lightbox-top) var(--lightbox-gutter) var(--lightbox-bottom);
  border: 0;
  color: var(--white);
  background: transparent;
}
.lightbox[open] { display: grid; place-items: safe center; }
.lightbox::backdrop { background: #1a2723; }
.lightbox figure {
  display: grid;
  min-width: 0;
  gap: .75rem;
  margin: 0;
  justify-items: center;
}
.lightbox-stage {
  display: flex;
  align-items: center;
  gap: var(--lightbox-gap);
}
.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: min(75rem, calc(100dvw - 2 * (var(--lightbox-gutter) + var(--lightbox-button) + var(--lightbox-gap))));
  max-height: max(5rem, calc(100dvh - var(--lightbox-top) - var(--lightbox-bottom) - 4.75rem));
  border-radius: .4rem;
}
.lightbox figcaption {
  color: var(--white);
  font-size: .85rem;
  line-height: 1.45;
  text-align: center;
}
.lightbox-counter {
  display: block;
  margin-top: .3rem;
  color: var(--gold-light);
  font-size: .72rem;
  letter-spacing: .12em;
}
.lightbox-close,
.lightbox-control {
  display: grid;
  flex: none;
  width: var(--lightbox-button);
  height: var(--lightbox-button);
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold-light);
  background: #23352e;
  cursor: pointer;
}
.lightbox :is(.lightbox-close, .lightbox-control):is(:hover, :focus-visible) {
  border-color: var(--gold-light);
  color: var(--white);
  background: #30453c;
}
.lightbox-close {
  position: fixed;
  z-index: 2;
  top: .625rem;
  right: var(--lightbox-gutter);
}
.lightbox-close::before,
.lightbox-close::after {
  content: "";
  grid-area: 1 / 1;
  width: .95rem;
  height: 2px;
  border-block-start: 2px solid currentColor;
  transform: rotate(45deg);
}
.lightbox-close::after { transform: rotate(-45deg); }
.lightbox-control::before {
  content: "";
  width: .625rem;
  height: .625rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-.18rem) rotate(45deg);
}
.lightbox-control.previous::before { transform: translateX(.18rem) rotate(-135deg); }
body.gallery-open { overflow: hidden; }

/* Contact */
.contact-section { background: radial-gradient(circle at 20% 20%, rgba(26, 135, 126, 0.16), transparent 36%), var(--ink); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr); gap: clamp(3rem, 8vw, 8rem); width: min(1120px, 100%); margin: 0 auto; }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.contact-copy > p { color: var(--muted); }
.contact-form { padding: clamp(1.4rem, 4vw, 2.8rem); border: 1px solid var(--border); border-radius: 0.8rem; background: rgba(255, 255, 255, 0.03); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.form-field :is(label, legend) { font-family: var(--font-text); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.form-field label > span:not(.optional) { color: var(--gold-light); }
.optional { color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.form-field :is(input, textarea, select) { width: 100%; border: 1px solid rgba(201, 169, 106, 0.36); border-radius: 0.35rem; outline: 0; color: var(--white); background: rgba(2, 8, 7, 0.62); transition: border-color 160ms ease, box-shadow 160ms ease; }
.form-field :is(input, select) { height: 3.2rem; padding: 0 0.85rem; }
.form-field textarea { min-height: 180px; padding: 0.75rem 0.85rem; resize: vertical; }
.form-field :is(input, textarea, select):focus { border-color: var(--teal-light); box-shadow: 0 0 0 3px rgba(121, 215, 200, 0.12); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-button { border: 1px solid var(--gold); cursor: pointer; }
.submit-button:disabled { cursor: wait; opacity: 0.6; }
.form-status { margin: 0; font-family: var(--font-text); font-size: 0.84rem; }
.form-status:not(:empty) { margin-top: .75rem; }
.form-status.success { color: var(--teal-light); }
.form-status.error { color: #ffb6aa; }

.error-page {
  display: grid;
  min-height: 100svh;
  padding: 2rem;
  place-content: center;
  justify-items: center;
  background:
    linear-gradient(rgba(2, 8, 7, 0.55), rgba(2, 8, 7, 0.92)),
    var(--forest-artwork) center / cover;
  text-align: center;
}
.error-page img { margin-bottom: 1.5rem; filter: drop-shadow(0 0 20px rgba(121, 215, 200, 0.3)); }
.error-page h1 { max-width: 800px; margin: 0; font-family: "Cinzel Decorative", Georgia, serif; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.1; }
.error-page > p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 940px) {
  .two-column-intro,
  .story-image-section,
  .contact-layout { grid-template-columns: 1fr; }
  .story-image-section { gap: 2.5rem; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-card,
  .region-card:nth-child(4) { grid-column: auto; }
  .region-card:last-child { grid-column: 1 / -1; }
  .place-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page-hero { min-height: 580px; padding-bottom: 4rem; }
  .page-hero-content h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .story-image img { min-height: 310px; }
  .timeline::before { left: 0.4rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.55rem; padding-left: 2.2rem; }
  .timeline-year { text-align: left; }
  .timeline li > div::before { top: -2.45rem; left: -2.2rem; }
  .people-grid,
  .region-grid,
  .field-grid { grid-template-columns: 1fr; }
  .map-canvas { min-height: 520px; }
  .map-canvas > img { object-fit: fill; }
  .place-card { grid-template-columns: 1fr; }
  .place-card img { min-height: 220px; }
  .gallery-intro { grid-template-columns: 1fr; gap: 0.4rem; }
  .photo-grid { grid-auto-rows: 180px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item-wide { grid-column: span 2; }
  .gallery-item-tall { grid-row: span 1; }
  .contact-form { padding: 1.2rem; }
}

/* Expérience cinématographique */
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 102, 94, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 55%, rgba(142, 105, 48, 0.055), transparent 34rem),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, transparent 0 2px, rgba(255,255,255,.52) 2.5px 3px, transparent 3.5px 6px),
    repeating-linear-gradient(112deg, transparent 0 5px, rgba(255,255,255,.28) 6px, transparent 7px 13px);
  background-size: 53px 47px, 71px 67px;
  mix-blend-mode: soft-light;
}

main,
.site-footer {
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

body.is-leaving main,
body.is-leaving .site-footer {
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.995);
}

.home-page main,
.inner-page main {
  animation: page-arrival 900ms cubic-bezier(.2,.7,.2,1) both;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-light), var(--gold-light), var(--teal-light));
  box-shadow: 0 0 16px rgba(121, 215, 200, 0.72);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.magic-atmosphere {
  position: fixed;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  opacity: 0.58;
  pointer-events: none;
}

.magic-particle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: rgba(177, 255, 236, 0.92);
  box-shadow: 0 0 8px 2px rgba(105, 224, 203, 0.5), 0 0 22px rgba(121, 215, 200, 0.35);
  opacity: 0;
  animation: particle-drift var(--duration, 14s) ease-in-out var(--delay, 0s) infinite;
}

.magic-particle:nth-child(1)  { --x: 7%;  --y: 80%; --size: 2px; --duration: 13s; --delay: -3s; }
.magic-particle:nth-child(2)  { --x: 14%; --y: 36%; --size: 3px; --duration: 17s; --delay: -8s; }
.magic-particle:nth-child(3)  { --x: 22%; --y: 68%; --size: 2px; --duration: 11s; --delay: -6s; }
.magic-particle:nth-child(4)  { --x: 31%; --y: 22%; --size: 4px; --duration: 19s; --delay: -2s; }
.magic-particle:nth-child(5)  { --x: 39%; --y: 87%; --size: 2px; --duration: 15s; --delay: -11s; }
.magic-particle:nth-child(6)  { --x: 47%; --y: 49%; --size: 3px; --duration: 12s; --delay: -5s; }
.magic-particle:nth-child(7)  { --x: 55%; --y: 73%; --size: 2px; --duration: 18s; --delay: -13s; }
.magic-particle:nth-child(8)  { --x: 62%; --y: 27%; --size: 3px; --duration: 14s; --delay: -7s; }
.magic-particle:nth-child(9)  { --x: 69%; --y: 91%; --size: 2px; --duration: 20s; --delay: -1s; }
.magic-particle:nth-child(10) { --x: 76%; --y: 57%; --size: 4px; --duration: 16s; --delay: -9s; }
.magic-particle:nth-child(11) { --x: 83%; --y: 18%; --size: 2px; --duration: 12s; --delay: -4s; }
.magic-particle:nth-child(12) { --x: 91%; --y: 76%; --size: 3px; --duration: 18s; --delay: -14s; }
.magic-particle:nth-child(13) { --x: 4%;  --y: 12%; --size: 2px; --duration: 16s; --delay: -10s; }
.magic-particle:nth-child(14) { --x: 51%; --y: 9%;  --size: 2px; --duration: 13s; --delay: -5s; }
.magic-particle:nth-child(15) { --x: 95%; --y: 42%; --size: 2px; --duration: 15s; --delay: -12s; }
.magic-particle:nth-child(16) { --x: 27%; --y: 95%; --size: 3px; --duration: 19s; --delay: -8s; }

.site-header {
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(121,215,200,.72), rgba(234,211,156,.7), transparent);
  transform: scaleX(0.4);
  transition: opacity 300ms ease, transform 600ms ease;
}

.site-header.is-scrolled::before,
.site-header.is-solid::before,
.site-header.menu-open::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
}

.brand img {
  animation: rune-pulse 4.8s ease-in-out infinite;
  transition: transform 450ms cubic-bezier(.2,.8,.2,1), filter 450ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  filter: drop-shadow(0 0 20px rgba(121, 215, 200, 0.78));
  transform: rotate(9deg) scale(1.08);
}

.brand span {
  background: linear-gradient(90deg, var(--white), var(--gold-light), var(--white));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shimmer 8s linear infinite;
}

.site-nav a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--white);
  text-shadow: 0 0 14px rgba(234, 211, 156, 0.38);
}

.hero,
.page-hero {
  --hero-shift: 0px;
  background-position: center calc(var(--hero-y, 50%) + var(--hero-shift));
  transition: background-position 80ms linear;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.75;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.025) 44%, transparent 62%);
}

.hero-content,
.page-hero-content {
  animation: hero-content-arrival 1.15s cubic-bezier(.16,.75,.22,1) 120ms both;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1,
  .page-hero-content h1 {
    color: transparent;
    background: linear-gradient(110deg, #fff 12%, #ead39c 33%, #fff 49%, #91e5d7 68%, #fff 88%);
    background-size: 240% auto;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 5px 22px rgba(0,0,0,.62));
    animation: title-shimmer 10s linear infinite;
  }
}

.hero-content .eyebrow,
.page-hero-content .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-content .eyebrow::before,
.hero-content .eyebrow::after,
.page-hero-content .eyebrow::before,
.page-hero-content .eyebrow::after {
  content: "";
  width: clamp(1.5rem, 5vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.hero-content .eyebrow::after,
.page-hero-content .eyebrow::after { transform: rotate(180deg); }

.hero-subtitle {
  filter: drop-shadow(0 0 14px rgba(121, 215, 200, 0.25));
  animation: subtitle-breathe 5s ease-in-out infinite;
}

.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 9px 30px rgba(0,0,0,.2);
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -35%;
  width: 22%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(7px);
  transform: rotate(18deg) translateX(-350%);
  transition: transform 750ms cubic-bezier(.2,.7,.2,1);
}

.button:hover::before,
.button:focus-visible::before { transform: rotate(18deg) translateX(760%); }

.button-primary {
  box-shadow: 0 10px 35px rgba(201, 169, 106, 0.18), inset 0 1px rgba(255,255,255,.45);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 13px 42px rgba(26, 135, 126, 0.38), 0 0 0 1px rgba(121,215,200,.4);
}

.section-heading {
  position: relative;
  padding-bottom: 1.45rem;
}

.section-heading::after {
  content: "✦";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 7rem;
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold), transparent 35% 65%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0.72;
}

.is-enhanced .reveal-item {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 780ms cubic-bezier(.16,.75,.22,1),
    transform 820ms cubic-bezier(.16,.75,.22,1);
  transition-delay: calc(var(--reveal-order, 0) * 45ms);
}

.is-enhanced .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.tilt-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,.22), transparent 38%);
  transition: opacity 220ms ease;
}

.tilt-card:hover::before { opacity: 1; }

.portal-card {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5), 0 0 0 rgba(121, 215, 200, 0);
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: rgba(121, 215, 200, 0.7);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.58), 0 0 32px rgba(121, 215, 200, 0.17);
}

.portal-overlay { transform: translateZ(26px); }

.story-image,
.pitch-card,
.intention-card,
.contact-form {
  transition: box-shadow 450ms ease, border-color 450ms ease, transform 450ms cubic-bezier(.2,.7,.2,1);
}

.story-image:hover,
.pitch-card:hover,
.intention-card:hover,
.contact-form:focus-within {
  border-color: rgba(121, 215, 200, 0.46);
  box-shadow: 0 30px 90px rgba(0,0,0,.46), 0 0 38px rgba(26,135,126,.1);
}

.person-card:hover,
.region-card:hover {
  border-color: rgba(121, 215, 200, 0.55);
  box-shadow: 0 20px 55px rgba(0,0,0,.36), 0 0 28px rgba(26,135,126,.1);
}

.place-card {
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 350ms cubic-bezier(.2,.7,.2,1);
}

.place-card img { transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 500ms ease; }
.place-card:hover { border-color: rgba(201,169,106,.58); box-shadow: 0 22px 55px rgba(0,0,0,.35); transform: translateY(-5px); }
.place-card:hover img { filter: saturate(1.08) contrast(1.04); transform: scale(1.05); }

.gallery-item {
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 350ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  z-index: 2;
  box-shadow: 0 22px 50px rgba(0,0,0,.48), 0 0 0 1px rgba(234,211,156,.45);
  transform: translateY(-4px) scale(1.015);
}

.gallery-item::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.2) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 850ms cubic-bezier(.2,.7,.2,1), opacity 250ms ease;
}

.gallery-item:hover::before,
.gallery-item:focus-visible::before { opacity: .6; transform: translateX(120%); }

.form-field :is(input, textarea, select):hover { border-color: rgba(201,169,106,.62); }

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -10rem;
  left: 50%;
  width: 34rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,135,126,.13), transparent 68%);
  pointer-events: none;
  transform: translateX(-50%);
}

@keyframes page-arrival {
  from { opacity: 0; filter: blur(5px); transform: scale(1.006); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes hero-content-arrival {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes particle-drift {
  0%, 100% { opacity: 0; transform: translate3d(0, 24px, 0) scale(.65); }
  18% { opacity: .8; }
  55% { opacity: .35; transform: translate3d(18px, -42px, 0) scale(1.1); }
  82% { opacity: .75; }
  100% { transform: translate3d(-9px, -92px, 0) scale(.78); }
}

@keyframes title-shimmer {
  from { background-position: 0% center; }
  to { background-position: 240% center; }
}

@keyframes rune-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(121,215,200,.32)); }
  50% { filter: drop-shadow(0 0 20px rgba(121,215,200,.7)); }
}

@keyframes subtitle-breathe {
  0%, 100% { opacity: .84; text-shadow: 0 0 0 rgba(121,215,200,0); }
  50% { opacity: 1; text-shadow: 0 0 22px rgba(121,215,200,.34); }
}

@keyframes scroll-cue-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 780px) {
  .magic-atmosphere { opacity: .42; }
  .magic-particle:nth-child(even) { display: none; }
  .hero-content .eyebrow,
  .page-hero-content .eyebrow { gap: .55rem; }
  .hero-content .eyebrow::before,
  .hero-content .eyebrow::after,
  .page-hero-content .eyebrow::before,
  .page-hero-content .eyebrow::after { width: 1.25rem; }
}

@media (pointer: coarse) {
  .tilt-card { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .magic-atmosphere,
  .scroll-progress { display: none; }
  .scroll-cue-arrow { animation: none; }
  .is-enhanced .reveal-item,
  .is-enhanced .reveal-item.is-visible { opacity: 1 !important; transform: none !important; }
  .hero,
  .page-hero { background-position: center var(--hero-y, 50%); }
}

/* Galeries et détails de l’univers */
.gallery-description p { margin: 0 0 .75rem; color: var(--muted); }
.world-details { margin-top: 1rem; color: var(--muted); }
.world-details summary { color: var(--gold-light); font-family: var(--font-text); font-size: .77rem; cursor: pointer; }
.world-details[open] summary { margin-bottom: .9rem; }
.world-details p + p { margin-top: 1rem; }
.region-card,
.place-card { scroll-margin-top: 110px; }
.place-card { align-items: start; }
.place-card > img { height: 300px; }
.map-canvas { align-self: start; min-height: 0; aspect-ratio: 4096 / 4600; }
.map-canvas > img { height: auto; }
.story-image img { height: auto; }
/* Accueil : navigation centrée et scène de forêt continue. */
.home-page .site-header {
  justify-content: center;
  padding: .9rem clamp(.75rem, 4vw, 3rem);
}

.home-page .site-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4.5vw, 3.8rem);
  max-height: none;
  overflow: visible;
  padding: 0;
  opacity: 1;
  background: none;
}

.home-page .site-nav > a,
.home-page .nav-dropdown > summary {
  padding: .7rem 0;
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-menu);
  font-size: .87rem;
  font-weight: 400;
  letter-spacing: .07em;
  white-space: nowrap;
}

.home-page .nav-dropdown { position: relative; }
.home-page .nav-dropdown > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  list-style: none;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}
.home-page .nav-dropdown > summary::-webkit-details-marker { display: none; }
.home-page .nav-dropdown > summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: .3rem;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  opacity: .8;
}
.home-page .nav-chevron {
  width: .4rem;
  height: .4rem;
  margin-top: -.2rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.home-page .nav-dropdown[open] .nav-chevron { transform: translateY(.15rem) rotate(225deg); }
.home-page .nav-submenu {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 50%;
  width: 250px;
  margin: 0;
  padding: .5rem;
  border: 1px solid rgba(234, 211, 156, .35);
  border-radius: .9rem;
  list-style: none;
  background: rgba(6, 22, 18, .96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}
.home-page .nav-submenu a {
  display: block;
  padding: .8rem 1rem;
  border-radius: .5rem;
  font-family: var(--font-heading);
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: none;
}
.home-page .nav-submenu a::after { display: none; }
.home-page .nav-submenu a:hover,
.home-page .nav-submenu a:focus-visible { color: #fff; background: rgba(121, 215, 200, .12); }
.home-page .nav-dropdown > summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; border-radius: .25rem; }

/* Le fond fixe est partagé par les deux sections ; le contenu reste fluide. */
.home-page main { animation: none; }
.home-scene { position: relative; z-index: 0; isolation: isolate; }
.home-scene::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -80px -24px;
  pointer-events: none;
  background:
    linear-gradient(rgba(2, 10, 8, .2), rgba(2, 10, 8, .3)),
    url("../images/foret-accueil-branches.jpg?v=d6faeb24106b") center / cover no-repeat;
  transform: translate3d(var(--scene-x, 0px), calc(var(--scene-y, 0px) + var(--scene-shift, 0px)), 0);
  transition: transform 240ms ease-out;
  will-change: transform;
}
.home-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 10, 8, .12), rgba(2, 10, 8, .14) 35%, rgba(2, 10, 8, .2) 65%, rgba(2, 10, 8, .4) 88%, #030a09);
}
.home-page .hero {
  min-height: 0;
  padding: clamp(6.8rem, 19svh, 10.75rem) 1.5rem 1.25rem;
  background: none;
}
.home-page .hero::before {
  inset-inline-start: auto;
  width: min(100%, 65rem);
  pointer-events: none;
  background:
    linear-gradient(rgb(3 15 12 / .44), rgb(3 15 12 / .35)),
    url("../recovered/2025/04/ancien-portail-magique.webp?v=5249d434b52d") center 36% / cover no-repeat;
  opacity: .54;
  mask-image: linear-gradient(90deg, transparent 8%, #000 41% 68%, transparent),
    linear-gradient(transparent, #000 17% 45%, transparent 85%);
  mask-composite: intersect;
}
.home-page .hero-content { position: relative; z-index: 1; width: min(900px, 100%); text-shadow: 0 2px 18px rgba(0, 0, 0, .72); }
.home-page .hero h1 {
  margin: 0;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  filter: none;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.05;
  animation: none;
}
.home-page .hero-subtitle {
  margin: .7rem 0 0;
  color: #fff;
  filter: none;
  font-size: clamp(1rem, 2.45vw, 1.8rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  animation: none;
}
.home-page .hero-content .eyebrow {
  max-width: 100%;
  margin: 1.65rem 0 1.6rem;
  font-size: clamp(.66rem, .85vw, .76rem);
  letter-spacing: .15em;
}
.home-page .hero-intro {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.8;
}
.home-page .portal-section { padding: 1.75rem clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); scroll-margin-top: 88px; background: transparent; }
.home-page .portal-grid { gap: 1.25rem; }
.home-page .portal-card {
  min-height: 0;
  aspect-ratio: 1;
  border-color: rgba(234, 211, 156, .38);
  border-radius: 1.6rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .13);
}
.home-page .portal-card::after { background: linear-gradient(180deg, transparent 30%, rgba(2, 8, 8, .68)); }
.home-page .portal-card:hover,
.home-page .portal-card:focus-visible {
  border-color: rgba(121, 215, 200, .65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2), 0 0 14px rgba(121, 215, 200, .08);
}

@media (max-width: 680px) {
  .home-page .site-header { min-height: 72px; padding: .6rem .75rem; }
  .home-page .site-nav { gap: clamp(.8rem, 4vw, 1.5rem); }
  .home-page .site-nav > a,
  .home-page .nav-dropdown > summary { font-size: .75rem; letter-spacing: .04em; padding-block: .9rem; }
  .home-page .nav-dropdown > summary { gap: .4rem; }
  .home-page .nav-submenu { left: 0; width: min(250px, calc(100vw - 2rem)); transform: none; }
  .home-page .hero { padding: clamp(6rem, 15svh, 8.4rem) 1.25rem 1rem; }
  .home-page .hero::before {
    opacity: .39;
    background-position: 53% top;
    background-size: auto 63%;
    mask-image: linear-gradient(transparent, #000 12% 34%, transparent 62%);
  }
  .home-page .hero-content { width: 100%; }
  .home-page .hero h1 { font-size: clamp(2.6rem, 12.8vw, 4.3rem); }
  .home-page .hero-subtitle { font-size: clamp(.95rem, 4.3vw, 1.3rem); }
  .home-page .hero-content .eyebrow { margin: 1.5rem 0; font-size: .65rem; letter-spacing: .12em; }
  .home-page .hero-content .eyebrow::before,
  .home-page .hero-content .eyebrow::after { display: none; }
  .home-page .portal-section { padding-top: 1.25rem; }
  .home-page .portal-grid { width: min(440px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-scene::before { transform: none; transition: none; }
}
