@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2-variations"), url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2-variations"), url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2-variations"), url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
:root {
  --ink: #050807;
  --bg: #0a1310;
  --bg-2: #0d1814;
  --surface: #111f1a;
  --cream: #f2ebdd;
  --text: rgba(242, 235, 221, 0.66);
  --muted: rgba(242, 235, 221, 0.42);
  --line: rgba(242, 235, 221, 0.12);
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.35);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --title: clamp(2.25rem, 3.6vw, 3.25rem);
  --subtitle: 1.5rem;
  --lead: 1.125rem;
  --body: 1rem;
  --space: clamp(56px, 6.5vw, 96px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grain subtil */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, 88vw); margin: 0 auto; }

/* ---------- Typographie ---------- */
h1, h2 {
  font-family: var(--serif);
  font-size: var(--title);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin-bottom: 28px;
}
h1 em, h2 em { font-style: italic; color: var(--gold); }
h3 {
  font-family: var(--serif);
  font-size: var(--subtitle);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 10px;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: .7; }
.lead { font-size: var(--lead); line-height: 1.7; color: var(--cream); opacity: .86; max-width: 540px; }

/* ---------- Nuage rouge (fond des pages, masqué par le hero) ---------- */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura span {
  position: absolute; border-radius: 50%; will-change: transform;
  mix-blend-mode: screen;
}
.aura span:nth-child(1) {
  width: 70vmax; height: 55vmax; left: -15vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(210, 40, 28, .34), rgba(210, 40, 28, .13) 55%, transparent);
  animation: drift1 38s ease-in-out infinite alternate;
}
.aura span:nth-child(2) {
  width: 60vmax; height: 60vmax; right: -20vmax; top: 20vh;
  background: radial-gradient(closest-side, rgba(236, 84, 44, .25), rgba(236, 84, 44, .09) 55%, transparent);
  animation: drift2 46s ease-in-out infinite alternate;
}
.aura span:nth-child(3) {
  width: 55vmax; height: 45vmax; left: 20vw; bottom: -20vmax;
  background: radial-gradient(closest-side, rgba(170, 20, 44, .30), rgba(170, 20, 44, .11) 55%, transparent);
  animation: drift3 52s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(18vw, 12vh) scale(1.15) rotate(20deg); } 100% { transform: translate(6vw, 30vh) scale(.95) rotate(-10deg); } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-22vw, -10vh) scale(1.2); } 100% { transform: translate(-8vw, 18vh) scale(.9); } }
@keyframes drift3 { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(-15vw, -25vh) scale(1.1) rotate(-25deg); } 100% { transform: translate(14vw, -8vh) scale(1.2) rotate(10deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(ellipse 45% 55% at 72% 48%, rgba(214, 72, 38, .16), transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(40, 90, 200, .07), transparent 70%),
    var(--ink);
  padding: 80px 0 100px;
  overflow: hidden;
  z-index: 2;
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero-inner {
  width: min(1200px, 88vw); margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 540px);
  justify-content: space-between; align-items: center;
  position: relative;
}
.hero-text { position: relative; z-index: 3; }
.hero h1 { white-space: nowrap; }
.hero-text > * { opacity: 0; animation: rise 1.2s var(--ease) forwards; }
.hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero-text > *:nth-child(n+4) { animation-delay: .3s; }
.hero .lead { margin-bottom: 24px; }
.hero-text p:not(.lead):not(.eyebrow) { max-width: 520px; margin-bottom: 14px; }
.hero picture { margin-left: -20px; }
.hero-bird {
  width: 100%; height: auto; max-height: 82vh; object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0; animation: fly 1.8s .2s var(--ease) forwards;
}
.scroll-hint {
  position: absolute; right: max(6vw, calc((100vw - 1200px) / 2)); bottom: 48px; z-index: 3;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
  transition: color .3s;
}
.scroll-hint::after { content: ""; width: 1px; height: 56px; background: var(--gold); animation: drip 2.4s ease-in-out infinite; }
.scroll-hint:hover { color: var(--cream); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fly { from { opacity: 0; transform: translate(40px, 20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drip { 0%,100% { transform: scaleY(.25); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- Sections ---------- */
section, footer { position: relative; z-index: 1; }
section { padding: var(--space) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { justify-self: end; }

/* Carte */
.atlas { background: radial-gradient(ellipse 50% 60% at 72% 50%, rgba(63, 120, 98, .14), transparent 70%); padding-top: calc(var(--space) * .5); }
.atlas .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.atlas-list { list-style: none; margin-top: 48px; }
.atlas-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; cursor: pointer;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease), background .4s;
}
.atlas-list li:first-child { border-top: 1px solid var(--line); }
.atlas-list .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.05rem; line-height: 1.6; }
.atlas-list h3 { font-size: 1.15rem; margin: 0; display: inline; }
.atlas-list .latin { margin-left: 10px; }
.atlas-list small { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.atlas-list li:hover, .atlas-list li.on { padding-left: 10px; }
.atlas-list li.on h3 { color: var(--gold); }
.atlas-note { margin-top: 20px; font-size: .8rem; font-style: italic; color: var(--muted); }
.map { width: 100%; height: auto; display: block; overflow: visible; }
.map .geo { -webkit-mask: url(#fade); mask: url(#fade); }
.map .land { fill: url(#landg); }
.map .land-dots { fill: url(#dots); }
.map .borders { fill: none; stroke: rgba(242,235,221,.32); stroke-width: .7; }
.map .lat line { stroke: rgba(201,164,92,.5); stroke-width: .8; stroke-dasharray: 2 6; }
.map .lat text { fill: rgba(201,164,92,.85); font: italic 400 13px var(--serif); text-anchor: start; }
.map .region { fill: rgba(242,235,221,.7); font: italic 300 15px var(--serif); text-anchor: middle; letter-spacing: .02em; }
.mk { cursor: pointer; }
.mk .halo { fill: url(#halo); opacity: .8; transition: opacity .5s var(--ease), transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.mk .dot { fill: var(--gold); stroke: var(--ink); stroke-width: 2; transition: transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
.mk .pulse { fill: none; stroke: var(--gold); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.mk:nth-of-type(2n) .pulse { animation-delay: 1.2s; }
.mk .num { fill: var(--cream); font: italic 400 15px var(--serif); opacity: .85; transition: fill .3s; }
.mk:hover .halo, .mk.on .halo { opacity: 1; transform: scale(1.5); }
.mk:hover .dot, .mk.on .dot { transform: scale(1.4); }
.mk:hover .num, .mk.on .num { fill: var(--gold); opacity: 1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }

/* Intro */
.intro .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 96px; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { border-left: 1px solid var(--line); padding: 4px 0 4px 24px; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: var(--title); color: var(--cream); line-height: 1; letter-spacing: -0.02em;
}
.stat small { display: block; margin-top: 14px; font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* Espèces */
.species { background: rgba(13, 24, 20, .1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 40px; counter-reset: sp; }
.card { counter-increment: sp; }
.card-img {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  background: var(--surface); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
}
.card-img::before {
  content: "Photo à venir"; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted);
}
.card-img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  filter: saturate(.92) brightness(.95);
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.card-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px;
}
.card-meta::before {
  content: counter(sp, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--gold); font-size: .95rem;
}
.latin { font-style: italic; font-size: .85rem; color: var(--muted); }
.card p { font-size: .95rem; }

/* Habitat */
.layers .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 96px; align-items: start; }
.layers .sticky { position: sticky; top: 96px; }
.layer-list { list-style: none; }
.layer-list li {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.layer-list li:first-child { border-top: 1px solid var(--line); }
.layer-list li:hover { padding-left: 12px; }
.layer-list .n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); line-height: 1.25; }

/* Agir */
.conservation {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(201, 164, 92, .10), transparent 70%),
    rgba(5, 8, 7, .3);
  border-top: 1px solid var(--line);
}
.conservation .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.tips { list-style: none; counter-reset: tip; }
.tips li {
  counter-increment: tip; display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--cream); opacity: .86;
}
.tips li:first-child { border-top: 1px solid var(--line); }
.tips li::before { content: counter(tip, upper-roman) "."; font-family: var(--serif); font-style: italic; color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  padding: 16px 30px; border: 1px solid var(--gold-soft); border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cream);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn:hover span { transform: translateX(4px); }

/* Footer */
footer { background: rgba(5, 8, 7, .35); padding: 96px 0 40px; border-top: 1px solid var(--line); }
.footer-mark {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(4rem, 14vw, 12rem); line-height: .9; letter-spacing: -0.04em; color: var(--cream);
  margin-bottom: 56px;
}
.footer-mark em { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid .card:nth-child(3n+2) { transition-delay: .1s; }
.grid .card:nth-child(3n) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-text > *, .hero-bird { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero picture { margin-left: 0; }
  .hero-text p:not(.lead):not(.eyebrow) { max-width: 480px; }
}
@media (max-width: 960px) {
  .atlas .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-inner, .intro .wrap, .layers .wrap, .conservation .wrap, .section-head { grid-template-columns: 1fr; gap: 48px; }
  .section-head .lead { justify-self: start; }
  .hero h1 { white-space: normal; }
  .hero picture { order: -1; }
  .hero-bird { max-height: 52vh; width: auto; margin: 0 auto; }
  .layers .sticky { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 48px 0 100px; background: radial-gradient(ellipse 90% 40% at 50% 22%, rgba(214, 72, 38, .16), transparent 70%), var(--ink); }
  .hero-bird { max-height: 40vh; }
  .grid, .stats { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .layer-list li { grid-template-columns: 56px 1fr; }
}

/* =========================================================
   Pages espèces
   ========================================================= */
.back {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); transition: color .3s, gap .4s var(--ease);
}
.back:hover { color: var(--gold); gap: 18px; }
.topbar {
  position: relative; z-index: 3; width: min(1200px, 88vw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; padding: 36px 0 0;
}
.topbar .mark { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--cream); letter-spacing: -0.01em; }
.topbar .mark em { color: var(--gold); }

.sp-hero {
  position: relative; z-index: 2; background: var(--ink); overflow: hidden;
  padding-bottom: var(--space);
}
.sp-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.sp-grid {
  width: min(1200px, 88vw); margin: 0 auto; padding-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative;
}
.sp-grid > * { opacity: 0; animation: rise 1.2s var(--ease) forwards; }
.sp-grid > *:nth-child(2) { animation-delay: .15s; }
.sp-latin { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold); margin: -12px 0 28px; }
.sp-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.facts div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 24px; }
.facts dt { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; color: var(--cream); line-height: 1.2; }
.status { display: inline-flex; align-items: flex-start; gap: 10px; }
.status::before { content: ""; flex: none; margin-top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--st, #7fb89a); box-shadow: 0 0 12px var(--st, #7fb89a); }

.sp-where .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.minimap { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.minimap img { width: 100%; height: auto; }
.minimap .pin { position: absolute; width: 0; height: 0; }
.minimap .pin::before {
  content: ""; position: absolute; width: 180px; height: 180px; left: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,164,92,.45), rgba(201,164,92,.12) 60%, transparent);
}
.minimap .pin::after {
  content: ""; position: absolute; width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ink); box-shadow: 0 0 0 6px rgba(201,164,92,.18);
}
.minimap-note { margin-top: 14px; font-size: .8rem; font-style: italic; color: var(--muted); text-align: center; }
.where-list { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.where-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.where-list b { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.where-list span { color: var(--cream); opacity: .86; }

.life { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.life article { border-top: 1px solid var(--gold-soft); padding-top: 28px; }
.life .n { font-family: var(--serif); font-style: italic; color: var(--gold); display: block; margin-bottom: 14px; }

.fact-quote { text-align: center; max-width: 860px; margin: 0 auto; }
.fact-quote .eyebrow { justify-content: center; }
.fact-quote .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: .7; }
.fact-quote blockquote {
  font-family: var(--serif); font-weight: 300; font-style: italic; font-variation-settings: "opsz" 144;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.35; color: var(--cream);
}

.sp-nav { border-top: 1px solid var(--line); }
.sp-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.sp-nav a { display: block; padding: 48px 0; transition: color .3s; }
.sp-nav a + a { text-align: right; border-left: 1px solid var(--line); }
.sp-nav small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sp-nav strong { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.2rem); color: var(--cream); transition: color .3s; }
.sp-nav a:hover strong { color: var(--gold); }
.sp-nav a:first-child { padding-right: 32px; }
.sp-nav a + a { padding-left: 32px; }

/* Lien des vignettes */
a.card { display: block; color: inherit; }
.card-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.card-more span { transition: transform .4s var(--ease); }
a.card:hover .card-more span { transform: translateX(6px); }
a.card:hover h3 { color: var(--gold); }
.card h3 { transition: color .3s; }
.center-cta { text-align: center; margin-top: 72px; }

/* =========================================================
   Galerie
   ========================================================= */
.gal-head { width: min(1200px, 88vw); margin: 0 auto; padding: 72px 0 56px; position: relative; z-index: 3; }
.gallery { columns: 3 320px; column-gap: 20px; }
.gallery figure {
  break-inside: avoid; margin-bottom: 20px; position: relative; overflow: hidden; border-radius: 2px; cursor: zoom-in;
  background: var(--surface);
}
.gallery img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92) brightness(.92); }
.gallery figure:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px;
  background: linear-gradient(to top, rgba(5,8,7,.85), transparent);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }
.gallery figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--cream); }
.gallery figcaption em { font-size: .8rem; color: var(--gold); }
.gallery figure.dark { background: #000; }
.gallery figure.dark img { filter: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(5, 8, 7, .96); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; flex-direction: column; padding: 40px;
}
.lightbox.open { display: flex; animation: fade .4s var(--ease); }
.lightbox img { max-width: min(92vw, 900px); max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox p { margin-top: 22px; text-align: center; }
.lightbox p strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 1.6rem; color: var(--cream); }
.lightbox p em { color: var(--gold); font-size: .9rem; }
.lb-btn {
  position: absolute; background: none; border: 1px solid var(--line); color: var(--cream);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  transition: border-color .3s, color .3s;
}
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 28px; right: 28px; }
.lb-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 28px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 960px) {
  .sp-grid, .sp-where .wrap { grid-template-columns: 1fr; gap: 48px; }
  .sp-photo { order: -1; max-width: 520px; }
  .minimap { justify-self: center; }
  .life { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .sp-nav .wrap { grid-template-columns: 1fr; }
  .sp-nav a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; padding-left: 0; }
  .where-list li { grid-template-columns: 1fr; gap: 4px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
}

/* Logo = retour à l'accueil */
.topbar .mark { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.mark-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); transition: color .3s, transform .4s var(--ease);
}
.mark-hint::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5'/><path d='M5 9.5V21h14V9.5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5'/><path d='M5 9.5V21h14V9.5'/></svg>") center / contain no-repeat;
}
.topbar .mark .word { position: relative; }
.topbar .mark .word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.topbar .mark:hover .word::after { transform: scaleX(1); transform-origin: left; }
.topbar .mark:hover .mark-hint { color: var(--gold); transform: translateX(-4px); }
@media (max-width: 640px) { .mark-hint span { display: none; } }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: start; }
.contact-aside .lead { margin-bottom: 40px; }
.contact-info { list-style: none; border-top: 1px solid var(--line); }
.contact-info li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-info b { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-info span, .contact-info a { color: var(--cream); opacity: .9; }
.contact-info a { border-bottom: 1px solid var(--gold-soft); transition: color .3s, border-color .3s; }
.contact-info a:hover { color: var(--gold); border-color: var(--gold); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; transition: color .3s; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1.05rem; color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 14px; outline: none;
  transition: border-color .4s var(--ease);
}
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23c9a45c' stroke-width='1.4'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--bg); color: var(--cream); }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242,235,221,.25); }
.field:focus-within label { color: var(--gold); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field .err { font-size: .78rem; color: #e0866a; margin-top: 8px; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #e0866a; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-foot p { font-size: .82rem; color: var(--muted); max-width: 360px; }
.form .btn { margin-top: 0; background: transparent; cursor: pointer; font-family: var(--sans); }
.form .btn:hover, .form .btn:focus-visible { background: var(--gold); color: var(--ink); border-color: var(--gold); outline: none; }
.form-done { display: none; border-top: 1px solid var(--gold-soft); padding-top: 32px; }
.form-done h3 { color: var(--gold); }
.sent .form { display: none; }
.sent .form-done { display: block; animation: rise .8s var(--ease); }
.footer-bottom a { transition: color .3s; }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .contact-info li { grid-template-columns: 1fr; gap: 4px; }
}
.form .btn:disabled { opacity: .6; cursor: wait; }

/* Accès au contact */
.toplinks { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.toplinks a.tl {
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  position: relative; transition: color .3s;
}
.toplinks a.tl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.toplinks a.tl:hover, .toplinks a.tl[aria-current] { color: var(--gold); }
.toplinks a.tl:hover::after, .toplinks a.tl[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.toplinks .mark { margin-left: 8px; padding-left: 32px; border-left: 1px solid var(--line); }
.hero-links { position: absolute; top: 36px; right: max(6vw, calc((100vw - 1200px) / 2)); z-index: 4; display: flex; gap: 32px; }

.cta-contact { text-align: center; border-top: 1px solid var(--line); }
.cta-contact .eyebrow { justify-content: center; }
.cta-contact .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: .7; }
.cta-contact .lead { margin: 0 auto; }
.cta-contact .btn { margin-top: 40px; }
@media (max-width: 640px) {
  .toplinks { gap: 18px; }
  .toplinks .mark { padding-left: 18px; margin-left: 0; }
  .toplinks a.tl.hide-sm { display: none; }
  .hero-links { top: 20px; gap: 20px; }
}
.back { white-space: nowrap; }
@media (max-width: 640px) { .back .hide-sm { display: none; } }

/* Liens de la liste de la carte */
.atlas-list li { grid-template-columns: 48px 1fr auto; align-items: center; }
.atlas-link {
  display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
  font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.atlas-link span { transition: transform .4s var(--ease); }
.atlas-list li:hover .atlas-link, .atlas-list li.on .atlas-link { color: var(--gold); }
.atlas-list li:hover .atlas-link span { transform: translateX(4px); }
.sp-photo.contain { background: #000; }
.sp-photo.contain img { object-fit: contain; padding: 8%; }
.hero-more { margin-top: 18px; }
.hero-more:hover span { transform: translateX(6px); }
.card-more span { display: inline-block; }

/* Pages de texte (mentions légales) */
.legal { max-width: 760px; }
.legal h2 { font-size: var(--subtitle); font-weight: 400; margin: 56px 0 16px; font-variation-settings: "opsz" 48; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal a { color: var(--cream); border-bottom: 1px solid var(--gold-soft); transition: color .3s, border-color .3s; }
.legal a:hover { color: var(--gold); border-color: var(--gold); }
.todo { color: var(--gold); background: rgba(201,164,92,.10); padding: 1px 6px; border-radius: 3px; font-style: normal; }
.legal-toc { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; }
.legal-toc a { border: 0; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form-status a { color: var(--cream); border-bottom: 1px solid var(--gold-soft); }
