/* livre1.css — ChoKInfO */

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:     #080c10;
  --bg2:    #0d1218;
  --bg3:    #111820;
  --cyan:   #00e5ff;
  --purple: #b44fff;
  --orange: #ff6a00;
  --text:   #dde4ed;
  --muted:  #6a7a8e;
  --border: rgba(0,229,255,0.12);
}
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============ GRID OVERLAY ============ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* ============ LAYOUT ============ */
.page { position: relative; z-index: 1; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse at 50% -10%, rgba(180,79,255,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(0,229,255,0.08) 0%, transparent 50%);
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(180,79,255,0.3);
  background: rgba(180,79,255,0.07);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 36px;
  display: inline-block;
  animation: fadeDown .8s ease both;
}

.hero-title {
  font-size: clamp(1.8rem, 8.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 820px;
  width: 100%;
  margin-bottom: 16px;
  word-break: break-word;
  hyphens: auto;
  animation: fadeDown .8s .1s ease both;
}
.hero-title em {
  font-style: normal;
  color: var(--purple);
}
.hero-title br.lg-only {
  display: none;
}
@media (min-width: 700px) {
  .hero-title br.lg-only { display: inline; }
}

.hero-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: clamp(.8rem, 2vw, 1rem);
  color: var(--muted);
  font-style: italic;
  margin-bottom: 48px;
  animation: fadeDown .8s .2s ease both;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  animation: fadeDown .8s .3s ease both;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-meta-item .val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
}
.hero-meta-item .lab {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-meta-sep {
  width: 1px;
  background: var(--border);
  height: 50px;
  align-self: center;
}

.hero-scroll {
  animation: fadeDown .8s .4s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-family: 'Space Mono', monospace;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============ COUVERTURE DU LIVRE ============ */
.cover-wrap {
  display: flex;
  justify-content: center;
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}
.cover-frame {
  position: relative;
  max-width: 340px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(180,79,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(180,79,255,0.12);
  animation: fadeDown .9s .5s ease both;
}
.cover-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.cover-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,12,16,0.5) 100%);
  pointer-events: none;
}

/* ============ ILLUSTRATIONS DE CHAPITRE ============ */
.chapter-illu {
  margin: 40px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.chapter-illu img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.9) brightness(.95);
}
.chapter-illu-caption {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  letter-spacing: .06em;
}

/* Placeholder en attente d'illustration */
.chapter-illu.placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(180,79,255,0.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,229,255,0.08), transparent 50%),
    var(--bg2);
  position: relative;
}
.chapter-illu.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 12px);
}
.chapter-illu.placeholder .ph-content {
  position: relative;
  text-align: center;
  font-family: 'Space Mono', monospace;
  color: var(--muted);
}
.chapter-illu.placeholder .ph-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  animation: pulsePh 2.4s ease-in-out infinite;
}
.chapter-illu.placeholder .ph-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@keyframes pulsePh {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%       { opacity: .8; transform: scale(1.08); }
}

/* ============ CHAPITRES LISIBLES (SOMMAIRE) ============ */
.toc {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px;
}
.toc-title {
  font-size: 1rem;
  font-family: 'Space Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 24px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--muted);
  transition: color .2s;
}
.toc-list li.free { color: var(--text); }
.toc-list li.locked { opacity: .45; }
.toc-num {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--purple);
  min-width: 28px;
}
.toc-badge {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 10px;
}
.badge-free {
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.25);
}
.badge-lock {
  background: rgba(180,79,255,0.1);
  color: var(--purple);
  border: 1px solid rgba(180,79,255,0.25);
}

/* ============ LECTURE ============ */
.book-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 0;
}

.chapter-header {
  padding: 48px 0 20px;
}
.chapter-label {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  color: var(--purple);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.chapter-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.chapter-sub {
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}
.chapter-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--purple), var(--cyan));
  margin: 20px 0 32px;
  border: none;
}

.book-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  font-family: 'Syne', sans-serif;
}
.book-text p { margin-bottom: 1.4em; }
.book-text blockquote {
  border-left: 3px solid var(--purple);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--muted);
  font-style: italic;
  background: rgba(180,79,255,0.04);
  border-radius: 0 8px 8px 0;
}
.book-text .question {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
}
.book-text .emphasis {
  color: var(--purple);
  font-weight: 700;
}
.book-text .verse {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: .9rem;
  color: var(--muted);
  line-height: 2.2;
  margin: 32px 0;
  font-style: italic;
}
.chapter-end-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 0;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
}
.chapter-end-line::before,
.chapter-end-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============ PAYWALL ============ */
.paywall-fade {
  position: relative;
  margin-top: -120px;
  pointer-events: none;
}
.paywall-fade::before {
  content: '';
  display: block;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg) 85%);
}

/* Texte flou "effacé par l'IA"  signature visuelle */
.erased-text {
  font-family: 'Space Mono', monospace;
  font-size: .88rem;
  line-height: 2;
  color: var(--muted);
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: .5;
  margin-bottom: 0;
}

.paywall-box {
  background: var(--bg2);
  border: 1px solid rgba(180,79,255,0.25);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(180,79,255,0.1), 0 0 120px rgba(0,229,255,0.04);
}
.paywall-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}
.paywall-headline {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.paywall-headline span { color: var(--purple); }
.paywall-desc {
  color: var(--muted);
  font-size: .95rem;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.paywall-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.paywall-chapters span {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(180,79,255,0.08);
  color: var(--purple);
  border: 1px solid rgba(180,79,255,0.2);
}

.btn-cafe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 24px rgba(255,106,0,0.3);
}
.btn-cafe:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255,106,0,0.5);
  text-decoration: none;
}
.btn-cafe-note {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}

/* ============ TEASER CHAPITRES VERROUILLÉS ============ */
.locked-tease {
  max-width: 700px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.locked-tease-title {
  font-family: 'Space Mono', monospace;
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.tease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.tease-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.tease-card::after {
  content: '🔒';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: .8rem;
  opacity: .5;
}
.tease-card-num {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  color: var(--purple);
  margin-bottom: 6px;
}
.tease-card-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 6px;
  line-height: 1.35;
}
.tease-card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer-cta {
  text-align: center;
  padding: 80px 24px;
  background: radial-gradient(ellipse at 50% 100%, rgba(180,79,255,0.1) 0%, transparent 60%);
}
.footer-cta p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 20px;
  font-family: 'Space Mono', monospace;
}
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  font-family: 'Space Mono', monospace;
}
.footer a { color: var(--cyan); text-decoration: none; }

/* ============ ANIMATIONS ============ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20%       { transform: translate(-2px, 1px); filter: hue-rotate(20deg); }
  40%       { transform: translate(2px, -1px); }
  60%       { transform: translate(-1px, 2px); filter: hue-rotate(-20deg); }
  80%       { transform: translate(1px, -2px); }
}

/* Titre glitch au hover */
.hero-title:hover em {
  animation: glitch .4s steps(1) both;
  display: inline-block;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .paywall-box { padding: 32px 20px; }
  .hero-meta-sep { display: none; }
  .tease-grid { grid-template-columns: 1fr; }
}


/* ══ Styles extraits des attributs inline ══ */
.inl-div-001 { padding-top:64px; }
.inl-div-002 { padding-top:64px; }
.inl-div-003 { padding-top:64px; }
.inl-div-004 { max-width:700px;margin:40px auto 0;padding:0 24px;overflow:hidden; }
.inl-div-005 { padding:0 24px 80px;max-width:700px;margin:0 auto; }
.inl-div-006 { padding-bottom:80px; }
