/* =========================================================
   L'ÉCRIN — v3 « Flash direct, 1h du matin »
   Le vocabulaire visuel vient des photos de soirée elles-mêmes :
   flash qui crame le centre, nuit prune autour, date orange
   imprimée dans le coin, planche contact au crayon gras,
   scotch rouge sur ce qu'on ne montre pas.
   ========================================================= */

@property --amb {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 176, 96, 0.3);
}

:root {
  --nuit: #1a0d14;
  --nuit-2: #26121d;
  --nuit-3: #0e0709;
  --flash: #fffaf3;
  --peau: #f2d4c4;
  --papier: #f6e9df;
  --levres: #d61f45;
  --levres-vif: #ff5470;
  --date: #ff8a1e;
  --brume: #bfa2ae;
  --encre: #1a0d14;
  --encre-douce: #5e3f4b;

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat Brush', 'Segoe Print', 'Bradley Hand', cursive;
  --stamp: 'DM Mono', ui-monospace, 'Consolas', monospace;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--nuit);
  color: var(--papier);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain argentique sur toute la page */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  background-image: var(--grain);
  opacity: 0.13;
  mix-blend-mode: overlay;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--levres); color: var(--flash); }
:focus-visible { outline: 2px solid var(--date); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 860px) { .wrap { padding-inline: 48px; } }

.hand { font-family: var(--hand); font-weight: 400; line-height: 1.15; }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* ===== boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-levres { background: var(--levres); color: var(--flash); }
.btn-levres:hover { background: #b81639; box-shadow: 0 0 0 6px rgba(214, 31, 69, 0.18), 0 14px 34px rgba(214, 31, 69, 0.35); }
.btn-ligne { border-color: rgba(26, 13, 20, 0.45); color: var(--encre); }
.btn-ligne:hover { border-color: var(--encre); background: rgba(255, 255, 255, 0.35); }
.btn-ligne-clair { border-color: rgba(246, 233, 223, 0.35); color: var(--papier); background: transparent; }
.btn-ligne-clair:hover:not(:disabled) { border-color: var(--papier); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* =========================================================
   INTRO — la pièce est noire, le flash part, la photo se fixe.
   Le seul mouvement automatique de la page.
   ========================================================= */
.intro-flash {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background: var(--nuit);
  opacity: 0;
}
.is-flashing .intro-flash { animation: flash-pop 1.25s ease-out forwards; }
@keyframes flash-pop {
  0%   { opacity: 1; background: var(--nuit); }
  22%  { opacity: 1; background: var(--nuit); }
  23%  { opacity: 1; background: #ffffff; }
  100% { opacity: 0; background: #ffffff; }
}
/* le titre « se développe » : surexposé puis il apparaît */
.is-flashing .hero-title span { animation: develop 1.6s ease-out both; }
.is-flashing .hero-title .t2 { animation-delay: .08s; }
.is-flashing .hero-title .t3 { animation-delay: .16s; }
@keyframes develop {
  0%, 25% { color: #fffdf8; filter: blur(3px); }
  100%    { color: var(--encre); filter: blur(0); }
}
.is-flashing .hero-note { animation: fade-late 0.6s ease-out 1.5s both; }
@keyframes fade-late { from { opacity: 0; transform: translateY(6px) rotate(-4deg); } to { opacity: 1; transform: rotate(-4deg); } }

/* =========================================================
   HERO — une photo prise au flash direct
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--encre);
  background:
    radial-gradient(ellipse 150% 62% at 46% 40%,
      #fffdf9 0%, #fff5ea 24%, #f6d8c8 44%, #c07581 62%, #5a2438 78%, #1a0d14 94%);
  overflow: hidden;
}
@media (min-width: 860px) {
  .hero {
    background:
      radial-gradient(ellipse 78% 82% at 36% 46%,
        #fffdf9 0%, #fff5ea 24%, #f6d8c8 44%, #c07581 64%, #5a2438 82%, #1a0d14 100%);
  }
}
/* léger voile froid en bord de cadre, comme un vrai flash */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 95% 100%, rgba(214, 31, 69, 0.35), transparent 70%);
}

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 20px 0;
  padding-top: calc(20px + env(safe-area-inset-top));
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 26px; text-decoration: none; letter-spacing: -0.01em;
}
.logo-by {
  font-family: var(--sans); font-style: normal; font-weight: 500;
  font-size: 11px; letter-spacing: 0.06em; opacity: 0.6;
  align-self: flex-end; margin: 0 0 7px -4px; white-space: nowrap;
}
.footer-logo .logo-by { font-size: 12px; }
/* l'écrin entrouvert : une boîte, son couvercle soulevé */
.mark { width: 25px; height: 25px; flex: none; }
.nav-links { display: none; list-style: none; gap: 34px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--encre-douce); }
.nav-links a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav-cta {
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--encre); color: var(--flash);
}
.nav-cta:hover { background: var(--levres); }
@media (min-width: 860px) {
  .nav { padding: 28px 48px 0; }
  .nav-links { display: flex; }
}

.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 20px 110px;
  max-width: 1180px; width: 100%; margin: 0 auto;
}
@media (min-width: 860px) { .hero-inner { padding: 40px 48px 120px; } }

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 15.5vw, 188px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.hero-title span { display: block; }
.hero-title .t0 {
  font-family: var(--sans); font-style: normal; font-weight: 600;
  font-size: clamp(12px, 1.5vw, 15px); line-height: 1.4;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--levres); margin-bottom: 0.9em;
}
.hero-title .t1 { font-weight: 500; }
.hero-title .t2 { font-style: italic; padding-left: 0.42em; }
.hero-title .t3 { font-weight: 500; padding-left: 0.12em; }

.hero-note {
  position: relative;
  align-self: flex-start;
  margin: 18px 0 0 0.5em;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--levres);
  transform: rotate(-4deg);
}
.hero-arrow { position: absolute; width: 64px; height: 44px; left: 100%; top: -34px; margin-left: 6px; transform: scaleY(-1); }
.hero-arrow path { stroke: var(--levres); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 860px) {
  .hero-note { position: absolute; right: 6%; top: 46%; margin: 0; max-width: 7.5em; }
  .hero-arrow { left: -76px; top: 10px; transform: none; }
}

.hero-sub {
  margin-top: 30px;
  max-width: 34ch;
  font-size: 18px; line-height: 1.6;
  color: var(--encre-douce);
}
@media (min-width: 860px) { .hero-sub { font-size: 19.5px; margin-left: 0.3em; } }

.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .hero-actions { margin-left: 0.3em; } }
@media (max-width: 420px) { .hero-actions .btn { flex: 1 1 100%; } }

/* date imprimée par l'appareil */
.datestamp, .stamp {
  font-family: var(--stamp); font-weight: 500;
  color: var(--date);
  text-shadow: 0 0 2px rgba(255, 138, 30, 0.9), 0 0 10px rgba(255, 100, 20, 0.55);
  letter-spacing: 0.04em;
  white-space: pre;
}
.datestamp {
  position: absolute; z-index: 3; right: 20px; bottom: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  font-size: clamp(17px, 2.2vw, 26px);
}
@media (min-width: 860px) { .datestamp { right: 48px; bottom: 34px; } }

/* =========================================================
   SANS FILTRE
   ========================================================= */
.sans { padding-block: clamp(80px, 13vw, 160px); }
.sans-grid { display: grid; gap: 44px; }
.sans-lines {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(50px, 10.5vw, 132px);
  line-height: 0.95; letter-spacing: -0.03em;
  color: var(--papier);
}
.sans-lines > span { display: block; }
@media (min-width: 700px) { .sans-lines > span { white-space: nowrap; } }
.sans-lines > span:nth-child(2) { font-style: italic; padding-left: 0.6em; color: var(--peau); }
.sans-lines > span:nth-child(3) { position: relative; }
.sans-aside {
  display: inline-block;
  font-size: 0.3em; letter-spacing: 0;
  color: var(--levres-vif);
  transform: rotate(-6deg) translateY(-0.9em);
  margin-left: 0.25em;
}
.sans-text { max-width: 40ch; color: var(--brume); font-size: 17.5px; }
.sans-text p + p { margin-top: 16px; color: var(--papier); }
@media (min-width: 960px) {
  .sans-text { justify-self: end; margin-top: -40px; }
}

/* =========================================================
   LA PIOCHE — la lumière de la pièce suit le niveau choisi
   ========================================================= */
.pioche {
  position: relative; overflow: hidden;
  padding-block: clamp(80px, 12vw, 150px);
  background: var(--nuit-2);
  transition: --amb .9s ease, background-color .9s ease;
}
.pioche[data-level="1"] { --amb: rgba(255, 70, 125, 0.32); }
.pioche[data-level="2"] { --amb: rgba(214, 31, 69, 0.6); background-color: #1b070d; }
.pioche::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 72% 45%, var(--amb), transparent 72%);
}
.pioche-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .pioche-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.pioche-copy p { max-width: 42ch; color: var(--brume); margin-top: 18px; }
.pioche-copy .h2 { margin-bottom: 8px; }

.levels {
  margin-top: 34px;
  display: inline-flex; gap: 4px; padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(246, 233, 223, 0.22);
  background: rgba(14, 7, 9, 0.4);
}
.level {
  border: 0; background: transparent; cursor: pointer;
  padding: 11px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--brume);
  transition: background .25s ease, color .25s ease;
}
.level:hover { color: var(--papier); }
.level.is-active { background: var(--papier); color: var(--encre); }
.level[data-level="2"].is-active { background: var(--levres); color: var(--flash); }
@media (max-width: 400px) { .level { padding: 10px 13px; font-size: 14px; } }
.pioche-copy .level-desc {
  margin-top: 14px;
  font-family: var(--display); font-style: italic; font-size: 19px;
  color: var(--peau);
  min-height: 2.8em;
}

/* la carte */
.deck { display: flex; flex-direction: column; align-items: center; }
.card {
  width: min(390px, 94%);
  perspective: 1400px;
}
.card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.3, .7, .2, 1);
  transform: rotate(-2.5deg);
}
.card.is-face .card-inner { transform: rotateY(180deg) rotate(2deg); }
/* La face porte la hauteur de la carte : une chute plus longue
   allonge la carte au lieu de déborder. Le dos suit. */
.card-back, .card-face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.card-back { position: absolute; inset: 0; }
.card-face { position: relative; min-height: 430px; }
.card-back {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(246, 233, 223, 0.05) 14px 15px),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(246, 233, 223, 0.05) 14px 15px),
    radial-gradient(circle at 50% 40%, #8e1a35, #3d0c1b 75%);
  border: 1px solid rgba(246, 233, 223, 0.18);
  outline: 1px solid rgba(246, 233, 223, 0.35);
  outline-offset: -14px;
}
.card-mono { font-family: var(--display); font-style: italic; font-size: 46px; color: var(--papier); }
.card-hint { font-size: 14.5px; color: rgba(246, 233, 223, 0.7); line-height: 1.5; }
.card-face {
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--papier); color: var(--encre);
  transition: background .4s ease, color .4s ease;
}
.card-level { font-size: 26px; color: var(--levres); }
.card-title {
  margin-top: 6px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 7vw, 40px); line-height: 1.02; letter-spacing: -0.02em;
}
.card-text { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--encre-douce); }
.card-role {
  margin-top: auto; padding-top: 16px;
  font-size: 22px; color: var(--encre);
  border-top: 1px dashed rgba(26, 13, 20, 0.25);
}
@media (max-width: 600px) {
  .card-face { padding: 24px 22px 20px; min-height: 400px; }
  .card-text { font-size: 15.5px; margin-top: 12px; }
  .card-role { font-size: 20px; }
}
.card.is-boudoir .card-face { background: #2a0b16; color: var(--papier); }
.card.is-boudoir .card-text { color: var(--peau); }
.card.is-boudoir .card-role { color: var(--levres-vif); border-top-color: rgba(246, 233, 223, 0.2); }
.card.is-boudoir .card-level { color: var(--date); }

.deck-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.whisper {
  margin-top: 18px; min-height: 3.2em; max-width: 36ch;
  text-align: center;
  font-family: var(--hand); font-size: 22px; line-height: 1.25;
  color: var(--peau);
}
.deck-note {
  margin-top: 6px; max-width: 40ch;
  text-align: center; font-size: 13.5px; line-height: 1.5;
  color: rgba(191, 162, 174, 0.75);
}

/* =========================================================
   LA PLANCHE CONTACT
   ========================================================= */
.planche { padding-block: clamp(80px, 12vw, 150px) clamp(60px, 8vw, 110px); background: var(--nuit); }
.planche-head { display: grid; gap: 22px; margin-bottom: clamp(50px, 7vw, 90px); }
.planche-head p { max-width: 40ch; color: var(--brume); }
@media (min-width: 960px) { .planche-head { grid-template-columns: 1.4fr 1fr; align-items: end; } }

.roll + .roll { margin-top: clamp(56px, 8vw, 96px); }
/* La chaleur monte avec la soirée : le premier rouleau reste dans la
   nuit, le deuxième tiédit, le dernier baigne dans la lumière rouge
   de la chambre noire. */
.roll-mid { background: radial-gradient(ellipse 80% 70% at 50% 56%, rgba(255, 138, 88, 0.14), transparent 72%); }
.roll-late {
  background:
    radial-gradient(ellipse 62% 58% at 50% 54%, rgba(255, 90, 70, 0.22), transparent 68%),
    radial-gradient(ellipse 96% 82% at 50% 56%, rgba(214, 31, 69, 0.42), transparent 74%);
}
.roll-head { display: flex; gap: 20px; align-items: baseline; margin-bottom: 22px; }
.roll-head .roll-time {
  flex: none;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(54px, 8vw, 92px); line-height: 0.9;
  color: var(--peau); min-width: 1.6em;
}
.roll-head h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.roll-head p { margin-top: 6px; max-width: 52ch; color: var(--brume); font-size: 16px; }
.roll-late .roll-head .roll-time { color: var(--levres-vif); }

/* bande de film : perforations éclairées par la table lumineuse */
.strip {
  position: relative;
  background: var(--nuit-3);
  padding: 18px 0 10px;
  box-shadow: 0 0 0 1px rgba(246, 233, 223, 0.04);
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 236, 214, 0.78) 9px 19px, transparent 19px 30px);
  opacity: 0.8;
}
.strip::before { top: 9px; }
.strip::after { bottom: 9px; }
.strip { overflow: hidden; }

.frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  padding-inline: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: start;
  padding-block: 24px 54px;
}
.frames::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .frames { grid-auto-columns: 46%; } }
@media (min-width: 1000px) {
  .frames {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    max-width: 1180px; margin: 0 auto; padding-inline: 48px; gap: 18px;
  }
}

.frame { position: relative; scroll-snap-align: center; margin: 0; }
.fnum {
  position: absolute; top: -18px; left: 2px;
  font-family: var(--stamp); font-size: 11px; letter-spacing: 0.05em;
  color: #d99a52; opacity: 0.8;
}
.frame .stamp { position: absolute; right: 9px; bottom: 7px; font-size: 13px; pointer-events: none; }

/* les « photos » : scène au flash reconstituée en dégradés.
   À remplacer par de vraies photos (background-image sur .shot). */
.shot {
  --skin: #f5cbb2;
  --skin-lit: #fde3d2;
  --hair: #3a1f1a;
  --top: #2b2430; --top2: #e7e1d8; --top3: #b8233e;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), rgba(255, 248, 236, 0.5), transparent 48%),
    radial-gradient(ellipse at 85% 8%, var(--tint, rgba(255, 170, 90, .3)), transparent 60%),
    linear-gradient(180deg, #2c1422, #12080d);
}
.shot::before {
  content: ""; position: absolute; inset: 0;
  filter: blur(4.5px);
}
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}
.shot.solo::before {
  background:
    radial-gradient(circle at 48% 26%, var(--skin-lit) 0 3%, transparent 6%),
    radial-gradient(circle at 50% 34%, var(--skin) 0 12.5%, transparent 13.5%),
    radial-gradient(circle at 51% 30%, var(--hair) 0 15.5%, transparent 16.5%),
    radial-gradient(ellipse 34% 44% at 50% 96%, var(--top) 0 97%, transparent 100%);
}
.shot.duo::before {
  background:
    radial-gradient(circle at 36% 34%, var(--skin) 0 11%, transparent 12%),
    radial-gradient(circle at 37% 30%, var(--hair) 0 14%, transparent 15%),
    radial-gradient(circle at 64% 38%, var(--skin) 0 11%, transparent 12%),
    radial-gradient(circle at 63% 33%, #6b3a24 0 14%, transparent 15%),
    radial-gradient(ellipse 22% 40% at 36% 96%, var(--top) 0 97%, transparent 100%),
    radial-gradient(ellipse 22% 38% at 64% 98%, var(--top2) 0 97%, transparent 100%);
}
.shot.duo.close::before {
  background:
    radial-gradient(circle at 42% 40%, var(--skin) 0 14%, transparent 15%),
    radial-gradient(circle at 41% 35%, var(--hair) 0 17%, transparent 18%),
    radial-gradient(circle at 60% 40%, var(--skin) 0 14%, transparent 15%),
    radial-gradient(circle at 62% 35%, #6b3a24 0 17%, transparent 18%),
    radial-gradient(ellipse 22% 36% at 40% 100%, var(--top) 0 97%, transparent 100%),
    radial-gradient(ellipse 22% 36% at 62% 100%, var(--top2) 0 97%, transparent 100%);
}
.shot.trio::before {
  background:
    radial-gradient(circle at 25% 38%, var(--skin) 0 9.5%, transparent 10.5%),
    radial-gradient(circle at 26% 34%, #7a4a2c 0 12%, transparent 13%),
    radial-gradient(circle at 50% 32%, var(--skin) 0 10%, transparent 11%),
    radial-gradient(circle at 50% 28%, var(--hair) 0 12.5%, transparent 13.5%),
    radial-gradient(circle at 75% 40%, var(--skin) 0 9.5%, transparent 10.5%),
    radial-gradient(circle at 74% 36%, #c79a62 0 12%, transparent 13%),
    radial-gradient(ellipse 17% 36% at 25% 98%, var(--top) 0 97%, transparent 100%),
    radial-gradient(ellipse 18% 40% at 50% 98%, var(--top2) 0 97%, transparent 100%),
    radial-gradient(ellipse 17% 36% at 75% 98%, var(--top3) 0 97%, transparent 100%);
}
.shot.shake::before { filter: blur(8px); transform: translateX(-3%) skewX(-8deg) scaleX(1.08); }
.shot.redeye::after {
  background:
    radial-gradient(circle at 46.2% 34%, #ff2a2a 0 0.9%, transparent 1.3%),
    radial-gradient(circle at 53.8% 34%, #ff2a2a 0 0.9%, transparent 1.3%),
    radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}
/* contre-jour de lampe de chevet : pas de flash, une silhouette */
.shot.lamp {
  --skin: #120709; --skin-lit: #120709; --hair: #120709; --top: #120709;
  background:
    radial-gradient(circle at var(--lx) var(--ly), #ffd08a 0 3%, rgba(255, 150, 70, 0.75) 9%, rgba(214, 31, 69, 0.3) 38%, transparent 64%),
    linear-gradient(180deg, #2a0d17, #0b0406);
}
.shot.lamp::before { transform: translateX(-12%); filter: blur(2px); }
.shot.lamp::after { background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.7) 100%); }

/* annotations au crayon gras */
.anno {
  position: absolute; z-index: 3;
  font-size: 21px; color: var(--levres-vif);
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  max-width: 90%;
}
.a-bl { left: 2px; top: calc(100% + 6px); transform: rotate(-2deg); white-space: nowrap; }
.a-tr { right: 10px; top: 8px; transform: rotate(3deg); text-align: right; }
.ring {
  position: absolute; z-index: 2; inset: -9% -6%; width: 112%; height: 118%;
  overflow: visible; pointer-events: none;
}
.ring path { fill: none; stroke: var(--levres-vif); stroke-width: 3.2; stroke-linecap: round; opacity: 0.92; vector-effect: non-scaling-stroke; }

/* ce qu'on ne montre pas */
.frame.secret .shot::before { filter: blur(12px); }
.frame.secret .shot { filter: saturate(1.3) brightness(0.8); }
.tape {
  position: absolute; z-index: 4;
  left: -7%; right: -7%; top: 34%;
  padding: 10px 0 8px;
  border: 0; cursor: pointer;
  font-family: var(--hand); font-size: 27px; line-height: 1; color: var(--flash);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 7px),
    var(--levres);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(-7deg);
  transform-origin: 8% 50%;
  transition: transform .45s cubic-bezier(.3, .7, .2, 1);
  clip-path: polygon(0 8%, 2% 0, 98% 6%, 100% 0, 99% 96%, 97% 100%, 3% 92%, 0 100%);
}
.tape-b { transform: rotate(5deg); top: 40%; }
.tape:hover { transform: rotate(-9deg) translateY(-3px); }
.tape-b:hover { transform: rotate(7deg) translateY(-3px); }
.tape[aria-expanded="true"] { transform: rotate(-19deg) translate(-3%, -46%); }
.tape-b[aria-expanded="true"] { transform: rotate(16deg) translate(3%, -52%); }
.secret-note {
  position: absolute; z-index: 3; left: 8%; right: 8%; bottom: 14%;
  font-size: 13.5px; line-height: 1.45; color: var(--papier);
  text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease .12s, transform .35s ease .12s;
  pointer-events: none;
}
.frame.is-open .secret-note { opacity: 1; transform: none; }

/* =========================================================
   LE PACTE — une feuille scotchée sur le mur de la chambre
   ========================================================= */
.pacte { padding-block: clamp(70px, 10vw, 130px); background: var(--nuit); }
.pacte-sheet {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 72px) clamp(36px, 6vw, 60px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%),
    var(--papier);
  color: var(--encre);
  transform: rotate(-0.6deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(0, 0, 0, 0.1);
}
.pacte-tape {
  position: absolute; top: -18px; left: 50%;
  width: 150px; height: 38px; margin-left: -75px;
  background: rgba(236, 220, 196, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transform: rotate(3deg);
}
.pacte-title {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 9vw, 92px); line-height: 0.9; letter-spacing: -0.03em;
}
.pacte-intro { margin-top: 18px; max-width: 46ch; color: var(--encre-douce); font-size: 16.5px; }
.pacte-list {
  margin-top: 34px;
  list-style: none; counter-reset: art;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(19px, 2.5vw, 22px); line-height: 1.55;
}
.pacte-list li {
  counter-increment: art;
  position: relative;
  padding: 16px 0 16px 2.4em;
  border-top: 1px solid rgba(26, 13, 20, 0.14);
}
.pacte-list li::before {
  content: counter(art);
  position: absolute; left: 0; top: 12px;
  font-family: var(--hand); font-size: 30px; line-height: 1.2;
  color: var(--levres);
}
.signatures {
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(26, 13, 20, 0.14);
  display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline;
}
.sig { font-size: clamp(28px, 4.4vw, 38px); color: #2a3c7a; }
.s1 { transform: rotate(-5deg); }
.s2 { transform: rotate(3deg); color: var(--encre); }
.s3 { transform: rotate(-2deg) translateY(6px); }
.s4 { transform: rotate(6deg); color: #6b1830; }
.s5 { transform: rotate(-4deg); color: var(--levres); }

/* =========================================================
   FINAL
   ========================================================= */
.final {
  position: relative; overflow: hidden;
  padding-block: clamp(90px, 13vw, 170px);
  background:
    radial-gradient(ellipse 58% 58% at 24% 44%, rgba(255, 196, 148, 0.1), transparent 70%),
    radial-gradient(ellipse 80% 74% at 64% 62%, rgba(214, 31, 69, 0.18), transparent 72%),
    var(--nuit);
}
.final-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 860px) { .pacte-sheet { transform: rotate(-1.2deg); } }
@media (min-width: 960px) { .final-grid { grid-template-columns: 0.85fr 1.15fr; gap: 90px; } }

.polaroid {
  justify-self: center;
  width: min(360px, 88%);
  margin: 0;
  padding: 14px 14px 0;
  background: #fbf6ef;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(-4deg);
}
.polaroid .shot { aspect-ratio: 1; }
/* La dernière image de la page est une photo qui n'existe pas encore :
   celle de leur soirée. Elle sort du boîtier, elle n'a rien révélé. */
.shot.vierge {
  background:
    radial-gradient(ellipse 72% 62% at 41% 37%, rgba(216, 178, 143, 0.26), transparent 70%),
    radial-gradient(ellipse 92% 82% at 64% 74%, rgba(122, 133, 104, 0.16), transparent 72%),
    linear-gradient(165deg, #4b3c33 0%, #332624 56%, #241a1c 100%);
}
/* pas de flash sur une photo que personne n'a encore prise */
.shot.vierge::after {
  background: radial-gradient(ellipse at 50% 48%, transparent 46%, rgba(0, 0, 0, 0.62) 100%);
}
.polaroid .shot::before { filter: blur(10px); transform: scale(1.1); }
.polaroid figcaption { padding: 18px 4px 22px; font-size: 25px; color: var(--encre); text-align: center; }

/* la chute du défi, floutée comme une photo pas encore développée */
.card-secret {
  display: block; width: 100%; text-align: left;
  margin-top: 16px; padding: 14px 16px;
  border: 1px dashed rgba(26, 13, 20, 0.28); border-radius: 10px;
  background: rgba(26, 13, 20, 0.04);
  cursor: pointer;
}
.card-secret:hover { background: rgba(26, 13, 20, 0.07); }
.secret-txt {
  display: block; font-size: 16px; line-height: 1.55; color: var(--encre-douce);
  filter: blur(5px); user-select: none;
  transition: filter .5s ease;
}
.secret-cue {
  display: block; margin-top: 12px; font-size: 18px; color: var(--levres);
  transition: opacity .3s ease;
}
.card-secret[aria-expanded="true"] .secret-txt { filter: none; user-select: auto; }
.card-secret[aria-expanded="true"] .secret-cue { opacity: 0; }
/* Le dernier palier ne se lit pas ici : la chute reste scellée,
   comme les photos scotchées de la planche contact. */
.card.is-boudoir .card-secret { border-color: rgba(246, 233, 223, 0.28); background: rgba(246, 233, 223, 0.05); }
.card-secret:disabled { cursor: default; }
.card.is-boudoir .card-secret:hover { background: rgba(246, 233, 223, 0.05); }
.card.is-boudoir .secret-txt { color: var(--peau); }
.card.is-boudoir .secret-cue { color: var(--levres-vif); }

/* =========================================================
   COMMENT ÇA SE PASSE — une vraie séquence, donc numérotée
   ========================================================= */
.etapes { padding-block: clamp(70px, 10vw, 130px); background: var(--nuit); }
.etapes-titre { margin-bottom: 18px; }
.etapes-intro { max-width: 52ch; color: var(--brume); margin-bottom: clamp(34px, 5vw, 56px); }
.etapes-liste { list-style: none; display: grid; gap: 0; }
.etapes-liste li { padding: 26px 0; border-top: 1px solid rgba(246, 233, 223, 0.14); }
.etapes-liste li:last-child { border-bottom: 1px solid rgba(246, 233, 223, 0.14); }
.etape-num { font-family: var(--stamp); font-size: 13px; color: var(--date); }
.etapes-liste h3 { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.15; }
.etapes-liste p { margin-top: 10px; color: var(--brume); font-size: 16px; max-width: 42ch; }
@media (min-width: 860px) {
  .etapes-liste { grid-template-columns: repeat(4, 1fr); gap: 0 30px; }
  .etapes-liste li { padding: 28px 0 0; border-top: 1px solid rgba(246, 233, 223, 0.14); }
  .etapes-liste li:last-child { border-bottom: 0; }
}

/* =========================================================
   TÉMOIGNAGES — écrits au dos d'un tirage
   ========================================================= */
.mots { padding-block: clamp(70px, 10vw, 130px) clamp(20px, 4vw, 40px); background: var(--nuit); }
.mots .h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.mots-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .mots-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
@media (min-width: 860px) { .mots-grid--solo { grid-template-columns: minmax(0, 560px); justify-content: center; } }
.mot {
  margin: 0; padding: 30px 28px 24px;
  background: #fbf6ef; color: var(--encre);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(26, 13, 20, 0.07) 33px 34px);
}
.m1 { transform: rotate(-1.4deg); }
.m2 { transform: rotate(0.8deg); }
.m3 { transform: rotate(-0.6deg); }
.mot blockquote { font-family: var(--hand); font-size: 25px; line-height: 1.36; color: #23314f; }
.mot figcaption { margin-top: 18px; font-size: 13.5px; color: var(--encre-douce); }

.quote p {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.4;
  color: var(--peau);
  max-width: 30ch;
}
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14.5px; color: var(--brume); }
.final-title { font-size: clamp(48px, 8vw, 104px); }
.final-sub { margin-top: 20px; max-width: 40ch; color: var(--brume); }
/* le prix : annoncé franchement, et déjà divisé par le nombre de copines */
.prix {
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(246, 233, 223, 0.16);
  max-width: 46ch;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.prix-chiffre {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(42px, 5.2vw, 58px); line-height: 1; color: var(--papier);
}
.prix-detail { font-size: 15px; line-height: 1.5; color: var(--brume); }
.btn-big { margin-top: 34px; padding: 20px 36px; font-size: 17px; }

/* =========================================================
   FOOTER + CTA flottant
   ========================================================= */
.footer {
  padding-top: 54px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(246, 233, 223, 0.12);
  font-size: 14.5px; color: var(--brume);
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 46px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; } }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-style: italic; font-size: 30px; color: var(--papier); }
.footer-logo .mark { width: 28px; height: 28px; }
.footer-mot p + p { margin-top: 12px; max-width: 34ch; }
.footer-hand { font-size: 21px; color: var(--peau); }
.footer-nav h2 { font-family: var(--display); font-weight: 500; font-style: normal; font-size: 17px; color: var(--papier); }
.footer-nav ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--peau); text-decoration: underline; text-underline-offset: 4px; }
.footer-bas {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 233, 223, 0.12);
  display: grid; gap: 10px;
  font-size: 13px;
}
.footer-bas p { max-width: 68ch; }
.footer-legal { color: rgba(191, 162, 174, 0.65); }
.footer-stamp { font-size: 15px; }
@media (min-width: 760px) { .footer-stamp { position: absolute; right: 48px; bottom: 0; } }
/* Signature Algoralp (25/11/2026) : discrète, comme la ligne ©, logo blanc sur fond nuit */
.footer-algoralp { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: rgba(191, 162, 174, 0.65); text-decoration: none; }
.footer-algoralp img { height: 18px; width: auto; opacity: 0.75; transition: opacity .2s ease; }
.footer-algoralp:hover img, .footer-algoralp:focus-visible img { opacity: 1; }
.footer-algoralp:focus-visible { outline: 2px solid var(--peau); outline-offset: 4px; border-radius: 2px; }

.float-cta {
  position: fixed; z-index: 800; right: 16px; bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  padding: 14px 22px; border-radius: 999px;
  background: var(--levres); color: var(--flash);
  font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.float-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: #b81639; }

.footer-parent { font-size: 13.5px; }
.footer-parent a { color: var(--peau); }

/* =========================================================
   PAGES INTÉRIEURES — même vocabulaire, sans le flash :
   ici on vient chercher une réponse, pas une émotion.
   ========================================================= */
.nav-page { border-bottom: 1px solid rgba(246, 233, 223, 0.12); padding-bottom: 20px; }
.nav-page .nav-links a { color: var(--brume); }
.nav-page .nav-links a:hover { color: var(--papier); }
.nav-page .nav-cta { background: var(--levres); color: var(--flash); }
.nav-page .nav-cta:hover { background: #b81639; }

/* Au téléphone, l'accueil se passe de menu (c'est une page unique),
   mais pas les pages intérieures : les liens passent sur une
   deuxième ligne plutôt que de disparaître. */
@media (max-width: 859px) {
  .nav-page { flex-wrap: wrap; row-gap: 16px; }
  .nav-page .nav-links {
    display: flex; order: 3; width: 100%;
    gap: 22px; font-size: 14.5px;
  }
}

.page-tete { padding-block: clamp(44px, 7vw, 86px) clamp(26px, 4vw, 44px); }
.fil { font-family: var(--stamp); font-size: 12px; color: var(--brume); }
.fil a { color: var(--date); text-decoration: none; }
.fil a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-tete h1 {
  margin-top: 18px;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(38px, 6.6vw, 76px); line-height: 0.98; letter-spacing: -0.025em;
}
.chapo { margin-top: 22px; max-width: 56ch; font-size: 18px; color: var(--brume); }
.page-corps { padding-bottom: clamp(70px, 10vw, 130px); }

.prose { max-width: 66ch; }
.prose h2 {
  margin-top: 48px;
  font-family: var(--display); font-weight: 500; font-size: clamp(23px, 3vw, 30px); line-height: 1.12;
}
.prose h3 { margin-top: 30px; font-family: var(--display); font-weight: 500; font-size: 20px; }
.prose p { margin-top: 14px; color: var(--brume); }
.prose ul, .prose ol { margin-top: 14px; padding-left: 20px; }
.prose li { margin-top: 9px; color: var(--brume); }
.prose strong { color: var(--papier); font-weight: 600; }
.prose a { color: var(--peau); }
.prose dt { margin-top: 20px; color: var(--papier); font-weight: 600; font-size: 15px; }
.prose dd { margin-top: 6px; margin-left: 0; color: var(--brume); }
.encart {
  margin-top: 30px; padding: 20px 22px;
  border-left: 2px solid var(--levres); background: var(--nuit-2);
}
.encart p { color: var(--papier); margin-top: 0; }
.encart p + p { margin-top: 12px; }

/* FAQ */
.faq-groupe { margin-top: clamp(40px, 6vw, 64px); max-width: 74ch; }
.faq-groupe > h2 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 4vw, 38px); color: var(--peau); margin-bottom: 6px;
}
.qa { border-top: 1px solid rgba(246, 233, 223, 0.14); padding: 20px 0; }
.qa:last-of-type { border-bottom: 1px solid rgba(246, 233, 223, 0.14); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; gap: 20px; align-items: baseline; justify-content: space-between;
  font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 21px; color: var(--levres-vif); }
.qa[open] summary::after { content: "–"; }
.qa p { margin-top: 14px; color: var(--brume); max-width: 64ch; }
.qa a { color: var(--peau); }

/* formulaires */
.form { margin-top: 34px; max-width: 620px; display: grid; gap: 18px; }
.duo { display: grid; gap: 18px; }
@media (min-width: 620px) { .duo { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: 8px; }
.champ label { font-size: 14.5px; color: var(--papier); }
.champ .aide { font-size: 13px; color: var(--brume); }
.champ .aide--erreur { color: #f2a0a0; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 16px; color: var(--papier);
  background: rgba(246, 233, 223, 0.06);
  border: 1px solid rgba(246, 233, 223, 0.2); border-radius: 8px;
  padding: 13px 14px; width: 100%;
}
.champ textarea { min-height: 130px; resize: vertical; }
/* Menu déroulant : la liste ouverte est dessinée par le navigateur (souvent sur fond blanc) ;
   on lui impose le fond sombre du site, sinon le texte crème des choix devient invisible. */
.champ select { color-scheme: dark; cursor: pointer; }
.champ select option { background: var(--nuit-2); color: var(--papier); }
.champ input::placeholder, .champ textarea::placeholder { color: rgba(191, 162, 174, 0.6); }
.form-note { font-size: 13.5px; color: var(--brume); max-width: 60ch; }
.form-retour {
  display: none; padding: 16px 18px; border: 1px solid var(--levres);
  background: rgba(214, 31, 69, 0.14); color: var(--papier); font-size: 15px; line-height: 1.55;
}
.form-retour.is-visible, .form-retour:not([hidden]) { display: block; }
.form-retour--ok { border-color: #5fb88a; background: rgba(95, 184, 138, 0.14); }
/* champ anti-robots : hors écran */
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-retour a { color: var(--peau); }

.direct { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(246, 233, 223, 0.14); max-width: 620px; }
.direct h2 { font-family: var(--display); font-weight: 500; font-size: 22px; }
.direct p { margin-top: 12px; color: var(--brume); }
.direct a { color: var(--peau); }


/* =========================================================
   LE TÉLÉPHONE DU HAUT DE PAGE — la soirée en 4 écrans
   (niveau choisi en privé → défi → flash → la soirée monte)
   ========================================================= */
.etel {
  position: relative; z-index: 3;
  width: min(258px, 72vw);
  aspect-ratio: 258 / 468;
  margin: 46px auto 0;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(150deg, #4a2432, #140a0f 45%, #2b1320);
  box-shadow: 0 40px 80px rgba(26, 13, 20, 0.55), 0 0 0 1px rgba(246, 233, 223, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  transform: rotate(2.5deg);
}
@media (min-width: 1100px) {
  .etel { position: absolute; right: 48px; top: 50%; margin: 0; width: 250px; transform: translateY(-52%) rotate(3deg); }
  /* la petite note manuscrite laisse la place au téléphone */
  .hero-note { right: auto; left: 47%; top: auto; bottom: 150px; }
}
.etel-ecran {
  position: relative; height: 100%;
  border-radius: 33px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #3a1526, var(--nuit) 70%);
  color: var(--papier);
  font-family: var(--sans);
}
.etel-encoche { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 82px; height: 22px; border-radius: 20px; background: #0b0508; z-index: 4; }
.etel-haut { display: flex; align-items: flex-end; justify-content: space-between; height: 58px; padding: 0 16px 8px; }
.etel-marque { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 19px; color: var(--flash); }
.etel-qui { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(214, 31, 69, 0.25); color: var(--peau); }
.etel-vues { position: absolute; inset: 58px 0 0; }
.etel-vue { position: absolute; inset: 0; padding: 10px 14px 16px; opacity: 0; transition: opacity .35s ease; }
.etel-vue.on { opacity: 1; }
.ev-kicker { font-size: 22px; color: var(--levres-vif); margin: 4px 2px 12px; transform: rotate(-2deg); }

/* 1. le niveau, choisi en privé */
.ev-choix {
  position: relative;
  display: flex; flex-direction: column; gap: 1px;
  margin-bottom: 9px; padding: 11px 14px;
  border-radius: 14px; border: 1px solid rgba(246, 233, 223, 0.16);
  background: rgba(246, 233, 223, 0.05);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.ev-choix b { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.1; color: var(--flash); }
.ev-choix span { font-size: 11.5px; color: var(--brume); }
.ev-choix--boudoir { background: linear-gradient(120deg, #2a0b16, #3d0c1b); }
.ev-niveau.on .ev-choix--pris { animation: evChoisi .4s 1.55s ease-out both; }
@keyframes evChoisi { to { border-color: var(--levres-vif); background: rgba(214, 31, 69, 0.22); box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.18); } }
.ev-prive { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--peau); }
.ev-prive svg, .ev-range svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* le doigt qui touche l'écran */
.ev-doigt { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; left: 70%; top: 50%; border-radius: 50%; background: rgba(255, 250, 243, 0.5); border: 2px solid rgba(255, 250, 243, 0.35); opacity: 0; pointer-events: none; }
.ev-niveau.on .ev-doigt { animation: evTap .75s .9s ease-out both; }
.ev-defi.on .ev-doigt { animation: evTap .75s 1.2s ease-out both; }
@keyframes evTap { 0% { opacity: 0; transform: scale(1.6); } 55% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 1; transform: scale(.8); } }

/* 2. la carte défi, comme celles du site */
.ev-carte {
  display: flex; flex-direction: column;
  padding: 14px 15px 12px;
  border-radius: 13px;
  background: var(--papier); color: var(--encre);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.5deg);
}
.ev-niv { font-size: 18px; color: var(--levres); }
.ev-carte h4 { margin-top: 2px; font-family: var(--display); font-weight: 500; font-size: 27px; line-height: 1; letter-spacing: -0.02em; }
.ev-txt { margin-top: 9px; font-size: 12.5px; line-height: 1.5; color: var(--encre-douce); }
.ev-role { margin-top: 10px; padding-top: 8px; font-size: 15px; border-top: 1px dashed rgba(26, 13, 20, 0.25); }
.ev-boutons { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 16px; }
.ev-boutons span { position: relative; display: grid; place-items: center; height: 40px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.ev-joker { border: 1px solid rgba(246, 233, 223, 0.35); color: var(--papier); }
.ev-photo { background: var(--levres); color: var(--flash); }
.ev-defi.on .ev-photo { animation: evAppui .75s 1.2s both; }
@keyframes evAppui { 0%, 70% { transform: none; filter: none; } 85%, 100% { transform: scale(.95); filter: brightness(1.15); } }

/* 3. le flash, puis la photo « se développe » */
/* le tirage : un vrai « polaroïd », image aux couleurs du flash (aucun visage montré) */
.ev-tirage {
  margin: 8px 6px 0; padding: 9px 9px 0;
  background: #fffaf3; border-radius: 4px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}
.ev-image {
  position: relative; aspect-ratio: 1 / 1.05; overflow: hidden;
  background:
    radial-gradient(34% 28% at 38% 44%, rgba(255, 250, 243, 0.95), transparent 70%),
    radial-gradient(28% 24% at 66% 52%, rgba(246, 216, 200, 0.9), transparent 70%),
    radial-gradient(95% 75% at 46% 42%, #fff5ea 0%, #f6d8c8 30%, #c07581 56%, #5a2438 78%, #1a0d14 98%);
}
.ev-cliche.on .ev-image { animation: evDeveloppe 1.5s .2s ease-out both; }
@keyframes evDeveloppe { from { filter: brightness(2.4) saturate(.3); } to { filter: none; } }
.ev-legende { padding: 7px 2px 9px; font-size: 18px; color: var(--encre); }
.ev-date {
  position: absolute; right: 10px; bottom: 8px;
  font-family: var(--stamp); font-weight: 500; font-size: 13px; white-space: pre;
  color: var(--date); text-shadow: 0 0 2px rgba(255, 138, 30, 0.9), 0 0 8px rgba(255, 100, 20, 0.55);
}
.ev-range {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(26, 13, 20, 0.82); color: var(--flash); font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
}
.ev-cliche.on .ev-range { animation: evMonte .45s 1.1s ease-out both; }
@keyframes evMonte { to { opacity: 1; transform: none; } }
.ev-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ev-cliche.on .ev-flash { animation: evFlash .6s ease-out; }
@keyframes evFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 4. la soirée monte */
.ev-jauge { position: relative; height: 12px; margin: 6px 2px 0; border-radius: 99px; background: rgba(246, 233, 223, 0.1); overflow: hidden; }
.ev-jauge-rempli { position: absolute; inset: 0 auto 0 0; width: 22%; border-radius: 99px; background: linear-gradient(90deg, var(--levres), var(--levres-vif) 60%, var(--date)); }
.ev-soiree.on .ev-jauge-rempli { animation: evJauge 1.6s .3s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes evJauge { from { width: 22%; } to { width: 64%; } }
.ev-jauge-noms { display: flex; justify-content: space-between; margin: 6px 2px 16px; font-size: 10.5px; color: var(--brume); }
.ev-ligne { margin-bottom: 8px; padding: 11px 12px; border-radius: 12px; background: rgba(246, 233, 223, 0.06); font-size: 12.5px; color: var(--peau); }
.ev-ligne b { display: block; font-size: 11px; font-weight: 600; color: var(--brume); margin-bottom: 2px; }
.ev-ligne--duo { border: 1px solid rgba(255, 84, 112, 0.45); opacity: 0; transform: translateY(8px); }
.ev-soiree.on .ev-ligne--duo { animation: evMonte .45s 1.5s ease-out both; }
.ev-ligne--joker { opacity: 0; transform: translateY(8px); }
.ev-soiree.on .ev-ligne--joker { animation: evMonte .45s 2.2s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .etel *, .etel *::before, .etel *::after { animation: none !important; transition: none !important; }
}


/* =========================================================
   MENU COMMUN (menu.js) : barre qui suit le défilement,
   bouton ☰ et menu plein écran au téléphone
   ========================================================= */
.burger {
  display: none;
  width: 44px; height: 44px; flex: none;
  place-content: center; gap: 7px;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }

/* la barre : cachée au-dessus de l'écran, elle descend quand le menu d'origine sort de la vue */
.barre {
  position: fixed; z-index: 900; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(26, 13, 20, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246, 233, 223, 0.12);
  color: var(--papier);
  transform: translateY(-110%);
  transition: transform .35s ease;
}
.barre.is-shown { transform: none; }
.barre .logo { font-size: 22px; color: var(--flash); }
.barre .mark { width: 21px; height: 21px; }
.barre .nav-links { display: none; margin-left: auto; }
.barre .nav-links a { color: var(--brume); }
.barre .nav-links a:hover, .barre .nav-links a[aria-current="page"] { color: var(--papier); }
.barre .nav-cta { margin-left: auto; padding: 9px 18px; background: var(--levres); color: var(--flash); }
.barre .nav-cta:hover { background: #b81639; }
@media (min-width: 860px) {
  .barre { padding-inline: 48px; }
  .barre .nav-links { display: flex; }
  .barre .nav-cta { margin-left: 8px; }
}

/* au téléphone : logo, Réserver et ☰ (les liens passent dans le menu plein écran) */
@media (max-width: 859px) {
  .burger { display: grid; }
  .nav .nav-links { display: none !important; }
  .nav .nav-cta { margin-left: auto; }
  .nav-page { flex-wrap: nowrap; }
}

/* le menu plein écran */
.panneau-menu {
  position: fixed; z-index: 1000; inset: 0;
  display: flex; flex-direction: column;
  padding: 18px 20px 32px; padding-top: calc(18px + env(safe-area-inset-top));
  background: radial-gradient(120% 60% at 50% 0%, #3a1526, var(--nuit) 70%);
  color: var(--papier);
  overflow-y: auto;
  overflow-x: hidden;   /* la lueur et le reflet débordent volontairement : jamais de défilement de côté */
  overscroll-behavior: contain;
  /* ouverture « lampe qu'on allume » : un cercle qui s'ouvre depuis le bouton ☰ (--x, --y posés par menu.js) */
  clip-path: circle(0 at var(--x, 90%) var(--y, 40px));
  transition: clip-path .75s cubic-bezier(.7, 0, .2, 1);
}
.panneau-menu.is-open { clip-path: circle(150% at var(--x, 90%) var(--y, 40px)); }
/* lueur rose tamisée qui « respire » lentement */
/* décor en position fixe : il ne compte pas dans la largeur du panneau (donc aucun défilement de côté) */
.panneau-menu::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 32% at 78% 18%, rgba(255, 84, 112, 0.30), transparent 70%),
    radial-gradient(45% 38% at 18% 82%, rgba(214, 31, 69, 0.22), transparent 70%);
  animation: pmRespire 7s ease-in-out infinite alternate;
}
@keyframes pmRespire { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
/* reflet de satin qui traverse l'écran à l'ouverture */
.panneau-menu::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(246, 216, 200, 0.14) 45%, rgba(255, 250, 243, 0.22) 50%, rgba(246, 216, 200, 0.14) 55%, transparent 70%);
  transform: translateX(-100%);
}
.panneau-menu.is-open::after { animation: pmSatin 1.4s .25s ease-out both; }
@keyframes pmSatin { to { transform: translateX(100%); } }
.panneau-menu { isolation: isolate; }
/* les liens arrivent un par un */
.pm-liens li, .pm-reserver, .pm-leslie { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.panneau-menu.is-open .pm-liens li, .panneau-menu.is-open .pm-reserver, .panneau-menu.is-open .pm-leslie { opacity: 1; transform: none; }
.panneau-menu.is-open .pm-liens li:nth-child(1) { transition-delay: .30s; }
.panneau-menu.is-open .pm-liens li:nth-child(2) { transition-delay: .38s; }
.panneau-menu.is-open .pm-liens li:nth-child(3) { transition-delay: .46s; }
.panneau-menu.is-open .pm-reserver { transition-delay: .56s; }
.panneau-menu.is-open .pm-leslie { transition-delay: .64s; }
@media (prefers-reduced-motion: reduce) {
  .panneau-menu, .panneau-menu.is-open { clip-path: none; transition: none; }
  .panneau-menu::before, .panneau-menu.is-open::after { animation: none; }
  .pm-liens li, .pm-reserver, .pm-leslie { opacity: 1; transform: none; transition: none; }
}
.pm-haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.pm-haut .logo { color: var(--flash); }
.pm-fermer { width: 44px; height: 44px; border: 0; background: none; color: var(--papier); font-size: 36px; line-height: 1; cursor: pointer; }
.pm-liens { list-style: none; text-align: center; }
.pm-liens a {
  display: block; padding: 14px 0;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(34px, 10vw, 48px); line-height: 1.1;
  color: var(--flash); text-decoration: none;
  border-bottom: 1px solid rgba(246, 233, 223, 0.12);
}
.pm-liens a[aria-current="page"] { color: var(--levres-vif); }
.pm-reserver { margin-top: 30px; align-self: stretch; text-align: center; }
.pm-leslie { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--brume); text-align: center; }
.pm-leslie a { color: var(--peau); }

/* ===== mouvement réduit ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro-flash { display: none; }
}

/* lien vers la page du dernier palier (boudoir) */
.pioche-lien { margin-top: 18px; }
.pioche-lien a { color: var(--levres-vif); text-decoration: none; font-weight: 600; font-size: 15px; }
.pioche-lien a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* paragraphes de présentation dans une section (page boudoir) */
.faq-groupe > p { margin-top: 16px; max-width: 68ch; color: var(--brume); }
.faq-groupe > p strong { color: var(--papier); }
.faq-groupe > p a { color: var(--peau); }
