/* =============================================================================
   Un endroit rien que pour toi — styles
   Mobile-first. Les couleurs et polices se règlent dans :root.
   ============================================================================= */

:root {
  --ivory: #fbf7f1;
  --cream: #f5ece1;
  --paper: #fffdf9;
  --powder: #efd6d1;
  --rose: #d9a9a5;
  --rose-deep: #c08584;
  --bordeaux: #7b2d3b;
  --bordeaux-soft: #97505b;
  --gold: #c4a266;
  --gold-soft: #e6d3ab;
  --lilac: #e4dcef;
  --lilac-deep: #a597c4;
  --ink: #3b2a30;
  --ink-soft: #6e5a60;
  --night: #170f15;
  --night-2: #261823;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --gutter: 16px;
  --radius: 22px;
  --shadow-soft: 0 24px 50px -28px rgba(91, 38, 52, .38), 0 2px 8px rgba(91, 38, 52, .06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked,
body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

::selection { background: var(--powder); color: var(--bordeaux); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - var(--gutter) * 2, 1080px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.container--narrow { width: min(100% - var(--gutter) * 2, 680px); }

/* ------------------------------------------------------------------ Typo */
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 7vw, 4rem); }

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--light { color: var(--gold-soft); }

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--bordeaux);
  text-wrap: balance;
}

.subtitle {
  margin: 0 auto;
  max-width: 34ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  color: var(--ink-soft);
}

.ornament {
  position: relative;
  width: 140px;
  height: 14px;
  margin: 1.2rem auto;
}
.ornament::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: .7;
}
.ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 12px var(--gold-soft);
}

.hint {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  opacity: .8;
}

/* ------------------------------------------------------------------ Boutons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 56px;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-soft) 100%);
  box-shadow: 0 14px 30px -12px rgba(123, 45, 59, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .6s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 215, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
}
.btn:active { transform: scale(.97); }

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -14px rgba(123, 45, 59, .6), 0 0 0 6px rgba(230, 211, 171, .18);
  }
  .btn:hover::after { transform: translateX(120%); }
}

.btn--glow {
  background: linear-gradient(135deg, rgba(151, 80, 91, .9), rgba(123, 45, 59, .95));
  box-shadow: 0 0 0 1px rgba(230, 211, 171, .35), 0 0 40px rgba(217, 169, 165, .35), 0 18px 40px -16px rgba(0, 0, 0, .6);
  animation: btnBreath 4.5s ease-in-out infinite;
}

.btn--ghost {
  color: var(--ivory);
  background: rgba(255, 253, 249, .06);
  box-shadow: 0 0 0 1px rgba(230, 211, 171, .45), 0 0 34px rgba(230, 211, 171, .15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (hover: hover) {
  .btn--ghost:hover { box-shadow: 0 0 0 1px rgba(230, 211, 171, .8), 0 0 50px rgba(230, 211, 171, .3); }
}
.btn--small { min-height: 48px; padding: 0 1.5rem; font-size: .92rem; }

@keyframes btnBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(230, 211, 171, .35), 0 0 30px rgba(217, 169, 165, .25), 0 18px 40px -16px rgba(0, 0, 0, .6); }
  50% { box-shadow: 0 0 0 1px rgba(230, 211, 171, .55), 0 0 55px rgba(217, 169, 165, .45), 0 18px 40px -16px rgba(0, 0, 0, .6); }
}

/* ------------------------------------------------------------------ Apparitions */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 1.2s var(--ease), translate 1.2s var(--ease);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ Orbes (parallaxe) */
.orb {
  position: absolute;
  width: min(90vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb--rose { background: radial-gradient(circle, rgba(239, 214, 209, .75) 0%, rgba(239, 214, 209, 0) 68%); }
.orb--lilac { background: radial-gradient(circle, rgba(228, 220, 239, .85) 0%, rgba(228, 220, 239, 0) 68%); }
.orb--gold { background: radial-gradient(circle, rgba(230, 211, 171, .45) 0%, rgba(230, 211, 171, 0) 68%); }

/* ------------------------------------------------------------------ Barre de progression */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--lilac-deep));
  opacity: 0;
  transition: opacity .6s;
}
body.has-entered .progress { opacity: .85; }

/* =============================================================================
   ACCUEIL
   ============================================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5rem var(--gutter) 6rem;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(98, 52, 78, .55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(120, 100, 160, .18) 0%, transparent 70%),
    linear-gradient(180deg, #1e131c 0%, #170f15 55%, #120b10 100%);
  transition: opacity 1.4s var(--ease-soft), visibility 0s 1.4s;
}
.intro::after {
  /* voile lumineux utilisé pendant la transition */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 244, 228, 1) 0%, rgba(251, 247, 241, .95) 35%, rgba(251, 247, 241, 0) 75%);
  opacity: 0;
  transform: scale(.3);
  transition: opacity 1.2s var(--ease-soft), transform 1.6s var(--ease);
}

.intro__sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro__glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(120vw, 780px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 190, 170, .16) 0%, rgba(217, 169, 165, .06) 40%, transparent 65%);
  animation: glowBreath 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowBreath {
  0%, 100% { scale: 1; opacity: .8; }
  50% { scale: 1.08; opacity: 1; }
}

.intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
}

.intro__for {
  margin: 0 0 1.4rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) .3s forwards;
}

.intro__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 9.5vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(217, 169, 165, .25);
}
.intro__title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  animation: wordIn 1.3s var(--ease) forwards;
  animation-delay: calc(.8s + var(--i) * 110ms);
}
@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.intro__subtitle {
  margin: 1.6rem 0 2.6rem;
  max-width: 30ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
  color: #ead8cd;
  opacity: 0;
  animation: fadeUp 1.6s var(--ease) 2.2s forwards;
}

.intro__btn {
  opacity: 0;
  animation: fadeUp 1.6s var(--ease) 2.9s forwards, btnBreath 4.5s ease-in-out 4.5s infinite;
}

.intro__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.8rem + env(safe-area-inset-bottom));
  z-index: 2;
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(234, 216, 205, .6);
  opacity: 0;
  animation: fadeIn 2s ease 3.8s forwards;
  transition: opacity .8s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* transition d'entrée */
body.is-entering .intro__content {
  opacity: 0;
  transform: translateY(-24px) scale(.97);
  filter: blur(6px);
}
body.is-entering .intro__hint { opacity: 0 !important; animation: none; }
body.is-entering .intro::after { opacity: 1; transform: scale(2.4); transition-delay: .5s; }
.intro.is-leaving { opacity: 0; visibility: hidden; }

/* =============================================================================
   SECTIONS
   ============================================================================= */
.section {
  position: relative;
  padding: clamp(5.5rem, 16vw, 9rem) 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ Pour toi */
.section--foryou {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fffaf4 0%, var(--ivory) 100%);
}

.foryou__text {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5.6vw, 2.05rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
}
.foryou__text p { margin: 0 0 1.3em; }
.foryou__text p:first-child { font-style: italic; color: var(--bordeaux-soft); }
.foryou__text .w {
  opacity: .13;
  transition: opacity .7s var(--ease-soft), filter .7s var(--ease-soft);
  filter: blur(1.5px);
}
.foryou__text .w.on { opacity: 1; filter: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  width: 1px;
  height: 56px;
  translate: -50% 0;
  overflow: hidden;
  background: rgba(196, 162, 102, .2);
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: cue 2.6s var(--ease-soft) infinite;
}
@keyframes cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ------------------------------------------------------------------ Carte */
.section--map {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(228, 220, 239, .5), transparent 70%),
    var(--cream);
}

.map {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 78svh;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, #fffaf2 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(239, 214, 209, .6) 0%, transparent 55%),
    linear-gradient(160deg, #fbf3e6 0%, #f3e6d4 100%);
  box-shadow: var(--shadow-soft), inset 0 0 90px rgba(196, 162, 102, .28);
}
.map::before,
.map::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
  border-radius: calc(var(--radius) - 8px);
}
.map::before { inset: 9px; border: 1px solid rgba(196, 162, 102, .55); }
.map::after { inset: 14px; border: 1px solid rgba(196, 162, 102, .22); border-radius: calc(var(--radius) - 12px); }

.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-grid path { fill: none; stroke: var(--gold); stroke-width: .6; stroke-dasharray: 2 6; opacity: .25; }
.map-contours use { fill: none; stroke: var(--gold); stroke-width: .9; opacity: .45; }
.map-river path { fill: none; stroke: var(--lilac-deep); stroke-width: 9; stroke-linecap: round; opacity: .28; }
.map-river .map-river__shine { stroke: #fff; stroke-width: 1.4; opacity: .7; stroke-dasharray: 10 14; }
.map-trees use { fill: rgba(217, 169, 165, .38); stroke: rgba(196, 162, 102, .6); stroke-width: .7; }
.map-waves path { fill: none; stroke: var(--lilac-deep); stroke-width: 1.2; stroke-linecap: round; opacity: .45; }
.map-sparks use { fill: var(--gold); opacity: .55; }

.map__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  opacity: 0;
  transition: opacity 2s var(--ease-soft) .3s;
}
.map.is-visible .map__route { opacity: 1; }
.map__route path {
  fill: none;
  stroke: var(--bordeaux-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
  opacity: .65;
  animation: routeMarch 30s linear infinite;
}
@keyframes routeMarch { to { stroke-dashoffset: -400; } }

.map__compass {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 52px;
  z-index: 2;
  opacity: .75;
  animation: compassSway 9s ease-in-out infinite;
}
.compass-ring { fill: rgba(255, 253, 249, .5); stroke: var(--gold); stroke-width: 1; }
.compass-ring--thin { fill: none; stroke-width: .5; stroke-dasharray: 1.5 2.5; }
.compass-ns { fill: rgba(196, 162, 102, .35); }
.compass-n { fill: var(--bordeaux-soft); }
.compass-ew { fill: rgba(196, 162, 102, .3); }
.map__compass text { font-family: var(--serif); font-size: 7px; font-weight: 600; fill: var(--bordeaux); }
@keyframes compassSway {
  0%, 100% { rotate: -4deg; }
  50% { rotate: 4deg; }
}

.map__scale {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: .85rem;
  color: var(--ink-soft);
  opacity: .75;
}

.map__markers { position: absolute; inset: 0; z-index: 4; }

.marker {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  transition: left .8s var(--ease), top .8s var(--ease);
}
.map.is-visible .marker {
  animation: markerIn 1s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(.6s + var(--i) * 220ms);
}
@keyframes markerIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.marker__pin {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
  background: radial-gradient(circle at 35% 30%, var(--bordeaux-soft), var(--bordeaux) 70%);
  border: 2px solid var(--paper);
  box-shadow: 0 8px 18px -6px rgba(123, 45, 59, .6), 0 0 0 1px rgba(196, 162, 102, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.marker__pin::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(192, 133, 132, .7);
  animation: pulse 3.2s ease-out infinite;
  animation-delay: calc(var(--i) * .5s);
}
@keyframes pulse {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.marker.is-visited .marker__pin {
  background: radial-gradient(circle at 35% 30%, #d6b87f, var(--gold) 70%);
}

.marker__label {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  translate: -50% 0;
  display: none;
  padding: .15rem .7rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--bordeaux);
  background: rgba(255, 253, 249, .85);
  border-radius: 999px;
  box-shadow: 0 4px 12px -6px rgba(91, 38, 52, .35);
  pointer-events: none;
  transition: translate .5s var(--ease), background .5s;
}

@media (hover: hover) {
  .marker:hover .marker__pin {
    transform: scale(1.14);
    box-shadow: 0 10px 24px -6px rgba(123, 45, 59, .6), 0 0 0 1px rgba(196, 162, 102, .8), 0 0 28px rgba(230, 211, 171, .9);
  }
  .marker:hover .marker__label { translate: -50% 4px; background: var(--paper); }
}

/* légende */
.map-legend {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.map-legend button {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  min-height: 60px;
  padding: .7rem 1rem;
  text-align: left;
  border: 1px solid rgba(196, 162, 102, .3);
  border-radius: 16px;
  background: rgba(255, 253, 249, .65);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.map-legend .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ivory);
  background: var(--bordeaux-soft);
}
.map-legend .is-visited .num { background: var(--gold); }
.map-legend .name { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.25; color: var(--bordeaux); }
.map-legend .date { display: block; font-size: .8rem; color: var(--ink-soft); }
@media (hover: hover) {
  .map-legend button:hover { background: var(--paper); border-color: rgba(196, 162, 102, .6); transform: translateY(-2px); }
}

/* ------------------------------------------------------------------ Fenêtres (modales) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 15, 21, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .6s var(--ease-soft);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__card {
  position: relative;
  width: 100%;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(23, 15, 21, .5);
  transform: translateY(100%);
  transition: transform .75s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.modal.is-open .modal__card { transform: none; }
.modal__card::before {
  /* poignée façon "bottom sheet" */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 42px;
  height: 4px;
  translate: -50% 0;
  border-radius: 4px;
  background: rgba(255, 253, 249, .8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--bordeaux);
  background: rgba(255, 253, 249, .85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .3);
  transition: transform .4s var(--ease);
}
@media (hover: hover) { .modal__close:hover { transform: rotate(90deg); } }

.modal__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--powder); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal.is-open .modal__media img { animation: kenBurns 12s ease-out forwards; }
@keyframes kenBurns { from { transform: scale(1.08); } to { transform: scale(1); } }

.modal__body { padding: 1.6rem 1.5rem 1.8rem; }
.modal__body > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.modal.is-open .modal__body > * { opacity: 1; transform: none; }
.modal.is-open .modal__body > :nth-child(1) { transition-delay: .25s; }
.modal.is-open .modal__body > :nth-child(2) { transition-delay: .33s; }
.modal.is-open .modal__body > :nth-child(3) { transition-delay: .41s; }
.modal.is-open .modal__body > :nth-child(4) { transition-delay: .49s; }
.modal.is-open .modal__body > :nth-child(5) { transition-delay: .6s; }
.modal.is-open .modal__body > :nth-child(6) { transition-delay: .7s; }

.modal__media { transition: opacity .6s var(--ease); }
.modal.is-open .modal__card.is-switching .modal__body > *,
.modal__card.is-switching .modal__media {
  opacity: 0;
  transform: translateY(6px);
  transition-duration: .28s;
  transition-delay: 0s;
}

.modal__date {
  margin: 0 0 .3rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.modal__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--bordeaux);
}
.modal__title .icon { font-size: .8em; margin-right: .35rem; }
.modal__place { margin: .35rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.modal__place:empty,
.modal__date:empty { display: none; }
.modal__text { margin: 1rem 0 0; color: var(--ink); }
.modal__quote {
  position: relative;
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--bordeaux-soft);
  border-top: 1px solid rgba(196, 162, 102, .35);
}
.modal__quote:empty { display: none; }

.modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.6rem;
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--ink-soft);
}
.modal__nav button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(196, 162, 102, .45);
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  color: var(--bordeaux);
  transition: background .4s, transform .4s var(--ease);
}
@media (hover: hover) { .modal__nav button:hover { background: var(--cream); transform: scale(1.06); } }

/* placeholder photo */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  width: 100%;
  height: 100%;
  min-height: 140px;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 253, 249, .8), transparent 55%),
    linear-gradient(145deg, var(--powder) 0%, var(--lilac) 100%);
  color: var(--bordeaux-soft);
}
.ph__icon { font-size: 1.5rem; color: var(--gold); }
.ph__text { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.ph__file { font-size: .7rem; letter-spacing: .04em; opacity: .7; word-break: break-all; }

/* ------------------------------------------------------------------ Galerie */
.section--gallery { background: var(--ivory); }

.gallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 14vw 2.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }

.polaroid {
  position: relative;
  flex: 0 0 72vw;
  max-width: 320px;
  scroll-snap-align: center;
  padding: 12px 12px 0;
  border: 0;
  text-align: center;
  background: var(--paper);
  box-shadow: 0 22px 40px -22px rgba(59, 42, 48, .45), 0 2px 6px rgba(59, 42, 48, .08);
  rotate: var(--r, 0deg);
  opacity: 0;
  translate: 0 30px;
  cursor: zoom-in;
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease), rotate .7s var(--ease), box-shadow .7s var(--ease), scale .7s var(--ease);
  transition-delay: calc(var(--i) * 110ms), calc(var(--i) * 110ms), 0s, 0s, 0s;
}
.polaroid.is-visible { opacity: 1; translate: 0 0; }
.polaroid::before {
  /* petit ruban adhésif */
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 24px;
  translate: -50% 0;
  rotate: calc(var(--r, 0deg) * -1.5);
  background: rgba(228, 220, 239, .75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.polaroid:nth-child(3n+2)::before { background: rgba(239, 214, 209, .8); }
.polaroid:nth-child(3n)::before { background: rgba(230, 211, 171, .6); }

.polaroid__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.polaroid__caption {
  display: block;
  padding: 1rem .4rem 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.polaroid__date {
  display: block;
  margin-top: .2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (hover: hover) {
  .polaroid:hover {
    rotate: 0deg;
    scale: 1.03;
    translate: 0 -8px;
    box-shadow: 0 34px 60px -24px rgba(59, 42, 48, .5), 0 0 0 1px rgba(196, 162, 102, .2);
    transition-delay: 0s;
  }
  .polaroid:hover .polaroid__photo img { transform: scale(1.05); }
}

.hint--swipe { margin-top: 0; font-family: var(--serif); font-style: italic; font-size: 1rem; }
.gallery-outro {
  position: relative;
  z-index: 1;
  margin: 2.4rem auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  color: var(--bordeaux-soft);
}
.gallery-outro:empty { display: none; }

/* lightbox */
.modal--lightbox { align-items: center; padding: 1rem; }
.modal--lightbox .modal__backdrop { background: rgba(23, 15, 21, .85); }
.lightbox {
  position: relative;
  z-index: 1;
  margin: 0;
  opacity: 0;
  transform: scale(.92) translateY(14px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.modal--lightbox.is-open .lightbox { opacity: 1; transform: none; }
.lightbox.is-switching { opacity: 0; transform: scale(.97); transition-duration: .25s; }
.lightbox__frame {
  padding: 12px 12px 0;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.lightbox__media { width: min(86vw, 560px); max-height: 66svh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox figcaption { padding: 1rem .5rem 1.2rem; text-align: center; }
.lightbox__caption { display: block; font-family: var(--serif); font-style: italic; font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.lightbox__date { display: block; margin-top: .2rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.modal__close--light { top: calc(14px + env(safe-area-inset-top)); z-index: 3; }
.lightbox__arrow {
  position: absolute;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(230, 211, 171, .45);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--ivory);
  background: rgba(255, 253, 249, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .4s;
}
.lightbox__arrow--prev { left: calc(50% - 64px); }
.lightbox__arrow--next { right: calc(50% - 64px); }
@media (hover: hover) { .lightbox__arrow:hover { background: rgba(255, 253, 249, .2); } }

/* ------------------------------------------------------------------ Ce que j'aime */
.section--qualities {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(239, 214, 209, .6), transparent 70%),
    linear-gradient(180deg, var(--ivory), #f8ede8);
}

.qualities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}

.q-card {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: none;
  perspective: 1100px;
  opacity: 0;
  translate: 0 26px;
  transition: opacity 1s var(--ease), translate 1s var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}
.q-card.is-visible { opacity: 1; translate: 0 0; }

.q-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease), translate .6s var(--ease);
}
.q-card.is-flipped .q-card__inner { transform: rotateY(180deg); }

.q-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.1rem .9rem;
  border-radius: 20px;
  text-align: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.q-card__front {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 253, 249, .95), transparent 65%),
    linear-gradient(165deg, var(--paper) 0%, #f7e7e3 100%);
  border: 1px solid rgba(196, 162, 102, .3);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .6s var(--ease);
}
.q-card__back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 211, 171, .25), transparent 60%),
    linear-gradient(160deg, var(--bordeaux-soft) 0%, var(--bordeaux) 60%, #5d1f2d 100%);
  color: var(--ivory);
  box-shadow: 0 24px 50px -24px rgba(123, 45, 59, .7);
}
.q-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.6rem;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 0 0 1px rgba(196, 162, 102, .3), 0 0 26px rgba(239, 214, 209, .9);
  transition: transform .8s var(--ease);
}
.q-card__title {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--bordeaux);
}
.q-card__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
}
.q-card__back::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-soft);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-soft);
}

@media (hover: hover) {
  .q-card:hover .q-card__inner { translate: 0 -6px; }
  .q-card:hover .q-card__front { box-shadow: 0 30px 60px -26px rgba(123, 45, 59, .45), 0 0 0 1px rgba(196, 162, 102, .5), 0 0 40px rgba(239, 214, 209, .8); }
  .q-card:hover .q-card__icon { transform: translateY(-4px) scale(1.08); }
}

/* ------------------------------------------------------------------ Lettre */
.section--letter {
  background:
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(239, 214, 209, .45), transparent 70%),
    var(--cream);
}

.letter-scene { position: relative; }

.envelope-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
  padding-top: 5.5rem; /* espace pour la lettre qui sort */
  transition: opacity 1s var(--ease), translate 1.2s var(--ease), scale 1s var(--ease);
}
.envelope-wrap.is-leaving { opacity: 0; scale: .92; }

.envelope {
  position: relative;
  width: min(84vw, 420px);
  aspect-ratio: 1.55;
  perspective: 1200px;
  filter: drop-shadow(0 26px 30px rgba(91, 38, 52, .22));
  animation: floaty 6s ease-in-out infinite;
}
.envelope.is-open { animation-play-state: paused; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #dcb3ac, #e6c5bf);
}
.envelope__letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 7%;
  height: 86%;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12%;
  border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(196, 162, 102, .12) 22px 23px),
    var(--paper);
  box-shadow: 0 2px 10px rgba(91, 38, 52, .12);
  font-family: var(--script);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  color: var(--bordeaux);
  transition: transform 1.2s var(--ease) .75s;
}
.envelope.is-open .envelope__letter { transform: translateY(-56%); }

.envelope__front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(to top right, rgba(0, 0, 0, .025) 50%, transparent 50%),
    linear-gradient(to top left, rgba(0, 0, 0, .04) 50%, transparent 50%),
    linear-gradient(180deg, #f3ddd8 0%, #ebccc6 100%);
}
.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56%;
  z-index: 4;
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #e8c3bc 0%, #deb1aa 100%);
  transition: transform 1s var(--ease), z-index 0s .45s;
}
.envelope.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }

.envelope__seal {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  translate: -50% -50%;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: radial-gradient(circle at 35% 30%, #a24d5b, var(--bordeaux) 60%, #5d1f2d);
  box-shadow: 0 6px 14px -4px rgba(91, 38, 52, .6), inset 0 0 0 4px rgba(0, 0, 0, .08), inset 0 0 0 5px rgba(230, 211, 171, .3);
  transition: opacity .5s, scale .6s var(--ease);
}
.envelope.is-open .envelope__seal { opacity: 0; scale: 1.4; }

#openLetterBtn.is-hidden { opacity: 0; pointer-events: none; }

.letter-paper {
  position: relative;
  scroll-margin-top: 2rem;
  padding: clamp(2.2rem, 7vw, 3.6rem) clamp(1.5rem, 6vw, 3.4rem);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(239, 214, 209, .35), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(228, 220, 239, .4), transparent 50%),
    var(--paper);
  box-shadow: 0 40px 70px -40px rgba(91, 38, 52, .45), 0 2px 10px rgba(91, 38, 52, .06);
}
.letter-paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(196, 162, 102, .35);
  border-radius: 3px;
  pointer-events: none;
}
.letter-paper > *,
.letter-paper #letterBody > p {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 1.4s var(--ease), translate 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.letter-paper #letterBody { opacity: 1; translate: none; }
.letter-paper.is-visible > *,
.letter-paper.is-visible #letterBody > p { opacity: 1; translate: 0 0; }

.letter-paper__greeting {
  margin: 0 0 1.2rem;
  font-family: var(--script);
  font-size: clamp(2.2rem, 9vw, 2.9rem);
  line-height: 1.2;
  color: var(--bordeaux);
}
.letter-paper p:not([class]) {
  margin: 0 0 1.1em;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
}
.letter-paper__closing {
  margin: 1.8rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(196, 162, 102, .35);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 5.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--bordeaux);
  text-wrap: balance;
}
.letter-paper__signature {
  margin: 1.4rem 0 0;
  text-align: right;
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.6rem);
  color: var(--bordeaux-soft);
}

/* ------------------------------------------------------------------ Compteur */
.section--counter {
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(228, 220, 239, .6), transparent 70%),
    var(--ivory);
  padding-bottom: clamp(7rem, 20vw, 11rem);
}

.counter { text-align: center; }
.counter__big {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 24vw, 8.5rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--rose-deep) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter__headline {
  margin: .4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5.4vw, 1.9rem);
  font-weight: 500;
  color: var(--bordeaux);
}
.counter__since {
  margin: .5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.counter__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  max-width: 720px;
  margin: 2.6rem auto 0;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.3rem .5rem 1.1rem;
  border: 1px solid rgba(196, 162, 102, .3);
  border-radius: 18px;
  background: rgba(255, 253, 249, .7);
  box-shadow: var(--shadow-soft);
}
.tile__num {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 9vw, 2.9rem);
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--bordeaux);
}
.tile__num.tick { animation: tick .6s var(--ease); }
@keyframes tick {
  from { opacity: .35; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
.tile__label {
  margin-top: .35rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.counter__foot {
  margin: 2rem auto 0;
  max-width: 32ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ Surprise finale */
.section--finale {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 6rem;
  color: var(--ivory);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(98, 52, 78, .45) 0%, transparent 70%),
    linear-gradient(180deg, #2a1a25 0%, var(--night) 40%, #0f0a0e 100%);
}
.section--finale::before {
  /* fondu depuis la section claire */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 1;
  background: linear-gradient(180deg, var(--ivory) 0%, rgba(214, 196, 196, .55) 30%, rgba(90, 60, 78, .2) 65%, rgba(42, 26, 37, 0) 100%);
  pointer-events: none;
}
.finale__sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.finale__bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 215, .95) 0%, rgba(230, 211, 171, .45) 35%, rgba(217, 169, 165, 0) 70%);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
.section--finale.is-revealing .finale__bloom { animation: bloom 2.6s var(--ease-soft) forwards; }
@keyframes bloom {
  0% { opacity: 0; transform: scale(0); }
  35% { opacity: 1; transform: scale(9); }
  100% { opacity: 0; transform: scale(22); }
}

.finale__inner { z-index: 2; }

.finale__ask { transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); }
.section--finale.is-revealing .finale__ask { opacity: 0; filter: blur(8px); transform: scale(.96); pointer-events: none; }

.finale__teaser {
  margin: 0 auto 2.4rem;
  max-width: 20ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 7.5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(217, 169, 165, .25);
}

.finale__reveal > *,
#finaleMessages > p {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition: opacity 1.8s var(--ease), filter 1.8s var(--ease), transform 1.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
#finaleMessages { opacity: 1; filter: none; transform: none; }
.section--finale.is-revealed .finale__reveal > *,
.section--finale.is-revealed #finaleMessages > p { opacity: 1; filter: none; transform: none; }

.finale__lead {
  margin: 0 auto 2.6rem;
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.5;
  color: #ead8cd;
}
.finale__big {
  margin: 0 auto .4rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 8.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ivory);
  text-shadow: 0 0 40px rgba(230, 211, 171, .35);
}
.finale__big + .finale__big { font-style: italic; color: var(--gold-soft); }
.finale__signature {
  margin: 2.4rem 0 0;
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.6rem);
  color: var(--gold-soft);
}
.finale__replay { margin-top: 2.6rem; }

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  z-index: 2;
  padding: 0 5rem;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(234, 216, 205, .45);
}

/* =============================================================================
   TABLETTE & ORDINATEUR
   ============================================================================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 1.05rem; }

  .map { aspect-ratio: 16 / 10; max-height: none; }
  .map__compass { width: 64px; top: 28px; right: 28px; }
  .marker__label { display: block; }

  .map-legend { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

  .modal { align-items: center; padding: 2rem; }
  .modal__card {
    width: min(560px, 100%);
    max-height: 88vh;
    border-radius: 24px;
    transform: translateY(26px) scale(.94);
    opacity: 0;
    transition: transform .8s var(--ease), opacity .6s var(--ease);
    box-shadow: 0 40px 80px -30px rgba(23, 15, 21, .6);
  }
  .modal.is-open .modal__card { opacity: 1; }
  .modal__card::before { display: none; }
  .modal__body { padding: 2rem 2.4rem 2.2rem; }

  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.2rem;
    width: min(100% - var(--gutter) * 2, 1000px);
    margin-inline: auto;
    padding: 1.5rem 0 1rem;
    overflow: visible;
  }
  .polaroid { max-width: none; }
  .polaroid:nth-child(3n+2) { margin-top: 2.2rem; }
  .hint--swipe { display: none; }

  .lightbox__arrow { top: 50%; bottom: auto; translate: 0 -50%; }
  .lightbox__arrow--prev { left: 2rem; }
  .lightbox__arrow--next { right: 2rem; }
  .lightbox__media { width: min(60vw, 520px); max-height: 72vh; }

  .qualities { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .q-card { aspect-ratio: 5 / 5.4; }
  .q-card__icon { width: 68px; height: 68px; font-size: 1.9rem; }
  .q-card__title { font-size: 1.45rem; }
  .q-card__text { font-size: 1.3rem; padding: 0 .6rem; }

  .counter__tiles { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

@media (min-width: 1100px) {
  .qualities { gap: 2rem; }
}

/* mouvements réduits */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
