:root {

  /* =========================================================
     KODE & KISS — PREMIUM TOKENS
  ========================================================= */

  --kk-bg-dark: #050914;
  --kk-bg-panel: rgba(10, 18, 40, 0.92);

  --kk-cyan: #45dfff;
  --kk-blue: #78b4ff;
  --kk-pink: #ff2f92;

  --kk-text: rgba(255,255,255,0.92);
  --kk-text-soft: rgba(220,230,245,0.72);

  /* SHADOWS */

  --kk-shadow-soft:
    0 12px 34px rgba(0,0,0,0.24);

  --kk-shadow-premium:
    0 18px 60px rgba(0,0,0,0.38);

  --kk-shadow-cyan:
    0 0 40px rgba(69,223,255,0.10);

  --kk-shadow-pink:
    0 0 40px rgba(255,47,146,0.08);

  /* TRANSITIONS */

  --kk-ease:
    cubic-bezier(.22,.61,.36,1);

  --kk-speed-fast: 0.28s;
  --kk-speed-medium: 0.48s;
  --kk-speed-slow: 0.8s;

  /* BLUR */

  --kk-blur-soft: blur(10px);
  --kk-blur-strong: blur(18px);

  /* BORDER */

  --kk-border:
    1px solid rgba(120,180,255,0.14);

}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #070b14;
  color: #f5f7fb;
  line-height: 1.6;
}

a {
  color: #8fd3ff;
  text-decoration: none;
}

a:hover {
  color: #ff7eb6;
}

img {
  max-width: 100%;
  display: block;
}

.container,
.section-shell {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.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;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  background: rgba(5, 8, 16, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.site-header .container,
.site-header__inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo,
.site-logo {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(76, 201, 240, 0.10);
  white-space: nowrap;
}

.main-nav,
.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a,
.nav-discover__toggle,
.site-nav a {
  color: #d5deeb;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.nav-discover__toggle:hover,
.main-nav a[aria-current="page"],
.nav-discover[data-current="true"] .nav-discover__toggle,
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.nav-discover {
  display: contents;
}

.nav-discover__toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-discover__label {
  display: inline-flex;
  align-items: center;
  color: #9fdff0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-discover__panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-discover__caret {
  margin-left: 0.35rem;
  transition: transform 0.18s ease;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
.messages-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.messages-hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.32);
}

.btn-primary,
.messages-hero__button--primary {
  background: linear-gradient(90deg, #4cc9f0, #7dd3ff);
  color: #08101b;
  box-shadow:
    0 0 24px rgba(76, 201, 240, 0.18),
    0 12px 28px rgba(0,0,0,0.28);
}

.btn-secondary,
.messages-hero__button--ghost {
  border: 1px solid rgba(76, 201, 240, 0.7);
  color: #8fd3ff;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}

/* =========================================================
   GENERIC CONTENT BLOCKS
   ========================================================= */

.page-content {
  padding: 56px 0 90px;
}

.content-block {
  background: linear-gradient(180deg, rgba(14, 19, 32, 0.94), rgba(9, 13, 23, 0.98));
  border-radius: 22px;
  padding: 48px 46px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  max-width: 980px;
  margin: 0 auto;
}

.content-block h1,
.content-block h2,
.content-block h3 {
  color: #ffffff;
  letter-spacing: 0.01em;
}

.content-block h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.content-block h2 {
  font-size: 1.35rem;
  margin-top: 34px;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.content-block h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #dff1ff;
}

.content-block p {
  color: #d8e2f0;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.content-block strong {
  color: #ffffff;
}

.content-block blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid #4cc9f0;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.content-block blockquote p {
  margin: 0 0 10px;
}

.content-block blockquote p:last-child {
  margin-bottom: 0;
}

.content-block hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 32px 0;
}

.content-block a {
  color: #8fd3ff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.content-block a:hover {
  color: #ffffff;
}

.content-block h3 a {
  color: #dff1ff;
}

.content-block h3 a:hover {
  color: #ffffff;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 48px 0 26px;
  color: #9fb0c8;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(5, 8, 16, 0.58);
}

.site-footer p {
  margin: 0;
  color: #9fb0c8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.site-footer__brand h2,
.site-footer__nav h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__brand h2 a {
  color: inherit;
}

.site-footer__brand p {
  max-width: 36rem;
  line-height: 1.65;
}

.site-footer__nav {
  display: grid;
  align-content: start;
}

.site-footer__nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  width: fit-content;
  color: #c7d4e5;
  transition: color 0.18s ease;
}

.site-footer__nav a:hover {
  color: #ffffff;
}

.site-footer__legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* =========================================================
   HOME
   ========================================================= */

.home-page {
  background:
    radial-gradient(circle at top left, rgba(77, 171, 247, 0.07), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 89, 156, 0.07), transparent 24%),
    #070b14;
}

.cinema-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.cinema-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,150,255,0.15), transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(255,50,50,0.15), transparent 60%);
}

.cinema-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,10,20,0.95) 15%,
    rgba(5,10,20,0.5) 50%,
    transparent 100%
  );
}

.cinema-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cinema-copy {
  max-width: 500px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fd3ff;
  font-weight: 700;
}

.cinema-copy h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(76, 201, 240, 0.18),
    0 0 30px rgba(255, 80, 120, 0.12);
}

.subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 16px;
  opacity: 0.75;
  margin-bottom: 18px;
}

.hero-hook {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ffffff;
  font-weight: 600;
  max-width: 34ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cinema-cover-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

@keyframes floatCover {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0px); }
}

.cinema-cover {
  width: 560px;
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.88),
    0 0 28px rgba(0,150,255,0.10),
    0 0 52px rgba(255,50,50,0.06);
  animation: floatCover 6.5s ease-in-out infinite;
  transition: transform 0.4s ease;
}

.cinema-cover:hover {
  transform: scale(1.04);
  animation-play-state: paused;
}

.home-manifesto {
  text-align: center;
  margin: 30px 0;
}

.manifesto-line {
  font-size: 1.2rem;
  font-weight: 600;
}

.home-content {
  margin-top: 16px;
}

/* =========================================================
   LIVRE
   ========================================================= */

.book-page {
  background:
    radial-gradient(circle at top left, rgba(77, 171, 247, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 89, 156, 0.08), transparent 28%),
    #070b14;
}

.book-hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.book-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(0,150,255,0.14), transparent 58%),
    radial-gradient(circle at 82% 50%, rgba(255,50,50,0.14), transparent 58%);
}

.book-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,10,20,0.88) 10%,
    rgba(5,10,20,0.42) 55%,
    transparent 100%
  );
}

.book-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.book-cover-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

@keyframes floatBookCover {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}

.book-cover {
  width: 500px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.82),
    0 0 26px rgba(0,150,255,0.08),
    0 0 42px rgba(255,50,50,0.05);
  animation: floatBookCover 6.5s ease-in-out infinite;
}

.book-cover:hover {
  transform: scale(1.04);
  animation-play-state: paused;
}

.book-copy {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.book-kicker {
  margin: 0 0 18px;
  color: #9ec9ff;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.book-copy h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.95;
  margin: 0 0 18px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(76, 201, 240, 0.16),
    0 0 28px rgba(255, 80, 120, 0.10);
}

.book-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 18px;
}

.book-lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #d8e2f0;
  margin-bottom: 18px;
  max-width: 34ch;
}

.book-hook {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #ffffff;
  font-weight: 700;
  max-width: 30ch;
  margin: 0 0 30px;
}

.book-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.book-manifesto {
  text-align: center;
  margin: 20px 0 8px;
}

.book-manifesto-line {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.book-content {
  max-width: 1000px;
}

.book-content h1 {
  display: none;
}

.book-content h2 {
  font-size: 1.4rem;
  margin-top: 34px;
  margin-bottom: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

.book-content p,
.book-content li {
  font-size: 1rem;
  line-height: 1.85;
}

.book-content a {
  color: #8fd3ff;
}

.book-content a:hover {
  color: #ffffff;
}

/* =========================================================
   HISTOIRE
   ========================================================= */

.story-page {
  background: #050910;
}

.story-hero {
  position: relative;
  padding: 140px 0 110px;
  background:
    linear-gradient(180deg, rgba(4, 10, 24, 0.16), rgba(4, 10, 24, 0.38)),
    url("/static/img/histoire-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.42), rgba(0,0,0,0.78)),
    radial-gradient(circle at center, rgba(88,165,255,0.12), transparent 58%);
}

.story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(140, 210, 255, 0) 0%,
      rgba(140, 210, 255, 0.04) 20%,
      rgba(255,255,255,0.06) 48%,
      rgba(140, 210, 255, 0.04) 72%,
      rgba(140, 210, 255, 0) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  animation: storyDrift 9s ease-in-out infinite;
}

.story-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.story-kicker {
  color: #9ec9ff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.story-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeUp 1.2s ease forwards;
  text-shadow:
    0 0 18px rgba(88,165,255,0.18),
    0 0 40px rgba(88,165,255,0.10);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-sub {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 30px;
}

.story-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.story-manifesto {
  text-align: center;
  padding: 40px 0 10px;
}

.story-manifesto p {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 600px;
  margin: auto;
}

.story-content {
  max-width: 900px;
}

.story-content h2 {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 15px;
}

.story-content p {
  line-height: 1.9;
}

/* =========================================================
   PERSONNAGES
   ========================================================= */

.characters-page {
  background:
    radial-gradient(circle at top left, rgba(77, 171, 247, 0.07), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 89, 156, 0.07), transparent 24%),
    #060912;
}

.characters-hero {
  text-align: center;
  padding: 110px 20px 70px;
}

.characters-kicker {
  color: #9ec9ff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.characters-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(76, 201, 240, 0.14),
    0 0 24px rgba(255, 80, 120, 0.08);
}

.characters-sub {
  max-width: 720px;
  margin: 0 auto;
  color: #dbe5f3;
  line-height: 1.8;
  font-size: 1.08rem;
}

.character-section {
  padding: 70px 0;
}

.character-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}

.character-section.reverse .character-grid {
  flex-direction: row-reverse;
}

.character-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.character-image img {
  width: 100%;
  max-width: 430px;
  border-radius: 12px;
  box-shadow:
    0 0 40px rgba(88,165,255,0.25),
    0 22px 60px rgba(0,0,0,0.52);
  transition: all 0.4s ease;
}

.character-image img:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 60px rgba(120,225,255,0.35),
    0 22px 60px rgba(0,0,0,0.52);
}

.character-text {
  flex: 1;
  max-width: 520px;
}

.character-label {
  color: #8fd3ff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.character-text h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 18px;
  color: #ffffff;
}

.character-text p {
  color: #d8e2f0;
  line-height: 1.85;
  margin-bottom: 16px;
}

.character-highlight {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 22px;
}

.characters-link {
  text-align: center;
  padding: 90px 20px 40px;
}

.characters-link h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.characters-link p {
  color: #dbe5f3;
  line-height: 1.8;
}

.link-highlight {
  color: #8fd3ff !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 16px;
}

.characters-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.characters-content {
  max-width: 900px;
}

.characters-content h2 {
  margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 15px;
}

/* =========================================================
   UNIVERS
   ========================================================= */

.universe-page {
  background: #050910;
}

.universe-hero {
  position: relative;
  padding: 140px 0 110px;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image: url("/static/img/univers.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.universe-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,10,20,0.45), rgba(5,10,20,0.82)),
    radial-gradient(circle at 18% 50%, rgba(0,150,255,0.18), transparent 48%),
    radial-gradient(circle at 82% 50%, rgba(255,50,50,0.14), transparent 48%);
}

.universe-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.universe-kicker {
  color: #9ec9ff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.84rem;
  margin-bottom: 18px;
}

.universe-hero h1 {
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: 1.04;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(76, 201, 240, 0.10),
    0 0 24px rgba(255, 80, 120, 0.06);
}

.universe-sub {
  font-size: 1.16rem;
  color: #ffffff;
  line-height: 1.8;
  max-width: 38ch;
  margin-bottom: 30px;
}

.universe-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.universe-manifesto {
  text-align: center;
  padding: 42px 0 10px;
}

.universe-manifesto p {
  max-width: 680px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.85;
}

.universe-content {
  max-width: 930px;
}

.universe-content h2 {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 15px;
}

.universe-content p,
.universe-content li {
  line-height: 1.9;
}

/* =========================================================
   MESSAGES DE 2050 — VERSION FINALE
   Compatible avec anciens et nouveaux templates
   ========================================================= */

.messages-page {
  background:
    radial-gradient(circle at top left, rgba(77, 171, 247, 0.07), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 89, 156, 0.07), transparent 24%),
    #050910;
}

.messages-hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 110px;
  background-image: url("/static/img/message-2050.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.85) contrast(1.1) saturate(1.2);
}

.messages-hero__bg {
  position: absolute;
  inset: 0;
}

.messages-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.messages-overlay,
.messages-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5,10,20,0.86) 12%, rgba(5,10,20,0.56) 48%, rgba(5,10,20,0.75) 100%),
    linear-gradient(to bottom, rgba(5,10,20,0.30), rgba(5,10,20,0.88)),
    radial-gradient(circle at 20% 50%, rgba(0,180,255,0.16), transparent 52%),
    radial-gradient(circle at 80% 50%, rgba(255,60,60,0.14), transparent 52%);
}

.messages-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(130, 220, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 72%, rgba(130, 220, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 34%, rgba(255, 90, 90, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 58%, rgba(120, 210, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(255, 90, 90, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 76%, rgba(120, 210, 255, 0.7) 0 1px, transparent 2px);
  animation: messageParticles 10s ease-in-out infinite alternate;
}

.messages-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(120, 220, 255, 0.10) 48%,
    rgba(120, 220, 255, 0.18) 50%,
    rgba(120, 220, 255, 0.10) 52%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: messageScan 6.5s linear infinite;
}

.messages-hero-inner,
.messages-hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  max-width: 720px;
}

.messages-kicker {
  margin: 0 0 16px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fd3ff;
  font-weight: 700;
}

.messages-title,
.messages-hero h1 {
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin: 0 0 22px;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(76, 201, 240, 0.14),
    0 0 28px rgba(255, 80, 120, 0.08);
  animation: subtleGlitch 8s infinite;
}

.messages-sub,
.messages-hero__lead {
  font-size: 1.12rem;
  color: #e4edf8;
  line-height: 1.9;
  max-width: 38ch;
  margin: 0;
}

.messages-hook {
  margin-top: 20px;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  animation: dataBreath 4.8s ease-in-out infinite;
}

.messages-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.messages-card,
.messages-form-card,
.messages-signal__card,
.messages-hook__inner,
.messages-fragments__inner {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 22, 43, 0.72), rgba(8, 13, 28, 0.86));
  border: 1px solid rgba(129, 183, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 22px 60px rgba(0, 0, 0, 0.25);
}

.messages-card,
.messages-form-card,
.messages-signal__card {
  margin-top: 34px;
  max-width: 620px;
  padding: 26px 24px;
  backdrop-filter: blur(12px);
}

.messages-card-intro,
.messages-panel-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 600;
}

.messages-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  margin-top: 22px;
}

.messages-form input,
.messages-form input[type="email"] {
  flex: 1 1 280px;
  min-width: 240px;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.messages-form input::placeholder {
  color: rgba(255,255,255,0.52);
}

.messages-form input:focus {
  border-color: rgba(76, 201, 240, 0.55);
  box-shadow:
    0 0 0 3px rgba(76, 201, 240, 0.10),
    0 0 24px rgba(76, 201, 240, 0.08);
}

.messages-form button {
  padding: 16px 22px;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #4cc9f0, #7dd3ff);
  color: #08101b;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.24),
    0 0 24px rgba(76, 201, 240, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.messages-form button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.34),
    0 0 30px rgba(76, 201, 240, 0.24);
  filter: brightness(1.03);
}

.messages-benefits {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

.messages-benefits h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.messages-benefits ul,
.messages-list {
  margin: 0;
  padding-left: 18px;
}

.messages-benefits li,
.messages-list li {
  color: #dce6f3;
  line-height: 1.9;
  margin-bottom: 2px;
}

.messages-form__note {
  margin: 16px 0 0;
  color: #b9c7d9;
  font-size: 0.96rem;
  line-height: 1.8;
}

.messages-final-hook {
  margin-top: 30px;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 36ch;
}

.messages-content,
.messages-intro__text,
.messages-closing__inner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.messages-intro {
  padding: 80px 0 36px;
}

.messages-intro__text p,
.messages-content p,
.messages-content li {
  line-height: 1.9;
}

.messages-signal {
  padding: 28px 0 72px;
}

.messages-signal__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
}

.messages-fragments {
  padding: 0 0 72px;
}

.messages-fragments__inner {
  padding: 30px 28px;
}

.messages-fragments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.fragment-card {
  border-radius: 18px;
  padding: 22px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(129, 183, 255, 0.12);
}

.fragment-card__label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fd3ff;
  font-weight: 700;
}

.fragment-card p {
  margin: 0;
  line-height: 1.8;
  color: rgba(245, 247, 255, 0.9);
}

.messages-hook {
  padding-bottom: 0;
}

.messages-hook__inner {
  padding: 42px 28px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.messages-hook__inner p,
.messages-closing__strong {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.55;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.messages-closing {
  padding: 0 0 110px;
}

.messages-closing__inner p {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(245, 247, 255, 0.84);
}

/* Animations */

@keyframes messageParticles {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-8px) scale(1.01);
    opacity: 0.62;
  }
  100% {
    transform: translateY(6px) scale(0.995);
    opacity: 0.48;
  }
}

@keyframes messageScan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  8% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.35;
  }
  92% {
    opacity: 0.18;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes dataBreath {
  0% {
    opacity: 0.48;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.88;
    transform: translateY(-1px);
  }
  100% {
    opacity: 0.48;
    transform: translateY(0px);
  }
}

@keyframes subtleGlitch {
  0%, 92%, 100% {
    transform: translateX(0);
    filter: none;
  }
  93% {
    transform: translateX(0.5px);
    filter: drop-shadow(-1px 0 rgba(255, 70, 70, 0.18));
  }
  94% {
    transform: translateX(-0.5px);
    filter: drop-shadow(1px 0 rgba(90, 220, 255, 0.18));
  }
  95% {
    transform: translateX(0);
    filter: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .book-hero-inner,
  .character-grid,
  .character-section.reverse .character-grid,
  .messages-signal__grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .book-copy,
  .character-text {
    max-width: 100%;
  }

  .book-cover {
    width: 360px;
  }

  .messages-hero__content,
  .messages-hero-inner {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .site-header .container,
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-block {
    padding: 34px 24px;
  }

  .content-block h1 {
    font-size: 1.9rem;
  }

  .content-block h2 {
    font-size: 1.2rem;
  }

  .universe-hero,
  .messages-hero {
    padding: 110px 0 90px;
  }

  .universe-sub,
  .messages-sub,
  .messages-hero__lead {
    max-width: 100%;
  }

  .messages-scanline {
    opacity: 0.24;
  }

  .messages-card,
  .messages-form-card,
  .messages-signal__card,
  .messages-fragments__inner,
  .messages-hook__inner {
    padding: 22px 18px;
  }

  .messages-form {
    flex-direction: column;
  }

  .messages-form button {
    width: 100%;
  }

  .messages-fragments__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cinema-copy h1 {
    font-size: 2.8rem;
  }

  .book-copy h1,
  .story-hero h1,
  .characters-hero h1,
  .universe-hero h1,
  .messages-title,
  .messages-hero h1 {
    font-size: 2.6rem;
  }

  .cinema-cover,
  .character-image img {
    max-width: 340px;
  }

  .messages-hero {
    min-height: auto;
  }

  .messages-hook__inner p,
  .messages-closing__strong {
    line-height: 1.45;
  }
}

/* BREVO — overrides premium pour Messages 2050 */

.messages-card .sib-form,
.messages-card .sib-form-container,
.messages-card #sib-container {
  background: transparent !important;
  max-width: 100% !important;
  width: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.messages-card #error-message,
.messages-card #success-message {
  max-width: 100% !important;
  margin: 0 0 14px 0 !important;
  border-radius: 14px !important;
}

.messages-card #error-message {
  background: rgba(255, 77, 77, 0.10) !important;
  border: 1px solid rgba(255, 77, 77, 0.22) !important;
  color: #ffd3d3 !important;
}

.messages-card #success-message {
  background: rgba(19, 206, 102, 0.10) !important;
  border: 1px solid rgba(19, 206, 102, 0.22) !important;
  color: #d9ffe9 !important;
}

.messages-card .sib-form-message-panel__text,
.messages-card .sib-form-message-panel__inner-text {
  color: inherit !important;
}

.messages-card .sib-form-block,
.messages-card .sib-input,
.messages-card .form__entry,
.messages-card .entry_block,
.messages-card .form__label-row,
.messages-card .entry__field {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.messages-card .entry__label {
  display: none !important;
}

.messages-card .entry__error {
  display: block !important;
  margin-top: 10px !important;
  font-size: 0.92rem !important;
  color: #ffd3d3 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.messages-card #sib-form {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.messages-card #sib-form .sib-input {
  flex: 1 1 280px !important;
}

.messages-card #sib-form .sib-form-block:last-of-type {
  flex: 0 0 auto !important;
}

.messages-card .input {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(129, 183, 255, 0.16) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.messages-card .input::placeholder {
  color: #9fb0c8 !important;
}

.messages-card .input:focus {
  border-color: rgba(95, 196, 255, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(95, 196, 255, 0.12) !important;
}

.messages-card .sib-form-block__button {
  min-height: 56px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  color: #06111e !important;
  background: linear-gradient(135deg, #57c4ff, #8ee0ff) !important;
  box-shadow:
    0 10px 26px rgba(63, 175, 255, 0.28),
    0 0 30px rgba(63, 175, 255, 0.10) !important;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease !important;
}

.messages-card .sib-form-block__button:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
  box-shadow:
    0 16px 36px rgba(63, 175, 255, 0.32),
    0 0 36px rgba(63, 175, 255, 0.14) !important;
}

.messages-card .sib-hide-loader-icon {
  fill: #06111e !important;
}

@media (max-width: 900px) {
  .messages-card #sib-form {
    flex-direction: column !important;
  }

  .messages-card .sib-form-block__button {
    width: 100% !important;
  }
}

.signal-success {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(19, 206, 102, 0.10);
  border: 1px solid rgba(19, 206, 102, 0.22);
  color: #d9ffe9;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* SIGNAL SUCCESS — VERSION PREMIUM IA */

.signal-success {
  display: block;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(8px);
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.65s ease,
    opacity 0.55s ease,
    transform 0.55s ease,
    filter 0.55s ease,
    margin-top 0.55s ease;
  margin-top: 0;
}

.signal-success.is-visible {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  margin-top: 16px;
}

.signal-success__inner {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 38, 28, 0.72), rgba(4, 22, 18, 0.88));
  border: 1px solid rgba(51, 255, 166, 0.24);
  color: #e9fff5;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(51, 255, 166, 0.08),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.signal-success__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,0.06) 45%,
      transparent 100%
    );
  transform: translateX(-120%);
  animation: signalSweepPremium 2.8s ease-in-out infinite;
}

.signal-success__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(51,255,166,0.0) 10%,
    rgba(51,255,166,0.55) 50%,
    rgba(51,255,166,0.0) 90%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(51,255,166,0.22);
  animation: signalLinePulse 2.2s ease-in-out infinite;
}

.signal-success__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dffd0;
  font-weight: 700;
  opacity: 0.95;
}

.signal-success__title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(51,255,166,0.12);
}

.signal-success__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: #dffcf0;
}

@keyframes signalSweepPremium {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  18% {
    opacity: 0.32;
  }
  60% {
    opacity: 0.14;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes signalLinePulse {
  0%, 100% {
    opacity: 0.22;
    transform: scaleX(0.98);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

.signal-success__text p {
  margin: 0;
}

.signal-success__text p + p {
  margin-top: 8px;
  opacity: 0.92;
}

.signal-confirmed-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background:
    radial-gradient(circle at top, rgba(88, 163, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #07111f 0%, #04070d 100%);
}

.signal-confirmed-shell {
  width: 100%;
  max-width: 760px;
  padding: 40px 28px;
  border: 1px solid rgba(110, 160, 255, 0.22);
  border-radius: 24px;
  background: rgba(8, 14, 24, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.signal-confirmed-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #78b7ff;
}

.signal-confirmed-shell h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 0.95;
  color: #f4f7fb;
}

.signal-confirmed-lead {
  margin: 0 0 24px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(244, 247, 251, 0.88);
}

.signal-confirmed-panel {
  margin: 0 0 28px;
  padding: 22px 20px;
  border: 1px solid rgba(90, 210, 170, 0.28);
  border-radius: 18px;
  background: rgba(20, 40, 35, 0.38);
  color: #eaf7f2;
}

.signal-confirmed-panel p {
  margin: 0 0 10px;
}

.signal-confirmed-panel p:last-child {
  margin-bottom: 0;
}

.signal-confirmed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signal-confirmed-actions a {
  text-decoration: none;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #6dc7ff, #5b8cff);
  color: #08111d;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  color: #f4f7fb;
  background: rgba(255,255,255,0.04);
}

.signal-entry-section {
  padding: 48px 20px;
  background:
    radial-gradient(circle at top, rgba(100, 170, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #08111f 0%, #04070d 100%);
}

.signal-entry-shell {
  max-width: 760px;
  margin: 0 auto;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.signal-entry-form.is-submitted {
  animation: signalPixelOut 0.9s ease forwards;
}

@keyframes signalPixelOut {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) contrast(1);
  }
  40% {
    opacity: 0.9;
    transform: scale(0.995);
    filter: blur(1px) contrast(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
    filter: blur(7px) contrast(1.4);
    pointer-events: none;
  }
}

.signal-entry-success {
  margin-top: 24px;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(90, 210, 170, 0.24);
  background: rgba(17, 31, 28, 0.55);
  color: #f3fbf8;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.signal-entry-kicker {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7ce6c1;
}

.signal-entry-success h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.05;
}

.signal-entry-success p {
  margin: 0 0 10px;
  line-height: 1.7;
}

/* =========================
   SIGNAL RECU — PREMIUM
   ========================= */

.signal-recu-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(40, 95, 180, 0.18), transparent 38%),
    linear-gradient(180deg, #020814 0%, #030b1b 45%, #020611 100%);
  padding: 56px 20px 88px;
}

.signal-recu-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(8,16,34,0.92), rgba(3,10,24,0.96));
  border: 1px solid rgba(92, 136, 255, 0.18);
  border-radius: 22px;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.signal-recu-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(86, 168, 255, 0.06) 28%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%);
  pointer-events: none;
}

.signal-recu-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(106, 163, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.signal-recu-hero img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.01);
  filter: saturate(1.08) contrast(1.04);
}

.signal-recu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%, transparent 82%, rgba(255,255,255,0.04)),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.signal-recu-hero::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -30%;
  height: 18%;
  background: linear-gradient(
    180deg,
    rgba(110, 196, 255, 0) 0%,
    rgba(110, 196, 255, 0.18) 48%,
    rgba(110, 196, 255, 0) 100%
  );
  filter: blur(10px);
  animation: signalScan 5.8s linear infinite;
  pointer-events: none;
}

.signal-recu-glitch {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 14, 30, 0.72);
  border: 1px solid rgba(111, 179, 255, 0.3);
  color: #dff4ff;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(79, 168, 255, 0.16);
  backdrop-filter: blur(8px);
  animation: signalGlitch 2.8s infinite;
}

.signal-recu-kicker {
  margin: 4px 0 18px;
  color: #8fd1ff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-recu-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.98;
  color: #f4f8ff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(86, 160, 255, 0.10);
}

.signal-recu-lead {
  max-width: 850px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #d8e8ff;
  margin-bottom: 18px;
}

.signal-recu-panel {
  margin: 22px 0 28px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 22, 45, 0.95), rgba(8, 18, 38, 0.92));
  border: 1px solid rgba(82, 133, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.signal-recu-panel p {
  margin: 0 0 14px;
  color: #dbe9ff;
  line-height: 1.8;
}

.signal-recu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}

.signal-recu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.signal-recu-btn:hover {
  transform: translateY(-2px);
}

.signal-recu-btn-primary {
  color: #eef8ff;
  background: linear-gradient(135deg, #0d5eff 0%, #0ed2ff 100%);
  box-shadow: 0 10px 26px rgba(19, 133, 255, 0.28);
}

.signal-recu-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.24) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.signal-recu-btn-primary:hover::after {
  transform: translateX(130%);
}

.signal-recu-btn-secondary {
  color: #cce6ff;
  background: rgba(6, 17, 37, 0.72);
  border: 1px solid rgba(93, 153, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.signal-recu-btn-secondary:hover {
  border-color: rgba(123, 184, 255, 0.55);
  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}

.signal-recu-note {
  margin-top: 12px;
  color: #8ea7c6;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

@keyframes signalScan {
  0%   { transform: translateY(-170%); opacity: 0; }
  10%  { opacity: 1; }
  50%  { opacity: 1; }
  100% { transform: translateY(780%); opacity: 0; }
}

@keyframes signalGlitch {
  0%, 88%, 100% {
    transform: translate(0, 0);
    text-shadow:
      0 0 10px rgba(115, 205, 255, 0.20),
      0 0 18px rgba(115, 205, 255, 0.12);
  }
  90% {
    transform: translate(-1px, 0);
    text-shadow:
      2px 0 rgba(255, 66, 142, 0.35),
      -2px 0 rgba(71, 214, 255, 0.35),
      0 0 16px rgba(115, 205, 255, 0.20);
  }
  92% {
    transform: translate(1px, -1px);
  }
  94% {
    transform: translate(-1px, 1px);
  }
}

@media (max-width: 720px) {
  .signal-recu-page {
    padding: 28px 14px 64px;
  }

  .signal-recu-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .signal-recu-glitch {
    top: 14px;
    right: 14px;
    font-size: 0.72rem;
    padding: 8px 11px;
  }

  .signal-recu-btn {
    width: 100%;
    min-width: 0;
  }

  .signal-recu-page h1 {
    font-size: 2.3rem;
  }
}

/* =========================================================
   NEWSLETTER — PREMIUM POLISH
   ========================================================= */

.messages-hero {
  position: relative;
  isolation: isolate;
}

.messages-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.18) 0%, rgba(2, 8, 23, 0.42) 100%),
    radial-gradient(circle at 50% 22%, rgba(120, 190, 255, 0.22) 0%, rgba(120, 190, 255, 0) 48%);
  pointer-events: none;
  z-index: 0;
}

.messages-hero > * {
  position: relative;
  z-index: 1;
}

/* image plus lumineuse */
.messages-hero-image,
.messages-hero img,
.messages-visual img,
.newsletter-visual img {
  filter: brightness(1.16) contrast(1.08) saturate(1.08);
}

/* scan plus visible */
.messages-hero .scan-line,
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 12%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0.25) 88%,
    rgba(255,255,255,0) 100%
  );
  box-shadow:
    0 0 12px rgba(150, 220, 255, 0.55),
    0 0 26px rgba(110, 190, 255, 0.35),
    0 0 40px rgba(255,255,255,0.15);
  opacity: 0.95;
  animation: premiumScan 4.6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes premiumScan {
  0% {
    top: 10%;
    opacity: 0;
    transform: scaleX(0.92);
  }
  8% {
    opacity: 0.95;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  92% {
    opacity: 0.9;
  }
  100% {
    top: 88%;
    opacity: 0;
    transform: scaleX(0.94);
  }
}

/* panneau formulaire premium */
.newsletter-form-wrap,
.messages-form-wrap,
.newsletter-panel,
.messages-panel,
.form-panel {
  background: linear-gradient(180deg, rgba(4, 16, 42, 0.88) 0%, rgba(2, 10, 28, 0.92) 100%);
  border: 1px solid rgba(76, 130, 210, 0.28);
  border-radius: 22px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(80, 150, 255, 0.04);
  backdrop-filter: blur(10px);
}

/* champs du formulaire */
.newsletter-form-wrap input,
.messages-form-wrap input,
.newsletter-panel input,
.messages-panel input,
.form-panel input {
  background: rgba(7, 18, 44, 0.88);
  border: 1px solid rgba(118, 173, 255, 0.34);
  color: #eef6ff;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.newsletter-form-wrap input::placeholder,
.messages-form-wrap input::placeholder,
.newsletter-panel input::placeholder,
.messages-panel input::placeholder,
.form-panel input::placeholder {
  color: rgba(221, 234, 255, 0.55);
}

.newsletter-form-wrap input:focus,
.messages-form-wrap input:focus,
.newsletter-panel input:focus,
.messages-panel input:focus,
.form-panel input:focus {
  outline: none;
  border-color: rgba(136, 196, 255, 0.85);
  box-shadow:
    0 0 0 4px rgba(90, 170, 255, 0.12),
    0 0 24px rgba(90, 170, 255, 0.16);
  transform: translateY(-1px);
}

/* boutons premium — même famille que signal-recu */
.site-nav a,
.newsletter-form-wrap button,
.messages-form-wrap button,
.newsletter-panel button,
.messages-panel button,
.form-panel button,
.button,
.btn,
a.button,
a.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 170, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(20, 58, 120, 0.96) 0%, rgba(9, 28, 66, 0.96) 100%);
  color: #f4f8ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(120, 190, 255, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover,
.newsletter-form-wrap button:hover,
.messages-form-wrap button:hover,
.newsletter-panel button:hover,
.messages-panel button:hover,
.form-panel button:hover,
.button:hover,
.btn:hover,
a.button:hover,
a.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 204, 255, 0.62);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(94, 176, 255, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.site-nav a:active,
.newsletter-form-wrap button:active,
.messages-form-wrap button:active,
.newsletter-panel button:active,
.messages-panel button:active,
.form-panel button:active,
.button:active,
.btn:active,
a.button:active,
a.btn:active {
  transform: translateY(0);
}

/* petit raffinement sur le bloc principal */
.newsletter-form-wrap h3,
.messages-form-wrap h3,
.newsletter-panel h3,
.messages-panel h3,
.form-panel h3 {
  color: #f5f8ff;
  letter-spacing: 0.01em;
}

.newsletter-form-wrap p,
.messages-form-wrap p,
.newsletter-panel p,
.messages-panel p,
.form-panel p,
.newsletter-form-wrap li,
.messages-form-wrap li,
.newsletter-panel li,
.messages-panel li,
.form-panel li {
  color: rgba(232, 241, 255, 0.88);
}

@media (max-width: 768px) {
  .newsletter-form-wrap,
  .messages-form-wrap,
  .newsletter-panel,
  .messages-panel,
  .form-panel {
    border-radius: 18px;
  }

  .site-nav a,
  .newsletter-form-wrap button,
  .messages-form-wrap button,
  .newsletter-panel button,
  .messages-panel button,
  .form-panel button,
  .button,
  .btn,
  a.button,
  a.btn {
    min-height: 46px;
    padding: 0.85rem 1.15rem;
  }
}

/* =========================
   NEWSLETTER PREMIUM FIX
   scan + lisibilité
========================= */

.messages-hero,
.newsletter-hero,
.messages-page-hero {
  position: relative;
  overflow: hidden;
}

/* couche sombre pour garder le texte ultra lisible */
.messages-hero::before,
.newsletter-hero::before,
.messages-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(2, 8, 20, 0.36) 0%,
      rgba(2, 8, 20, 0.20) 28%,
      rgba(2, 8, 20, 0.30) 55%,
      rgba(2, 8, 20, 0.48) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(80, 170, 255, 0.10) 0%,
      rgba(0, 0, 0, 0) 48%
    );
  pointer-events: none;
  z-index: 1;
}

/* ligne de scan */
.messages-hero::after,
.newsletter-hero::after,
.messages-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  top: -180px;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.03) 18%,
      rgba(180,220,255,0.14) 40%,
      rgba(255,255,255,0.30) 50%,
      rgba(150,210,255,0.14) 62%,
      rgba(255,255,255,0.03) 82%,
      rgba(255,255,255,0) 100%
    );
  box-shadow:
    0 0 18px rgba(150, 220, 255, 0.12),
    0 0 40px rgba(120, 200, 255, 0.08);
  mix-blend-mode: screen;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
  animation: kodeScanSweep 7.5s linear infinite;
}

/* s'assurer que le contenu reste au-dessus */
.messages-hero > *,
.newsletter-hero > *,
.messages-page-hero > * {
  position: relative;
  z-index: 3;
}

/* renfort lisibilité texte */
.messages-hero h1,
.newsletter-hero h1,
.messages-page-hero h1,
.messages-hero p,
.newsletter-hero p,
.messages-page-hero p,
.messages-hero .hero-kicker,
.newsletter-hero .hero-kicker,
.messages-page-hero .hero-kicker {
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(0, 0, 0, 0.18);
}

/* animation du scan */
@keyframes kodeScanSweep {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  6% {
    opacity: 0.95;
  }
  50% {
    opacity: 1;
  }
  94% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(1200px);
    opacity: 0;
  }
}

/* ============================= */
/* 🔥 PAGE À PROPOS — PREMIUM */
/* ============================= */

.about-hero {
  padding: 120px 20px 60px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0,150,255,0.15), transparent 70%);
}

.about-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: #6aaeff;
  margin-bottom: 10px;
}

.about-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 18px;
  opacity: 0.8;
}

.about-block {
  padding: 80px 20px;
  text-align: center;
}

.about-container {
  max-width: 700px;
  margin: auto;
}

.about-quote {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.about-highlight {
  font-size: 22px;
  color: #6aaeff;
  text-shadow: 0 0 10px rgba(106,174,255,0.6);
}

/* 🔳 GRID */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 60px 20px;
}

.about-card {
  padding: 30px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,150,255,0.2);
}

/* 👤 AUTEUR */

.about-author {
  padding: 100px 20px;
}

.about-author-inner {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-author-img img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0,150,255,0.4);
  transition: 0.4s;
}

.about-author-img img:hover {
  transform: scale(1.03);
  box-shadow:
    0 20px 55px rgba(0,0,0,0.45),
    0 0 24px rgba(0,150,255,0.12);
}

.about-author-text h2 {
  margin-bottom: 20px;
}

/* ✨ VISION */

.about-vision {
  padding: 80px 20px;
  text-align: center;
}

/* 🚀 CTA */

.about-cta {
  padding: 100px 20px;
  text-align: center;
}

.about-cta-inner {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 🔘 BOUTONS PREMIUM */

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* bouton principal */
.btn-primary {
  background: linear-gradient(135deg, #00cfff, #0066ff);
  color: white;
  box-shadow: 0 0 20px rgba(0,150,255,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,150,255,0.8);
}

/* bouton secondaire */
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.2);
  color: #cfdfff;
}

.btn-secondary:hover {
  border-color: #6aaeff;
  color: white;
  box-shadow: 0 0 15px rgba(106,174,255,0.4);
}

/* 📱 RESPONSIVE */

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-author-inner {
    flex-direction: column;
    text-align: center;
  }

}

/* =========================================================
   À PROPOS — POLISH ULTRA PREMIUM
========================================================= */

.about-page {
  position: relative;
}

.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(70, 145, 255, 0.14), transparent 32%),
    radial-gradient(circle at 20% 70%, rgba(0, 100, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 65%, rgba(0, 180, 255, 0.06), transparent 24%);
  z-index: 0;
}

.about-hero,
.about-block,
.about-grid,
.about-author,
.about-vision,
.about-cta {
  position: relative;
  z-index: 1;
}

.about-hero {
  padding: 140px 24px 78px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(22, 96, 210, 0.18), transparent 62%);
}

.about-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #79b8ff;
  text-shadow: 0 0 12px rgba(121, 184, 255, 0.35);
}

.about-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #f4f8ff;
  text-shadow: 0 0 28px rgba(70, 145, 255, 0.14);
}

.about-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.75;
  color: rgba(235, 243, 255, 0.82);
}

.about-block {
  padding: 86px 24px 40px;
  text-align: center;
}

.about-container {
  max-width: 880px;
  margin: 0 auto;
}

.about-quote {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(224, 234, 255, 0.72);
}

.about-highlight {
  max-width: 780px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.65;
  font-weight: 700;
  color: #cfe4ff;
  text-shadow: 0 0 16px rgba(106, 174, 255, 0.20);
}

/* GRID */

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 42px 24px 94px;
}

.about-card {
  position: relative;
  min-height: 210px;
  padding: 34px 28px 30px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 24, 56, 0.94), rgba(4, 12, 30, 0.96));
  border: 1px solid rgba(104, 156, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(30, 76, 160, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(108, 179, 255, 0.10), transparent 32%, transparent 70%, rgba(0, 153, 255, 0.06));
  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(111, 179, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 28px 60px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(58, 130, 255, 0.10);
}

.about-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
  color: #f4f8ff;
}

.about-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(220, 232, 255, 0.76);
}

/* AUTEUR */

.about-author {
  padding: 18px 24px 96px;
}

.about-author-inner {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 20, 48, 0.95), rgba(5, 11, 28, 0.98));
  border: 1px solid rgba(97, 152, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 26px 80px rgba(0, 0, 0, 0.30);
}

.about-author-img::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.20), transparent 62%);
  filter: blur(18px);
  z-index: 0;
}

.about-author-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(111, 177, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 18px 60px rgba(0,0,0,0.34),
    0 0 35px rgba(43, 144, 255, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-author-img img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 24px 70px rgba(0,0,0,0.38),
    0 0 42px rgba(43, 144, 255, 0.26);
}

.about-author-text h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f7faff;
  text-shadow: 0 6px 24px rgba(120, 180, 255, 0.12);
}

.about-author-text p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  max-width: 520px;
  color: rgba(220, 235, 255, 0.78);
}

/* Ajustement premium boutons bas de section */
.about-cta .kk-btn {
  min-width: 240px;
}

/* VISION */

.about-vision {
  padding: 6px 24px 48px;
  text-align: center;
}

.about-vision h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 44px);
  color: #f5f8ff;
}

.about-vision p {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(228, 236, 255, 0.78);
}

/* CTA */

.about-cta {
  padding: 50px 24px 120px;
  text-align: center;
}

.about-cta-inner {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* BOUTONS — STANDARD OFFICIEL DU SITE */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.13) 30%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  color: #f7fbff;
  border: 1px solid rgba(113, 190, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(20, 62, 128, 0.96), rgba(8, 28, 70, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 1px rgba(70, 145, 255, 0.08),
    0 14px 34px rgba(0, 40, 120, 0.38),
    0 0 24px rgba(49, 136, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 0 1px rgba(70, 145, 255, 0.12),
    0 18px 38px rgba(0, 40, 120, 0.42),
    0 0 28px rgba(49, 136, 255, 0.28);
}

.btn-secondary {
  color: #dceaff;
  border: 1px solid rgba(111, 177, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 19, 46, 0.90), rgba(5, 12, 30, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 177, 255, 0.36);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(43, 144, 255, 0.14);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-author-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .about-author-img {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .about-hero {
    padding: 118px 20px 64px;
  }

  .about-author-inner {
    padding: 28px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================================
   À PROPOS — ANIMATIONS PREMIUM
========================================================= */

/* Lévitation premium image auteur */
.about-author-img {
  position: relative;
  isolation: isolate;
}

.about-author-img::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 72%;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(60, 140, 255, 0.28) 0%,
    rgba(60, 140, 255, 0.08) 45%,
    transparent 75%
  );
  filter: blur(18px);
  opacity: 0.7;
  animation: aboutAuthorShadow 6.5s ease-in-out infinite;
  z-index: 0;
}

.about-author-img img {
  animation: aboutAuthorFloat 6.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.about-author-img::before {
  animation: aboutAuthorGlow 6.5s ease-in-out infinite;
}

/* Reveal doux */
.about-card,
.about-vision,
.about-cta,
.about-author-inner {
  animation: aboutFadeUp 1s ease both;
}

.about-card:nth-child(1) { animation-delay: 0.08s; }
.about-card:nth-child(2) { animation-delay: 0.18s; }
.about-card:nth-child(3) { animation-delay: 0.28s; }

/* Ligne lumineuse premium limitée EXCLUSIVEMENT à la carte auteur */
.about-author-inner {
  position: relative;
  overflow: hidden;
}

.about-author-inner::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 120px;
  left: -140px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(120, 190, 255, 0.00) 14%,
    rgba(120, 190, 255, 0.05) 28%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(120, 190, 255, 0.08) 72%,
    rgba(120, 190, 255, 0.00) 86%,
    transparent 100%
  );
  filter: blur(10px);
  opacity: 0;
  animation: aboutLaserSweep 8.2s ease-in-out infinite;
}

/* Keyframes */
@keyframes aboutAuthorFloat {
  0% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-8px) scale(1.004);
  }
  50% {
    transform: translateY(-14px) scale(1.008);
  }
  75% {
    transform: translateY(-8px) scale(1.004);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

@keyframes aboutAuthorGlow {
  0% {
    opacity: 0.55;
    transform: scale(0.98);
    filter: blur(18px);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
    filter: blur(24px);
  }
  100% {
    opacity: 0.55;
    transform: scale(0.98);
    filter: blur(18px);
  }
}

@keyframes aboutAuthorShadow {
  0% {
    transform: translateX(-50%) scaleX(0.96);
    opacity: 0.48;
  }
  50% {
    transform: translateX(-50%) scaleX(1.06);
    opacity: 0.72;
  }
  100% {
    transform: translateX(-50%) scaleX(0.96);
    opacity: 0.48;
  }
}

@keyframes aboutFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aboutLaserSweep {
  0% {
    left: -140px;
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  18% {
    opacity: 0.58;
  }
  46% {
    left: calc(100% + 20px);
    opacity: 0.52;
  }
  54% {
    left: calc(100% + 20px);
    opacity: 0;
  }
  100% {
    left: calc(100% + 20px);
    opacity: 0;
  }
}

/* Respect accessibilité */
@media (prefers-reduced-motion: reduce) {
  .about-author-img img,
  .about-author-img::before,
  .about-author-img::after,
  .about-author-inner::before,
  .about-card,
  .about-vision,
  .about-cta,
  .about-author-inner {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   KODE & KISS — BOUTONS PREMIUM STANDARD DU SITE
   ========================================================= */

.kk-btn,
a.kk-btn {
  --kk-border: rgba(86, 154, 255, 0.28);
  --kk-glow: rgba(60, 140, 255, 0.24);
  --kk-text: #dff3ff;
  --kk-bg-top: rgba(8, 20, 48, 0.92);
  --kk-bg-bottom: rgba(5, 12, 30, 0.96);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 18px;
  border: 1px solid var(--kk-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00)),
    linear-gradient(180deg, var(--kk-bg-top), var(--kk-bg-bottom));
  color: var(--kk-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.015),
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(85, 140, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    background 0.28s ease;
}

.kk-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255,255,255,0.00) 20%,
      rgba(255,255,255,0.18) 48%,
      rgba(255,255,255,0.00) 76%,
      transparent 100%
    );
  transform: translateX(-140%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 0;
}

.kk-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(18px - 1px);
  background:
    radial-gradient(circle at top center, rgba(120, 190, 255, 0.12), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.kk-btn:hover,
a.kk-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 180, 255, 0.50);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 18px 40px rgba(0, 0, 0, 0.40),
    0 0 28px var(--kk-glow),
    0 0 0 1px rgba(120, 180, 255, 0.10);
}

.kk-btn:hover::before,
a.kk-btn:hover::before {
  transform: translateX(140%);
}

.kk-btn:active,
a.kk-btn:active {
  transform: translateY(0);
}

.kk-btn span,
a.kk-btn span {
  position: relative;
  z-index: 1;
}

.kk-btn-primary,
a.kk-btn-primary {
  background:
    linear-gradient(180deg, rgba(77, 154, 255, 0.22), rgba(77, 154, 255, 0.03)),
    linear-gradient(180deg, rgba(10, 36, 84, 0.96), rgba(6, 18, 44, 0.98));
  border-color: rgba(98, 165, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 16px 36px rgba(0,0,0,0.38),
    0 0 22px rgba(57, 133, 255, 0.22);
}

.kk-btn-primary:hover,
a.kk-btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 42px rgba(0,0,0,0.40),
    0 0 34px rgba(72, 156, 255, 0.34);
}

.kk-btn-secondary,
a.kk-btn-secondary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    linear-gradient(180deg, rgba(7, 18, 42, 0.92), rgba(4, 10, 26, 0.98));
  border-color: rgba(65, 120, 210, 0.28);
}

.about-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 42px;
}

@media (max-width: 640px) {
  .about-cta {
    flex-direction: column;
  }

  .kk-btn,
  a.kk-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================================
   CHAPITRE ZÉRO — PREMIUM HERO + PAGE
   ========================================================= */

.chapter-zero-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: clip;
  background:
    radial-gradient(circle at center, rgba(21, 57, 124, 0.18), transparent 48%),
    linear-gradient(180deg, #030814 0%, #050d1c 100%);
  isolation: isolate;
}

.chapter-zero-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.chapter-zero-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  animation: chapterZeroHeroImageIn 1.8s cubic-bezier(.18,.84,.32,1) forwards;
  will-change: transform, opacity;
  opacity: 0;
}

@keyframes chapterZeroHeroImageIn {
  from {
    opacity: 0;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chapter-zero-hero__overlay-dark {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 16, 0.58) 0%, rgba(2, 6, 16, 0.38) 32%, rgba(2, 6, 16, 0.58) 100%),
    radial-gradient(circle at center, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.32) 78%);
  z-index: 1;
  pointer-events: none;
}

.chapter-zero-hero__overlay-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(110, 188, 255, 0.20) 0%, rgba(82, 152, 255, 0.09) 24%, rgba(18, 34, 66, 0.02) 48%, rgba(0,0,0,0) 72%);
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
  animation: chapterZeroPulse 5.8s ease-in-out infinite;
}

@keyframes chapterZeroPulse {
  0%, 100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}

.chapter-zero-hero__scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.chapter-zero-hero__scan::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: 18%;
  left: -24%;
  transform: skewX(-12deg);
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(180, 224, 255, 0.04) 22%,
      rgba(255,255,255,0.09) 46%,
      rgba(140, 205, 255, 0.18) 50%,
      rgba(255,255,255,0.09) 54%,
      rgba(180, 224, 255, 0.04) 78%,
      rgba(255,255,255,0) 100%
    );
  filter: blur(12px);
  opacity: 0.9;
  animation: chapterZeroScanMove 6.2s linear infinite;
}

@keyframes chapterZeroScanMove {
  0% { left: -24%; }
  100% { left: 118%; }
}

.chapter-zero-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.75) 0 0.8px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,.65) 0 0.8px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,.55) 0 0.8px, transparent 1px);
  background-size: 180px 180px, 240px 240px, 220px 220px;
  animation: chapterZeroGrainDrift 18s linear infinite;
}

@keyframes chapterZeroGrainDrift {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-8px, 6px, 0); }
  100% { transform: translate3d(0,0,0); }
}

.chapter-zero-hero__content {
  position: relative;
  z-index: 5;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 140px 28px 88px;
  text-align: center;
}

.chapter-zero-hero__kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #96d4ff;
  opacity: 0;
  transform: translateY(16px);
  animation: chapterZeroTextIn .8s ease forwards;
  animation-delay: .35s;
}

.chapter-zero-hero__title {
  margin: 0;
  font-size: clamp(58px, 9vw, 150px);
  line-height: .94;
  letter-spacing: -0.055em;
  color: #f8fbff;
  text-shadow:
    0 0 18px rgba(140, 205, 255, 0.12),
    0 0 40px rgba(55, 133, 255, 0.08);
  opacity: 0;
  transform: translateY(18px);
  animation: chapterZeroTextIn .9s ease forwards;
  animation-delay: .5s;
}

.chapter-zero-hero__lead,
.chapter-zero-hero__sub,
.chapter-zero-hero__actions {
  opacity: 0;
  transform: translateY(18px);
  animation: chapterZeroTextIn .9s ease forwards;
}

.chapter-zero-hero__lead {
  max-width: 860px;
  margin: 22px auto 0;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  color: rgba(246, 250, 255, 0.96);
  animation-delay: .7s;
}

.chapter-zero-hero__sub {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
  color: rgba(226, 236, 250, 0.86);
  animation-delay: .92s;
}

.chapter-zero-hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  animation-delay: 1.12s;
}

@keyframes chapterZeroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-zero-intro {
  position: relative;
  padding: 96px 24px 42px;
  background:
    linear-gradient(180deg, rgba(4,10,24,0.98), rgba(3,8,18,1));
}

.chapter-zero-intro__inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.chapter-zero-intro__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8dcdff;
}

.chapter-zero-intro h2 {
  margin: 0 0 28px;
  font-size: clamp(38px, 6vw, 82px);
  line-height: .96;
  letter-spacing: -0.05em;
  color: #f6f9ff;
  text-shadow: 0 0 24px rgba(69, 148, 255, 0.08);
}

.chapter-zero-intro__text p {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(223, 234, 248, 0.84);
}

.chapter-zero-intro__impact {
  color: #f6fbff !important;
  font-weight: 700;
}

.chapter-zero-panels {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 26px 24px 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(3,8,18,1), rgba(4,10,24,1));
}

.chapter-zero-panel {
  position: relative;
  padding: 28px 26px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 22, 52, 0.96), rgba(5, 11, 28, 0.98));
  border: 1px solid rgba(104, 157, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 48px rgba(0,0,0,0.24);
}

.chapter-zero-panel__index {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: #86c8ff;
}

.chapter-zero-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
  color: #f7fbff;
}

.chapter-zero-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(218, 230, 248, 0.8);
}

.chapter-zero-ground {
  padding: 0 24px 72px;
  background: linear-gradient(180deg, rgba(4,10,24,1), rgba(3,8,18,1));
}

.chapter-zero-ground__inner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 40px 42px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(73, 130, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(10, 21, 47, 0.96), rgba(4, 10, 25, 0.98));
  border: 1px solid rgba(103, 153, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.30);
}

.chapter-zero-ground__kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8dcdff;
}

.chapter-zero-ground h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  color: #f5f8ff;
  letter-spacing: -0.04em;
}

.chapter-zero-ground__inner p {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(224, 236, 255, 0.84);
}

.chapter-zero-ground__impact {
  color: #f2f7ff !important;
  font-weight: 700;
}

.chapter-zero-closing {
  padding: 20px 24px 120px;
  background:
    linear-gradient(180deg, rgba(4,10,24,1), rgba(2,6,14,1));
}

.chapter-zero-closing__inner {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
}

.chapter-zero-closing__inner p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(222, 233, 250, 0.84);
}

.chapter-zero-closing__strong {
  color: #f7fbff !important;
  font-weight: 700;
}

.chapter-zero-closing__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

@media (max-width: 980px) {
  .chapter-zero-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .chapter-zero-hero {
    min-height: 88svh;
  }

  .chapter-zero-hero__content {
    padding: 116px 20px 70px;
  }

  .chapter-zero-hero__lead {
    font-size: 20px;
  }

  .chapter-zero-hero__sub {
    font-size: 16px;
    line-height: 1.7;
  }

  .chapter-zero-intro {
    padding-top: 72px;
  }

  .chapter-zero-intro__text p,
  .chapter-zero-ground__inner p,
  .chapter-zero-closing__inner p {
    font-size: 17px;
    line-height: 1.8;
  }

  .chapter-zero-ground__inner {
    padding: 30px 24px;
  }
}

@media (max-width: 640px) {
  .chapter-zero-hero__actions,
  .chapter-zero-closing__actions {
    flex-direction: column;
    align-items: center;
  }

  .chapter-zero-hero__actions .kk-btn,
  .chapter-zero-closing__actions .kk-btn {
    width: 100%;
    max-width: 340px;
  }
}

/* =========================================================
   PAGES STANDARD TEMPORAIRES
   ========================================================= */

.standard-page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 120px 24px 120px;
}

.standard-page-shell .page-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8dcdff;
}

.standard-page-shell h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f5f8ff;
}

.standard-page-shell p {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(223, 234, 248, 0.82);
}

.chapitre-zero-text {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0;
}

.chapitre-zero-text p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 22px;
  color: rgba(225,235,255,0.82);
}

.cz-intro {
  font-size: 22px;
  color: #ffffff;
  font-weight: 600;
}

.cz-focus {
  color: #ffffff;
  font-weight: 600;
}

.cz-hook {
  font-size: 20px;
  color: #9fd3ff;
}

.cz-final {
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
}

.chapitre-zero-cta {
  margin-top: 48px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.lien-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 20px;
}

.lien-hero p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(220,230,255,0.7);
  margin-bottom: 18px;
}

.lien-intro {
  font-size: 22px;
  color: #ffffff;
  font-weight: 600;
}

.lien-shift {
  margin-top: 40px;
}

.lien-focus {
  color: #9fd3ff;
  font-weight: 600;
}

.lien-form {
  margin-top: 60px;
}

.lien-form input {
  width: 100%;
  max-width: 360px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(100,150,255,0.2);
  background: rgba(10,20,40,0.9);
  color: #fff;
  margin-bottom: 16px;
}

/* =========================================================
   MOBILE UX GLOBAL — KODE & KISS
========================================================= */

@media (max-width: 768px) {

  /* Texte plus lisible */
  .chapitre-zero-text p {
    font-size: 16px;
    line-height: 1.85;
  }

  /* Marges confort */
  .chapitre-zero-text {
    padding: 20px 12px;
  }

  /* CTA empilés */
  .chapitre-zero-cta {
    flex-direction: column;
    align-items: center;
  }

  /* Boutons full width */
  .kk-btn {
    width: 100%;
    max-width: 320px;
  }

  /* Gros titres */
  h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

}

.chapitre-zero-text p {
  max-width: 680px;
}

/* =========================================================
   PAGE — LE LIEN
========================================================= */

.lien-page {
  padding: 72px 20px 110px;
}

.lien-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(38, 92, 190, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(7, 16, 38, 0.98), rgba(4, 10, 24, 0.985));
  border: 1px solid rgba(103, 154, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 28px 80px rgba(0, 0, 0, 0.34);
}

.lien-hero {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 56px;
}

.lien-hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(101, 160, 255, 0.16);
  background: rgba(4, 10, 24, 0.88);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.34),
    0 0 0 1px rgba(90, 145, 255, 0.04);
}

.lien-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(118, 200, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.02), rgba(3, 8, 20, 0.20));
  pointer-events: none;
  z-index: 1;
}

.lien-hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  left: -20%;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,0.00) 15%,
      rgba(170, 220, 255, 0.16) 48%,
      rgba(255,255,255,0.00) 82%,
      transparent 100%
    );
  filter: blur(1px);
  opacity: 0.0;
  pointer-events: none;
  z-index: 2;
  animation: lienImageSweep 8s ease-in-out infinite;
}

.lien-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.01);
}

.lien-hero-copy {
  max-width: 520px;
}

.lien-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #87c8ff;
  font-weight: 700;
}

.lien-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #f7faff;
  text-shadow: 0 0 26px rgba(110, 173, 255, 0.08);
}

.lien-lead {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.55;
  color: #f2f7ff;
  font-weight: 600;
}

.lien-hero-copy p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(225, 235, 255, 0.78);
}

.lien-manifesto {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
  padding: 10px 0 0;
}

.lien-manifesto p {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.75;
  color: rgba(236, 243, 255, 0.84);
}

.lien-emphasis {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(117, 184, 255, 0.08);
}

.lien-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 58px;
}

.lien-card {
  padding: 26px 24px 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 24, 58, 0.94), rgba(5, 12, 30, 0.98));
  border: 1px solid rgba(103, 154, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 16px 40px rgba(0, 0, 0, 0.22);
}

.lien-card-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8dd0ff;
  font-weight: 700;
}

.lien-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f5f8ff;
}

.lien-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(225, 235, 255, 0.76);
}

.lien-closing {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-top: 8px;
}

.lien-closing p {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.75;
  color: rgba(232, 240, 255, 0.80);
}

.lien-final {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 6px;
}

.lien-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.lien-actions .kk-btn {
  min-width: 250px;
}

@keyframes lienImageSweep {
  0% {
    left: -20%;
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  52% {
    left: 104%;
    opacity: 0.72;
  }
  60% {
    opacity: 0;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .lien-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lien-hero-copy {
    max-width: none;
    text-align: center;
  }

  .lien-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lien-page {
    padding: 52px 14px 84px;
  }

  .lien-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .lien-hero-copy h1 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .lien-lead {
    font-size: 20px;
  }

  .lien-hero-copy p,
  .lien-card p,
  .lien-closing p {
    font-size: 16px;
    line-height: 1.8;
  }

  .lien-manifesto p {
    font-size: 19px;
    line-height: 1.75;
  }

  .lien-card h2 {
    font-size: 24px;
  }

  .lien-actions {
    flex-direction: column;
  }

  .lien-actions .kk-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lien-hero-media::after {
    animation: none !important;
  }
}

.lien-image-frame:hover img {
  transform: scale(1.035);
  transition: transform 1.4s ease;
}

.lien-hero-copy h1 {
  position: relative;
}

.lien-hero-copy h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 60px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(120,180,255,0.6), transparent);
  opacity: 0.7;
}

.lien-panel {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lien-panel:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 50px rgba(0,0,0,0.35),
    0 0 22px rgba(80,140,255,0.15);
}

.lien-actions-premium .kk-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

/* =========================================================
   FAQ — PREMIUM
========================================================= */

.faq-hero {
  position: relative;
  padding: 120px 20px 88px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 10, 24, 0.78), rgba(4, 10, 24, 0.94)),
    url("/static/img/faq-bg.jpg") center/cover no-repeat;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(88, 165, 255, 0.10), transparent 34%),
    radial-gradient(circle at 52% 44%, rgba(120, 225, 255, 0.05), transparent 28%);
  pointer-events: none;
  animation: faqPulse 8s ease-in-out infinite;
}

.faq-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 25, 0.32), rgba(5, 10, 25, 0.78));
  z-index: 0;
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.faq-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8fd1ff;
}

.faq-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #f7fbff;
  text-shadow: 0 0 22px rgba(103, 164, 255, 0.10);
}

.faq-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.85;
  color: rgba(229, 237, 255, 0.82);
}

.faq-list {
  max-width: 920px;
  margin: 56px auto 90px;
  padding: 0 20px;
}

.faq-item {
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid rgba(100, 154, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 21, 50, 0.94), rgba(4, 10, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 16px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(120, 180, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 20px 44px rgba(0, 0, 0, 0.28),
    0 10px 30px rgba(88,165,255,0.15),
    0 0 24px rgba(58, 126, 255, 0.10);
}

.faq-question {
  width: 100%;
  padding: 24px 26px;
  background: transparent;
  border: none;
  color: #eef5ff;
  text-align: left;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: #8fd1ff;
  transition: transform 0.28s ease, color 0.28s ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  color: rgba(223, 233, 255, 0.76);
  font-size: 17px;
  line-height: 1.85;
  transition:
    max-height 0.42s ease,
    padding 0.42s ease,
    opacity 0.32s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding: 0 26px 24px;
  opacity: 1;
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 92px 18px 68px;
  }

  .faq-hero h1 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .faq-sub {
    font-size: 17px;
    line-height: 1.8;
  }

  .faq-list {
    padding: 0 14px;
    margin: 40px auto 72px;
  }

  .faq-question {
    padding: 20px 20px;
    font-size: 18px;
  }

  .faq-question::after {
    right: 18px;
  }

  .faq-answer {
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.8;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 320px;
  }
}

@keyframes faqPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

.universe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(120,225,255,0.05), transparent);
  animation: cityScan 8s linear infinite;
  pointer-events: none;
}

@keyframes cityScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.link-panel {
  backdrop-filter: blur(10px);
}

.about-section {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.about-section p {
  opacity: 0.85;
  line-height: 1.7;
}

.chapter-zero-intro__inner,
.chapter-zero-ground__inner,
.chapter-zero-closing__inner {
  position: relative;
}

.chapter-zero-intro__inner::after,
.chapter-zero-ground__inner::after,
.chapter-zero-closing__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(88,165,255,0.05), transparent 70%);
  pointer-events: none;
  animation: subtleScan 10s linear infinite;
}

@keyframes subtleScan {
  0% { opacity: 0.2; }
  50% { opacity: 0.5; }
  100% { opacity: 0.2; }
}

.character-section {
  position: relative;
}

.character-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(88,165,255,0.05), transparent 60%);
  pointer-events: none;
}

.chapter-zero-intro__inner,
.chapter-zero-ground__inner,
.chapter-zero-closing__inner {
  position: relative;
  overflow: hidden;
}

.chapter-zero-intro__inner::after,
.chapter-zero-ground__inner::after,
.chapter-zero-closing__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(88,165,255,0.05), transparent 70%);
  pointer-events: none;
  animation: subtleScan 10s linear infinite;
}

@keyframes subtleScan {
  0% { opacity: 0.2; }
  50% { opacity: 0.5; }
  100% { opacity: 0.2; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes storyDrift {
  0% {
    transform: translateY(-3%) scaleY(1);
    opacity: 0.34;
  }
  50% {
    transform: translateY(3%) scaleY(1.02);
    opacity: 0.58;
  }
  100% {
    transform: translateY(-3%) scaleY(1);
    opacity: 0.34;
  }
}

.chapter-zero-intro__inner,
.chapter-zero-ground__inner,
.chapter-zero-closing__inner {
  position: relative;
  overflow: hidden;
}

.chapter-zero-intro__inner::after,
.chapter-zero-ground__inner::after,
.chapter-zero-closing__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(88,165,255,0.06), transparent 68%);
  pointer-events: none;
  animation: chapterZeroBreath 9s ease-in-out infinite;
}

.chapter-zero-hero__title,
.chapter-zero-intro h2,
.chapter-zero-ground h2 {
  text-shadow:
    0 0 18px rgba(88,165,255,0.10),
    0 0 34px rgba(88,165,255,0.06);
}

@keyframes chapterZeroBreath {
  0% {
    opacity: 0.22;
    transform: scale(1);
  }
  50% {
    opacity: 0.46;
    transform: scale(1.015);
  }
  100% {
    opacity: 0.22;
    transform: scale(1);
  }
}

/* =========================================================
   PERSONNAGES — PREMIUM ULTRA KATANA
   ========================================================= */

.characters-page {
  background:
    radial-gradient(circle at 14% 18%, rgba(67, 136, 255, 0.08), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(255, 88, 160, 0.06), transparent 20%),
    linear-gradient(180deg, #040912 0%, #030814 100%);
  position: relative;
  overflow-x: hidden;
}

.characters-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(100, 170, 255, 0.06), transparent 22%),
    radial-gradient(circle at 20% 72%, rgba(60, 120, 255, 0.05), transparent 24%),
    radial-gradient(circle at 82% 70%, rgba(110, 210, 255, 0.04), transparent 22%);
  z-index: 0;
}

.characters-hero,
.character-section,
.characters-link,
.page-content {
  position: relative;
  z-index: 1;
}

.characters-hero {
  position: relative;
  padding: 128px 20px 86px;
  text-align: center;
  overflow: hidden;
}

.characters-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 17, 38, 0.22), rgba(9, 17, 38, 0.00)),
    radial-gradient(circle at center, rgba(62, 132, 255, 0.10), transparent 54%);
  pointer-events: none;
}

.characters-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(96, 175, 255, 0.10), transparent 42%);
  pointer-events: none;
  animation: charactersHeroBreathe 8s ease-in-out infinite;
}

@keyframes charactersHeroBreathe {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

.characters-hero-inner {
  position: relative;
  z-index: 1;
}

.characters-kicker {
  color: #9ecfff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.characters-hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  margin: 0 0 18px;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-shadow:
    0 0 16px rgba(76, 201, 240, 0.12),
    0 0 34px rgba(76, 201, 240, 0.08);
}

.characters-sub {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(221, 231, 246, 0.86);
  line-height: 1.85;
  font-size: 1.1rem;
}

.character-section {
  position: relative;
  padding: 76px 0;
}

.character-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.character-section-lily::before {
  background:
    radial-gradient(circle at 28% 46%, rgba(95, 175, 255, 0.07), transparent 34%);
}

.character-section-marc::before {
  background:
    radial-gradient(circle at 72% 46%, rgba(90, 160, 255, 0.05), transparent 34%);
}

.character-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
  align-items: center;
  gap: 72px;
}

.character-section.reverse .character-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 460px);
}

.character-image {
  display: flex;
  justify-content: center;
}

.character-image-shell {
  position: relative;
  width: min(100%, 430px);
  border-radius: 26px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(10, 24, 56, 0.92), rgba(4, 12, 30, 0.96));
  border: 1px solid rgba(104, 156, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.34);
  overflow: hidden;
}

.character-image-shell::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 30px;
  z-index: 0;
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.78;
}

.character-image-lily .character-image-shell::before {
  background: radial-gradient(circle, rgba(100, 195, 255, 0.28) 0%, rgba(100, 195, 255, 0.00) 62%);
  animation: lilyAuraPulse 7.5s ease-in-out infinite;
}

.character-image-marc .character-image-shell::before {
  background: radial-gradient(circle, rgba(120, 180, 255, 0.18) 0%, rgba(120, 180, 255, 0.00) 62%);
  animation: marcAuraPulse 8.5s ease-in-out infinite;
}

@keyframes lilyAuraPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes marcAuraPulse {
  0%, 100% {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.03);
  }
}

.character-image-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  left: -22%;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,0.00) 20%,
      rgba(180, 225, 255, 0.14) 48%,
      rgba(255,255,255,0.00) 76%,
      transparent 100%
    );
  filter: blur(1px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: characterSweep 8.4s ease-in-out infinite;
}

@keyframes characterSweep {
  0% {
    left: -22%;
    opacity: 0;
  }
  12% {
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  54% {
    left: 108%;
    opacity: 0.62;
  }
  62% {
    opacity: 0;
  }
  100% {
    left: 108%;
    opacity: 0;
  }
}

.character-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 0 40px rgba(88,165,255,0.16),
    0 18px 48px rgba(0,0,0,0.34);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
}

.character-image img:hover {
  transform: scale(1.02);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.50),
    0 0 22px rgba(120,225,255,0.10);
  filter: brightness(1.04);
}

.character-text {
  max-width: 560px;
}

.character-label {
  color: #9ecfff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 16px;
  font-weight: 700;
}

.character-text h2 {
  font-size: clamp(2.7rem, 4vw, 4rem);
  margin: 0 0 18px;
  line-height: 0.98;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-shadow: 0 0 12px rgba(76, 201, 240, 0.08);
}

.character-text p {
  color: rgba(220, 231, 246, 0.82);
  line-height: 1.92;
  margin: 0 0 18px;
  font-size: 1.03rem;
}

.character-highlight {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 24px !important;
}

.characters-link {
  padding: 92px 20px 42px;
}

.characters-link-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 42px 34px 38px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(74, 146, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(9, 21, 50, 0.94), rgba(4, 10, 24, 0.98));
  border: 1px solid rgba(104, 156, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.28);
}

.characters-link h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0 0 18px;
  line-height: 0.98;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.characters-link p {
  color: rgba(220, 231, 246, 0.80);
  line-height: 1.85;
  margin: 0 0 14px;
  font-size: 1.06rem;
}

.link-highlight {
  color: #dff3ff !important;
  font-size: 1.18rem !important;
  font-weight: 700;
  margin-top: 10px !important;
  text-shadow: 0 0 16px rgba(100, 180, 255, 0.10);
}

.characters-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.characters-content {
  max-width: 980px;
}

.characters-content h1 {
  display: none;
}

.characters-content h2 {
  margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

@media (max-width: 980px) {
  .character-grid,
  .character-section.reverse .character-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .character-text {
    max-width: 100%;
    text-align: center;
  }

  .character-image-shell {
    width: min(100%, 390px);
  }
}

@media (max-width: 700px) {
  .characters-hero {
    padding: 104px 18px 66px;
  }

  .characters-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .characters-sub,
  .character-text p,
  .characters-link p {
    font-size: 1rem;
    line-height: 1.82;
  }

  .characters-link-inner {
    padding: 30px 20px 28px;
  }

  .characters-actions {
    flex-direction: column;
    align-items: center;
  }

  .characters-actions .kk-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .characters-hero-glow,
  .character-image-shell::before,
  .character-image-shell::after {
    animation: none !important;
  }

  .character-image img {
    transition: none !important;
  }
}

/* =========================================================
   PERSONNAGES — FINITION PREMIUM FINALE
   ========================================================= */

/* 1) Le hero respire davantage */
.characters-hero {
  padding: 138px 20px 96px;
}

.characters-hero-inner {
  max-width: 980px;
}

.characters-sub {
  max-width: 820px;
  font-size: 1.16rem;
  line-height: 1.9;
}

/* 2) Lily / Marc : meilleurs équilibres image-texte */
.character-section {
  padding: 92px 0;
}

.character-grid {
  gap: 84px;
}

.character-image-shell {
  width: min(100%, 390px);
}

.character-text {
  max-width: 620px;
}

.character-text h2 {
  font-size: clamp(3rem, 4.3vw, 4.4rem);
  margin-bottom: 22px;
}

.character-text p {
  font-size: 1.08rem;
  line-height: 1.95;
  color: rgba(226, 235, 248, 0.86);
}

.character-highlight {
  font-size: 1.1rem;
  line-height: 1.9;
}

/* 3) Un peu plus de noblesse dans les portraits */
.character-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* 4) Le bloc “Le lien” : plus prestigieux */
.characters-link {
  padding: 104px 20px 58px;
}

.characters-link-inner {
  max-width: 980px;
  padding: 52px 42px 46px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(88, 165, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(10, 24, 56, 0.96), rgba(4, 10, 24, 0.99));
  border: 1px solid rgba(110, 165, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 24px 70px rgba(0,0,0,0.32),
    0 0 0 1px rgba(80, 145, 255, 0.04);
}

.characters-link h2 {
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  margin-bottom: 22px;
}

.characters-link p {
  font-size: 1.08rem;
  line-height: 1.9;
}

.link-highlight {
  font-size: 1.24rem !important;
  line-height: 1.8 !important;
}

/* 5) Le content-block du bas doit mieux s’intégrer */
.characters-content.content-block {
  max-width: 940px;
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(10, 18, 38, 0.92), rgba(6, 12, 26, 0.96));
  border: 1px solid rgba(100, 154, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 20px 54px rgba(0,0,0,0.24);
}

.characters-content p,
.characters-content li {
  font-size: 1.03rem;
  line-height: 1.9;
  color: rgba(222, 232, 246, 0.82);
}

.characters-content h2 {
  font-size: 1.5rem;
  padding-top: 18px;
  margin-top: 40px;
}

/* 6) Micro raffinement : légère vibration lumineuse de fond */
.characters-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(88, 165, 255, 0.03) 20%,
      transparent 40%,
      transparent 60%,
      rgba(120, 80, 255, 0.025) 78%,
      transparent 100%
    );
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: charactersBackgroundDrift 14s ease-in-out infinite;
  z-index: 0;
}

@keyframes charactersBackgroundDrift {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.42;
  }
  50% {
    transform: translateX(18px);
    opacity: 0.72;
  }
}

/* 7) Mobile : on garde la noblesse sans casser l’UX */
@media (max-width: 980px) {
  .character-grid {
    gap: 42px;
  }

  .character-image-shell {
    width: min(100%, 360px);
  }

  .character-text {
    max-width: 100%;
  }

  .character-text p {
    font-size: 1.02rem;
    line-height: 1.86;
  }

  .characters-link-inner {
    padding: 34px 24px 30px;
  }
}

@media (max-width: 700px) {
  .characters-hero {
    padding: 112px 18px 70px;
  }

  .characters-sub {
    font-size: 1rem;
    line-height: 1.82;
  }

  .character-section {
    padding: 68px 0;
  }

  .character-text h2 {
    font-size: clamp(2.6rem, 10vw, 3.3rem);
  }

  .character-image-shell {
    width: min(100%, 320px);
    padding: 10px;
    border-radius: 22px;
  }

  .characters-link {
    padding: 78px 16px 44px;
  }

  .characters-link h2 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .characters-link p {
    font-size: 1rem;
  }

  .link-highlight {
    font-size: 1.08rem !important;
  }

  .characters-content.content-block {
    padding: 30px 20px;
  }
}

/* =========================================================
   PERSONNAGES — PATCH FINAL ULTRA PREMIUM
   ========================================================= */

/* Hero légèrement plus noble */
.characters-hero {
  padding: 142px 20px 98px;
}

.characters-hero h1 {
  font-size: clamp(4.2rem, 8vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.characters-sub {
  max-width: 860px;
  font-size: 1.14rem;
  line-height: 1.92;
  color: rgba(226, 236, 250, 0.82);
}

/* Sections personnages */
.character-section {
  padding: 96px 0;
}

.character-grid {
  gap: 88px;
  align-items: center;
}

.character-text {
  max-width: 640px;
}

.character-text h2 {
  font-size: clamp(3.2rem, 4.6vw, 4.8rem);
  line-height: 0.96;
  margin-bottom: 22px;
}

.character-text p {
  font-size: 1.08rem;
  line-height: 1.96;
  color: rgba(226, 236, 250, 0.84);
}

.character-highlight {
  font-size: 1.12rem;
  line-height: 1.92;
  color: #ffffff !important;
}

/* Portraits */
.character-image-shell {
  width: min(100%, 420px);
}

.character-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* Bloc Le lien */
.characters-link {
  padding: 108px 20px 54px;
}

.characters-link-inner {
  max-width: 980px;
  padding: 56px 44px 50px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top center, rgba(88, 165, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(11, 24, 56, 0.96), rgba(5, 11, 26, 0.99));
  border: 1px solid rgba(108, 160, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 24px 70px rgba(0,0,0,0.30),
    0 0 0 1px rgba(88, 150, 255, 0.04);
}

.characters-link h2 {
  font-size: clamp(2.9rem, 4.2vw, 4.1rem);
  margin-bottom: 20px;
}

.characters-link p {
  font-size: 1.08rem;
  line-height: 1.9;
}

.link-highlight {
  font-size: 1.22rem !important;
  line-height: 1.82 !important;
}

/* Content block final */
.characters-content.content-block {
  max-width: 980px;
  margin-top: 26px;
  padding: 52px 48px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 18, 38, 0.94), rgba(5, 11, 25, 0.98));
  border: 1px solid rgba(102, 156, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 22px 60px rgba(0,0,0,0.24);
}

.characters-content h2 {
  font-size: 1.6rem;
  margin-top: 42px;
  padding-top: 18px;
}

.characters-content p,
.characters-content li {
  font-size: 1.06rem;
  line-height: 1.95;
  color: rgba(223, 233, 247, 0.82);
}

/* Vrais boutons premium du bas du bloc */
.characters-bottom-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.characters-bottom-cta .kk-btn {
  min-width: 250px;
}

/* Léger raffinement lumineux global */
.characters-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(88, 165, 255, 0.03) 18%,
      transparent 40%,
      transparent 62%,
      rgba(120, 80, 255, 0.025) 82%,
      transparent 100%
    );
  mix-blend-mode: screen;
  opacity: 0.62;
  animation: charactersAuraDrift 14s ease-in-out infinite;
  z-index: 0;
}

@keyframes charactersAuraDrift {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.42;
  }
  50% {
    transform: translateX(16px);
    opacity: 0.70;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .character-grid {
    gap: 42px;
  }

  .character-image-shell {
    width: min(100%, 360px);
  }

  .character-text {
    max-width: 100%;
  }

  .characters-link-inner {
    padding: 36px 24px 32px;
  }

  .characters-content.content-block {
    padding: 34px 24px;
  }
}

@media (max-width: 700px) {
  .characters-hero {
    padding: 112px 18px 74px;
  }

  .characters-hero h1 {
    font-size: clamp(3rem, 12vw, 4.3rem);
  }

  .characters-sub {
    font-size: 1rem;
    line-height: 1.84;
  }

  .character-section {
    padding: 68px 0;
  }

  .character-text h2 {
    font-size: clamp(2.6rem, 10vw, 3.5rem);
  }

  .character-text p,
  .characters-content p,
  .characters-content li {
    font-size: 1rem;
    line-height: 1.85;
  }

  .characters-link {
    padding: 76px 16px 40px;
  }

  .characters-link h2 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }

  .characters-bottom-cta {
    flex-direction: column;
  }

  .characters-bottom-cta .kk-btn {
    width: 100%;
    max-width: 320px;
  }
}

.characters-content {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease;
  will-change: opacity, transform, filter;
}

.characters-content.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.characters-content h2,
.characters-content p,
.characters-content hr {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.characters-content.is-visible h2,
.characters-content.is-visible p,
.characters-content.is-visible hr {
  opacity: 1;
  transform: translateY(0);
}

.characters-content.is-visible h2:nth-of-type(1) { transition-delay: 0.10s; }
.characters-content.is-visible p:nth-of-type(1)  { transition-delay: 0.16s; }
.characters-content.is-visible p:nth-of-type(2)  { transition-delay: 0.22s; }
.characters-content.is-visible p:nth-of-type(3)  { transition-delay: 0.28s; }
.characters-content.is-visible p:nth-of-type(4)  { transition-delay: 0.34s; }

.characters-content.is-visible h2:nth-of-type(2) { transition-delay: 0.42s; }
.characters-content.is-visible p:nth-of-type(5)  { transition-delay: 0.48s; }
.characters-content.is-visible p:nth-of-type(6)  { transition-delay: 0.54s; }
.characters-content.is-visible p:nth-of-type(7)  { transition-delay: 0.60s; }
.characters-content.is-visible p:nth-of-type(8)  { transition-delay: 0.66s; }

.characters-content.is-visible h2:nth-of-type(3) { transition-delay: 0.74s; }
.characters-content.is-visible p:nth-of-type(9)  { transition-delay: 0.80s; }
.characters-content.is-visible p:nth-of-type(10) { transition-delay: 0.86s; }
.characters-content.is-visible p:nth-of-type(11) { transition-delay: 0.92s; }
.characters-content.is-visible p:nth-of-type(12) { transition-delay: 0.98s; }

.characters-content.is-visible h2:nth-of-type(4) { transition-delay: 1.06s; }
.characters-content.is-visible p:nth-of-type(13) { transition-delay: 1.12s; }
.characters-content.is-visible p:nth-of-type(14) { transition-delay: 1.18s; }
.characters-content.is-visible p:nth-of-type(15) { transition-delay: 1.24s; }

@media (prefers-reduced-motion: reduce) {
  .characters-content,
  .characters-content h2,
  .characters-content p,
  .characters-content hr {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

.characters-content {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(42px);
  filter: blur(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease,
    box-shadow 0.9s ease;
  will-change: opacity, transform, filter;
}

.characters-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 170, 255, 0.10), transparent 34%),
    radial-gradient(circle at 50% 82%, rgba(90, 145, 255, 0.05), transparent 36%);
  opacity: 0.72;
  pointer-events: none;
  animation: charactersContentBreath 7.5s ease-in-out infinite;
}

.characters-content::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  width: 14%;
  left: -20%;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(160,220,255,0.00) 18%,
      rgba(160,220,255,0.08) 46%,
      rgba(255,255,255,0.18) 50%,
      rgba(160,220,255,0.08) 54%,
      rgba(160,220,255,0.00) 82%,
      rgba(255,255,255,0) 100%
    );
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
}

.characters-content.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.30),
    0 0 28px rgba(86, 154, 255, 0.08);
}

.characters-content.is-visible::after {
  opacity: 1;
  animation: charactersSweep 3.8s ease-out 0.35s 1 forwards;
}

.characters-content > * {
  position: relative;
  z-index: 1;
}

.characters-content h2,
.characters-content p,
.characters-content hr,
.characters-content ul,
.characters-content li {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.characters-content.is-visible h2,
.characters-content.is-visible p,
.characters-content.is-visible hr,
.characters-content.is-visible ul,
.characters-content.is-visible li {
  opacity: 1;
  transform: translateY(0);
}

.characters-content.is-visible h2:nth-of-type(1) { transition-delay: 0.10s; }
.characters-content.is-visible p:nth-of-type(1)  { transition-delay: 0.16s; }
.characters-content.is-visible p:nth-of-type(2)  { transition-delay: 0.22s; }
.characters-content.is-visible p:nth-of-type(3)  { transition-delay: 0.28s; }
.characters-content.is-visible p:nth-of-type(4)  { transition-delay: 0.34s; }

.characters-content.is-visible h2:nth-of-type(2) { transition-delay: 0.42s; }
.characters-content.is-visible p:nth-of-type(5)  { transition-delay: 0.48s; }
.characters-content.is-visible p:nth-of-type(6)  { transition-delay: 0.54s; }
.characters-content.is-visible p:nth-of-type(7)  { transition-delay: 0.60s; }
.characters-content.is-visible p:nth-of-type(8)  { transition-delay: 0.66s; }

.characters-content.is-visible h2:nth-of-type(3) { transition-delay: 0.74s; }
.characters-content.is-visible p:nth-of-type(9)  { transition-delay: 0.80s; }
.characters-content.is-visible p:nth-of-type(10) { transition-delay: 0.86s; }
.characters-content.is-visible p:nth-of-type(11) { transition-delay: 0.92s; }
.characters-content.is-visible p:nth-of-type(12) { transition-delay: 0.98s; }

.characters-content.is-visible h2:nth-of-type(4) { transition-delay: 1.06s; }
.characters-content.is-visible p:nth-of-type(13) { transition-delay: 1.12s; }
.characters-content.is-visible p:nth-of-type(14) { transition-delay: 1.18s; }
.characters-content.is-visible p:nth-of-type(15) { transition-delay: 1.24s; }

.characters-content .kk-btn,
.characters-content .btn,
.characters-content a.kk-btn,
.characters-content a.btn {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    box-shadow 0.35s ease;
}

.characters-content.is-visible .kk-btn,
.characters-content.is-visible .btn,
.characters-content.is-visible a.kk-btn,
.characters-content.is-visible a.btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.characters-content.is-visible .kk-btn:nth-of-type(1),
.characters-content.is-visible .btn:nth-of-type(1),
.characters-content.is-visible a.kk-btn:nth-of-type(1),
.characters-content.is-visible a.btn:nth-of-type(1) {
  transition-delay: 1.34s;
}

.characters-content.is-visible .kk-btn:nth-of-type(2),
.characters-content.is-visible .btn:nth-of-type(2),
.characters-content.is-visible a.kk-btn:nth-of-type(2),
.characters-content.is-visible a.btn:nth-of-type(2) {
  transition-delay: 1.44s;
}

@keyframes charactersSweep {
  0% {
    left: -20%;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  78% {
    opacity: 0.58;
  }
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes charactersContentBreath {
  0%, 100% {
    opacity: 0.60;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .characters-content,
  .characters-content h2,
  .characters-content p,
  .characters-content hr,
  .characters-content ul,
  .characters-content li,
  .characters-content .kk-btn,
  .characters-content .btn,
  .characters-content a.kk-btn,
  .characters-content a.btn,
  .characters-content::before,
  .characters-content::after {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.characters-page {
  overflow-x: hidden;
}

.character-image-shell {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, box-shadow, filter;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

.character-image-shell::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(104, 182, 255, 0.18), transparent 52%);
  opacity: 0.55;
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.character-image-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.00) 0%,
      rgba(170,220,255,0.00) 28%,
      rgba(255,255,255,0.14) 48%,
      rgba(170,220,255,0.05) 54%,
      rgba(255,255,255,0.00) 72%,
      rgba(255,255,255,0.00) 100%
    );
  opacity: 0;
  transform: translateX(-16%);
  z-index: 2;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

.character-image-shell:hover::before {
  opacity: 0.92;
  transform: scale(1.035);
  filter: blur(28px);
}

.character-image-shell:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.character-image-shell img {
  position: relative;
  z-index: 1;
}

.character-image-shell.is-hovered {
  box-shadow:
    0 24px 56px rgba(0,0,0,0.34),
    0 0 36px rgba(92, 170, 255, 0.14);
  filter: saturate(1.04) brightness(1.03);
}

.character-section {
  position: relative;
}

.character-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 50%, rgba(88,165,255,0.05), transparent 52%);
  opacity: 0.8;
  pointer-events: none;
}

.character-section.reverse::before {
  background:
    radial-gradient(circle at 72% 50%, rgba(88,165,255,0.05), transparent 52%);
}

.characters-link {
  position: relative;
  overflow: hidden;
}

.characters-link::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 2px;
  height: 86px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(120,190,255,0),
    rgba(120,190,255,0.85),
    rgba(120,190,255,0)
  );
  box-shadow:
    0 0 18px rgba(120,190,255,0.24),
    0 0 32px rgba(120,190,255,0.12);
  opacity: 0.78;
  animation: charactersEnergyLine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.characters-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 140px;
  height: 140px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(96, 170, 255, 0.14), transparent 62%);
  filter: blur(18px);
  opacity: 0.68;
  animation: charactersEnergyPulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

.characters-link-inner {
  position: relative;
  z-index: 1;
}

.characters-link .kk-btn,
.characters-link .btn {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.characters-link .kk-btn:hover,
.characters-link .btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.04);
}

@keyframes charactersEnergyLine {
  0%, 100% {
    opacity: 0.28;
    height: 64px;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.95;
    height: 106px;
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes charactersEnergyPulse {
  0%, 100% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.92);
  }
  50% {
    opacity: 0.90;
    transform: translateX(-50%) scale(1.06);
  }
}

@media (max-width: 980px) {
  .character-image-shell {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .character-image-shell,
  .character-image-shell::before,
  .character-image-shell::after,
  .characters-link::before,
  .characters-link::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== FIX BOUTONS BAS PERSONNAGES ===== */

.characters-actions-bottom {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.characters-actions-bottom .kk-btn {
  opacity: 0;
  transform: translateY(20px);
}

/* Animation scroll */
.characters-actions-bottom.visible .kk-btn {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.characters-actions-bottom.visible .kk-btn:nth-child(2) {
  transition-delay: 0.15s;
}

/* =========================================================
   UNIVERS — ULTRA PREMIUM
   ========================================================= */

.universe-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 140, 255, 0.08), transparent 24%),
    radial-gradient(circle at 85% 16%, rgba(255, 60, 120, 0.07), transparent 22%),
    linear-gradient(180deg, #040914 0%, #030711 100%);
}

.universe-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("/static/img/univers.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}

.universe-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 10, 22, 0.76) 0%,
      rgba(4, 10, 22, 0.54) 38%,
      rgba(4, 10, 22, 0.68) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 10, 22, 0.18) 0%,
      rgba(4, 10, 22, 0.42) 100%
    ),
    radial-gradient(circle at 22% 46%, rgba(110, 190, 255, 0.13), transparent 34%),
    radial-gradient(circle at 82% 36%, rgba(255, 70, 120, 0.10), transparent 28%);
  z-index: 1;
}

.universe-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(130, 185, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 185, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 90%);
}

.universe-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 160px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(180,220,255,0.03) 18%,
      rgba(180,220,255,0.14) 45%,
      rgba(255,255,255,0.24) 50%,
      rgba(180,220,255,0.12) 58%,
      rgba(255,255,255,0) 100%
    );
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: universeHeroScan 7.8s linear infinite;
}

.universe-hero-inner {
  position: relative;
  z-index: 4;
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.universe-kicker {
  margin: 0 0 18px;
  color: #9fd6ff;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(88, 165, 255, 0.18);
  animation: universeFadeUp 0.8s ease both;
}

.universe-hero h1 {
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  line-height: 0.94;
  margin: 0 0 24px;
  color: #ffffff;
  letter-spacing: -0.05em;
  text-shadow:
    0 8px 26px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(110, 190, 255, 0.10);
  animation: universeFadeUp 1s ease both;
  animation-delay: 0.08s;
}

.universe-sub {
  font-size: 1.18rem;
  color: rgba(236, 243, 255, 0.92);
  line-height: 1.8;
  max-width: 34ch;
  margin-bottom: 32px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  animation: universeFadeUp 1s ease both;
  animation-delay: 0.18s;
}

.universe-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: universeFadeUp 1s ease both;
  animation-delay: 0.28s;
}

.universe-manifesto {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 34px 0 8px;
}

.universe-manifesto p {
  max-width: 780px;
  margin: 0 auto;
  color: #f3f7ff;
  font-size: 1.28rem;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 0 16px rgba(80, 140, 255, 0.08);
}

.universe-content-premium {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease;
}

.universe-content-premium.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.universe-content-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(90, 150, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 16%);
}

.universe-content-premium h2 {
  position: relative;
  font-size: 2rem;
  margin-top: 42px;
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #ffffff;
}

.universe-content-premium h3 {
  font-size: 1.25rem;
  color: #eef5ff;
}

.universe-content-premium p,
.universe-content-premium li {
  color: rgba(226, 235, 248, 0.86);
  font-size: 1.06rem;
  line-height: 1.9;
}

.universe-content-premium ul {
  padding-left: 22px;
}

.universe-content-premium li {
  margin-bottom: 8px;
}

.universe-content-premium a {
  text-decoration: none;
}

.universe-inline-btn {
  margin-top: 10px;
  margin-right: 12px;
  margin-bottom: 8px;
  display: inline-flex !important;
}

.universe-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: universeContentReveal 0.9s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}

.universe-content-premium hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 34px 0;
}

@keyframes universeHeroScan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  92% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(140vh);
    opacity: 0;
  }
}

@keyframes universeFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes universeContentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .universe-hero {
    min-height: 84vh;
    background-position: center center;
  }

  .universe-hero h1 {
    font-size: clamp(3.2rem, 9vw, 5rem);
  }

  .universe-sub {
    max-width: 100%;
  }

  .universe-manifesto p {
    font-size: 1.12rem;
  }
}

@media (max-width: 768px) {
  .universe-hero {
    min-height: auto;
    padding: 110px 0 80px;
  }

  .universe-hero-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  .universe-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .universe-sub {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .universe-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .universe-actions .kk-btn {
    width: 100%;
    max-width: 320px;
  }

  .universe-manifesto {
    padding-top: 26px;
  }

  .universe-manifesto p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .universe-inline-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .universe-scanline,
  .universe-kicker,
  .universe-hero h1,
  .universe-sub,
  .universe-actions,
  .universe-reveal,
  .universe-content-premium {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* ===== UNIVERS REVEAL SYSTEM ===== */

.universe-block > * {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

.universe-block > *.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.universe-block h2 {
  position: relative;
}

.universe-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #4da3ff, transparent);
  transition: width 0.8s ease;
}

.universe-block h2.visible::after {
  width: 60%;
}

/* =========================================================
   UNIVERS — PREMIUM ULTRA
   ========================================================= */

.universe-page {
  background:
    radial-gradient(circle at 18% 22%, rgba(76, 142, 255, 0.10), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(255, 72, 116, 0.08), transparent 28%),
    linear-gradient(180deg, #020611 0%, #030918 42%, #020611 100%);
}

/* HERO */
.universe-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 10, 24, 0.10), rgba(2, 6, 17, 0.52)),
    url("/static/img/univers.jpg") center center / cover no-repeat;
}

.universe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 50%, rgba(88, 165, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(255, 72, 116, 0.10), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.universe-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 8, 22, 0.30), rgba(2, 8, 22, 0.68)),
    linear-gradient(to right, rgba(2, 8, 22, 0.52), rgba(2, 8, 22, 0.16) 42%, rgba(2, 8, 22, 0.48));
  pointer-events: none;
}

.universe-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.12));
  opacity: 0.32;
  pointer-events: none;
}

.universe-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(120, 190, 255, 0.08) 48%,
    rgba(120, 190, 255, 0.13) 50%,
    rgba(120, 190, 255, 0.08) 52%,
    transparent 100%
  );
  background-size: 100% 240px;
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: universeScanDrift 9s linear infinite;
  pointer-events: none;
}

@keyframes universeScanDrift {
  from { transform: translateY(-120px); }
  to { transform: translateY(120px); }
}

.universe-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.universe-kicker {
  margin: 0 0 18px;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(170, 205, 255, 0.92);
  animation: universeFadeUp 0.9s ease forwards;
  opacity: 0;
}

.universe-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f4f7ff;
  text-shadow:
    0 0 18px rgba(125, 180, 255, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.30);
  animation: universeFadeUp 1.05s ease forwards;
  animation-delay: 0.08s;
  opacity: 0;
}

.universe-sub {
  margin: 26px 0 0;
  max-width: 470px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(232, 239, 255, 0.92);
  text-shadow: 0 6px 24px rgba(0,0,0,0.24);
  animation: universeFadeUp 1.05s ease forwards;
  animation-delay: 0.18s;
  opacity: 0;
}

.universe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: universeFadeUp 1.05s ease forwards;
  animation-delay: 0.28s;
  opacity: 0;
}

@keyframes universeFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MANIFESTO */
.universe-manifesto {
  position: relative;
  padding: 48px 0 42px;
  text-align: center;
  overflow: hidden;
}

.universe-manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(88, 165, 255, 0.085), transparent 52%);
  pointer-events: none;
}

.universe-manifesto .container {
  position: relative;
  z-index: 1;
}

.universe-manifesto p {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(1.22rem, 2.1vw, 1.82rem);
  line-height: 1.7;
  color: rgba(242, 246, 255, 0.96);
  text-wrap: balance;
}

/* CONTENT WRAPPER */
.universe-content-premium {
  position: relative;
  max-width: 880px;
  margin: 0 auto 110px;
  padding: 44px 42px 48px;
  border: 1px solid rgba(105, 150, 255, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(8, 20, 48, 0.88), rgba(5, 12, 30, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 28px 90px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(76, 130, 255, 0.07);
  overflow: hidden;
}

.universe-content-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(88, 165, 255, 0.08), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(255, 80, 120, 0.05), transparent 24%);
  pointer-events: none;
}

.universe-content-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(140, 200, 255, 0.05), transparent);
  transform: translateX(-120%);
  animation: universeContentSweep 9.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes universeContentSweep {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 0.35; }
  50% { transform: translateX(120%); opacity: 0.18; }
  100% { opacity: 0; }
}

/* SCROLL REVEAL */
.universe-content-premium {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.universe-content-premium.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.universe-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.universe-content-premium.is-visible .universe-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* TYPO INSIDE CONTENT */
.universe-content-premium > * {
  position: relative;
  z-index: 1;
}

.universe-content-premium h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f4f7ff;
  text-shadow: 0 0 14px rgba(125, 180, 255, 0.08);
}

.universe-content-premium h3 {
  margin: 34px 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  color: rgba(244, 247, 255, 0.98);
}

.universe-content-premium p {
  margin: 0 0 18px;
  font-size: 1.07rem;
  line-height: 1.9;
  color: rgba(225, 233, 248, 0.92);
}

.universe-content-premium ul,
.universe-content-premium ol {
  margin: 10px 0 22px 1.2rem;
  padding: 0;
  color: rgba(225, 233, 248, 0.92);
}

.universe-content-premium li {
  margin: 0 0 12px;
  line-height: 1.8;
}

.universe-content-premium hr {
  border: 0;
  height: 1px;
  margin: 34px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(135, 175, 255, 0.16),
    transparent
  );
}

.universe-content-premium strong {
  color: #f5f8ff;
  font-weight: 700;
}

/* BUTTONS GENERATED FROM MD LINKS */
.universe-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.universe-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  margin-bottom: 12px;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .universe-hero {
    min-height: 82vh;
    background-position: center center;
  }

  .universe-hero-inner {
    padding-top: 110px;
    padding-bottom: 90px;
  }

  .universe-sub {
    max-width: 100%;
  }

  .universe-content-premium {
    padding: 34px 24px 38px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .universe-hero {
    min-height: 76vh;
  }

  .universe-kicker {
    letter-spacing: 0.18em;
    font-size: 0.75rem;
  }

  .universe-hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
  }

  .universe-sub {
    font-size: 1rem;
    line-height: 1.75;
  }

  .universe-manifesto {
    padding: 36px 0 26px;
  }

  .universe-manifesto p {
    font-size: 1.08rem;
    line-height: 1.7;
  }

  .universe-actions,
  .universe-link-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .universe-inline-btn {
    margin-right: 0;
  }
}

/* =========================================================
   HISTOIRE — HERO LUMINEUX / ÉMOTION
   ========================================================= */

.histoire-page {
  background:
    radial-gradient(circle at 50% 20%, rgba(120, 190, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #030917 0%, #050c1f 50%, #030917 100%);
}

/* HERO */
.histoire-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(5, 12, 28, 0.10), rgba(5, 12, 28, 0.35)),
    url("/static/img/histoire-bg.jpg") center center / cover no-repeat;
}

/* GLOW CENTRAL */
.histoire-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 50% 45%, rgba(160, 210, 255, 0.25), transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(255, 120, 160, 0.12), transparent 45%);

  mix-blend-mode: screen;
  pointer-events: none;
}

/* BRUME LÉGÈRE */
.histoire-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to bottom, rgba(255,255,255,0.05), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.06), transparent 50%);

  opacity: 0.6;
  pointer-events: none;
}

/* CONTENU */
.histoire-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* KICKER */
.histoire-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(200, 225, 255, 0.95);
  margin-bottom: 18px;
}

/* TITRE — PLUS LUMINEUX */
.histoire-hero h1 {
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;

  color: #ffffff;

  text-shadow:
    0 0 25px rgba(160, 210, 255, 0.35),
    0 0 80px rgba(120, 180, 255, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.25);
}

/* TEXTE */
.histoire-sub {
  margin-top: 24px;
  max-width: 480px;

  font-size: 1.2rem;
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.95);
}

/* BOUTONS */
.histoire-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
}

/* LUMIÈRE SUR LES BOUTONS */
.histoire-actions .kk-btn-primary {
  box-shadow:
    0 0 25px rgba(120, 180, 255, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.25);
}

.histoire-actions .kk-btn-secondary {
  box-shadow:
    0 0 18px rgba(255, 120, 160, 0.25);
}

/* =========================================================
   HISTOIRE — PARTIE 2 CINÉMA TOTAL
   ========================================================= */

/* Hero plus vivant */
.histoire-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 12, 28, 0.08), rgba(5, 12, 28, 0.28)),
    url("/static/img/histoire-bg.jpg") center center / cover no-repeat;
}

/* voile principal plus léger = image plus visible */
.histoire-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(170, 215, 255, 0.20), transparent 38%),
    radial-gradient(circle at 50% 70%, rgba(255, 110, 155, 0.10), transparent 44%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: histoireHeroPulse 8.5s ease-in-out infinite;
  z-index: 1;
}

/* voile doux haut/bas */
.histoire-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 22%, transparent 72%, rgba(255,255,255,0.04)),
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

/* contenu au-dessus */
.histoire-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding-top: 122px;
  padding-bottom: 122px;
}

/* scan narratif discret */
.histoire-hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.histoire-hero-scan::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 16%;
  left: -22%;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(180,220,255,0.00) 20%,
      rgba(255,255,255,0.10) 48%,
      rgba(180,220,255,0.18) 50%,
      rgba(255,255,255,0.10) 52%,
      rgba(180,220,255,0.00) 80%,
      rgba(255,255,255,0) 100%
    );
  filter: blur(10px);
  opacity: 0.75;
  animation: histoireHeroSweep 7.8s linear infinite;
}

/* très léger mouvement de l'image entière */
.histoire-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 28, 0.08), rgba(5, 12, 28, 0.18)),
    url("/static/img/histoire-bg.jpg") center center / cover no-repeat;
  transform: scale(1.02);
  animation: histoireHeroZoom 18s ease-in-out infinite;
}

/* pour éviter double image de fond sur .histoire-hero */
.histoire-hero.has-media-bg {
  background: none;
}

.histoire-kicker {
  margin: 0 0 18px;
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(206, 228, 255, 0.96);
  text-shadow: 0 0 16px rgba(140, 200, 255, 0.16);
}

.histoire-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(4rem, 8vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(168, 215, 255, 0.30),
    0 0 70px rgba(120, 180, 255, 0.14),
    0 12px 42px rgba(0, 0, 0, 0.22);
}

.histoire-sub {
  margin-top: 24px;
  max-width: 500px;
  font-size: 1.22rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 6px 22px rgba(0,0,0,0.18);
}

.histoire-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.histoire-actions .kk-btn-primary {
  box-shadow:
    0 0 28px rgba(120, 180, 255, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.24);
}

.histoire-actions .kk-btn-secondary {
  box-shadow:
    0 0 20px rgba(255, 120, 160, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

/* manifesto plus noble */
.histoire-manifesto {
  position: relative;
  padding: 46px 0 30px;
  text-align: center;
  overflow: hidden;
}

.histoire-manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(110, 180, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.histoire-manifesto .container {
  position: relative;
  z-index: 1;
}

.histoire-manifesto-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.75;
  color: rgba(244, 247, 255, 0.96);
  text-wrap: balance;
}

/* bloc contenu premium */
.histoire-content {
  position: relative;
  max-width: 920px;
  margin: 0 auto 110px;
  padding: 46px 42px 50px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(9, 18, 38, 0.94), rgba(5, 11, 25, 0.98));
  border: 1px solid rgba(110, 160, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 24px 70px rgba(0,0,0,0.26),
    0 0 24px rgba(88, 150, 255, 0.05);
  overflow: hidden;
}

.histoire-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(88, 165, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.histoire-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f5f8ff;
  margin-top: 40px;
  margin-bottom: 18px;
}

.histoire-content p,
.histoire-content li {
  font-size: 1.07rem;
  line-height: 1.92;
  color: rgba(225, 233, 248, 0.90);
}

/* CTA fin de lecture si un lien markdown existe */
.histoire-inline-btn {
  display: inline-flex;
  margin-right: 12px;
  margin-bottom: 12px;
  text-decoration: none;
}

/* souffle visuel vers chapitre zéro */
.histoire-transition {
  position: relative;
  padding: 32px 0 92px;
  text-align: center;
}

.histoire-transition::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 90px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(120,190,255,0),
    rgba(120,190,255,0.85),
    rgba(120,190,255,0)
  );
  box-shadow:
    0 0 20px rgba(120,190,255,0.20),
    0 0 34px rgba(120,190,255,0.10);
  opacity: 0.78;
  animation: histoireTransitionPulse 5.4s ease-in-out infinite;
}

.histoire-transition-text {
  max-width: 760px;
  margin: 86px auto 0;
  font-size: 1.06rem;
  line-height: 1.85;
  color: rgba(222, 232, 247, 0.82);
}

.histoire-transition-sub {
  margin-top: 14px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(200, 215, 235, 0.65);
  letter-spacing: 0.02em;
}

.histoire-transition-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* animations */
@keyframes histoireHeroPulse {
  0%, 100% {
    opacity: 0.62;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes histoireHeroZoom {
  0% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.02);
  }
}

@keyframes histoireHeroSweep {
  0% {
    left: -22%;
    opacity: 0;
  }
  10% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.78;
  }
  100% {
    left: 118%;
    opacity: 0;
  }
}

@keyframes histoireTransitionPulse {
  0%, 100% {
    opacity: 0.28;
    height: 70px;
  }
  50% {
    opacity: 0.94;
    height: 106px;
  }
}

/* responsive */
@media (max-width: 900px) {
  .histoire-hero {
    min-height: 84vh;
  }

  .histoire-hero-inner {
    padding-top: 108px;
    padding-bottom: 92px;
  }

  .histoire-sub {
    max-width: 100%;
  }

  .histoire-content {
    padding: 34px 24px 38px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .histoire-hero h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .histoire-sub {
    font-size: 1rem;
    line-height: 1.74;
  }

  .histoire-actions,
  .histoire-transition-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .histoire-actions .kk-btn,
  .histoire-transition-actions .kk-btn,
  .histoire-inline-btn {
    width: 100%;
    max-width: 320px;
  }

  .histoire-manifesto-text {
    font-size: 1.08rem;
  }
}

/* reveal contenu Histoire */
.histoire-content-premium {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.histoire-content-premium.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.histoire-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.histoire-content-premium.is-visible .histoire-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   HISTOIRE — TRANSITION FINALE PREMIUM V2
   ligne plus longue + pulse plus fort + glitch + double CTA
   ========================================================= */

.histoire-transition {
  position: relative;
  padding: 150px 0 150px;
  text-align: center;
  overflow: hidden;
}

.histoire-transition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 180px;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      rgba(120, 210, 255, 0),
      rgba(120, 210, 255, 0.96) 22%,
      rgba(180, 235, 255, 1) 48%,
      rgba(120, 210, 255, 0.92) 72%,
      rgba(120, 210, 255, 0) 100%
    );
  box-shadow:
    0 0 14px rgba(88, 165, 255, 0.42),
    0 0 36px rgba(88, 165, 255, 0.24),
    0 0 72px rgba(88, 165, 255, 0.12);
  opacity: 0.95;
  animation: histoireBeamDropStrong 2.8s ease-in-out infinite;
  pointer-events: none;
}

.histoire-transition::after {
  content: "";
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(120,210,255,0.22), rgba(120,210,255,0.02) 62%, transparent 75%);
  filter: blur(8px);
  opacity: 0.95;
  animation: histoireBeaconPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.histoire-transition .container {
  position: relative;
  z-index: 2;
}

.histoire-transition-text {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(1.16rem, 2.2vw, 1.52rem);
  line-height: 1.85;
  color: rgba(238, 245, 255, 0.96);
  letter-spacing: 0.012em;
}

.histoire-transition-sub {
  margin-top: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(196, 213, 235, 0.74);
  letter-spacing: 0.025em;
}

.histoire-transition-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.histoire-transition-actions .kk-btn {
  min-width: 230px;
}

.histoire-transition-actions .kk-btn:first-child {
  position: relative;
  overflow: visible;
  animation: histoireCtaPulseStrong 1.9s ease-in-out infinite;
  box-shadow:
    0 0 18px rgba(88, 165, 255, 0.22),
    0 0 42px rgba(88, 165, 255, 0.14),
    0 16px 40px rgba(0, 0, 0, 0.38);
}

.histoire-transition-actions .kk-btn:first-child::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(120,210,255,0.0),
    rgba(120,210,255,0.24),
    rgba(255,255,255,0.06),
    rgba(120,210,255,0.24),
    rgba(120,210,255,0.0)
  );
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: histoireBtnGlitchSweep 2.2s linear infinite;
}

.histoire-transition-actions .kk-btn:first-child::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 22px rgba(120, 210, 255, 0.38),
    0 0 44px rgba(88, 165, 255, 0.24),
    0 0 82px rgba(88, 165, 255, 0.14);
  transition: opacity 0.25s ease;
}

.histoire-transition-actions .kk-btn:first-child:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow:
    0 0 30px rgba(120,210,255,0.34),
    0 0 58px rgba(88,165,255,0.20),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

.histoire-transition-actions .kk-btn:first-child:hover::after {
  opacity: 1;
}

.histoire-transition-actions .kk-btn:nth-child(2) {
  box-shadow:
    0 0 14px rgba(88,165,255,0.10),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.histoire-transition-actions .kk-btn:nth-child(2):hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(88,165,255,0.16),
    0 12px 32px rgba(0, 0, 0, 0.32);
}

@keyframes histoireCtaPulseStrong {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(88,165,255,0.18),
      0 0 32px rgba(88,165,255,0.12),
      0 14px 34px rgba(0,0,0,0.34);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 28px rgba(120,210,255,0.34),
      0 0 56px rgba(88,165,255,0.22),
      0 20px 46px rgba(0,0,0,0.42);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(88,165,255,0.18),
      0 0 32px rgba(88,165,255,0.12),
      0 14px 34px rgba(0,0,0,0.34);
  }
}

@keyframes histoireBeamDropStrong {
  0% {
    opacity: 0.28;
    transform: translateX(-50%) translateY(-18px);
    height: 150px;
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(16px);
    height: 196px;
  }
  100% {
    opacity: 0.28;
    transform: translateX(-50%) translateY(-18px);
    height: 150px;
  }
}

@keyframes histoireBeaconPulse {
  0% {
    opacity: 0.32;
    transform: translateX(-50%) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
  }
  100% {
    opacity: 0.32;
    transform: translateX(-50%) scale(0.88);
  }
}

@keyframes histoireBtnGlitchSweep {
  0% {
    transform: translateX(-22%) skewX(-16deg);
    opacity: 0.25;
  }
  10% {
    transform: translateX(-8%) skewX(-16deg);
    opacity: 0.9;
  }
  14% {
    transform: translateX(2%) skewX(-16deg);
    opacity: 0.35;
  }
  40% {
    transform: translateX(24%) skewX(-16deg);
    opacity: 0.18;
  }
  100% {
    transform: translateX(42%) skewX(-16deg);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .histoire-transition {
    padding: 120px 0 110px;
  }

  .histoire-transition::before {
    height: 120px;
  }

  .histoire-transition::after {
    top: 56px;
    width: 64px;
    height: 64px;
  }

  .histoire-transition-actions .kk-btn {
    min-width: 220px;
  }
}

/* =========================================================
   HISTOIRE — V3 FINAL CINÉMATIQUE (CORRIDOR LATÉRAL AJUSTÉ)
   ========================================================= */

.histoire-transition {
  position: relative;
  margin-top: -12px;
  padding: 54px 0 84px;
  background:
    radial-gradient(circle at 50% 18%, rgba(88,165,255,0.07), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(255,70,110,0.035), transparent 26%);
  text-align: center;
  overflow: hidden;
}

.histoire-transition .container {
  position: relative;
  max-width: 860px;
}

/* ===== CORRIDOR LUMINEUX LATÉRAL ===== */

.histoire-transition .container::before,
.histoire-transition .container::after {
  content: "";
  position: absolute;
  top: -260px;
  width: 3px;
  height: 760px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.35px);
}

/* LIGNE GAUCHE */
.histoire-transition .container::before {
  left: 50%;
  transform: translateX(-360px);
  background: linear-gradient(
    to bottom,
    rgba(80,170,255,0) 0%,
    rgba(120,200,255,0.18) 10%,
    rgba(120,200,255,0.96) 26%,
    rgba(255,70,110,0.74) 54%,
    rgba(120,200,255,0.96) 78%,
    rgba(120,200,255,0.12) 92%,
    rgba(80,170,255,0) 100%
  );
  box-shadow:
    0 0 18px rgba(88,165,255,0.52),
    0 0 34px rgba(88,165,255,0.18),
    0 0 20px rgba(255,70,110,0.16);
  animation: histoireSideBeamLeft 3.2s ease-in-out infinite;
}

/* LIGNE DROITE */
.histoire-transition .container::after {
  left: 50%;
  transform: translateX(360px);
  background: linear-gradient(
    to bottom,
    rgba(80,170,255,0) 0%,
    rgba(120,200,255,0.18) 10%,
    rgba(120,200,255,0.96) 26%,
    rgba(255,70,110,0.74) 54%,
    rgba(120,200,255,0.96) 78%,
    rgba(120,200,255,0.12) 92%,
    rgba(80,170,255,0) 100%
  );
  box-shadow:
    0 0 18px rgba(88,165,255,0.52),
    0 0 34px rgba(88,165,255,0.18),
    0 0 20px rgba(255,70,110,0.16);
  animation: histoireSideBeamRight 3.2s ease-in-out infinite;
}

/* ===== HALO / COEUR DU CTA ===== */

.histoire-transition::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 178px;
  transform: translateX(-50%);
  width: 560px;
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(88,165,255,0.12),
      rgba(255,70,110,0.05),
      transparent 72%);
  filter: blur(42px);
  opacity: 0.92;
  pointer-events: none;
  animation: histoireHaloCore 3.8s ease-in-out infinite;
}

/* ===== TITRE DU BLOC FINAL ===== */

.histoire-cta-title {
  position: relative;
  z-index: 2;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.histoire-cta-title .question-mark {
  display: inline;
  margin-left: 0.015em;
  color: rgba(175,220,255,0.98);
  text-shadow:
    0 0 14px rgba(88,165,255,0.30),
    0 0 26px rgba(255,70,110,0.12);
  animation: histoireQuestionPulse 2.8s ease-in-out infinite;
}

/* ===== TEXTES ===== */

.histoire-transition p {
  position: relative;
  z-index: 2;
}

.histoire-transition .histoire-transition-text {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.65;
  color: rgba(235,241,252,0.96);
  text-wrap: balance;
}

.histoire-transition .histoire-transition-sub {
  max-width: 700px;
  margin: 0 auto 26px;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(176,192,220,0.84);
  text-wrap: balance;
}

/* ===== CTA ZONE ===== */

.histoire-transition-actions {
  margin-top: 28px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.histoire-transition-actions::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -56px;
  transform: translateX(-50%);
  width: 470px;
  height: 136px;
  background:
    radial-gradient(ellipse at center,
      rgba(88,165,255,0.11),
      rgba(255,70,110,0.045),
      transparent 72%);
  filter: blur(22px);
  pointer-events: none;
  animation: histoireActionAura 3.8s ease-in-out infinite;
}

.histoire-transition-actions .kk-btn {
  position: relative;
  z-index: 2;
}

/* ===== BOUTON PRINCIPAL ===== */

.histoire-transition-actions .kk-btn:first-child {
  animation:
    histoireCtaPulseStrong 1.8s ease-in-out infinite,
    histoirePrimaryFlicker 4.6s linear infinite;
  transform-origin: center;
  box-shadow:
    0 0 22px rgba(88,165,255,0.24),
    0 0 42px rgba(88,165,255,0.10);
}

.histoire-transition-actions .kk-btn:first-child:hover {
  transform: scale(1.055) translateY(-4px);
  box-shadow:
    0 0 30px rgba(88,165,255,0.30),
    0 0 46px rgba(255,70,110,0.12);
}

/* ===== BOUTON SECONDAIRE ===== */

.histoire-transition-actions .kk-btn:nth-child(2) {
  border-color: rgba(120,180,255,0.30);
  background: linear-gradient(180deg, rgba(10,20,45,0.95), rgba(5,10,25,0.98));
  transition: all 0.3s ease;
}

.histoire-transition-actions .kk-btn:nth-child(2):hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 22px rgba(88,165,255,0.22),
    0 0 12px rgba(255,70,110,0.12);
}

/* ===== ANIMATIONS ===== */

@keyframes histoireSideBeamLeft {
  0% {
    opacity: 0.42;
    transform: translateX(-360px) scaleY(0.9);
  }
  50% {
    opacity: 1;
    transform: translateX(-360px) scaleY(1.04);
  }
  100% {
    opacity: 0.42;
    transform: translateX(-360px) scaleY(0.9);
  }
}

@keyframes histoireSideBeamRight {
  0% {
    opacity: 0.42;
    transform: translateX(360px) scaleY(0.9);
  }
  50% {
    opacity: 1;
    transform: translateX(360px) scaleY(1.04);
  }
  100% {
    opacity: 0.42;
    transform: translateX(360px) scaleY(0.9);
  }
}

@keyframes histoireHaloCore {
  0% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
  100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.92);
  }
}

@keyframes histoireActionAura {
  0% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
  100% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.92);
  }
}

@keyframes histoirePrimaryFlicker {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes histoireQuestionPulse {
  0%, 100% {
    opacity: 0.92;
    text-shadow:
      0 0 14px rgba(88,165,255,0.28),
      0 0 26px rgba(255,70,110,0.10);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 16px rgba(88,165,255,0.34),
      0 0 30px rgba(255,70,110,0.14);
  }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .histoire-transition {
    margin-top: -4px;
    padding: 52px 0 70px;
  }

  .histoire-transition .container::before,
  .histoire-transition .container::after {
    top: -120px;
    height: 420px;
  }

  .histoire-transition .container::before {
    transform: translateX(-140px);
  }

  .histoire-transition .container::after {
    transform: translateX(140px);
  }

  .histoire-transition::before {
    width: 280px;
    height: 200px;
    top: 170px;
  }

  .histoire-transition-actions::before {
    width: 280px;
    height: 96px;
  }

  .histoire-transition .histoire-transition-text {
    font-size: 1.08rem;
    line-height: 1.75;
  }

  .histoire-transition .histoire-transition-sub {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .histoire-transition-actions {
    gap: 12px;
  }
}

/* =========================================================
   CHAPITRE ZÉRO — CINÉMATIQUE PREMIUM
   apparition + scan + micro-glitch + aura souris
   ========================================================= */

.chapter-zero-page {
  background:
    radial-gradient(circle at var(--cz-mouse-x, 50%) var(--cz-mouse-y, 30%),
      rgba(75, 160, 255, 0.14),
      rgba(255, 80, 120, 0.06) 22%,
      transparent 48%),
    #020712;
}

.chapter-zero-page main {
  position: relative;
  overflow: hidden;
}

.chapter-zero-page main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(90, 180, 255, 0.045), transparent),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      transparent 2px,
      transparent 7px
    );
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: czScanField 7s linear infinite;
  z-index: 2;
}

.chapter-zero-page .content-block,
.chapter-zero-page .chapter-zero-content,
.chapter-zero-page .page-content {
  position: relative;
}

.chapter-zero-page .content-block {
  overflow: hidden;
}

.chapter-zero-page .content-block::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -35%;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(105, 190, 255, 0.13),
    rgba(255, 85, 120, 0.06),
    transparent
  );
  filter: blur(2px);
  animation: czReadingScan 6.8s ease-in-out infinite;
  z-index: 1;
}

.chapter-zero-page .content-block > * {
  position: relative;
  z-index: 2;
}

.chapter-zero-page .content-block p,
.chapter-zero-page .content-block h1,
.chapter-zero-page .content-block h2,
.chapter-zero-page .content-block h3 {
  opacity: 0;
  transform: translateY(18px);
  animation: czRevealText 0.9s ease forwards;
}

.chapter-zero-page .content-block p:nth-child(1) { animation-delay: 0.08s; }
.chapter-zero-page .content-block p:nth-child(2) { animation-delay: 0.18s; }
.chapter-zero-page .content-block p:nth-child(3) { animation-delay: 0.28s; }
.chapter-zero-page .content-block p:nth-child(4) { animation-delay: 0.38s; }
.chapter-zero-page .content-block p:nth-child(5) { animation-delay: 0.48s; }
.chapter-zero-page .content-block p:nth-child(6) { animation-delay: 0.58s; }
.chapter-zero-page .content-block p:nth-child(7) { animation-delay: 0.68s; }
.chapter-zero-page .content-block p:nth-child(8) { animation-delay: 0.78s; }
.chapter-zero-page .content-block p:nth-child(9) { animation-delay: 0.88s; }
.chapter-zero-page .content-block p:nth-child(10) { animation-delay: 0.98s; }

.chapter-zero-page .content-block strong,
.chapter-zero-page .content-block em {
  text-shadow:
    0 0 14px rgba(90, 180, 255, 0.28),
    0 0 22px rgba(255, 75, 120, 0.12);
}

.chapter-zero-page .chapter-zero-glitch,
.chapter-zero-page .content-block h1,
.chapter-zero-page .content-block h2 {
  animation:
    czRevealText 0.9s ease forwards,
    czMicroGlitch 8s steps(1, end) infinite;
}

.chapter-zero-page .kk-btn {
  position: relative;
  overflow: hidden;
}

.chapter-zero-page .kk-btn::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,0.32),
    transparent 65%
  );
  transform: translateX(-140%) rotate(8deg);
  transition: transform 0.65s ease;
}

.chapter-zero-page .kk-btn:hover::after {
  transform: translateX(140%) rotate(8deg);
}

@keyframes czRevealText {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes czReadingScan {
  0% {
    top: -35%;
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.45;
  }
  88% {
    opacity: 0.75;
  }
  100% {
    top: 115%;
    opacity: 0;
  }
}

@keyframes czScanField {
  from {
    transform: translateY(-18px);
  }
  to {
    transform: translateY(18px);
  }
}

@keyframes czMicroGlitch {
  0%, 92%, 100% {
    transform: translateX(0);
    text-shadow: none;
  }
  93% {
    transform: translateX(1px);
    text-shadow:
      -1px 0 rgba(80,170,255,0.55),
      1px 0 rgba(255,70,110,0.35);
  }
  94% {
    transform: translateX(-1px);
    text-shadow:
      1px 0 rgba(80,170,255,0.45),
      -1px 0 rgba(255,70,110,0.35);
  }
  95% {
    transform: translateX(0);
    text-shadow: none;
  }
}

/* =========================
   CHAPITRE ZERO — PREMIUM
   ========================= */

.cz-hero {
  padding: 120px 20px 80px;
  text-align: center;
}

.cz-tag {
  letter-spacing: 2px;
  opacity: 0.6;
  font-size: 0.85rem;
}

.cz-title {
  font-size: clamp(2.8rem, 6vw, 4rem);
  margin: 20px 0;
}

.cz-intro {
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.8;
}

.cz-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   LECTURE CENTRÉE FIX
   ========================= */

.cz-reading {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.cz-reading-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* GROS TITRE CENTRÉ */
.cz-big {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 80px;
}

/* TEXTE LISIBLE (FIX TON PROBLÈME ACTUEL) */
.cz-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.1rem;
}

.cz-text p {
  margin: 14px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.cz-text p:nth-child(1) { animation-delay: 0.2s; }
.cz-text p:nth-child(2) { animation-delay: 0.4s; }
.cz-text p:nth-child(3) { animation-delay: 0.6s; }
.cz-text p:nth-child(4) { animation-delay: 0.8s; }
.cz-text p:nth-child(5) { animation-delay: 1s; }
.cz-text p:nth-child(6) { animation-delay: 1.2s; }
.cz-text p:nth-child(7) { animation-delay: 1.4s; }
.cz-text p:nth-child(8) { animation-delay: 1.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(88,165,255,0.12),
    rgba(255,70,110,0.08),
    transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* =========================================
   CHAPITRE ZERO — FIX CENTRAGE GLOBAL
   ========================================= */

.chapter-zero-hero__content,
.chapter-zero-intro__inner,
.chapter-zero-ground__inner,
.chapter-zero-closing__inner,
.chapitre-zero-text,
.chapter-zero-panels {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* TITRES CENTRÉS PREMIUM */

.chapter-zero-intro h2,
.chapter-zero-ground h2 {
  text-align: center;
  margin-bottom: 60px;
}

/* TEXTE LECTURE */

.chapitre-zero-text {
  text-align: center;
  line-height: 1.9;
  font-size: 1.05rem;
}

/* PANELS CENTRÉS */

.chapter-zero-panels {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

/* CTA CENTRÉS */

.chapter-zero-closing__actions,
.chapitre-zero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.chapter-zero-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.chapter-zero-hero__content {
  max-width: 800px;
}

/* ===== CHAPITRE ZÉRO — FIX LARGEUR & CENTRAGE ===== */

.cz-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Texte principal (lecture) */
.cz-reading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Hero top */
.cz-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

/* Gros titre */
.cz-big-title {
  text-align: center;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.05;
  margin: 120px auto 60px;
  max-width: 900px;
}

/* Bloc "Le monde avance" */
.cz-section-wide {
  max-width: 1100px;
  margin: 120px auto;
  padding: 0 24px;
}

/* =========================================================
   PATCH FINAL — CHAPITRE ZÉRO CLEAN ONESHOT
   ========================================================= */

.chapter-zero-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(70, 150, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #030814 0%, #050b18 100%);
  overflow-x: hidden;
}

.chapter-zero-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.chapter-zero-hero {
  min-height: calc(100vh - 72px);
}

.chapter-zero-hero__image {
  display: block;
}

.chapter-zero-intro,
.chapter-zero-panels,
.chapter-zero-ground,
.chapter-zero-closing {
  width: 100%;
}

.chapter-zero-panels {
  background: linear-gradient(180deg, #030814 0%, #050b18 100%);
}

.chapitre-zero-text {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 20px;
  text-align: center;
}

.chapitre-zero-text p {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 19px;
  line-height: 1.9;
  color: rgba(226, 236, 255, 0.84);
}

.chapitre-zero-text .cz-intro,
.chapitre-zero-text .cz-focus,
.chapitre-zero-text .cz-final {
  color: #ffffff;
  font-weight: 700;
}

.chapitre-zero-text .cz-hook {
  color: #9fd3ff;
  font-weight: 700;
  font-size: 22px;
}

.chapitre-zero-cta {
  margin: 44px 0 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.chapter-zero-panel {
  text-align: center;
}

.chapter-zero-closing__actions .kk-btn,
.chapter-zero-hero__actions .kk-btn,
.chapitre-zero-cta .kk-btn {
  min-width: 250px;
}

@media (max-width: 768px) {
  .chapter-zero-hero {
    min-height: 86vh;
  }

  .chapter-zero-hero__title {
    font-size: clamp(48px, 14vw, 92px);
  }

  .chapter-zero-hero__lead {
    font-size: 20px;
  }

  .chapitre-zero-text p {
    font-size: 16px;
    line-height: 1.85;
  }

  .chapter-zero-panels {
    padding-left: 18px;
    padding-right: 18px;
  }

  .chapter-zero-closing__actions,
  .chapter-zero-hero__actions,
  .chapitre-zero-cta {
    flex-direction: column;
    align-items: center;
  }

  .chapter-zero-closing__actions .kk-btn,
  .chapter-zero-hero__actions .kk-btn,
  .chapitre-zero-cta .kk-btn {
    width: 100%;
    max-width: 340px;
  }
}

.cz-simple-hero {
  text-align: center;
  padding: 100px 20px;
}

.cz-simple-hero img {
  max-width: 600px;
  width: 100%;
  margin-bottom: 30px;
}

.cz-simple-reading {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.8;
  text-align: center;
}

/* =========================
   BOUTON QUANTUM PREMIUM
========================= */

.kk-btn-quantum {
  position: relative;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;

  background: rgba(20, 40, 80, 0.25);
  border: 1px solid rgba(120, 180, 255, 0.4);

  backdrop-filter: blur(10px);

  box-shadow:
    0 0 12px rgba(120, 180, 255, 0.2),
    inset 0 0 10px rgba(120, 180, 255, 0.1);

  transition: all 0.35s ease;
  overflow: hidden;
}

/* GLOW INTERNE */
.kk-btn-quantum::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(120, 180, 255, 0.25),
    transparent 70%
  );

  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* HOVER */
.kk-btn-quantum:hover {
  transform: translateY(-2px) scale(1.02);

  border-color: rgba(255, 120, 120, 0.6);

  box-shadow:
    0 0 18px rgba(255, 120, 120, 0.3),
    inset 0 0 12px rgba(255, 120, 120, 0.15);
}

.kk-btn-quantum:hover::before {
  opacity: 0.9;
}

/* TEXTE */
.kk-btn-quantum span {
  position: relative;
  z-index: 2;
}

/* NOTE AFFILIATION */
.book-affiliate-note {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* MANIFESTO LIGNE */
.book-manifesto-line {
  text-align: center;
  line-height: 1.8;
}

/* === KODE & KISS — BOUTON QUANTUM UPGRADE === */

.kk-btn-quantum {
  animation: quantumBreath 4.8s ease-in-out infinite;
}

.kk-btn-quantum::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle, rgba(120,190,255,.35) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,120,150,.28) 0 1px, transparent 2px);
  background-size: 34px 34px, 52px 52px;
  opacity: 0;
  transform: rotate(12deg);
  transition: opacity .45s ease;
  pointer-events: none;
}

.kk-btn-quantum:hover::after {
  opacity: .38;
  animation: quantumParticles 6s linear infinite;
}

.kk-btn-quantum.is-activating {
  animation: quantumFlash .55s ease forwards;
}

@keyframes quantumBreath {
  0%,100% {
    box-shadow:
      0 0 12px rgba(120,180,255,.22),
      inset 0 0 10px rgba(120,180,255,.12);
  }
  50% {
    box-shadow:
      0 0 28px rgba(120,180,255,.42),
      0 0 42px rgba(255,120,150,.18),
      inset 0 0 16px rgba(120,180,255,.18);
  }
}

@keyframes quantumParticles {
  from { background-position: 0 0, 0 0; }
  to { background-position: 140px -160px, -120px 150px; }
}

@keyframes quantumFlash {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.045); filter: brightness(1.7); }
  100% { transform: scale(.98); filter: brightness(1); }
}

/* =========================================================
   KODE & KISS — PORTAIL D’ACHAT PREMIUM CINÉMA — VERSION CLEAN
========================================================= */

.portal-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 35%, rgba(45,226,255,.10), transparent 34%),
    radial-gradient(circle at 72% 45%, rgba(255,45,161,.12), transparent 38%),
    #02050d;
}

.portal-container {
  position: relative;
  width: min(92vw, 1480px);
  margin: 0 auto;
}

.portal-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 680px;
  border-radius: 34px;
  overflow: hidden;
  transform-origin: center;
  animation: portalBreath 9s ease-in-out infinite;
  box-shadow:
    0 0 120px rgba(109,46,255,.16),
    0 0 220px rgba(255,45,161,.10);
}

.portal-bg,
.portal-book {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.portal-bg {
  z-index: 1;
  background-image: url("/static/img/acheter_book_off.jpg");
  transform: scale(1.025);
  filter: brightness(.66) saturate(1.04) blur(.25px);
}

.portal-book {
  z-index: 3;
  background-image: none;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 18px rgba(255,45,161,.14))
    drop-shadow(0 0 42px rgba(109,46,255,.10));
  animation: bookSignal 10.5s infinite;
}

.portal-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 64% 48%,
      rgba(160,50,255,.26) 0%,
      rgba(255,45,161,.12) 30%,
      rgba(45,226,255,.08) 44%,
      transparent 72%);
  mix-blend-mode: screen;
  animation: portalAura 8s ease-in-out infinite;
}

.portal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,5,13,.86) 0%, rgba(2,5,13,.58) 31%, rgba(2,5,13,.10) 58%, rgba(2,5,13,.34) 100%),
    radial-gradient(circle at 64% 50%, transparent 24%, rgba(0,0,0,.64) 78%);
}

.portal-content {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 76px;
  transform: translateY(-50%);
  width: min(500px, 42vw);
  color: white;
  text-align: left;
}

.portal-kicker {
  color: rgba(170,215,255,.95);
  letter-spacing: .34em;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 18px rgba(45,226,255,.42);
}

.portal-title {
  font-size: clamp(4rem, 7vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 850;
  margin: 0 0 26px;
  text-shadow:
    0 2px 18px rgba(0,0,0,.72),
    0 0 70px rgba(109,46,255,.24);
}

.portal-subtitle {
  font-size: 1.18rem;
  line-height: 1.75;
  max-width: 440px;
  margin: 0 0 36px;
  color: rgba(235,242,255,.86);
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
}

.portal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-cta,
.portal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 850;
  letter-spacing: .02em;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.portal-cta {
  background: linear-gradient(135deg, rgba(45,226,255,.92), rgba(255,45,161,.90));
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 26px rgba(255,45,161,.30),
    0 0 70px rgba(45,226,255,.14);
}

.portal-secondary {
  background: rgba(8,18,42,.70);
  border: 1px solid rgba(120,190,255,.34);
  box-shadow: 0 0 28px rgba(120,190,255,.12);
}

.portal-cta:hover,
.portal-secondary:hover {
  transform: translateY(-2px) scale(1.025);
}

.portal-cta:hover {
  box-shadow:
    0 0 38px rgba(255,45,161,.48),
    0 0 92px rgba(45,226,255,.24);
}

.portal-note {
  margin-top: 18px;
  font-size: .78rem;
  color: rgba(235,242,255,.58);
}

@keyframes portalBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

@keyframes portalAura {
  0%, 100% { opacity: .38; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.03); }
}

/* Grésillement rare : rien... chi... chi-chi... retour signal */
@keyframes bookSignal {
  0%, 77%, 100% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: brightness(1) contrast(1);
  }

  78% {
    opacity: .76;
    transform: translate3d(-1px,0,0) scale(1.002);
    filter: brightness(1.10) contrast(1.16);
  }

  78.4% {
    opacity: .05;
    transform: translate3d(4px,-1px,0) scale(1.004);
    filter: brightness(1.28) contrast(1.38) blur(.45px);
  }

  78.7% {
    opacity: 0;
  }

  79.1% {
    opacity: .46;
    transform: translate3d(-2px,1px,0) scale(1.003);
    filter: brightness(1.20) contrast(1.30);
  }

  79.6% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: brightness(1) contrast(1);
  }

  91.8% { opacity: 1; }
  92% { opacity: .18; transform: translate3d(2px,0,0); }
  92.15% { opacity: 0; }
  92.35% { opacity: .62; transform: translate3d(-1px,1px,0); }
  92.55% { opacity: 1; transform: translate3d(0,0,0); }
}

@media (max-width: 980px) {
  .portal-visual {
    min-height: 560px;
    aspect-ratio: 16 / 10;
  }

  .portal-content {
    left: 40px;
    width: calc(100% - 80px);
  }

  .portal-title {
    font-size: clamp(3.2rem, 10vw, 5rem);
  }
}

@media (max-width: 768px) {
  .portal-section {
    padding: 90px 0 70px;
  }

  .portal-visual {
    min-height: 560px;
    aspect-ratio: auto;
  }

  .portal-content {
    left: 28px;
    right: 28px;
    width: auto;
  }

  .portal-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .portal-subtitle {
    font-size: 1rem;
  }

  .portal-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-visual,
  .portal-book,
  .portal-visual::before {
    animation: none !important;
    transform: none !important;
  }
}

/* PATCH — ACHETER : densité premium */
.portal-section {
  min-height: auto;
  padding: 80px 0 70px;
}

.portal-container {
  width: min(94vw, 1600px);
}

.portal-visual {
  min-height: 620px;
}

.buy-info-card {
  margin-top: 2.4rem !important;
}

/* =========================================================
   PATCH FINAL — ACHETER : DISPONIBILITÉ + GRÉSILLEMENT LIVRE
========================================================= */

/* Carte Disponibilité — plus premium */
.buy-info-card {
  width: min(980px, calc(100% - 3rem)) !important;
  margin: 2.6rem auto 5.5rem !important;
  padding: 4rem 3.4rem !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(120,190,255,.16), transparent 42%),
    linear-gradient(145deg, rgba(13,33,78,.92), rgba(5,10,25,.98)) !important;
  border: 1px solid rgba(130,195,255,.32) !important;
  box-shadow:
    0 0 80px rgba(45,226,255,.08),
    0 0 120px rgba(255,45,161,.05),
    inset 0 0 36px rgba(255,255,255,.025) !important;
}

.buy-info-card h2 {
  margin: 0 0 1.35rem !important;
  font-size: clamp(3rem, 5vw, 4.7rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  text-shadow:
    0 0 28px rgba(255,255,255,.08),
    0 0 58px rgba(120,190,255,.16) !important;
}

.buy-info-card > p:first-of-type {
  max-width: 780px !important;
  margin: 0 auto 2.4rem !important;
  font-size: 1.22rem !important;
  line-height: 1.75 !important;
  text-align: center !important;
  color: rgba(238,245,255,.9) !important;
}

.buy-formats {
  max-width: 860px !important;
  margin: 2.5rem auto 2.6rem !important;
  gap: 1.1rem !important;
}

.buy-format {
  padding: 1.35rem 1.2rem !important;
  border-radius: 18px !important;
  font-size: 1.02rem !important;
  background:
    linear-gradient(145deg, rgba(14,34,80,.92), rgba(8,18,42,.82)) !important;
  border: 1px solid rgba(135,200,255,.30) !important;
  box-shadow:
    inset 0 0 20px rgba(255,255,255,.025),
    0 0 26px rgba(120,190,255,.08) !important;
}

.buy-info-card > p:last-of-type {
  margin: 2.4rem auto 0 !important;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
  color: rgba(238,245,255,.86) !important;
}

/* Livre — grésillement visible, rare, premium */
.portal-book {
  animation:
    kkBookInterference 8.5s infinite,
    kkBookPulse 5.8s ease-in-out infinite !important;
  will-change: opacity, transform, filter;
}

/* “rien… chi… chi-chi… retour” */
@keyframes kkBookInterference {
  0%, 70%, 100% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: brightness(1) contrast(1) saturate(1);
  }

  71% {
    opacity: .72;
    transform: translate3d(-2px, 0, 0) scale(1.003);
    filter: brightness(1.18) contrast(1.25) saturate(1.15);
  }

  71.35% {
    opacity: .08;
    transform: translate3d(5px, -2px, 0) scale(1.006);
    filter: brightness(1.35) contrast(1.55) blur(.55px);
  }

  71.7% {
    opacity: 0;
    transform: translate3d(-4px, 2px, 0) scale(1.004);
  }

  72.1% {
    opacity: .38;
    transform: translate3d(3px, 1px, 0) scale(1.005);
    filter: brightness(1.25) contrast(1.4) hue-rotate(8deg);
  }

  72.45% {
    opacity: .05;
  }

  72.8% {
    opacity: .86;
    transform: translate3d(-1px, 0, 0) scale(1.002);
  }

  73.2% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: brightness(1) contrast(1) saturate(1);
  }

  88% { opacity: 1; }
  88.2% { opacity: .25; transform: translate3d(2px,0,0); }
  88.35% { opacity: 0; }
  88.55% { opacity: .58; transform: translate3d(-2px,1px,0); }
  88.8% { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes kkBookPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 22px rgba(255,45,161,.22))
      drop-shadow(0 0 64px rgba(109,46,255,.14));
  }

  50% {
    filter:
      drop-shadow(0 0 38px rgba(255,45,161,.38))
      drop-shadow(0 0 92px rgba(45,226,255,.22));
  }
}

/* =========================================================
   PATCH FINAL — ACHETER : DISPONIBILITÉ + GRÉSILLEMENT LIVRE
========================================================= */

/* Carte Disponibilité — plus premium */
.buy-info-card {
  width: min(980px, calc(100% - 3rem)) !important;
  margin: 2.6rem auto 5.5rem !important;
  padding: 4rem 3.4rem !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(120,190,255,.16), transparent 42%),
    linear-gradient(145deg, rgba(13,33,78,.92), rgba(5,10,25,.98)) !important;
  border: 1px solid rgba(130,195,255,.32) !important;
  box-shadow:
    0 0 80px rgba(45,226,255,.08),
    0 0 120px rgba(255,45,161,.05),
    inset 0 0 36px rgba(255,255,255,.025) !important;
}

.buy-info-card h2 {
  margin: 0 0 1.35rem !important;
  font-size: clamp(3rem, 5vw, 4.7rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  text-shadow:
    0 0 28px rgba(255,255,255,.08),
    0 0 58px rgba(120,190,255,.16) !important;
}

.buy-info-card > p:first-of-type {
  max-width: 780px !important;
  margin: 0 auto 2.4rem !important;
  font-size: 1.22rem !important;
  line-height: 1.75 !important;
  text-align: center !important;
  color: rgba(238,245,255,.9) !important;
}

.buy-formats {
  max-width: 860px !important;
  margin: 2.5rem auto 2.6rem !important;
  gap: 1.1rem !important;
}

.buy-format {
  padding: 1.35rem 1.2rem !important;
  border-radius: 18px !important;
  font-size: 1.02rem !important;
  background:
    linear-gradient(145deg, rgba(14,34,80,.92), rgba(8,18,42,.82)) !important;
  border: 1px solid rgba(135,200,255,.30) !important;
  box-shadow:
    inset 0 0 20px rgba(255,255,255,.025),
    0 0 26px rgba(120,190,255,.08) !important;
}

.buy-info-card > p:last-of-type {
  margin: 2.4rem auto 0 !important;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
  color: rgba(238,245,255,.86) !important;
}

/* Livre — grésillement visible, rare, premium */
.portal-book {
  animation:
    kkBookInterference 8.5s infinite,
    kkBookPulse 5.8s ease-in-out infinite !important;
  will-change: opacity, transform, filter;
}

/* “rien… chi… chi-chi… retour” */
@keyframes kkBookInterference {
  0%, 70%, 100% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: brightness(1) contrast(1) saturate(1);
  }

  71% {
    opacity: .72;
    transform: translate3d(-2px, 0, 0) scale(1.003);
    filter: brightness(1.18) contrast(1.25) saturate(1.15);
  }

  71.35% {
    opacity: .08;
    transform: translate3d(5px, -2px, 0) scale(1.006);
    filter: brightness(1.35) contrast(1.55) blur(.55px);
  }

  71.7% {
    opacity: 0;
    transform: translate3d(-4px, 2px, 0) scale(1.004);
  }

  72.1% {
    opacity: .38;
    transform: translate3d(3px, 1px, 0) scale(1.005);
    filter: brightness(1.25) contrast(1.4) hue-rotate(8deg);
  }

  72.45% {
    opacity: .05;
  }

  72.8% {
    opacity: .86;
    transform: translate3d(-1px, 0, 0) scale(1.002);
  }

  73.2% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: brightness(1) contrast(1) saturate(1);
  }

  88% { opacity: 1; }
  88.2% { opacity: .25; transform: translate3d(2px,0,0); }
  88.35% { opacity: 0; }
  88.55% { opacity: .58; transform: translate3d(-2px,1px,0); }
  88.8% { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes kkBookPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 22px rgba(255,45,161,.22))
      drop-shadow(0 0 64px rgba(109,46,255,.14));
  }

  50% {
    filter:
      drop-shadow(0 0 38px rgba(255,45,161,.38))
      drop-shadow(0 0 92px rgba(45,226,255,.22));
  }
}

/* =========================================================
   LIVRE FANTÔME — SIGNAL INSTABLE
========================================================= */

.portal-book {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    none
    center/cover no-repeat;

  opacity: 0;

  mix-blend-mode: screen;

  will-change:
    opacity,
    transform,
    filter;

  animation:
    kkGhostBook 3s infinite linear;
}


/* =========================
   CYCLE :
   0-2 sec  = rien
   2-3 sec  = grésillement visible
========================= */

@keyframes kkGhostBook {

  /* PAS DE LIVRE */
  0%,
  65% {
    opacity: 0;
    transform: scale(1.01);
    filter:
      brightness(1)
      contrast(1)
      blur(0);
  }

  /* premier signal */
  68% {
    opacity: .18;
    transform:
      translate3d(-10px, 2px, 0)
      scale(1.015);

    filter:
      brightness(1.7)
      contrast(2)
      blur(1px);
  }

  /* disparu */
  70% {
    opacity: 0;
    transform:
      translate3d(12px, -3px, 0)
      scale(1.02);
  }

  /* retour brutal */
  73% {
    opacity: .85;

    transform:
      translate3d(-4px, 1px, 0)
      scale(1.01);

    filter:
      brightness(1.25)
      contrast(1.35)
      saturate(1.3)
      blur(.2px)

      drop-shadow(0 0 18px rgba(255,45,161,.18))
      drop-shadow(0 0 38px rgba(45,226,255,.12))
  }

  /* CHI CHI */
  76% {
    opacity: .25;

    transform:
      translate3d(8px, -2px, 0)
      scale(1.018);

    filter:
      brightness(1.9)
      contrast(2.2)
      blur(1.5px);
  }

  /* FULL APPARITION */
  82% {
    opacity: 1;

    transform:
      translate3d(0,0,0)
      scale(1.005);

    filter:
      brightness(1.08)
      contrast(1.15)
      saturate(1.15)

      drop-shadow(0 0 50px rgba(255,45,161,.75))
      drop-shadow(0 0 110px rgba(45,226,255,.55));
  }

  /* décroche */
  90% {
    opacity: .55;

    transform:
      translate3d(-5px, 2px, 0)
      scale(1.012);

    filter:
      brightness(1.35)
      contrast(1.5)
      blur(.6px);
  }

  /* disparition */
  100% {
    opacity: 0;

    transform:
      scale(1.02);

    filter:
      brightness(1)
      contrast(1);
  }
}

.portal-book-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
}

.portal-book {
  position: absolute;
  inset: 0;
  background: none center/cover no-repeat;
  opacity: 0;
  will-change: opacity, transform, filter;
  animation: futureTransmission 7.2s infinite;
}

.portal-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(180,80,255,0.25), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: portalFlash 7.2s infinite;
}

@keyframes futureTransmission {
  0% {
    opacity: 0;
    filter: none;
    transform: translate3d(0,0,0);
  }

  2% {
    opacity: 0.95;
    filter: brightness(1.25) contrast(1.3) hue-rotate(-5deg);
    transform: translate3d(-2px, 0, 0);
  }

  3.5% {
    opacity: 0;
  }

  6% {
    opacity: 0.85;
    filter: brightness(1.15) contrast(1.2) blur(0.4px);
    transform: translate3d(2px, -1px, 0);
  }

  8% {
    opacity: 0;
    filter: none;
    transform: none;
  }

  28% {
    opacity: 0;
  }

  30% {
    opacity: 0.75;
    filter: brightness(1.3) contrast(1.35);
    transform: translate3d(-3px, 0, 0);
  }

  31% {
    opacity: 0;
  }

  33% {
    opacity: 0.92;
    filter: brightness(1.1) blur(0.3px);
    transform: translate3d(1px, 1px, 0);
  }

  36% {
    opacity: 1;
    filter: none;
    transform: none;
  }

  58% {
    opacity: 1;
  }

  60% {
    opacity: 0;
    filter: brightness(1.4) contrast(1.5);
  }

  100% {
    opacity: 0;
    filter: none;
  }
}

@keyframes portalFlash {
  2%, 6%, 30%, 33% {
    opacity: 0.8;
  }

  3%, 8%, 31%, 36%, 100% {
    opacity: 0;
  }
}

/* =========================================================
   PATCH FINAL — ACHETER : LIVRE INVISIBLE PAR DÉFAUT
   Apparition rare par interférence
========================================================= */

.portal-book {
  opacity: 0 !important;
  visibility: hidden !important;
  animation: kkBookAppearsOnly 4s infinite linear !important;
  mix-blend-mode: screen !important;
  will-change: opacity, visibility, transform, filter;
}

@keyframes kkBookAppearsOnly {
  /* 0 à 2.4 sec : aucun livre */
  0%, 58% {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.01);
    filter: none;
  }

  /* petit chi */
  61% {
    opacity: .18;
    visibility: visible;
    transform: translate3d(-8px, 2px, 0) scale(1.018);
    filter: brightness(1.8) contrast(2.2) blur(1px);
  }

  63% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(8px, -2px, 0) scale(1.02);
  }

  /* apparition plus claire */
  66% {
    opacity: .72;
    visibility: visible;
    transform: translate3d(-3px, 1px, 0) scale(1.01);
    filter:
      brightness(1.35)
      contrast(1.5)
      saturate(1.35)
      drop-shadow(0 0 46px rgba(255,45,161,.75))
      drop-shadow(0 0 95px rgba(45,226,255,.45));
  }

  /* chi-chi */
  72% {
    opacity: .22;
    visibility: visible;
    transform: translate3d(7px, -2px, 0) scale(1.02);
    filter: brightness(2.1) contrast(2.4) blur(1.3px);
  }

  /* “t’as vu?” */
  78% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0) scale(1.005);
    filter:
      brightness(1.15)
      contrast(1.2)
      saturate(1.2)
      drop-shadow(0 0 58px rgba(255,45,161,.85))
      drop-shadow(0 0 120px rgba(45,226,255,.55));
  }

  /* décroche */
  86% {
    opacity: .38;
    visibility: visible;
    transform: translate3d(-6px, 2px, 0) scale(1.018);
    filter: brightness(1.7) contrast(2) blur(.8px);
  }

  /* disparition complète */
  90%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.01);
    filter: none;
  }
}

/* =========================================================
   FIX — ACHETER : LIVRE APPARAÎT VRAIMENT PAR INTERFÉRENCE
========================================================= */

.portal-book {
  opacity: 0 !important;
  visibility: visible !important;
  z-index: 6 !important;
  pointer-events: none !important;
  mix-blend-mode: normal !important;

  background-image: none !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;

  animation: kkBookSignalVisible 3.2s infinite linear !important;
  will-change: opacity, transform, filter;
}

@keyframes kkBookSignalVisible {
  /* 0 à environ 1.7s : aucun livre */
  0%, 52% {
    opacity: 0;
    transform: scale(1.01);
    filter: none;
  }

  /* CHI */
  56% {
    opacity: .28;
    transform: translate3d(-10px, 2px, 0) scale(1.018);
    filter: brightness(1.8) contrast(2.1) blur(.8px);
  }

  /* coupure */
  59% {
    opacity: 0;
    transform: translate3d(10px, -2px, 0) scale(1.02);
  }

  /* CHI-CHI */
  64% {
    opacity: .72;
    transform: translate3d(-4px, 1px, 0) scale(1.012);
    filter:
      brightness(1.35)
      contrast(1.55)
      saturate(1.35)
      drop-shadow(0 0 42px rgba(255,45,161,.8))
      drop-shadow(0 0 95px rgba(45,226,255,.5));
  }

  /* apparition claire */
  74% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.005);
    filter:
      brightness(1.12)
      contrast(1.18)
      saturate(1.2)
      drop-shadow(0 0 58px rgba(255,45,161,.85))
      drop-shadow(0 0 120px rgba(45,226,255,.55));
  }

  /* décrochage */
  84% {
    opacity: .32;
    transform: translate3d(8px, -2px, 0) scale(1.02);
    filter: brightness(2) contrast(2.3) blur(1px);
  }

  /* disparition */
  90%, 100% {
    opacity: 0;
    transform: scale(1.01);
    filter: none;
  }
}

/* PATCH — ACHETER : BAS DE PAGE PREMIUM */

.buy-info-card {
  position: relative;
  overflow: hidden;
}

.buy-info-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45,226,255,.20), transparent 34%),
    radial-gradient(circle at 75% 35%, rgba(255,45,161,.12), transparent 38%);
  opacity: .7;
  pointer-events: none;
}

.buy-info-card::after {
  content: "ACCÈS EN ATTENTE";
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  font-size: .68rem;
  letter-spacing: .28em;
  color: rgba(170,215,255,.58);
  text-shadow: 0 0 16px rgba(45,226,255,.28);
}

.buy-info-card h2,
.buy-info-card p,
.buy-formats {
  position: relative;
  z-index: 2;
}

.buy-info-card h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(45,226,255,.85), rgba(255,45,161,.75), transparent);
  box-shadow: 0 0 18px rgba(45,226,255,.35);
}

.buy-format {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.buy-format:hover {
  transform: translateY(-3px);
  border-color: rgba(180,225,255,.62) !important;
  box-shadow:
    0 0 28px rgba(45,226,255,.16),
    inset 0 0 26px rgba(255,255,255,.035) !important;
}

.buy-info-card p:last-of-type {
  max-width: 560px;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(150,205,255,.16);
}

/* PATCH — ACHETER : rapprochement portail / disponibilité */
.buy-info-card {
  margin-top: 1.4rem !important;
}

/* PATCH — ACHETER : accès clignotant + glow formats + texte 2 lignes */

/* “ACCÈS EN ATTENTE” qui pulse */
.buy-info-card::after {
  animation: accessWaitingPulse 2.2s ease-in-out infinite !important;
}

@keyframes accessWaitingPulse {
  0%, 100% {
    opacity: .42;
    text-shadow: 0 0 10px rgba(45,226,255,.18);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 14px rgba(45,226,255,.55),
      0 0 28px rgba(255,45,161,.26);
  }
}

/* Sous-texte Disponibilité : force une largeur plus étroite = 2 lignes propres */
.buy-info-card > p:first-of-type {
  max-width: 680px !important;
}

/* Glow arrière sur les 3 formats */
.buy-format {
  position: relative !important;
  overflow: hidden !important;
  box-shadow:
    0 0 26px rgba(45,226,255,.12),
    0 0 46px rgba(255,45,161,.07),
    inset 0 0 22px rgba(255,255,255,.025) !important;
}

.buy-format::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at center,
      rgba(45,226,255,.22),
      rgba(255,45,161,.10) 34%,
      transparent 62%);
  opacity: .38;
  filter: blur(18px);
  z-index: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.buy-format:hover::before {
  opacity: .72;
  transform: scale(1.08);
}

.buy-format {
  z-index: 1;
}

.buy-format * {
  position: relative;
  z-index: 2;
}

/* PATCH — ACHETER : ACCÈS EN ATTENTE plus visible */
.buy-info-card::after {
  color: rgba(185,225,255,.82) !important;
  animation: accessWaitingPulseStrong 1.55s ease-in-out infinite !important;
}

@keyframes accessWaitingPulseStrong {
  0%, 100% {
    opacity: .35;
    text-shadow: 0 0 8px rgba(45,226,255,.20);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 16px rgba(45,226,255,.75),
      0 0 34px rgba(255,45,161,.42);
  }
}

/* =========================================================
   HOME PREMIUM — KODE & KISS
========================================================= */

.home-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* =========================================================
   PANELS
========================================================= */

.kk-panel,
.fragment-panel {
  position: relative;
  padding: 4rem;
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      rgba(10,18,40,0.92),
      rgba(6,10,24,0.96)
    );
  border: 1px solid rgba(120,180,255,0.16);

  box-shadow:
    0 0 40px rgba(0,140,255,0.08),
    inset 0 0 80px rgba(0,120,255,0.05);

  overflow: hidden;
}

.kk-panel::before,
.fragment-panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(0,180,255,0.10),
      transparent 45%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255,0,120,0.10),
      transparent 45%
    );

  pointer-events: none;
}

/* =========================================================
   TITRES
========================================================= */

.home-content h2 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      #b8d7ff
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 30px rgba(120,180,255,0.18);
}

.home-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* =========================================================
   TEXTE
========================================================= */

.home-content p {
  font-size: 1.08rem;
  line-height: 1.95;
  color: rgba(255,255,255,0.86);
}

/* =========================================================
   LINKS INLINE
========================================================= */

.home-inline-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.home-inline-links a {
  padding: 0.9rem 1.4rem;
  border-radius: 999px;

  border: 1px solid rgba(120,180,255,0.25);

  background:
    rgba(20,30,60,0.55);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  text-decoration: none;
  color: white;
  font-weight: 600;
}

.home-inline-links a:hover {
  transform: translateY(-3px);

  border-color: rgba(120,180,255,0.6);

  box-shadow:
    0 0 25px rgba(0,180,255,0.18);
}

/* =========================================================
   PORTAL GRID
========================================================= */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portal-card {
  position: relative;

  padding: 2rem;
  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(16,24,48,0.92),
      rgba(8,12,26,0.98)
    );

  border: 1px solid rgba(120,180,255,0.12);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(0,180,255,0.14),
      transparent 50%
    );

  opacity: 0;
  transition: opacity 0.45s ease;
}

.portal-card:hover {
  transform:
    translateY(-6px);

  border-color:
    rgba(120,180,255,0.42);

  box-shadow:
    0 0 40px rgba(0,180,255,0.14);
}

.portal-card:hover::before {
  opacity: 1;
}

/* =========================================================
   CHARACTER GRID
========================================================= */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.character-card {
  position: relative;

  padding: 3rem;
  border-radius: 28px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(12,18,36,0.95),
      rgba(6,10,22,0.98)
    );

  border: 1px solid rgba(255,255,255,0.08);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.character-card:hover {
  transform: translateY(-6px);
}

.lily-card {
  box-shadow:
    0 0 35px rgba(0,180,255,0.10);
}

.lily-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(0,180,255,0.16),
      transparent 50%
    );

  pointer-events: none;
}

.marc-card {
  box-shadow:
    0 0 35px rgba(255,0,120,0.08);
}

.marc-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255,0,120,0.14),
      transparent 50%
    );

  pointer-events: none;
}

/* =========================================================
   FRAGMENTS
========================================================= */

.fragment-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fragment-quote {
  position: relative;

  padding: 1.6rem 2rem;

  border-left:
    2px solid rgba(0,180,255,0.55);

  background:
    rgba(255,255,255,0.02);

  border-radius: 0 18px 18px 0;

  font-style: italic;

  color:
    rgba(255,255,255,0.92);

  box-shadow:
    0 0 20px rgba(0,180,255,0.05);

  animation:
    fragmentGlow 6s ease-in-out infinite;
}

@keyframes fragmentGlow {
  0% {
    opacity: 0.88;
  }

  50% {
    opacity: 1;
    box-shadow:
      0 0 28px rgba(0,180,255,0.10);
  }

  100% {
    opacity: 0.88;
  }
}

/* =========================================================
   NEWSLETTER PANEL
========================================================= */

.newsletter-panel {
  text-align: center;
}

.newsletter-cta {
  margin-top: 2rem;
}

.newsletter-cta a {
  display: inline-block;

  padding:
    1rem 2rem;

  border-radius:
    999px;

  text-decoration:
    none;

  font-weight:
    700;

  color:
    white;

  background:
    linear-gradient(
      90deg,
      #00bfff,
      #ff2f92
    );

  box-shadow:
    0 0 30px rgba(255,0,120,0.22);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.newsletter-cta a:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 0 40px rgba(255,0,120,0.35);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .kk-panel,
  .fragment-panel,
  .character-card {
    padding: 2rem;
  }

  .home-content {
    gap: 3rem;
  }

  .home-content h2 {
    font-size: 2.4rem;
  }

}

/* =========================================================
   HOME — CINEMA PREMIUM PASS 2
========================================================= */

.home-content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: homeReveal 0.9s ease forwards;
}

.home-content > *:nth-child(1) { animation-delay: 0.05s; }
.home-content > *:nth-child(2) { animation-delay: 0.12s; }
.home-content > *:nth-child(3) { animation-delay: 0.20s; }
.home-content > *:nth-child(4) { animation-delay: 0.28s; }
.home-content > *:nth-child(5) { animation-delay: 0.36s; }

@keyframes homeReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-content {
  position: relative;
}

.home-content::before {
  content: "";
  position: absolute;
  inset: -120px -80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 226, 255, 0.08), transparent 34%),
    radial-gradient(circle at 80% 45%, rgba(255, 45, 161, 0.08), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.kk-panel,
.fragment-panel,
.character-card,
.portal-card {
  backdrop-filter: blur(14px);
}

.kk-panel:hover,
.fragment-panel:hover,
.character-card:hover,
.portal-card:hover {
  border-color: rgba(120, 190, 255, 0.38);
  box-shadow:
    0 0 45px rgba(45, 226, 255, 0.12),
    0 0 85px rgba(255, 45, 161, 0.08),
    inset 0 0 70px rgba(120, 190, 255, 0.04);
}

/* Portes d’entrée plus premium */
.portal-grid {
  align-items: stretch;
}

.portal-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-card h3,
.portal-card h3 a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(120, 190, 255, 0.22);
}

.portal-card p {
  color: rgba(235, 245, 255, 0.78);
}

/* Personnages plus cinématiques */
.character-card {
  min-height: 260px;
}

.character-card h2 {
  margin-bottom: 1.4rem;
}

.lily-card {
  border-color: rgba(45, 226, 255, 0.18);
}

.marc-card {
  border-color: rgba(255, 45, 161, 0.16);
}

/* Fragments plus holographiques */
.fragment-quote {
  background:
    linear-gradient(90deg, rgba(45, 226, 255, 0.06), rgba(255, 45, 161, 0.05));
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.14);
}

.fragment-quote:hover {
  transform: translateX(6px);
  border-left-color: rgba(255, 45, 161, 0.75);
}

/* CTA newsletter plus fort */
.newsletter-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 226, 255, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(10, 18, 40, 0.94), rgba(22, 8, 35, 0.96));
}

.newsletter-cta a {
  animation: homeCtaBreath 4.8s ease-in-out infinite;
}

@keyframes homeCtaBreath {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(45, 226, 255, 0.24),
      0 0 34px rgba(255, 45, 161, 0.20);
  }

  50% {
    box-shadow:
      0 0 34px rgba(45, 226, 255, 0.34),
      0 0 52px rgba(255, 45, 161, 0.32);
  }
}

/* Ligne manifeste plus signature */
.manifesto-line {
  letter-spacing: 0.01em;
  text-shadow:
    0 0 18px rgba(255,255,255,0.18),
    0 0 34px rgba(45,226,255,0.14);
}

/* Mobile */
@media (max-width: 768px) {
  .portal-card,
  .character-card {
    min-height: auto;
  }

  .home-content > * {
    animation-delay: 0s !important;
  }
}

/* =========================================================
   HOME — CORRECTION GRILLE PORTES D’ENTRÉE
   ========================================================= */

.home-content .entry-grid,
.home-content .home-entry-grid,
.home-content .door-grid,
.home-content .premium-entry-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: stretch !important;
}

.home-content .entry-card,
.home-content .home-entry-card,
.home-content .door-card,
.home-content .premium-entry-card {
  width: 100% !important;
  min-height: 230px !important;
  height: 100% !important;
}

/* Si les cartes sont générées directement par les h3 + p */
.home-content h3 {
  margin-top: 0;
}

.home-content h3 + p {
  margin-bottom: 0;
}

/* Correction spécifique si les 4 portes sont des blocs/cards */
.home-content .home-door-card {
  width: 100% !important;
  min-height: 230px !important;
}

/* Mobile */
@media (max-width: 760px) {
  .home-content .entry-grid,
  .home-content .home-entry-grid,
  .home-content .door-grid,
  .home-content .premium-entry-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   HOME — CORRECTION FINALE PORTAIL + PANELS PREMIUM
   ========================================================= */

.home-content .portal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.home-content .portal-card {
  width: 100% !important;
  min-height: 230px !important;
  padding: 34px 34px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(85, 145, 255, 0.28) !important;
  background:
    radial-gradient(circle at top left, rgba(45, 226, 255, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(10, 25, 55, 0.72), rgba(8, 12, 28, 0.92)) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.32),
    inset 0 0 40px rgba(80, 140, 255, 0.05) !important;
}

.home-content .portal-card h3 {
  margin: 0 0 22px !important;
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
}

.home-content .portal-card p {
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: rgba(235, 244, 255, 0.82) !important;
}

.home-content .portal-card a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.home-content .portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 226, 255, 0.55) !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(45, 226, 255, 0.10),
    inset 0 0 44px rgba(255, 45, 161, 0.05) !important;
}

.home-content .character-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 34px !important;
}

.home-content .character-card {
  padding: 38px 42px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(90, 145, 255, 0.25) !important;
  background:
    radial-gradient(circle at top left, rgba(45, 226, 255, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(9, 28, 52, 0.82), rgba(9, 11, 26, 0.95)) !important;
}

.home-content .marc-card {
  background:
    radial-gradient(circle at top right, rgba(255, 45, 161, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(12, 13, 31, 0.95), rgba(45, 8, 37, 0.72)) !important;
}

.home-content .kk-panel,
.home-content .manifesto-panel,
.home-content .fragment-panel {
  padding: 42px 48px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(90, 145, 255, 0.24) !important;
  background:
    radial-gradient(circle at top left, rgba(45, 226, 255, 0.10), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 45, 161, 0.10), transparent 42%),
    rgba(9, 14, 28, 0.86) !important;
}

.home-content .fragment-panel blockquote {
  margin: 18px 0 !important;
  padding: 20px 26px !important;
  border-left: 2px solid rgba(45, 226, 255, 0.75) !important;
  border-radius: 0 14px 14px 0 !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

@media (max-width: 820px) {
  .home-content .portal-grid,
  .home-content .character-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   KODE & KISS — HOME FINAL BOSS PREMIUM PASS
   Effets : parallax subtil, respiration titres/cartes,
   ligne énergétique, transmission hero
========================================================= */

.final-boss-home {
  background:
    radial-gradient(circle at 28% 10%, rgba(28, 181, 224, 0.10), transparent 34%),
    radial-gradient(circle at 74% 12%, rgba(255, 43, 154, 0.13), transparent 36%),
    linear-gradient(180deg, #050912 0%, #070a12 48%, #050810 100%);
  overflow-x: hidden;
}

/* 1 — MICRO PARALLAXE CINÉMATIQUE */
.final-boss-home .cinema-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.final-boss-home .cinema-hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  background:
    radial-gradient(circle at 30% 42%, rgba(44, 186, 255, 0.12), transparent 32%),
    radial-gradient(circle at 68% 48%, rgba(255, 38, 151, 0.16), transparent 36%);
  filter: blur(18px);
  animation: kkHeroDrift 18s ease-in-out infinite alternate;
}

.final-boss-home .cinema-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.035) 45%, transparent 62%);
  opacity: 0.35;
  transform: translateX(-35%);
  animation: kkLightSweep 14s ease-in-out infinite;
}

@keyframes kkHeroDrift {
  0% { transform: translate3d(-10px, -6px, 0) scale(1.01); }
  100% { transform: translate3d(14px, 8px, 0) scale(1.04); }
}

@keyframes kkLightSweep {
  0%, 70% { transform: translateX(-48%); opacity: 0; }
  78% { opacity: 0.28; }
  100% { transform: translateX(42%); opacity: 0; }
}

/* 2 — RESPIRATION PREMIUM DES TITRES */
.final-boss-home h1,
.final-boss-home .premium-panel h2,
.final-boss-home .premium-card h2,
.final-boss-home .home-content h2 {
  text-shadow:
    0 0 16px rgba(142, 196, 255, 0.20),
    0 0 34px rgba(255, 60, 170, 0.10);
  animation: kkTitleBreath 7.5s ease-in-out infinite;
}

@keyframes kkTitleBreath {
  0%, 100% {
    text-shadow:
      0 0 13px rgba(142, 196, 255, 0.16),
      0 0 28px rgba(255, 60, 170, 0.08);
  }
  50% {
    text-shadow:
      0 0 24px rgba(142, 196, 255, 0.34),
      0 0 48px rgba(255, 60, 170, 0.16);
  }
}

/* 3 — LIGNE ÉNERGÉTIQUE VIVANTE */
.final-boss-home .home-manifesto,
.final-boss-home .premium-section,
.final-boss-home .home-content section,
.final-boss-home .content-block {
  position: relative;
}

.final-boss-home .home-manifesto::after,
.final-boss-home .content-block::before {
  content: "";
  position: absolute;
  left: 50%;
  width: min(760px, 78vw);
  height: 1px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      transparent,
      rgba(73, 203, 255, 0.18),
      rgba(255, 54, 163, 0.22),
      transparent);
  opacity: 0.65;
  overflow: hidden;
}

.final-boss-home .home-manifesto::after {
  bottom: -1px;
}

.final-boss-home .content-block::before {
  top: 0;
}

.final-boss-home .home-manifesto::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 22%;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #5fe7ff, #ff3fa8, transparent);
  filter: drop-shadow(0 0 12px rgba(95, 231, 255, 0.9));
  animation: kkEnergyLine 11s ease-in-out infinite;
}

@keyframes kkEnergyLine {
  0%, 72% { transform: translateX(0); opacity: 0; }
  78% { opacity: 1; }
  100% { transform: translateX(58vw); opacity: 0; }
}

/* 4 — TRANSMISSION HERO / LIVRE */
.final-boss-home .kk-transmission-cover,
.final-boss-home .cinema-cover {
  animation:
    kkCoverArrival 1.35s cubic-bezier(.16,.84,.32,1) both,
    kkCoverSignal 8.5s ease-in-out 1.7s infinite;
  will-change: transform, filter, opacity;
}

@keyframes kkCoverArrival {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.965);
    filter: blur(10px) saturate(0.6);
  }
  34% {
    opacity: 0.25;
    transform: translateY(10px) scale(0.985) skewX(-1deg);
    filter: blur(6px) saturate(1.15);
  }
  48% {
    opacity: 0.08;
    transform: translateY(8px) scale(0.98) skewX(1.2deg);
  }
  64% {
    opacity: 0.95;
    transform: translateY(2px) scale(1.006);
    filter: blur(1px) saturate(1.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1.08);
  }
}

@keyframes kkCoverSignal {
  0%, 82%, 100% {
    transform: translate3d(0,0,0) scale(1);
    filter: saturate(1.08) contrast(1.03);
  }
  84% {
    transform: translate3d(-1px, 0, 0) scale(1.003);
    filter: saturate(1.35) contrast(1.12) hue-rotate(-4deg);
  }
  85.2% {
    transform: translate3d(2px, -1px, 0) scale(0.998);
    filter: saturate(1.8) contrast(1.22) brightness(1.08);
  }
  86.4% {
    transform: translate3d(-1px, 1px, 0) scale(1.004);
    filter: saturate(1.25) contrast(1.08);
  }
  88% {
    transform: translate3d(0,0,0) scale(1);
    filter: saturate(1.08) contrast(1.03);
  }
}

/* RESPIRATION DÉCALÉE DES 4 PORTES */
.final-boss-home .breathing-card,
.final-boss-home .entry-card {
  position: relative;
  overflow: hidden;
  animation: kkCardBreath 6.8s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(90, 190, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.final-boss-home .breathing-card:nth-child(1),
.final-boss-home .entry-card:nth-child(1) {
  animation-delay: 0s;
}

.final-boss-home .breathing-card:nth-child(2),
.final-boss-home .entry-card:nth-child(2) {
  animation-delay: 0.65s;
}

.final-boss-home .breathing-card:nth-child(3),
.final-boss-home .entry-card:nth-child(3) {
  animation-delay: 1.3s;
}

.final-boss-home .breathing-card:nth-child(4),
.final-boss-home .entry-card:nth-child(4) {
  animation-delay: 1.95s;
}

.final-boss-home .breathing-card::before,
.final-boss-home .entry-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 0%, rgba(85, 210, 255, 0.20), transparent 38%),
    radial-gradient(circle at 90% 100%, rgba(255, 58, 166, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.final-boss-home .breathing-card:hover::before,
.final-boss-home .entry-card:hover::before {
  opacity: 1;
}

@keyframes kkCardBreath {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 1px rgba(90, 190, 255, 0.15),
      0 18px 44px rgba(0, 0, 0, 0.28);
  }
  50% {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 1px rgba(96, 220, 255, 0.34),
      0 0 28px rgba(71, 193, 255, 0.13),
      0 20px 58px rgba(255, 47, 164, 0.10);
  }
}

/* BOUTONS — respiration plus noble */
.final-boss-home .kk-btn {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.final-boss-home .kk-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 24px rgba(65, 190, 255, 0.22),
    0 0 38px rgba(255, 50, 165, 0.12);
}

/* ACCESSIBILITÉ — respecte les gens qui réduisent les animations */
@media (prefers-reduced-motion: reduce) {
  .final-boss-home *,
  .final-boss-home *::before,
  .final-boss-home *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   MICRO-VIE PREMIUM — GLOBAL KODE & KISS
   ========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .035;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(45,226,255,.08), transparent 28%),
    radial-gradient(circle at 82% 35%, rgba(255,45,161,.07), transparent 30%),
    radial-gradient(circle at 52% 86%, rgba(109,46,255,.055), transparent 34%);
  filter: blur(18px);
  animation: kkAmbientBreath 12s ease-in-out infinite alternate;
}

@keyframes kkAmbientBreath {
  0% {
    opacity: .55;
    transform: scale(1);
  }
  100% {
    opacity: .9;
    transform: scale(1.035);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}

/* =========================================================
   RESPONSIVE — TITRE PERSONNAGES MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .characters-hero h1 {
    font-size: clamp(3.2rem, 13vw, 5rem);
    line-height: .92;
    letter-spacing: -0.04em;
  }

}

/* =========================================================
   FIX MOBILE — PERSONNAGES NON COUPÉ
   ========================================================= */

@media (max-width: 768px) {
  .characters-hero {
    overflow: hidden;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .characters-hero .container,
  .characters-hero__inner,
  .characters-hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .characters-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.75rem, 11.5vw, 4.2rem) !important;
    line-height: .92 !important;
    letter-spacing: -0.055em !important;
    white-space: normal !important;
    overflow-wrap: normal;
    text-align: center;
  }
}

/* =====================================================
   TRANSITIONS PREMIUM ENTRE PAGES V2
===================================================== */

main{
    animation: pageEntrance .28s ease-out;
}

@keyframes pageEntrance{

    from{
        opacity:.985;
        transform:translateY(4px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* =====================================================
   MICRO-VIVANT GLOBAL — PREMIUM SAFE
===================================================== */

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:9998;
    opacity:.035;
    background:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size:100% 4px;
    mix-blend-mode:screen;
}

body::after{
    content:"";
    position:fixed;
    inset:-20%;
    pointer-events:none;
    z-index:0;
    opacity:.22;
    background:
        radial-gradient(circle at 22% 18%, rgba(45,226,255,.12), transparent 28%),
        radial-gradient(circle at 78% 24%, rgba(255,45,161,.10), transparent 30%);
    animation: kkAuraBreath 12s ease-in-out infinite alternate;
}

@keyframes kkAuraBreath{
    from{
        transform:translate3d(-1%, -1%, 0) scale(1);
        opacity:.18;
    }
    to{
        transform:translate3d(1%, 1%, 0) scale(1.04);
        opacity:.28;
    }
}

@media (prefers-reduced-motion: reduce){
    body::after,
    main{
        animation:none !important;
    }
}

/* =====================================================
   LOT 2B — NAVIGATION MOBILE COMPACTE
===================================================== */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10001;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: #07101d;
  box-shadow: 0 0 0 2px var(--kk-cyan), var(--kk-shadow-premium);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: 12px;
  color: #eef7ff;
  background: rgba(8, 16, 35, 0.88);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.nav-toggle__icon {
  width: 18px;
  display: grid;
  gap: 4px;
}

.nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header[data-nav-open="true"] .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.site-header[data-nav-open="true"] .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo:focus-visible,
.nav-toggle:focus-visible,
.nav-discover__toggle:focus-visible,
.main-nav a:focus-visible,
.site-footer a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--kk-cyan);
  outline-offset: 3px;
}

@media (min-width: 1280px) {
  .js .site-header {
    z-index: 100;
  }

  .main-nav {
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .main-nav > a,
  .nav-discover__toggle {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .js .nav-discover {
    position: relative;
    display: block;
  }

  .js .nav-discover__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .js .nav-discover__label {
    display: none;
  }

  .js .nav-discover__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 220px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    border-radius: 14px;
    background: rgba(5, 8, 18, 0.98);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58), 0 0 40px rgba(69, 223, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 2;
  }

  .js .nav-discover[data-discover-open="true"] .nav-discover__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .js .nav-discover[data-discover-open="true"] .nav-discover__caret {
    transform: rotate(180deg);
  }

  .js .nav-discover__panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    white-space: normal;
  }
}

@media (max-width: 1279px) {
  .js .site-header {
    z-index: 100;
  }

  .js .site-header .container {
    position: relative;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
  }

  .js .site-header .logo {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .js .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .js .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, 100%);
    max-height: calc(100vh - 88px);
    max-height: calc(100svh - 88px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(120, 190, 255, 0.20);
    border-radius: 16px;
    background: rgba(5, 8, 18, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58), 0 0 40px rgba(69, 223, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .js .site-header[data-nav-open="true"] .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .js .main-nav a {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .js .main-nav a[aria-current="page"] {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(69, 223, 255, 0.12), rgba(255, 47, 146, 0.10));
    box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.20);
  }

  .js .nav-discover {
    display: contents;
  }

  .js .nav-discover__toggle {
    display: none;
  }

  .js .nav-discover__label {
    min-height: 38px;
    display: flex;
    grid-column: 1 / -1;
    align-items: end;
    padding: 4px 12px 0;
    color: var(--kk-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .js .nav-discover__panel {
    position: static;
    width: auto;
    display: contents;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  .js .site-header[data-nav-open="true"] .nav-discover__panel {
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 767px) {
  .js .main-nav {
    grid-template-columns: 1fr;
  }

  .js .nav-discover__label {
    grid-column: 1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .nav-toggle__icon span,
  .nav-discover__caret,
  .js .nav-discover__panel,
  .js .main-nav {
    animation: none !important;
    transition: none !important;
  }
}

/* WEB-REBASE-001 : masters courants, ratio intrinsèque conservé. */
.home-page .home-cover,
.book-page .book-cover {
  height: auto;
}

/* WEB-REBASE-001 : titre de disponibilité entier sur petit écran. */
@media (max-width: 600px) {
  .buy-page .portal-title {
    font-size: clamp(1.875rem, 10vw, 3rem);
  }
}

/* WEB-REBASE-001 : défauts hérités constatés à 320 px, sans changement de copy. */
@media (max-width: 340px) {
  .trust-page .trust-hero h1,
  .histoire-page .histoire-hero h1,
  .characters-page .characters-hero h1 {
    font-size: 2.5rem !important;
  }
}

/* WEB-REBASE-001 : flottement des couvertures et préférence utilisateur. */
@media (prefers-reduced-motion: reduce) {
  .home-page .home-cover,
  .book-page .book-cover {
    animation: none;
    transform: none;
  }
}
