@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --bg: #080b27;
  --bg-deep: #040617;
  --text: #f6f5ff;
  --muted: rgba(246,245,255,.74);
  --line: rgba(195,185,255,.28);
  --glass: rgba(16,21,65,.44);
  --cyan: #91eaff;
  --violet: #a98cff;
  --pink: #f3a7ff;
  --shadow: 0 0 35px rgba(118,102,255,.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 10%, rgba(110,86,255,.22), transparent 30%),
    linear-gradient(180deg, #090c2a 0%, #06081b 100%);
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 84px;
  padding: 18px clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(3,5,21,.78), transparent);
  transition: background .35s ease, backdrop-filter .35s ease;
}

.site-header.scrolled {
  background: rgba(4,7,26,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mini img {
  width: clamp(150px, 14vw, 240px);
  display: block;
  filter:
    drop-shadow(0 0 7px rgba(125,200,255,.55))
    drop-shadow(0 0 16px rgba(140,95,255,.42));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.main-nav a {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  transition: color .25s ease, text-shadow .25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: white;
  text-shadow: 0 0 14px rgba(159,194,255,.9);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(7,10,36,.58);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  background-image: url("assets/hero-kalypsa.webp");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(150px, 22vh, 280px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7,10,34,.48) 45%, rgba(7,10,34,.92) 82%, #070a22 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(3,6,26,.88) 0%,
      rgba(5,8,30,.67) 25%,
      rgba(10,12,42,.22) 50%,
      rgba(9,11,36,.02) 72%),
    linear-gradient(0deg, rgba(4,6,20,.52), transparent 34%);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(191,224,255,.75) 0 1px, transparent 1.5px);
  background-size: 160px 160px, 230px 230px;
  background-position: 0 0, 70px 90px;
  animation: drift 26s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  to { transform: translate3d(-70px, 30px, 0); }
}

.hero-content {
  width: min(650px, 46vw);
  margin-left: clamp(30px, 8vw, 150px);
  padding-top: 74px;
  opacity: 0;
  transform: translateY(22px);
}

body.is-loaded .hero-content {
  animation: heroReveal 2.4s cubic-bezier(.2,.75,.25,1) .85s forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap {
  position: relative;
  width: min(700px, 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero-logo {
  width: 100%;
  display: block;
  margin-left: -2%;
  filter:
    drop-shadow(0 0 8px rgba(184,229,255,.72))
    drop-shadow(0 0 24px rgba(117,86,255,.6));
  animation: logoGlow 7s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(184,229,255,.6)) drop-shadow(0 0 20px rgba(117,86,255,.45)); }
  50% { filter: drop-shadow(0 0 12px rgba(225,247,255,.9)) drop-shadow(0 0 32px rgba(153,101,255,.75)); }
}

.logo-shine {
  position: absolute;
  inset: -18% auto -18% -28%;
  width: 18%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(225,244,255,.72), rgba(255,255,255,.08), transparent);
  filter: blur(3px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

body.is-loaded .logo-shine {
  animation: logoSweep 11s ease-in-out 2.1s infinite;
}

@keyframes logoSweep {
  0%, 62% { left: -28%; opacity: 0; }
  67% { opacity: .18; }
  78% { opacity: .8; }
  91% { left: 112%; opacity: .12; }
  100% { left: 112%; opacity: 0; }
}

.tagline {
  margin: 18px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: .01em;
  text-shadow: 0 0 20px rgba(142,120,255,.35);
}

.tagline strong {
  display: block;
  font-weight: 600;
  background: linear-gradient(90deg, white, #d8e9ff, #e9c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  max-width: 590px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(.95rem, 1.15vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions { margin: 28px 0 26px; }

.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border: 1px solid rgba(194,218,255,.68);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 700;
  background:
    linear-gradient(90deg, rgba(99,124,255,.16), rgba(185,87,255,.18)),
    rgba(5,9,34,.38);
  box-shadow:
    inset 0 0 22px rgba(151,184,255,.12),
    0 0 18px rgba(111,137,255,.22);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.48) 50%, transparent 62%);
  transform: translateX(-70%);
  transition: transform .75s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.96);
  box-shadow: 0 0 32px rgba(134,109,255,.52);
}

.primary-btn:hover::after,
.primary-btn:focus-visible::after {
  transform: translateX(70%);
}

.spark {
  font-size: 1.15rem;
  text-shadow: 0 0 12px white;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.social-links a {
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.social-links a:hover { color: white; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: 36px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 22px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 22px); }
}

.content-section {
  position: relative;
  padding: clamp(86px, 10vw, 150px) clamp(24px, 6vw, 100px);
}

.glass-section {
  position: relative;
  margin-top: -2px;
  padding-top: clamp(120px, 14vw, 190px);
  background:
    linear-gradient(180deg,
      rgba(7,10,34,.94) 0%,
      rgba(8,12,43,.88) 42%,
      rgba(6,9,31,.96) 100%),
    url("assets/hero-kalypsa.webp") center 68% / cover no-repeat;
  background-attachment: fixed;
}

.glass-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 10%, rgba(167,134,255,.18), transparent 28%),
    linear-gradient(180deg, rgba(116,101,255,.05), rgba(5,8,28,.42));
}

.glass-section .section-inner {
  position: relative;
  z-index: 1;
}

.dark-section {
  background: linear-gradient(180deg, #070a22, #040616);
}

.contact-section {
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(124,103,255,.22), transparent 45%),
    #05071b;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-inner.narrow { width: min(820px, 100%); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0 0 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.7rem); }

.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 58px;
}

.feature-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201,213,255,.55);
  box-shadow: 0 24px 80px rgba(50,42,130,.34);
}

.card-number {
  color: var(--pink);
  font-size: .72rem;
  letter-spacing: .2em;
}

.feature-card h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.primary-btn.secondary { margin-top: 26px; }

footer {
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,.5);
  background: #030513;
  font-size: .78rem;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    width: min(310px, calc(100vw - 40px));
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(4,7,25,.95);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: .25s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .hero {
    align-items: flex-end;
    background-position: 63% center;
  }

  .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(150px, 22vh, 280px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7,10,34,.48) 45%, rgba(7,10,34,.92) 82%, #070a22 100%);
}

.hero-overlay {
    background:
      linear-gradient(0deg, rgba(3,5,22,.94) 0%, rgba(3,5,22,.70) 42%, rgba(3,5,22,.08) 78%),
      linear-gradient(90deg, rgba(3,5,22,.48), transparent);
  }

  .hero-content {
    width: 100%;
    margin: 0;
    padding: 110px 28px 92px;
  }

  .hero-logo { width: min(500px, 88vw); }
  .tagline { max-width: 620px; }
  .intro { max-width: 620px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 13px 18px; }
  .brand-mini img { width: 145px; }
  .hero { min-height: 100svh; background-position: 68% center; }
  .hero-content { padding: 100px 20px 76px; }
  .hero-logo { width: 92vw; margin-left: -4vw; }
  .tagline { font-size: clamp(2rem, 12vw, 3.1rem); }
  .intro { font-size: .94rem; line-height: 1.65; }
  .primary-btn { width: 100%; justify-content: center; }
  .social-links { gap: 12px 18px; }
  .scroll-cue { display: none; }
}


.crystal-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.crystal-particle {
  position: absolute;
  width: var(--size, 5px);
  height: var(--size, 5px);
  opacity: 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(173,224,255,.32));
  border: 1px solid rgba(222,240,255,.34);
  box-shadow: 0 0 8px rgba(171,213,255,.48);
  animation: crystalFloat var(--float-duration, 15s) linear infinite;
  animation-delay: var(--float-delay, 0s);
}

.crystal-particle::after {
  content: "";
  position: absolute;
  inset: 35%;
  background: white;
  box-shadow: 0 0 5px white;
}

@keyframes crystalFloat {
  0% { opacity: 0; transform: translate3d(0, 24px, 0) rotate(35deg) scale(.65); }
  14% { opacity: var(--max-opacity, .3); }
  76% { opacity: calc(var(--max-opacity, .3) * .72); }
  100% { opacity: 0; transform: translate3d(var(--drift-x, 28px), -110px, 0) rotate(145deg) scale(1.05); }
}

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


/* Logo appears only after scroll */
.site-header::before{
 content:"";
 width:170px;
 height:42px;
 background:url("assets/logo-kalypsa.png") no-repeat left center/contain;
 opacity:0;
 transition:opacity .35s ease;
 filter:drop-shadow(0 0 8px rgba(180,220,255,.5));
}
.site-header.scrolled::before{opacity:1;}


.twinkle-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.twinkle-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow:
    0 0 5px rgba(255,255,255,.95),
    0 0 12px rgba(173,209,255,.85),
    0 0 20px rgba(168,126,255,.55);
  opacity: .15;
  animation: twinkle var(--duration, 3.8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.twinkle-star.large {
  width: 5px;
  height: 5px;
}

@keyframes twinkle {
  0%, 100% {
    opacity: .12;
    transform: scale(.72);
  }
  48% {
    opacity: 1;
    transform: scale(1.45);
  }
  58% {
    opacity: .45;
    transform: scale(1);
  }
}


/* Étoile filante ponctuelle dans le ciel du hero */
.comet-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  left: var(--start-x, 46vw);
  top: var(--start-y, 14vh);
  width: var(--trail-length, 95px);
  height: 1px;
  opacity: 0;
  transform: rotate(31deg) translateZ(0);
  transform-origin: right center;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(194, 225, 255, .02) 22%,
    rgba(204, 230, 255, .16) 68%,
    rgba(241, 248, 255, .72) 100%
  );
  filter: drop-shadow(0 0 3px rgba(198, 225, 255, .45));
  will-change: transform, opacity;
}

.shooting-star::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 0 4px rgba(255, 255, 255, .9),
    0 0 9px rgba(177, 217, 255, .55);
}

.shooting-star.is-active {
  animation: shootingStarPass var(--star-duration, 1.15s) cubic-bezier(.22,.56,.35,1) forwards;
}

@keyframes shootingStarPass {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(31deg) scaleX(.35);
  }
  12% { opacity: .42; }
  35% { opacity: .62; }
  72% { opacity: .32; }
  100% {
    opacity: 0;
    transform: translate3d(var(--travel-x, 26vw), var(--travel-y, 14vh), 0) rotate(31deg) scaleX(1);
  }
}

/* Continuité plus transparente entre les sections */
.content-section {
  overflow: hidden;
}

.content-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(80px, 10vw, 150px);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(4,6,22,.58));
}

.glass-section {
  margin-top: -52px;
  padding-top: clamp(160px, 16vw, 225px);
  background:
    linear-gradient(180deg,
      rgba(7,10,34,.58) 0%,
      rgba(8,12,43,.73) 22%,
      rgba(8,12,43,.88) 56%,
      rgba(6,9,31,.96) 100%),
    url("assets/hero-kalypsa.webp") center 68% / cover no-repeat;
}

.glass-section::before {
  background:
    radial-gradient(circle at 72% 8%, rgba(167,134,255,.24), transparent 30%),
    linear-gradient(180deg, rgba(151,133,255,.08), rgba(5,8,28,.30));
}

.dark-section {
  margin-top: -44px;
  padding-top: clamp(130px, 13vw, 190px);
  background:
    linear-gradient(180deg,
      rgba(7,10,34,.48) 0%,
      rgba(7,10,34,.80) 28%,
      #040616 100%);
}

.contact-section {
  margin-top: -40px;
  padding-top: clamp(125px, 12vw, 180px);
  background:
    linear-gradient(180deg, rgba(4,6,22,.42), rgba(5,7,27,.90) 34%),
    radial-gradient(circle at center, rgba(124,103,255,.22), transparent 45%),
    #05071b;
}

.content-section > .section-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .glass-section { margin-top: -34px; }
  .dark-section, .contact-section { margin-top: -28px; }
}

/* --- Pages Membres --- */
.card-link { color: inherit; text-decoration: none; }
.feature-card[role="link"] { cursor: pointer; }
.members-brand { display:block; width:clamp(130px,12vw,210px); }
.members-brand img { width:100%; display:block; filter:drop-shadow(0 0 14px rgba(148,117,255,.45)); }
.main-nav a.active { color:#fff; text-shadow:0 0 14px rgba(159,194,255,.9); }

.members-page,
.profile-page {
  min-height:100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(118,83,255,.22), transparent 34%),
    linear-gradient(180deg,#090c2a 0%,#050718 100%);
}

.members-main { padding-top:84px; min-height:calc(100vh - 76px); }
.members-banner {
  position:relative;
  min-height:clamp(360px,46vw,650px);
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  isolation:isolate;
}
.members-banner > img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:-2;
}
.members-banner-shade {
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg,rgba(4,6,22,.06) 25%,rgba(4,6,22,.28) 68%,rgba(5,7,24,.94) 100%),
    linear-gradient(90deg,rgba(4,6,22,.18),transparent 30%,transparent 70%,rgba(4,6,22,.18));
}
.members-banner-copy {
  width:min(1080px,92vw);
  padding:0 20px clamp(34px,5vw,70px);
  text-align:center;
  text-shadow:0 2px 22px rgba(0,0,0,.7);
}
.members-banner-copy h1 {
  margin:0 0 12px;
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(2.2rem,5vw,5rem);
  font-weight:600;
}
.members-banner-copy p {
  margin:0 auto;
  max-width:900px;
  font-size:clamp(.95rem,1.5vw,1.35rem);
  color:rgba(255,255,255,.9);
  letter-spacing:.025em;
}
.member-selector {
  position:relative;
  z-index:3;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  width:min(1050px,92vw);
  margin:-1px auto 0;
  padding:30px 18px 54px;
  border-top:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(6,8,27,.98),rgba(7,9,29,.74));
}
.member-chip {
  min-width:132px;
  padding:13px 24px;
  border:1px solid rgba(195,185,255,.38);
  border-radius:999px;
  text-align:center;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.78rem;
  font-weight:700;
  background:rgba(18,22,62,.56);
  box-shadow:inset 0 0 18px rgba(143,120,255,.08);
}
.member-chip.active,
.member-chip:hover { border-color:rgba(255,255,255,.8); box-shadow:0 0 25px rgba(133,104,255,.35); }
.member-chip.unavailable { opacity:.5; cursor:default; }
.members-footer { padding:0 20px 30px; text-align:center; }
.page-return { color:rgba(255,255,255,.75); text-decoration:none; font-size:.9rem; }
.page-return:hover { color:#fff; }

/* --- Fiche pleine page --- */
.profile-header {
  position:relative;
  z-index:3;
  min-height:84px;
  padding:16px clamp(20px,4vw,64px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(4,7,26,.82);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
}
.profile-name {
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(1.4rem,2vw,2rem);
  letter-spacing:.08em;
}
.profile-main { padding:clamp(18px,3vw,42px) 0 54px; }
.profile-sheet {
  width:min(1536px,100%);
  margin:0 auto;
  padding:0 clamp(10px,2vw,28px);
}
.profile-sheet img {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  box-shadow:0 24px 70px rgba(0,0,0,.52),0 0 38px rgba(110,83,255,.18);
}
.profile-returns {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
  padding:42px 20px 0;
}

@media (max-width: 760px) {
  .members-banner { min-height:380px; }
  .members-banner > img { object-position:center; }
  .members-banner-copy { padding-bottom:28px; }
  .member-chip { min-width:105px; padding:12px 18px; }
  .profile-header { min-height:70px; }
  .profile-main { padding-top:12px; }
}

/* --- Corrections v11 : accueil plein écran et fiche visible sans défilement --- */
.hero {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}

/* La transition reste portée par le dégradé du hero, sans recouvrir le bouton. */
.glass-section {
  margin-top: 0;
}

.scroll-cue {
  z-index: 8;
  bottom: 28px;
}

.profile-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.profile-main {
  height: calc(100vh - 84px);
  height: calc(100dvh - 84px);
  min-height: 0;
  padding: 14px clamp(12px, 2vw, 28px) 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.profile-sheet {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-sheet img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 184px);
  max-height: calc(100dvh - 184px);
  object-fit: contain;
}

.profile-returns {
  flex: 0 0 auto;
  gap: 16px;
  padding: 14px 20px 0;
}

.profile-returns .primary-btn {
  margin-top: 0;
  padding: 12px 22px;
}

@media (max-width: 760px) {
  .profile-page { overflow: auto; }
  .profile-main {
    height: auto;
    min-height: calc(100dvh - 70px);
    overflow: visible;
  }
  .profile-sheet img {
    width: 100%;
    max-height: none;
  }
}


/* --- Page Roman v12 --- */
.roman-page {
  min-height: 100%;
  color: #f7f4ff;
  background: #06091d;
}
.roman-main { padding-top: 84px; }
.roman-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.roman-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4,7,26,.89) 0%, rgba(7,9,33,.68) 48%, rgba(7,9,33,.86) 100%),
    linear-gradient(180deg, rgba(4,7,26,.10), rgba(4,7,26,.92)),
    url("assets/hero-kalypsa.webp") center / cover no-repeat;
  filter: saturate(.82) brightness(.7);
  transform: scale(1.03);
}
.roman-hero::before,
.roman-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -2;
}
.roman-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 32%, rgba(93,128,255,.21), transparent 35%),
    radial-gradient(circle at 82% 24%, rgba(182,103,255,.18), transparent 34%);
}
.roman-hero::after {
  left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(transparent, #080b24);
}
.roman-inner {
  width: min(1540px, 94vw);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, .76fr);
  gap: clamp(36px, 5vw, 86px);
  align-items: center;
}
.roman-visual { perspective: 1400px; }
.cover-open-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  transform: rotateY(3deg) rotateX(1deg);
  transform-origin: center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease;
  filter: drop-shadow(0 34px 42px rgba(0,0,0,.55));
  overflow: hidden;
  border-radius: 6px;
}
.cover-open-button:hover {
  transform: rotateY(0) rotateX(0) translateY(-5px);
  filter: drop-shadow(0 42px 54px rgba(0,0,0,.62));
}
.cover-open-button img { display: block; width: 100%; height: auto; }
.cover-glint {
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 22%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  opacity: 0;
}
.cover-open-button:hover .cover-glint { animation: coverGlint 1.35s ease; }
@keyframes coverGlint { 0% { left:-35%; opacity:0; } 20% { opacity:.65; } 100% { left:120%; opacity:0; } }
.cover-caption {
  margin: 16px 0 0;
  text-align: center;
  color: rgba(237,232,255,.68);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.roman-copy {
  padding: clamp(25px, 3vw, 44px);
  background: linear-gradient(145deg, rgba(9,13,42,.78), rgba(30,19,65,.55));
  border: 1px solid rgba(189,170,255,.26);
  box-shadow: 0 28px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  border-radius: 24px;
}
.roman-copy h1 {
  margin: 8px 0 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 4.3vw, 4.9rem);
  line-height: .98;
  font-weight: 600;
}
.roman-copy h1 span {
  display: inline-block;
  margin-top: 10px;
  color: #d9c9ff;
  font-size: .62em;
  letter-spacing: .04em;
}
.roman-intro {
  margin: 0 0 15px;
  color: rgba(247,244,255,.84);
  line-height: 1.72;
  font-size: clamp(.98rem, 1.15vw, 1.15rem);
}
.luxe-panel {
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid rgba(210,195,255,.23);
}
.luxe-panel h2 {
  margin: 0 0 17px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.luxe-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.luxe-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.luxe-list strong { color: #fff; font-weight: 650; }
.luxe-list span { color: #c9b9ef; text-align: right; font-size: .93rem; }
.roman-detail {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 20px;
  text-align: center;
  background:
    linear-gradient(rgba(7,10,31,.88), rgba(7,10,31,.97)),
    url("assets/hero-kalypsa.webp") center 70% / cover fixed no-repeat;
}
.roman-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:16px; margin-top:34px; }
.cover-dialog {
  width: min(96vw, 1700px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(205,187,255,.35);
  border-radius: 12px;
  background: #06081a;
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
}
.cover-dialog::backdrop { background: rgba(0,0,10,.88); backdrop-filter: blur(8px); }
.cover-dialog img { display:block; width:100%; height:auto; }
.dialog-close {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(10,12,35,.8);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 1050px) {
  .roman-inner { grid-template-columns: 1fr; width:min(920px,92vw); }
  .roman-copy { order: -1; }
  .cover-open-button { transform:none; }
}
@media (max-width: 700px) {
  .roman-main { padding-top: 70px; }
  .roman-inner { padding: 30px 0 60px; }
  .roman-copy { padding: 24px 20px; border-radius: 18px; }
  .luxe-list li { grid-template-columns: 1fr; gap:4px; }
  .luxe-list span { text-align:left; }
  .roman-detail { background-attachment: scroll; }
}

/* --- Corrections v13 : transparence membres et présentation Roman --- */
.members-page,
.profile-page {
  position: relative;
  background:
    linear-gradient(180deg, rgba(5,8,28,.70), rgba(4,6,22,.90)),
    url("assets/hero-kalypsa.webp") center / cover fixed no-repeat;
}
.members-page::before,
.profile-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 72% 12%, rgba(170,125,255,.18), transparent 34%);
}
.member-selector {
  background: linear-gradient(180deg, rgba(6,8,27,.82), rgba(7,9,29,.58));
  backdrop-filter: blur(12px);
}
.profile-main {
  background: linear-gradient(180deg, rgba(5,8,28,.28), rgba(4,6,22,.60));
}

.roman-hero {
  align-items: start;
}
.roman-inner {
  padding: clamp(28px, 3.5vw, 52px) 0 clamp(36px, 4vw, 64px);
  grid-template-columns: minmax(520px, 1.15fr) minmax(380px, .85fr);
  align-items: center;
}
.roman-copy h1 {
  font-size: clamp(2rem, 3.2vw, 3.75rem);
  line-height: 1.02;
  margin-bottom: 18px;
}
.roman-copy h1 span {
  font-size: .58em;
  margin-top: 8px;
}
.book-showcase {
  min-height: min(72vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  perspective: 1600px;
}
.book-cover {
  position: relative;
  width: min(37%, 355px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0,0,0,.62), 0 0 28px rgba(139,105,255,.18);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}
.book-cover img { display:block; width:100%; height:auto; }
.book-cover-front {
  order: 1;
  z-index: 2;
  transform: rotateY(-13deg) rotateZ(-1.2deg) translateY(-5px);
  transform-origin: right center;
}
.book-cover-back {
  order: 2;
  z-index: 1;
  transform: rotateY(13deg) rotateZ(1.2deg) translateY(12px);
  transform-origin: left center;
}
.book-cover:hover {
  z-index: 4;
  transform: rotateY(0) rotateZ(0) translateY(-10px) scale(1.035);
  filter: brightness(1.05);
}
.book-cover .cover-glint {
  position:absolute;
  inset:-60% auto -60% -35%;
  width:22%;
  transform:rotate(14deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.36),transparent);
  opacity:0;
}
.book-cover:hover .cover-glint { animation: coverGlint 1.35s ease; }
.cover-open-button { display:none; }
.cover-dialog { width: min(90vw, 850px); }
.cover-dialog img { max-height: 90vh; width:auto; max-width:100%; margin:auto; }

@media (max-width: 1050px) {
  .roman-inner { grid-template-columns: 1fr; width:min(920px,92vw); }
  .roman-copy { order: 0; }
  .book-showcase { min-height: auto; padding-top: 10px; }
  .book-cover { width: min(39%, 330px); }
}
@media (max-width: 700px) {
  .book-showcase { gap: 10px; }
  .book-cover { width: 45%; }
  .book-cover-front { transform: rotateY(-8deg); }
  .book-cover-back { transform: rotateY(8deg); }
}


/* --- Corrections v14 : roman aligné, couvertures droites, musique persistante --- */
.roman-copy {
  text-align: left;
}
.roman-author-label {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: rgba(214,225,255,.78);
  font-weight: 600;
}
.roman-author {
  margin: 7px 0 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
  font-weight: 700;
  font-size: clamp(1rem,1.35vw,1.3rem);
}
.roman-title-block {
  width: 100%;
  margin: 0 auto 24px;
  padding: 18px 12px 20px;
  text-align: center;
  border-top: 1px solid rgba(205,190,255,.22);
  border-bottom: 1px solid rgba(205,190,255,.22);
}
.roman-copy .roman-title-block h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.65rem, 2.25vw, 2.75rem);
  line-height: 1.08;
}
.roman-luxe-title {
  margin: 9px 0 0;
  text-align: center;
  color: #d9c9ff;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.82rem,1vw,1rem);
  font-weight: 600;
}
.book-showcase {
  align-items: center;
}
.book-cover,
.book-cover-front,
.book-cover-back {
  transform: none;
  transform-origin: center;
}
.book-cover-front,
.book-cover-back {
  translate: 0 0;
}
.book-cover:hover,
.book-cover:focus-visible {
  transform: translateY(-8px) scale(1.075);
  filter: brightness(1.06);
}
.roman-inner {
  padding-top: clamp(20px,2.5vw,36px);
}

.music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(20,20,40,.62);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 0 22px rgba(116,98,255,.18);
}
.music-toggle:hover { border-color: rgba(255,255,255,.65); }

@media (max-width: 700px) {
  .music-toggle { right: 12px; bottom: 12px; padding: 9px 13px; }
  .roman-title-block { padding: 14px 8px 16px; }
}

/* --- Roman v15 : couvertures agrandies et extrait feuilletable --- */
.roman-inner {
  width: min(1640px, 96vw);
  grid-template-columns: minmax(650px, 1.3fr) minmax(390px, .7fr);
  gap: clamp(28px, 3.4vw, 58px);
}
.book-showcase {
  gap: clamp(20px, 2.2vw, 38px);
  min-height: min(80vh, 820px);
}
.book-cover {
  width: min(45%, 450px);
  border-radius: 5px;
  box-shadow:
    9px 4px 0 rgba(218,210,187,.34),
    13px 6px 0 rgba(38,30,40,.72),
    0 34px 74px rgba(0,0,0,.66),
    0 0 34px rgba(139,105,255,.2);
}
.book-cover::after {
  content: "";
  position: absolute;
  top: 1.2%;
  right: -1px;
  bottom: 1.2%;
  width: 7px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(241,234,211,.62), rgba(64,50,54,.34));
  opacity: .7;
}
.book-cover:hover,
.book-cover:focus-visible { transform: translateY(-7px) scale(1.055); }

.excerpt-cta {
  margin: 25px 0 6px;
  text-align: center;
}
.excerpt-button {
  min-width: 230px;
  border: 1px solid rgba(210,233,255,.62);
  box-shadow: 0 0 28px rgba(78,178,255,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.excerpt-button-icon { margin-right: 8px; color: #dff7ff; }
.excerpt-cta p {
  margin: 10px 0 0;
  color: rgba(230,226,255,.66);
  font-size: .85rem;
  letter-spacing: .03em;
}

.excerpt-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  overflow: hidden;
}
.excerpt-dialog::backdrop {
  background: rgba(1,2,12,.93);
  backdrop-filter: blur(14px);
}
.excerpt-shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 50% 38%, rgba(93,113,198,.22), transparent 42%),
    linear-gradient(150deg, rgba(7,10,31,.98), rgba(18,10,41,.98));
}
.excerpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px,4vw,64px);
  border-bottom: 1px solid rgba(210,220,255,.16);
  background: rgba(4,6,22,.54);
  backdrop-filter: blur(14px);
}
.excerpt-kicker {
  margin: 0 0 3px;
  color: rgba(205,220,255,.68);
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.excerpt-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem,2.5vw,2.2rem);
  font-weight: 500;
}
.excerpt-close {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.flipbook-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 64px;
  align-items: center;
  gap: clamp(8px,2vw,26px);
  padding: clamp(16px,2.4vh,28px) clamp(12px,3vw,44px);
}
.flipbook {
  position: relative;
  width: min(1160px, calc(100vw - 210px));
  height: min(72vh, 790px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  perspective: 2400px;
  filter: drop-shadow(0 40px 45px rgba(0,0,0,.62));
}
.flipbook::before {
  content: "";
  position: absolute;
  inset: -12px -16px -15px;
  z-index: -1;
  border-radius: 8px 12px 12px 8px;
  background: linear-gradient(90deg, #12111c, #302436 48%, #12111c 52%, #2a2231);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.flip-page {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f8f7f2;
  cursor: pointer;
}
.flip-page-left { border-radius: 5px 0 0 5px; transform-origin: right center; }
.flip-page-right { border-radius: 0 5px 5px 0; transform-origin: left center; }
.flip-page img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}
.flip-page figcaption {
  position: absolute;
  left: 50%;
  bottom: 7px;
  translate: -50% 0;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(8,9,20,.52);
  font-size: .67rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.flip-page:hover figcaption { opacity: 1; }
.flip-page.empty { visibility: hidden; }
.book-spine {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28px;
  translate: -50% 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.12), rgba(0,0,0,.28));
  mix-blend-mode: multiply;
  opacity: .45;
}
.flipbook.cover-mode { grid-template-columns: 1fr 1fr; }
.flipbook.cover-mode .flip-page-right {
  grid-column: 1 / 3;
  width: 50%;
  justify-self: center;
  border-radius: 5px;
  box-shadow: 10px 3px 0 rgba(236,229,209,.35), 15px 5px 0 rgba(18,15,20,.6);
}
.flipbook.cover-mode .book-spine { display: none; }
.turning-page {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  opacity: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  background: #fff;
  box-shadow: -12px 0 25px rgba(0,0,0,.3);
}
.turning-page img { width:100%; height:100%; object-fit:contain; background:#fff; }
.turning-page.turn-forward { animation: pageTurnForward .68s cubic-bezier(.3,.02,.2,1) both; }
.turning-page.turn-backward {
  left: 0;
  transform-origin: right center;
  animation: pageTurnBackward .68s cubic-bezier(.3,.02,.2,1) both;
}
@keyframes pageTurnForward {
  0% { opacity:1; transform: rotateY(0deg); filter:brightness(1); }
  48% { opacity:1; filter:brightness(.78); }
  100% { opacity:0; transform: rotateY(-178deg); filter:brightness(.92); }
}
@keyframes pageTurnBackward {
  0% { opacity:1; transform: rotateY(0deg); filter:brightness(1); }
  48% { opacity:1; filter:brightness(.78); }
  100% { opacity:0; transform: rotateY(178deg); filter:brightness(.92); }
}
.flipbook-arrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.07);
  font: 300 2.7rem/1 serif;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.flipbook-arrow:hover:not(:disabled) { background: rgba(255,255,255,.15); transform: scale(1.06); }
.flipbook-arrow:disabled { opacity:.2; cursor:default; }
.excerpt-footer {
  padding: 13px 24px 18px;
  text-align: center;
  border-top: 1px solid rgba(210,220,255,.12);
  background: rgba(4,6,22,.45);
}
.excerpt-footer p { margin:0; }
#excerptProgress { color:#fff; font-weight:600; letter-spacing:.05em; }
.excerpt-hint { margin-top:5px !important; color:rgba(220,222,246,.58); font-size:.78rem; }
.reader-open { overflow:hidden; }

@media (max-width: 1150px) {
  .roman-inner { grid-template-columns: 1fr; width:min(980px,94vw); }
  .book-showcase { min-height:auto; }
  .book-cover { width:min(43%,410px); }
}
@media (max-width: 800px) {
  .flipbook-stage { grid-template-columns: 48px minmax(0,1fr) 48px; padding-inline:8px; }
  .flipbook { width: calc(100vw - 120px); height: min(72vh, 720px); grid-template-columns:1fr; }
  .flip-page-left { display:none; }
  .flip-page-right { grid-column:1; border-radius:5px; }
  .book-spine { display:none; }
  .flipbook.cover-mode .flip-page-right { grid-column:1; width:100%; }
  .turning-page { left:0; width:100%; transform-origin:left center; }
  .flipbook-arrow { width:44px; height:44px; font-size:2.2rem; }
}
@media (max-width: 560px) {
  .book-showcase { gap:12px; }
  .book-cover { width:47%; }
  .excerpt-header { padding:12px 14px; }
  .excerpt-close { width:40px; height:40px; }
  .flipbook-stage { grid-template-columns:38px minmax(0,1fr) 38px; }
  .flipbook { width:calc(100vw - 92px); height:min(68vh,650px); }
  .flipbook-arrow { width:36px; height:36px; font-size:1.9rem; }
  .excerpt-hint { display:none; }
}

/* --- Corrections v16 : format original des pages et couvertures remontées --- */
.roman-inner {
  align-items: start;
  padding-top: 10px;
}
.roman-visual {
  align-self: start;
}
.book-showcase {
  min-height: 0;
  padding-top: 0;
  align-items: flex-start;
  justify-content: center;
}
.book-cover {
  width: min(48%, 510px);
}

/* Le lecteur reprend strictement le ratio B5 des pages exportées (env. 0,7156). */
.flipbook {
  width: min(1280px, calc(100vw - 210px), calc(76vh * 1.43125));
  height: auto;
  aspect-ratio: 1.43125 / 1;
}
.flip-page,
.turning-page {
  background: transparent;
}
.flip-page img,
.turning-page img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: transparent;
}

@media (max-width: 1150px) {
  .roman-inner { padding-top: 8px; }
  .book-cover { width: min(46%, 470px); }
}

@media (max-width: 800px) {
  .flipbook {
    width: min(calc(100vw - 120px), calc(72vh * .715625));
    height: auto;
    aspect-ratio: .715625 / 1;
  }
}

@media (max-width: 560px) {
  .book-cover { width: 48%; }
  .flipbook {
    width: min(calc(100vw - 92px), calc(68vh * .715625));
  }
}

/* --- Corrections v17 : composition centrée et page Roman entièrement visible --- */
@media (min-width: 1151px) {
  .roman-hero {
    min-height: calc(100svh - 84px);
    display: flex;
    align-items: center;
  }

  .roman-inner {
    min-height: calc(100svh - 84px);
    padding: clamp(26px, 3.2vh, 42px) 0;
    align-items: center;
  }

  .roman-visual {
    align-self: center;
  }

  .book-showcase {
    align-items: center;
  }

  .book-cover {
    width: min(47%, 490px);
    max-height: calc(100svh - 160px);
  }

  .book-cover img {
    max-height: calc(100svh - 160px);
    width: auto;
    max-width: 100%;
    margin: auto;
  }

  .roman-copy {
    align-self: center;
    padding: clamp(18px, 2.2vh, 28px) clamp(22px, 2.2vw, 36px);
  }

  .roman-author-label {
    font-size: .66rem;
  }

  .roman-author {
    margin: 5px 0 11px;
    font-size: clamp(.9rem, 1.05vw, 1.08rem);
  }

  .roman-title-block {
    margin-bottom: 14px;
    padding: 11px 10px 12px;
  }

  .roman-copy .roman-title-block h1 {
    font-size: clamp(1.35rem, 1.75vw, 2rem);
  }

  .roman-luxe-title {
    margin-top: 5px;
    font-size: clamp(.7rem, .78vw, .82rem);
  }

  .roman-intro {
    margin-bottom: 9px;
    font-size: clamp(.84rem, .86vw, .98rem);
    line-height: 1.48;
  }

  .excerpt-cta {
    margin: 14px 0 2px;
  }

  .excerpt-button {
    min-width: 210px;
    padding: 12px 22px;
  }

  .excerpt-cta p {
    margin-top: 6px;
    font-size: .76rem;
  }

  .luxe-panel {
    margin-top: 13px;
    padding-top: 12px;
  }

  .luxe-panel h2 {
    margin-bottom: 8px;
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  }

  .luxe-list {
    gap: 0;
  }

  .luxe-list li {
    padding: 6px 0;
    font-size: .82rem;
  }

  .luxe-list span {
    font-size: .78rem;
  }

  .roman-page-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .roman-page-actions .primary-btn {
    padding: 10px 16px;
    font-size: .68rem;
  }
}

.roman-page-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 1150px) {
  .roman-visual {
    align-self: center;
  }
  .book-showcase {
    padding-top: clamp(24px, 5vh, 54px);
    padding-bottom: clamp(18px, 4vh, 42px);
    align-items: center;
  }
}

/* --- Commande du roman et page de contact --- */
.roman-order-cta {
  width: min(92%, 620px);
  margin: clamp(10px, 1.6vh, 18px) auto 0;
  text-align: center;
}

.roman-order-button {
  min-width: min(100%, 310px);
  padding-inline: 28px;
}

.roman-order-cta p {
  margin: 8px 0 0;
  color: rgba(236, 240, 255, .72);
  font-size: .76rem;
  letter-spacing: .02em;
}

.contact-page {
  min-height: 100%;
  background: #070817;
}

.contact-main {
  position: relative;
  min-height: 100svh;
  padding: clamp(108px, 12vh, 132px) 22px 54px;
  overflow: hidden;
  isolation: isolate;
}

.contact-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 71, 201, .24), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(22, 148, 196, .16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(93, 32, 130, .18), transparent 38%),
    linear-gradient(145deg, #060714 0%, #0a0c21 46%, #070817 100%);
}

.contact-bg::before,
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-bg::before {
  opacity: .42;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(149,208,255,.5) 0 1px, transparent 1.5px);
  background-size: 82px 82px, 127px 127px;
  background-position: 10px 18px, 38px 70px;
}

.contact-bg::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  transform: skewX(-18deg) translateX(-55%);
  width: 34%;
}

.contact-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(173, 195, 255, .2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 20, 48, .92), rgba(8, 10, 28, .92));
  box-shadow: 0 30px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
}

.contact-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.contact-heading h1 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .98;
}

.contact-heading > p:last-child {
  color: rgba(236, 240, 255, .78);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 26px;
}

.contact-choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-choice-group legend {
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.contact-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  align-items: start;
  padding: 15px 17px;
  border: 1px solid rgba(177, 193, 255, .16);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.contact-choice:hover,
.contact-choice:has(input:checked) {
  border-color: rgba(139, 178, 255, .58);
  background: rgba(87, 96, 190, .13);
  transform: translateY(-1px);
}

.contact-choice input {
  margin-top: 4px;
  accent-color: #9aabff;
}

.contact-choice strong,
.contact-choice small {
  display: block;
}

.contact-choice small {
  margin-top: 4px;
  color: rgba(230, 235, 255, .68);
  line-height: 1.45;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.contact-fields label {
  display: grid;
  gap: 8px;
  color: rgba(245, 247, 255, .92);
  font-size: .85rem;
  font-weight: 650;
}

.contact-fields label > span,
.contact-consent strong,
.contact-choice-group legend span {
  color: #bcc7ff;
}

.contact-fields input,
.contact-fields textarea {
  width: 100%;
  border: 1px solid rgba(181, 194, 255, .18);
  border-radius: 12px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(3, 5, 17, .62);
  outline: none;
  font: inherit;
}

.contact-fields textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-fields input:focus,
.contact-fields textarea:focus {
  border-color: rgba(148, 185, 255, .75);
  box-shadow: 0 0 0 3px rgba(92, 120, 230, .14);
}

.field-wide {
  grid-column: 1 / -1;
}

.contact-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(232, 237, 255, .78);
  font-size: .82rem;
  line-height: 1.5;
}

.contact-consent input {
  margin-top: 3px;
  accent-color: #9aabff;
}

.contact-submit-row {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.contact-submit:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.45);
  transform: none;
}

.contact-submit-row p {
  margin: 0;
  color: rgba(226, 232, 255, .64);
  font-size: .76rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .contact-main {
    padding-inline: 12px;
  }
  .contact-shell {
    border-radius: 20px;
    padding: 22px 16px;
  }
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .field-wide {
    grid-column: auto;
  }
  .contact-choice {
    padding: 13px;
  }
}

/* =========================
   PAGE ALBUM — intégration premium
   ========================= */
.album-page { background:#050719; }
.album-main { min-height:100vh; padding-top:84px; }
.album-hero { position:relative; overflow:hidden; min-height:calc(100vh - 84px); padding:clamp(44px,7vw,92px) 0; }
.album-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 18% 28%,rgba(57,202,255,.18),transparent 27%),radial-gradient(circle at 78% 16%,rgba(180,75,255,.22),transparent 30%),linear-gradient(145deg,#06081d 0%,#0c1036 50%,#07091f 100%); }
.album-hero::after { content:""; position:absolute; inset:0; opacity:.22; background-image:radial-gradient(circle,rgba(255,255,255,.75) 0 1px,transparent 1.5px); background-size:115px 115px; pointer-events:none; }
.album-aurora { position:absolute; width:65vw; height:65vw; right:-28vw; top:-32vw; border-radius:50%; background:conic-gradient(from 30deg,rgba(76,215,255,.1),rgba(178,89,255,.22),rgba(255,126,221,.08),rgba(76,215,255,.1)); filter:blur(60px); animation:albumAurora 18s linear infinite; }
@keyframes albumAurora { to { transform:rotate(360deg); } }
.album-inner { position:relative; z-index:2; width:min(1380px,92vw); margin:auto; display:grid; grid-template-columns:minmax(430px,1.02fr) minmax(420px,.98fr); gap:clamp(54px,7vw,110px); align-items:center; }
.album-visual { min-width:0; perspective:1400px; }
.album-packshot { position:relative; min-height:540px; display:flex; align-items:center; justify-content:center; }
.album-art { position:absolute; padding:0; border:0; background:none; cursor:zoom-in; transform-style:preserve-3d; transition:transform .45s ease,filter .45s ease; }
.album-art img { display:block; width:100%; height:auto; border-radius:5px; box-shadow:0 34px 70px rgba(0,0,0,.62),0 0 42px rgba(119,105,255,.24); }
.album-art-front { width:min(370px,66vw); left:5%; top:4%; transform:rotateY(12deg) rotateZ(-2deg); z-index:3; }
.album-art-back { width:min(330px,59vw); right:2%; bottom:0; transform:rotateY(-11deg) rotateZ(4deg); z-index:2; }
.album-art:hover,.album-art:focus-visible { transform:translateY(-8px) rotateY(0) rotateZ(0) scale(1.025); filter:brightness(1.08); z-index:5; }
.album-glint { position:absolute; inset:0; border-radius:5px; overflow:hidden; pointer-events:none; }
.album-glint::after { content:""; position:absolute; top:-30%; bottom:-30%; width:25%; left:-35%; transform:skewX(-18deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent); animation:albumSweep 8s ease-in-out infinite; }
@keyframes albumSweep { 0%,55%{left:-35%;opacity:0} 68%{opacity:.65} 88%,100%{left:120%;opacity:0} }
.album-inside { width:100%; margin-top:34px; padding:10px; border:1px solid rgba(196,220,255,.22); border-radius:18px; background:rgba(11,15,48,.58); box-shadow:0 22px 50px rgba(0,0,0,.35); cursor:zoom-in; transition:transform .3s ease,border-color .3s ease; }
.album-inside:hover,.album-inside:focus-visible { transform:translateY(-4px); border-color:rgba(207,230,255,.72); }
.album-inside img { display:block; width:100%; border-radius:11px; }
.album-copy { min-width:0; }
.album-kicker { margin:0 0 10px; text-transform:uppercase; letter-spacing:.3em; font-weight:700; font-size:.76rem; color:var(--cyan); }
.album-copy h1 { margin:0; font-family:"Playfair Display",Georgia,serif; font-size:clamp(3.1rem,6vw,6.7rem); line-height:.9; font-weight:600; background:linear-gradient(100deg,#fff,#bcefff 42%,#deb8ff 72%,#fff); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:0 0 38px rgba(123,131,255,.18); }
.album-signature { margin:18px 0 30px; font-size:clamp(1.35rem,2.2vw,2.2rem); letter-spacing:.42em; font-weight:700; color:rgba(255,255,255,.92); }
.album-intro { color:rgba(246,245,255,.78); line-height:1.85; font-size:clamp(.98rem,1.15vw,1.13rem); }
.album-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:30px 0; }
.album-facts span { padding:17px 13px; border:1px solid rgba(191,215,255,.2); border-radius:16px; background:rgba(15,20,61,.48); color:rgba(255,255,255,.72); text-align:center; font-size:.75rem; text-transform:uppercase; letter-spacing:.07em; }
.album-facts strong { display:block; margin-bottom:5px; color:#fff; font-size:1.05rem; }
.album-cta-row { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.album-contact-note { margin:13px 0 24px; color:rgba(255,255,255,.55); font-size:.78rem; }
.spotify-panel { overflow:hidden; border:1px solid rgba(195,218,255,.18); border-radius:17px; box-shadow:0 15px 35px rgba(0,0,0,.3); background:rgba(4,6,20,.52); }
.spotify-panel iframe { display:block; }
.album-track-section { position:relative; padding:clamp(70px,9vw,120px) 0; background:linear-gradient(180deg,#070a22,#040616); border-top:1px solid rgba(255,255,255,.08); }
.album-track-section h2 { margin:4px 0 36px; font-family:"Playfair Display",Georgia,serif; font-size:clamp(2.4rem,4vw,4.5rem); }
.track-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.track-list { margin:0; padding:18px 18px 18px 58px; border:1px solid rgba(188,210,255,.17); border-radius:22px; background:linear-gradient(145deg,rgba(23,29,78,.62),rgba(9,13,42,.7)); box-shadow:0 18px 45px rgba(0,0,0,.25); }
.track-list li { padding:14px 8px; color:rgba(178,205,255,.78); border-bottom:1px solid rgba(255,255,255,.08); }
.track-list li:last-child { border-bottom:0; }
.track-list span { padding-left:8px; color:#fff; font-weight:600; }
.album-page-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:38px; }
.album-lightbox[hidden] { display:none; }
.album-lightbox { position:fixed; z-index:100; inset:0; display:flex; align-items:center; justify-content:center; padding:40px; background:rgba(2,3,14,.92); backdrop-filter:blur(15px); }
.album-lightbox img { max-width:min(1200px,92vw); max-height:88vh; object-fit:contain; border-radius:9px; box-shadow:0 30px 100px rgba(0,0,0,.75),0 0 65px rgba(135,100,255,.25); }
.album-lightbox-close { position:absolute; top:22px; right:28px; width:48px; height:48px; border:1px solid rgba(255,255,255,.35); border-radius:50%; color:white; background:rgba(15,18,54,.8); font-size:2rem; cursor:pointer; }
body.lightbox-open { overflow:hidden; }
.main-nav a.active { color:white; text-shadow:0 0 15px rgba(142,194,255,.9); }

@media (max-width:1050px) {
  .album-inner { grid-template-columns:1fr; width:min(820px,92vw); }
  .album-copy { text-align:center; }
  .album-intro { text-align:left; }
  .album-cta-row,.album-page-actions { justify-content:center; }
  .album-packshot { min-height:590px; }
}
@media (max-width:700px) {
  .album-main { padding-top:72px; }
  .album-hero { padding-top:34px; }
  .album-packshot { min-height:420px; }
  .album-art-front { width:62vw; left:1%; }
  .album-art-back { width:57vw; right:0; }
  .album-facts,.track-grid { grid-template-columns:1fr; }
  .album-copy h1 { font-size:clamp(3rem,15vw,5rem); }
  .album-signature { letter-spacing:.25em; }
  .album-cta-row .primary-btn,.album-page-actions .primary-btn { width:100%; justify-content:center; }
  .album-lightbox { padding:20px; }
}


/* v26 — uniquement le placement du visuel intérieur du CD */
@media (min-width: 1051px) {
  .album-packshot {
    min-height: 480px;
  }

  .album-inside {
    margin-top: 8px;
  }

  .album-inside img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 245px;
    object-fit: contain;
    object-position: center;
  }
}

@media (min-width: 1400px) and (max-height: 950px) {
  .album-packshot {
    min-height: 440px;
  }

  .album-inside img {
    max-height: 215px;
  }
}


/* v27 — remontée définitive du visuel intérieur du CD */
@media (min-width: 1051px) {
  .album-packshot { min-height: 430px; }
  .album-inside { margin-top: -72px; position: relative; z-index: 6; }
  .album-inside img { max-height: 260px; object-fit: contain; object-position: center; }
}
@media (min-width: 1400px) and (max-height: 950px) {
  .album-packshot { min-height: 400px; }
  .album-inside { margin-top: -88px; }
  .album-inside img { max-height: 245px; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .album-inside { margin-top: -38px; }
}


/* v28 — formulaire AJAX sans changement de page */
#formStatus.form-status,
#formStatus {
  min-height: 1.5em;
}
#formStatus.sending { color: rgba(222, 231, 255, .82); }
#formStatus.success { color: #baf7d3; font-weight: 700; }
#formStatus.error { color: #ffc2cb; font-weight: 700; }

/* v28 — le visuel intérieur du CD est réellement remonté */
@media (min-width: 1051px) {
  .album-visual {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .album-packshot {
    min-height: 385px;
  }

  .album-inside {
    margin-top: -142px;
    position: relative;
    z-index: 8;
    transform: translateY(-8px);
  }

  .album-inside:hover,
  .album-inside:focus-visible {
    transform: translateY(-13px);
  }

  .album-inside img {
    width: 100%;
    height: auto;
    max-height: 275px;
    object-fit: contain;
    object-position: center top;
  }
}

@media (min-width: 1400px) and (max-height: 950px) {
  .album-packshot {
    min-height: 360px;
  }

  .album-inside {
    margin-top: -158px;
  }

  .album-inside img {
    max-height: 255px;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .album-inside {
    margin-top: -82px;
  }

  .album-inside img {
    max-height: 320px;
    object-fit: contain;
  }
}


/* v29 — correction structurelle du bloc CD
   Le bloc visuel est aligné en haut de la colonne, au lieu d'être centré
   verticalement avec le texte. Les trois images remontent ensemble. */
@media (min-width: 1051px) {
  .album-inner {
    align-items: start;
  }

  .album-visual {
    position: relative;
    display: block;
    margin-top: 58px;
    overflow: visible;
  }

  .album-packshot {
    min-height: 420px;
    height: 420px;
    overflow: visible;
  }

  .album-art-front {
    top: 0;
  }

  .album-art-back {
    bottom: 0;
  }

  .album-inside {
    position: relative;
    z-index: 10;
    margin-top: -108px;
    transform: none;
    overflow: visible;
  }

  .album-inside:hover,
  .album-inside:focus-visible {
    transform: translateY(-5px);
  }

  .album-inside img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }
}

/* Écrans larges mais peu hauts, comme la capture fournie */
@media (min-width: 1400px) and (max-height: 980px) {
  .album-visual {
    margin-top: 34px;
  }

  .album-packshot {
    min-height: 360px;
    height: 360px;
  }

  .album-art-front {
    width: min(330px, 58vw);
  }

  .album-art-back {
    width: min(295px, 52vw);
  }

  .album-inside {
    margin-top: -92px;
  }
}


/* v31 — correction définitive de la composition des visuels CD
   Les deux jaquettes restent dans leur propre zone.
   Le visuel intérieur reprend le flux normal, sans marge négative ni superposition. */
@media (min-width: 1051px) {
  .album-inner {
    align-items: start;
  }

  .album-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 18px;
    overflow: visible;
  }

  .album-packshot {
    position: relative;
    display: block;
    width: 100%;
    height: 370px;
    min-height: 370px;
    overflow: visible;
  }

  .album-art-front {
    width: min(340px, 58%);
    left: 4%;
    top: 0;
  }

  .album-art-back {
    width: min(305px, 52%);
    right: 1%;
    bottom: 2px;
  }

  .album-inside {
    position: relative;
    z-index: 4;
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    transform: none;
    overflow: visible;
  }

  .album-inside:hover,
  .album-inside:focus-visible {
    transform: translateY(-4px);
  }

  .album-inside img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 270px;
    object-fit: contain;
    object-position: center top;
  }
}

/* Écrans larges et peu hauts : ensemble plus compact, toujours sans chevauchement. */
@media (min-width: 1400px) and (max-height: 980px) {
  .album-visual {
    margin-top: 6px;
  }

  .album-packshot {
    height: 310px;
    min-height: 310px;
  }

  .album-art-front {
    width: min(300px, 55%);
    left: 5%;
  }

  .album-art-back {
    width: min(270px, 49%);
    right: 2%;
  }

  .album-inside {
    margin-top: 12px;
  }

  .album-inside img {
    max-height: 235px;
  }
}

/* Tablette : même principe, aucune marge négative. */
@media (min-width: 701px) and (max-width: 1050px) {
  .album-inside {
    margin-top: 18px;
    transform: none;
  }

  .album-inside img {
    width: 100%;
    height: auto;
    max-height: 330px;
    object-fit: contain;
  }
}
