/* Direction commune : forêt, titres blancs, or discret et parchemin. */

/* Navigation identique sur les sept pages, présente dans le HTML livré. */
.site-header.site-header--centered {
  min-height: 82px;
  justify-content: center;
  padding: .9rem clamp(.75rem, 4vw, 3rem);
}
.site-nav.site-nav--centered {
  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;
}
.site-header--centered .nav-home { position: relative; display: flex; align-items: center; gap: .12rem; }
.site-header--centered .site-nav--centered > a,
.site-header--centered .nav-home > a {
  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;
}
.site-header--centered .nav-home--current > a::after { transform: scaleX(1); }
.site-header--centered .nav-dropdown { position: static; }
.site-header--centered .nav-dropdown > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  color: #fff;
  list-style: none;
  cursor: pointer;
}
.site-header--centered .nav-dropdown > summary::-webkit-details-marker { display: none; }
.site-header--centered .nav-dropdown > summary::after { content: none; }
.site-header--centered .nav-dropdown > summary:hover { background: rgba(255, 255, 255, .06); }
.site-header--centered .nav-dropdown > summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.site-header--centered .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;
}
.site-header--centered .nav-dropdown[open] .nav-chevron { transform: translateY(.15rem) rotate(225deg); }
.site-header--centered .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%);
}
.site-header--centered .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;
}
.site-header--centered .nav-submenu a::after { display: none; }
.site-header--centered .nav-submenu a:hover,
.site-header--centered .nav-submenu a:focus-visible,
.site-header--centered .nav-submenu a[aria-current="page"] { color: #fff; background: rgba(121, 215, 200, .12); }

/* Les pages intérieures prolongent le fond et les matières de l’accueil. */
.inner-page {
  --section-space: clamp(1.5rem, 3vw, 2.25rem);
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --panel-radius: 1.4rem;
  --panel-fill: rgba(6, 24, 19, .76);
  --panel-border: rgba(234, 211, 156, .24);
  --panel-shadow: 0 6px 22px rgba(0, 0, 0, .14);
}
.inner-page main { position: relative; z-index: 0; isolation: isolate; overflow: clip; padding-bottom: 1.5rem; animation: none; }
.inner-page main::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -80px -24px;
  pointer-events: none;
  background:
    linear-gradient(rgba(2, 12, 9, .62), rgba(2, 12, 9, .76)),
    var(--forest-artwork) 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;
}
.inner-page main::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 10, 9, .25) 90%, #030a09);
}
.inner-page .page-hero {
  min-height: 340px;
  padding: 7.7rem var(--page-gutter) 2.3rem;
  place-items: center;
  background: none;
}
.inner-page .page-hero::before {
  background: var(--page-artwork, none) center / cover no-repeat;
  opacity: .24;
  mask-image: linear-gradient(#000 10%, transparent 100%);
}
.inner-page .page-hero::after { opacity: .35; }
.inner-page .page-hero-history { --page-artwork: url("../images/hero-history-hd.webp?v=acbdeb50f084"); }
.inner-page .page-hero-team { --page-artwork: url("../images/hero-team-hd.webp?v=d47d19534995"); }
.inner-page .page-hero-universe { --page-artwork: url("../images/hero-univers-hd.webp?v=d16c9d785447"); }
.inner-page .page-hero-contact { --page-artwork: var(--forest-artwork); }
.inner-page :is(.page-hero-history, .page-hero-team, .page-hero-universe)::before {
  width: min(100%, 90rem);
  margin-inline: auto;
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent),
    linear-gradient(transparent, #000 16% 48%, transparent);
  mask-composite: intersect;
}
.inner-page .page-hero-history::before { opacity: .64; background-position: 74% 36%; }
.inner-page .page-hero-team::before { opacity: .62; background-position: 77% 36%; }
.inner-page .page-hero-universe::before { opacity: .72; background-position: 80% 49%; }
.inner-page .page-hero-content { display: flex; flex-direction: column; align-items: center; gap: .75rem; width: min(100%, 940px); }
.inner-page .page-hero-content h1 {
  order: 0;
  margin: 0;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  filter: none;
  font-size: clamp(2.5rem, 5.9vw, 4.7rem);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.14;
  animation: none;
}
.inner-page .page-hero-content > .eyebrow { order: 1; margin: .2rem 0 0; color: var(--gold-light); font-size: .72rem; letter-spacing: .14em; }
.inner-page .page-hero-content > p:not(.eyebrow) { order: 2; max-width: 700px; margin: .3rem 0 0; font-size: 1.03rem; line-height: 1.7; }
.inner-page h2 { font-size: clamp(1.7rem, 3.3vw, 2.8rem); line-height: 1.22; }
.inner-page h3 { line-height: 1.3; }
.inner-page .eyebrow { margin-bottom: .7rem; }
.inner-page .section-heading { margin-bottom: 1.5rem; padding-bottom: 1.1rem; }
.inner-page .section-heading h2 { color: #fff; }
.inner-page :is(.timeline-section, .people-section, .credits-section, .world-section, .places-section, .contact-section, .map-section, .gallery-section) {
  padding: var(--section-space) var(--page-gutter);
  background: transparent;
}
.inner-page .prose-section {
  width: min(var(--content), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto var(--section-space);
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: var(--panel-fill);
  box-shadow: var(--panel-shadow);
}
.inner-page .two-column-intro { grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 1000px; }
.inner-page .two-column-intro > div:first-child { text-align: center; }
.inner-page .prose-copy { width: 100%; max-width: 880px; margin-inline: auto; font-size: 1.04rem; line-height: 1.75; }
.inner-page .prose-copy p { margin: 0 0 1rem; }
.inner-page .prose-copy p:last-child { margin-bottom: 0; }
.inner-page .story-image-section { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.inner-page .story-image-section h2 { margin-bottom: 1rem; }
.inner-page .story-image { border-radius: 1.15rem; box-shadow: var(--panel-shadow); }
.inner-page .story-image img { min-height: 280px; }
.inner-page :is(.pitch-card, .intention-card) {
  width: min(1000px, calc(100% - var(--page-gutter) * 2));
  margin: 0 auto var(--section-space);
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  border-color: rgba(201, 169, 106, .48);
  border-radius: var(--panel-radius);
  background: linear-gradient(rgba(238, 229, 208, .92), rgba(238, 229, 208, .92)), url("../images/paper-texture.jpg?v=b85babe501d8") center / cover;
  box-shadow: var(--panel-shadow);
  color: #26332a;
}
.inner-page :is(.pitch-card, .intention-card) h2 { color: #214c42; font-size: clamp(1.7rem, 3.3vw, 2.8rem); }
.inner-page :is(.pitch-card, .intention-card) p:not(.eyebrow) { margin-top: 1rem; line-height: 1.75; }
.inner-page .intention-section { padding: 0; }
.inner-page .timeline { margin-top: 1.6rem; }
.inner-page .timeline::before { top: .5rem; bottom: .5rem; left: 6.25rem; }
.inner-page .timeline li { grid-template-columns: 5rem minmax(0, 1fr); gap: 2.5rem; padding-bottom: 1.8rem; }
.inner-page .timeline li:last-child { padding-bottom: 0; }
.inner-page .timeline li > div::before { top: .45rem; left: -1.65rem; }
.inner-page .timeline h3 { font-size: 1.25rem; }
.inner-page .closing-statement { max-width: 980px; margin: 0 auto; padding: var(--section-space) var(--page-gutter); background: none; }
.inner-page .closing-statement h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.inner-page .closing-statement > p:not(.eyebrow) { margin: 1rem auto 1.5rem; }

/* Cartes, portraits et crédits reprennent les coins et ombres de l’accueil. */
.inner-page .people-grid { gap: 1rem; }
.inner-page :is(.person-card, .region-card, .place-card, .contact-form) {
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: var(--panel-fill);
  box-shadow: var(--panel-shadow);
}
.inner-page :is(.person-card, .region-card, .place-card):hover {
  border-color: rgba(121, 215, 200, .55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
.inner-page .person-card > div { min-height: 92px; padding: 1rem .8rem; }
.inner-page .person-card h3 { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.inner-page .region-grid { gap: 1rem; }
.inner-page .region-card { padding: clamp(1.25rem, 2.4vw, 2rem); }
.inner-page .region-card h3 { font-size: 1.4rem; }
.inner-page .region-number { font-size: 1.9rem; }
.inner-page .place-grid { gap: 1rem; }
.inner-page .place-card > div { padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.inner-page .place-card > img { height: 260px; min-height: 0; }
.inner-page :is(.region-card, .place-card) { scroll-margin-top: 105px; }

/* La carte occupe toute la largeur de la section. */
.inner-page .map-section { color: var(--white); }
.inner-page .map-canvas {
  border-radius: .8rem;
  box-shadow: 0 0 0 1px var(--panel-border), var(--panel-shadow);
}
.inner-page .map-canvas > img { height: 100%; object-fit: fill; }
html:has(.map-detail) { scrollbar-gutter: stable; }
html:has(.map-detail[open]) { overflow: hidden; }
.map-detail {
  position: fixed;
  inset: 0;
  width: min(54rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100svh - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  color: var(--white);
  background: linear-gradient(145deg, #122920, #071510 72%);
  box-shadow: 0 24px 80px rgb(0 0 0 / .45);
}
.map-detail::backdrop { background: rgb(1 10 7 / .7); }
.map-detail-body {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(.9rem, 2.5vw, 1.75rem);
  align-items: start;
  max-height: calc(100svh - 1.5rem - 2px);
  padding: clamp(.85rem, 2vw, 1.3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #746449 #0b1b14;
}
.map-detail-body > img {
  align-self: safe center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: .8rem;
  object-fit: cover;
}
.map-detail-copy { padding: 1.9rem .45rem .65rem 0; }
.map-detail-copy h3 {
  margin: 0 0 .8rem;
  color: var(--gold-light);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  text-wrap: balance;
}
.map-detail-copy > [data-map-description] {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  white-space: pre-line;
}
.map-detail-close {
  position: absolute;
  z-index: 1;
  top: .7rem;
  right: .7rem;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  color: var(--gold-light);
  background: #10241b;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.map-detail-close:hover,
.map-detail-close:focus-visible {
  border-color: var(--gold-light);
  background: #253c2a;
}
@media (max-width: 680px) {
  .map-detail-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .map-detail-body > img { aspect-ratio: 16 / 9; }
  .map-detail-copy { padding: 0 .25rem .4rem; }
}

/* Médias : les jours se suivent, avec un accès direct depuis les miniatures. */
.media-page {
  --media-header-height: 82px;
  --day-strip-height: 6rem;
}
.media-page .page-hero-media {
  --page-artwork: url("../recovered/2025/04/Soufle-du-Nargotar-00005651-1-scaled.jpg?v=00bdfac41109");
  min-height: clamp(22rem, 33vw, 28rem);
  padding-block: clamp(6.75rem, 17svh, 9rem) 1rem;
}
.media-page .page-hero-media::before {
  width: min(100%, 90rem);
  margin-inline: auto;
  background:
    linear-gradient(180deg, rgb(3 13 9 / .52), rgb(3 13 9 / .2) 45%, rgb(3 13 9 / .3)),
    var(--page-artwork) center 69% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent),
    linear-gradient(transparent, #000 18% 65%, transparent);
  mask-composite: intersect;
  opacity: .93;
}
.media-page .page-hero-content { gap: .35rem; }
.media-page .page-hero-media h1 { font-size: clamp(2.2rem, 4.45vw, 3.6rem); }
.media-page .page-hero-content > .gallery-credit { color: var(--muted); font-size: .92rem; }
.media-page .scroll-cue { order: 3; min-width: 44px; margin-top: 0; }
.media-page .shooting-days {
  position: sticky;
  z-index: 35;
  top: var(--media-header-height);
  width: min(var(--content), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: #0b1c15;
  box-shadow: var(--panel-shadow);
  scroll-margin-top: var(--media-header-height);
}
.shooting-days-inner {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: .4rem;
  padding: .4rem;
  overflow-x: auto;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: #746449 #0b1c15;
}
.shooting-days a {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 4.5rem;
  padding: .3rem .2rem;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: .6rem;
  color: #fff;
  background: #14271f;
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.shooting-days a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(transparent 22%, rgb(2 10 7 / .92) 100%);
}
.shooting-days a img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: opacity 180ms ease;
}
.shooting-days a:is(:hover, :focus-visible, [aria-current]) img { opacity: 1; }
.shooting-days a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.shooting-days a[aria-current] {
  border-color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--gold-light);
}
.shooting-days a[aria-current] span {
  justify-self: center;
  padding-inline: .45em;
  border-radius: .25rem;
  color: #16261e;
  background: var(--gold-light);
}
.media-page .gallery-section {
  padding-top: clamp(1rem, 2.3vw, 1.65rem);
  scroll-margin-top: calc(var(--media-header-height) + var(--day-strip-height));
}
.media-page .gallery-intro {
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: .8rem;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: var(--panel-fill);
  box-shadow: var(--panel-shadow);
}
.media-page .gallery-intro h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  text-wrap: balance;
}
.media-page .gallery-intro .eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .85rem;
  margin: 0 0 .45rem;
  color: var(--gold-light);
  font-size: .72rem;
}
.media-page .gallery-intro .eyebrow span {
  align-self: center;
  color: var(--muted);
  font-family: var(--font-text);
  letter-spacing: .07em;
}
.media-page .gallery-description p:last-child { margin-bottom: 0; }
.media-page .gallery-description .button { max-width: 100%; text-align: center; }
.media-page .photo-grid { width: min(var(--content), 100%); grid-auto-rows: clamp(160px, 17vw, 220px); }
.media-page .gallery-item { border: 1px solid var(--panel-border); border-radius: 1rem; }
.media-page .gallery-item:hover,
.media-page .gallery-item:focus-visible { box-shadow: var(--panel-shadow); transform: translateY(-2px) scale(1.01); }
@media (max-width: 680px) {
  .media-page { --media-header-height: 72px; }
  .media-page .page-hero-media { min-height: 20rem; }
  .media-page .page-hero-media::before {
    background-position: center, 32% 63%;
    opacity: .77;
  }
  .media-page .gallery-intro { gap: .65rem; }
  .media-page .photo-grid { grid-auto-rows: 160px; }
}

/* Même dessin de bouton sur les pages et sur l’accueil. */
.inner-page .button { min-height: 50px; padding: .85rem 1.4rem; border-radius: .85rem; font-size: .78rem; letter-spacing: .055em; box-shadow: 0 6px 22px rgba(0, 0, 0, .14); }
.inner-page .button-primary { color: #172c25; border-color: #dfc89a; background: linear-gradient(135deg, #f1dfb8, #c5a266); }
.inner-page .button-primary:hover,
.inner-page .button-primary:focus-visible { color: #172c25; border-color: #f1dfb8; box-shadow: 0 10px 28px rgba(0, 0, 0, .2); filter: brightness(1.08); }
.inner-page .contact-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.inner-page .contact-copy h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.1vw, 2.6rem); }
.page-hero-contact .page-hero-content > .eyebrow { max-width: min(100%, 54rem); text-wrap: balance; }
.contact-direct {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: .1rem .85rem;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: .85rem;
  background: var(--panel-fill);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}
.contact-direct:is(:hover, :focus-visible) { border-color: var(--gold); background: #122a21; }
.contact-direct-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.45rem;
  aspect-ratio: 1;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgb(225 196 136 / .07);
}
.contact-direct-icon::before,
.contact-direct-icon::after { content: ""; grid-area: 1 / 1; }
.contact-direct-icon::before { width: 1.05rem; height: .72rem; border: 1px solid; border-radius: .15rem; }
.contact-direct-icon::after { width: .56rem; height: .56rem; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-.15rem) rotate(45deg); }
.inner-page .contact-direct-label { margin: 0; color: var(--gold-light); font-size: .69rem; }
.contact-direct-address { color: var(--teal-light); font-size: .93rem; overflow-wrap: anywhere; }
.contact-direct:is(:hover, :focus-visible) .contact-direct-address { text-decoration: underline; text-underline-offset: .25em; }
.inner-page .contact-form { display: flex; flex-direction: column; padding: clamp(1.25rem, 2.7vw, 2rem); }
.contact-form .contact-message { flex: 1; grid-template-rows: auto 1fr; }
.contact-form .submit-button { align-self: flex-start; }
.inner-page .form-field :is(input, textarea, select) { border-radius: .65rem; }
.inner-page .form-field textarea { min-height: 150px; }
.contact-phone { display: block; min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.contact-phone legend { margin-bottom: .45rem; padding: 0; }
.phone-controls { display: grid; grid-template-columns: minmax(7.2rem, .85fr) minmax(0, 1.15fr); gap: .55rem; }
.phone-prefix { position: relative; display: flex; }
.phone-prefix::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .85rem;
  width: .43rem;
  height: .43rem;
  border-right: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.phone-prefix select {
  appearance: none;
  min-width: 0;
  align-items: center;
  padding-inline: .7rem 1.8rem;
  color-scheme: dark;
  font: inherit;
  font-size: .875rem;
  text-overflow: ellipsis;
  cursor: pointer;
}
.phone-prefix option { color: var(--white); background: #0d221a; }
@supports (appearance: base-select) and selector(::picker(select)) {
  .phone-prefix select,
  .phone-prefix select::picker(select) { appearance: base-select; }
  .phone-prefix select::picker-icon { display: none; }
  .phone-prefix select::picker(select) {
    min-width: min(16rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: min(45vh, 20rem);
    margin-block: .25rem;
    border: 1px solid var(--gold);
    border-radius: .7rem;
    color: var(--white);
    background: #0d221a;
    box-shadow: 0 8px 24px rgb(0 0 0 / .25);
    scrollbar-width: thin;
    scrollbar-color: #746449 #0d221a;
  }
  .phone-prefix optgroup { color: var(--gold-light); }
  .phone-prefix option { padding: .45rem .75rem; }
  .phone-prefix option:is(:hover, :focus, :checked) { background: #213c31; }
}
@media (max-width: 780px) {
  .inner-page .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
.not-found-page { display: flex; flex-direction: column; min-height: 100svh; }
.inner-page.not-found-page main { flex: 1 0 auto; min-height: 0; padding: 8rem var(--page-gutter) 3rem; background: none; }
.inner-page .error-page h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
.inner-page .error-page > img { width: 76px; height: 76px; }

@media (max-width: 940px) {
  .inner-page .story-image-section,
  .inner-page .contact-layout,
  .inner-page .story-image img { min-height: 0; }
}
@media (max-width: 680px) {
  .site-header.site-header--centered { min-height: 72px; padding: .6rem .75rem; }
  .site-nav.site-nav--centered { gap: clamp(.75rem, 3.4vw, 1.4rem); }
  .site-header--centered .site-nav--centered > a,
  .site-header--centered .nav-home > a { padding-block: .9rem; font-size: .75rem; letter-spacing: .04em; }
  .site-header--centered .nav-submenu { left: 0; width: min(250px, calc(100vw - 2rem)); transform: none; }
  .inner-page .page-hero { min-height: 300px; padding: 6.8rem var(--page-gutter) 1.8rem; }
  .inner-page .page-hero-content { width: 100%; gap: .7rem; }
  .inner-page .page-hero-content h1 { font-size: clamp(2.15rem, 8.5vw, 3.1rem); }
  .inner-page .page-hero-content > .eyebrow { font-size: .65rem; letter-spacing: .1em; }
  .inner-page .page-hero-content .eyebrow::before,
  .inner-page .page-hero-content .eyebrow::after { display: none; }
  .inner-page .page-hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .inner-page .prose-section { padding: 1.2rem; }
  .inner-page .prose-copy { font-size: 1rem; }
  .inner-page :is(.pitch-card, .intention-card) { padding: 1.5rem 1.2rem; }
  .inner-page .timeline::before { left: .35rem; }
  .inner-page .timeline li { grid-template-columns: minmax(0, 1fr); gap: .35rem; padding-left: 1.75rem; }
  .inner-page .timeline li > div::before { top: -1.8rem; left: -1.75rem; }
  .inner-page .timeline-year { text-align: left; }
  .inner-page .place-card > img { width: 100%; height: 230px; }
}
@media (max-width: 360px) {
  .site-header.site-header--centered { padding-inline: .5rem; }
  .site-nav.site-nav--centered { gap: .55rem; }
  .site-header--centered .site-nav--centered > a,
  .site-header--centered .nav-home > a { font-size: .7rem; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) {
  .inner-page main::before { transform: none; transition: none; }
}

/* Projet, intention et portraits de l’équipe. */
.team-page :is(.two-column-intro, .intention-card) {
  width: min(var(--content), calc(100% - var(--page-gutter) * 2));
  max-width: none;
  padding: clamp(1rem, 3vw, 2.3rem);
}
.team-page :is(.two-column-intro, .intention-card) h2 {
  font-size: clamp(1.55rem, 3.3vw, 2.65rem);
  text-wrap: balance;
}
.team-page :is(.prose-copy, .intention-card > p:not(.eyebrow)) { max-width: none; }
.team-page .people-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.65rem, 1.35vw, 1rem);
}
.team-page .people-grid-compact .person-card { border-radius: 1rem; }
.team-page .people-grid-compact .person-card > div { min-height: 78px; padding: .75rem .55rem .85rem; }
.team-page .people-grid-compact h3 { font-size: clamp(.83rem, 1.45vw, 1.04rem); overflow-wrap: anywhere; }
.team-page .people-grid-compact p { font-size: .8rem; line-height: 1.45; }
@media (max-width: 1040px) {
  .team-page .people-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .team-page .people-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .team-page :is(.two-column-intro, .intention-card) h2 { font-size: clamp(1.15rem, 4.9vw, 1.4rem); }
  .team-page .people-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Les quatre blocs de l’histoire suivent les mêmes bords. */
.story-page .page-hero-history {
  min-height: 0;
  padding-block: clamp(6.75rem, 17svh, 9rem) clamp(1rem, 2vw, 1.6rem);
}
.story-page .page-hero-history h1 { font-size: clamp(2.2rem, 4.45vw, 3.6rem); }
.story-page .page-hero-content { gap: .2rem; }
.story-page .scroll-cue { min-width: 44px; margin-top: 0; }
.story-page #debut-histoire { scroll-margin-top: 96px; }
.story-page .story-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(var(--content), calc(100% - var(--page-gutter) * 2));
  gap: var(--section-space);
  margin-inline: auto;
}
.story-page .story-content > :is(.prose-section, .pitch-card) {
  width: 100%;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.3rem);
}
.story-page .story-content h2 {
  margin: 0 0 1.15rem;
  color: var(--gold-light);
  font-size: clamp(1.55rem, 3.3vw, 2.65rem);
  text-align: center;
  text-wrap: balance;
}
.story-page .story-content p { font-size: 1rem; line-height: 1.7; }
.story-page .story-content .prose-copy { max-width: none; }
.story-page .story-image-section h2 { text-align: left; }
.story-page .pitch-card h2 { color: #715929; }
.story-page .pitch-card p:not(.eyebrow) { max-width: none; margin-block: 0; line-height: 1.7; }
.story-page .timeline { width: 100%; margin-top: 1.35rem; }
.story-page .timeline h3, .story-page .timeline-year { font-size: 1.15rem; }
.story-page .story-actions { display: flex; justify-content: center; margin-bottom: .8rem; }
@media (max-width: 940px) {
  .story-page .story-image-section h2 { text-align: center; }
}
@media (max-width: 680px) {
  .story-page .story-image-section { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* L’univers reprend les marges et la hiérarchie des titres de l’histoire. */
.universe-page .page-hero-universe {
  min-height: 0;
  padding-block: clamp(6.75rem, 17svh, 9rem) clamp(1rem, 2vw, 1.6rem);
}
.universe-page .page-hero-universe h1 { font-size: clamp(2.2rem, 4.45vw, 3.6rem); }
.universe-page .page-hero-content { gap: .4rem; }
.universe-page .page-hero-content > .eyebrow {
  gap: clamp(.45rem, 1.8vw, 1.2rem);
  font-size: clamp(.66rem, 1.1vw, .85rem);
  line-height: 1.65;
  letter-spacing: .11em;
  text-wrap: balance;
}
.universe-page .page-hero-content > .eyebrow::before,
.universe-page .page-hero-content > .eyebrow::after {
  display: block;
  flex: none;
  width: clamp(.8rem, 4vw, 3rem);
}
.universe-page .scroll-cue { order: 2; min-width: 44px; margin-top: 0; }
.universe-page :is(#debut-univers, #carte) { scroll-margin-top: 96px; }
.universe-page main > :is(.universe-intro, .map-section, .world-section, .places-section) {
  width: min(var(--content), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto var(--section-space);
}
.universe-page .universe-intro { padding: clamp(1rem, 3vw, 2.3rem); }
.universe-page :is(.map-section, .world-section, .places-section) { padding: 0; }
.universe-page .places-section:last-child { margin-bottom: 0; }
.universe-page :is(.universe-intro, .section-heading) h2 {
  color: var(--gold-light);
  font-size: clamp(1.55rem, 3.3vw, 2.65rem);
  text-align: center;
  text-wrap: balance;
}
.universe-page .universe-intro h2 { margin-bottom: 1.15rem; }
.universe-page .universe-intro .prose-copy { max-width: none; font-size: 1rem; line-height: 1.7; }
.universe-page .section-heading { margin: 0 0 1.25rem; padding: 0; }
.universe-page .section-heading::after { content: none; }
.universe-page .section-heading .eyebrow { margin: .5rem 0 0; }
.universe-page #map-instructions {
  margin: .65rem auto 0;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: clamp(.84rem, 1.5vw, 1rem);
  line-height: 1.6;
  text-align: center;
  text-align-last: center;
  text-wrap: balance;
}
.map-touch-instructions { display: none; }
@media (hover: none) {
  .map-pointer-instructions { display: none; }
  .map-touch-instructions { display: inline; }
}
.universe-page .region-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.universe-page .region-card:nth-child(n + 4) { grid-column: span 3; }
.universe-page :is(.region-card, .place-card) h3 { color: var(--gold-light); }
.universe-page .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.universe-page .place-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.universe-page .place-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--panel-border);
}
.universe-page .place-card:hover,
.universe-page .place-card:hover > img { transform: none; }
@media (max-width: 940px) {
  .universe-page .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .universe-page .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .universe-page .region-card:nth-child(n) { grid-column: auto; }
  .universe-page .region-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .universe-page .page-hero-universe::before { opacity: .52; }
  .universe-page :is(.region-grid, .place-grid) { grid-template-columns: minmax(0, 1fr); }
}

/* Le logo et les liens sociaux sont réunis dans le pied de page commun. */
.site-footer.site-footer--compact {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem 1rem;
  padding: .6rem clamp(1rem, 4vw, 4rem);
  background: radial-gradient(ellipse at 50% 0, #12261e, transparent 75%), #030a09;
}
.site-footer--compact .footer-brand {
  display: block;
  justify-self: start;
  border-radius: .3rem;
}
.site-footer--compact .footer-logo {
  width: clamp(9rem, 16vw, 11.5rem);
  height: auto;
  margin-block: -.55rem;
}
.site-footer--compact .social-links { gap: .5rem; }
.site-footer--compact .social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(201, 169, 106, .06);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.site-footer--compact .social-links a:hover,
.site-footer--compact .social-links a:focus-visible {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(201, 169, 106, .17);
}
.site-footer--compact a:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 3px; }
.site-footer--compact .copyright {
  margin: 0;
  font-family: var(--font-text);
  font-size: .72rem;
  line-height: 1.5;
}
.site-footer--compact .copyright-credit {
  display: block;
  color: var(--gold-light);
  font-family: var(--font-menu);
  font-size: .82rem;
  letter-spacing: .045em;
}
.site-footer--compact .copyright-rights {
  display: block;
  margin-top: .18rem;
}
@media (max-width: 680px) {
  .site-footer.site-footer--compact { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer--compact .copyright { grid-column: 1 / -1; justify-self: center; text-align: center; }
}

/* Un seul dégradé centré sur les coordonnées du pointeur. */
.magic-cursor-layer {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
.magic-cursor-layer.is-visible { opacity: 1; }
.magic-cursor-orb {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 32px;
  height: 32px;
  pointer-events: none;
  background: radial-gradient(circle 16px,
    #fff 0 1.1px,
    rgb(255 255 255 / .96) 1.8px,
    rgb(255 255 255 / .57) 3px,
    rgb(255 255 255 / .22) 5.4px,
    rgb(255 255 255 / .07) 9px,
    transparent 15px);
  will-change: transform;
}
@media (any-hover: hover) and (any-pointer: fine) {
  html.has-magic-cursor, html.has-magic-cursor body, html.has-magic-cursor body * { cursor: none !important; }
}
@media (forced-colors: active) {
  .magic-cursor-layer { display: none; }
  html.has-magic-cursor, html.has-magic-cursor body, html.has-magic-cursor body * { cursor: auto !important; }
}
