/* ============================================================
   STYLES.CSS — Sanctuaire Mystique (thème Violet & Or)
   Version unifiée complète v2 — tous composants & voix inclus
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --bg:              #12062e;
  --ink:             #f0eaff;
  --muted:           #c9b8e8;
  --gold:            #c9a84c;
  --gold-light:      #e8c97a;
  --violet:          #7b3dd4;
  --violet-dark:     #2a0a5e;
  --violet-deep:     #1a0540;
  --violet-pale:     #f0eaff;
  --violet-light-bg: #ece5ff;
  --paper1:          #1e0b52;
  --paper2:          #150840;
  --stroke:          rgba(201,168,76,.35);
  --outer-border:    #3d1080;
  --inner-border:    #ffffff;
}

/* --- RESET --- */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* --- BODY --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #2a0a5e;
  background:
    radial-gradient(900px 600px at 20% 15%, rgba(123,61,212,.28), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(180,60,20,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(123,61,212,.18), transparent 60%),
    linear-gradient(180deg, #07030f, var(--bg));
  background-color: #12062e;
  padding: 60px 14px 28px;
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION PLEINE LARGEUR
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(18,6,46,.98), rgba(12,4,32,.96));
  border-bottom: 1px solid rgba(201,168,76,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  width: 100%;
}

.main-nav ul li { flex: 1; }

.main-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  font-family: ui-serif, Georgia, serif;
  text-align: center;
  border-right: 1px solid rgba(201,168,76,.15);
  transition: color .2s ease, background .2s ease, text-shadow .2s ease;
  position: relative;
}

.main-nav ul li:last-child a { border-right: none; }

.main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: center;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--gold);
  background: rgba(201,168,76,.07);
  text-shadow: 0 0 12px rgba(201,168,76,.5);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { transform: scaleX(1); }

/* ============================================================
   FEUILLE / SHEET + COLONNES
   ============================================================ */
.sheet {
  max-width: 860px;
  margin: 0 auto;
  border: 4px solid var(--outer-border);
  border-radius: 20px;
  box-shadow:
    0 0 0 8px var(--outer-border),
    0 20px 70px rgba(0,0,0,.7),
    0 0 60px rgba(61,16,128,.4);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    repeating-linear-gradient(0deg, rgba(201,168,76,.05) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, var(--paper1), var(--paper2));
  overflow: hidden;
  position: relative;
}

.sheet::before { display: none; }

.temple {
  position: relative;
  padding: 30px 0;
  max-width: 960px;
  margin: 0 auto;
}

.column {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(#2a0f5e, #12062e);
  box-shadow: inset 0 0 10px rgba(201,168,76,.3);
}

.column.left  { left:  -60px; }
.column.right { right: -60px; }

/* ============================================================
   HERO + SIGILS + DIVIDER
   ============================================================ */
.hero {
  padding: 34px 22px 18px;
  text-align: center;
}

.sigils {
  letter-spacing: .25em;
  color: rgba(201,168,76,.85);
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

.divider {
  color: rgba(201,168,76,.9);
  margin: 10px auto 14px;
  font-size: 14px;
  letter-spacing: .08em;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.divider::after {
  content: "";
  position: absolute;
  left: -100%; top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.9), transparent);
  animation: sweep 2.5s ease-out forwards;
}

.divider.small { margin: 0 auto 10px; }

/* Séparateur décoratif entre sections */
.sep {
  text-align: center;
  color: rgba(201,168,76,.6);
  letter-spacing: .3em;
  font-size: 14px;
  margin: 8px 0 4px;
}

/* ============================================================
   BREADCRUMB / FIL D'ARIANE
   ============================================================ */
.breadcrumb {
  padding: 14px 18px 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  text-align: left;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-shadow: 0 0 8px rgba(201,168,76,.5); }
.breadcrumb span { color: rgba(201,168,76,.5); margin: 0 6px; }

/* ============================================================
   BANDEAU DE CHAPITRE
   ============================================================ */
.chapter-badge {
  display: inline-block;
  background: var(--violet-dark);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.45);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}

/* ============================================================
   TITRES
   ============================================================ */
h1, h2, h3 {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(201,168,76,.4), 0 0 30px rgba(201,168,76,.15);
  text-align: left;
}

h1 {
  margin: 0 0 10px;
  font-size: 34px;
  text-align: center !important;
}

h2 {
  font-size: 20px;
  margin: 0 0 12px;
  display: block;
  background: var(--violet-dark);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--gold);
  letter-spacing: .04em;
  text-shadow: 0 0 10px rgba(201,168,76,.3);
}

.card h2 {
  margin-left: -18px;
  margin-right: -18px;
  border-radius: 0;
  border-left: 4px solid var(--gold);
  padding: 10px 18px;
}

/* ============================================================
   TITRES DE PAGE (chapitres)
   ============================================================ */
.page-title {
  font-size: 27px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,.5), 0 0 50px rgba(201,168,76,.2);
  margin: 0 0 8px;
  line-height: 1.25;
  text-align: center !important;
}

.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 20px;
  line-height: 1.6;
  text-align: left;
}

/* ============================================================
   NUMÉROS DE SECTION
   ============================================================ */
.section-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--violet-dark);
  border: 1px solid rgba(201,168,76,.5);
  color: var(--gold);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

.section-header {
  display: flex;
  align-items: center;
  margin: 24px 0 12px;
}

.section-header h2 {
  margin: 0;
  flex: 1;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.35;
  background: none;
  border-left: none;
  padding: 0;
  border-radius: 0;
  text-shadow: 0 0 10px rgba(201,168,76,.3);
}

/* ============================================================
   TEXTE DE CORPS
   ============================================================ */
.body-text {
  color: #1a0a3a;
  line-height: 1.75;
  font-size: 13.5px;
  margin-bottom: 14px;
  text-align: left;
}

p {
  text-align: left;
  margin: 0 0 14px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  margin: 18px 18px 26px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 16px;
  background: #ece5ff;
  color: #2a0a5e;
}

.card > p, section.card > p {
  color: #1a0a3a;
  line-height: 1.75;
  font-size: 13.5px;
  margin-bottom: 14px;
  text-align: left;
}

.card > p strong,
.card .body-text strong {
  color: #0e0520;
}

.card em {
  color: #5a1abf;
  font-style: italic;
}

.card *:not(h2):not(.box-dark):not(.box-dark *):not(.quote-itachi):not(.quote-itachi *)
      :not(.voice-madara):not(.voice-madara *):not(.vision-madara):not(.vision-madara *)
      :not(.voice-sasuke):not(.voice-sasuke *):not(.voice-guy):not(.voice-guy *)
      :not(.voice-fukasaku):not(.voice-fukasaku *) {
  color: #2a0a5e;
}

/* ============================================================
   CARD PARCHEMIN (catalogue items)
   ============================================================ */
.card2 {
  padding: 22px;
  background: linear-gradient(135deg, #f4e6c8, #e8d7a5);
  color: #2c1b0c;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: inset 0 0 20px rgba(0,0,0,.15), 0 10px 20px rgba(0,0,0,.4);
  position: relative;
  margin: 18px 18px 26px;
}

/* ============================================================
   ENCADRÉS INTÉRIEURS
   ============================================================ */
.box-light {
  background: var(--violet-light-bg);
  color: #2a0a5e;
  border: 1px solid rgba(123,61,212,.25);
  border-radius: 10px;
  padding: 1px 16px;
  margin: 1px 0;
  line-height: 1.6;
}

.box-dark {
  background: var(--violet-dark);
  color: var(--gold) !important;
  border: 1px solid rgba(201,168,76,.45);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  line-height: 1.65;
  text-shadow: 0 0 8px rgba(201,168,76,.2);
  box-shadow: inset 0 0 20px rgba(0,0,0,.3), 0 4px 20px rgba(0,0,0,.35);
}

.box-dark,
.box-dark p,
.box-dark span { color: var(--gold) !important; }

.box-dark strong,
.box-dark b { color: var(--gold-light) !important; }

.box-dark em {
  color: var(--gold-light) !important;
  font-style: italic;
}

/* Blockquote → style doré */
blockquote {
  background: var(--violet-dark);
  color: var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-style: italic;
  text-shadow: 0 0 8px rgba(201,168,76,.2);
}

.card .highlight-light {
  display: inline-block;
  background: var(--violet-light-bg);
  color: #2a0a5e;
  border-radius: 6px;
  padding: 2px 8px;
  font-style: normal;
}

/* ============================================================
   PRÉAMBULE AUTEUR
   ============================================================ */
.preambule-box {
  background: linear-gradient(135deg, rgba(42,10,94,.95), rgba(26,5,64,.98));
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 14px 0;
  color: var(--gold);
  font-size: 13.5px;
  line-height: 1.75;
  box-shadow: inset 0 0 30px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
}

.preambule-box p,
.preambule-box .body-text { color: var(--gold) !important; text-align: left; }
.preambule-box strong { color: var(--gold-light) !important; }
.preambule-box em    { color: var(--gold-light) !important; }

/* ============================================================
   ALERTES — LUNE & MAGIE (même style, identité différente)
   ============================================================ */
.alert-moon,
.alert-magic {
  background: linear-gradient(135deg, rgba(20,5,60,.97), rgba(10,3,40,.99));
  border: 2px solid rgba(201,168,76,.6);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 14px 0;
  color: #e8e8f0 !important;
  font-size: 13.5px;
  line-height: 1.75;
  box-shadow: 0 0 30px rgba(201,168,76,.15), inset 0 0 40px rgba(0,0,0,.5);
}

.alert-moon em,  .alert-magic em,
.alert-moon strong, .alert-magic strong { color: #e8e8f0 !important; }

.alert-moon .alert-title,
.alert-magic .alert-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(201,168,76,.5);
}

/* ============================================================
   NAVIGATION DE CHAPITRE
   ============================================================ */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid rgba(201,168,76,.2);
  margin-top: 10px;
}

.chapter-nav a {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  background: rgba(42,10,94,.5);
  transition: background .2s, border-color .2s;
}

.chapter-nav a:hover {
  background: rgba(42,10,94,.9);
  border-color: var(--gold);
}

/* ============================================================
   DUALITÉ (Matrice rouge / Tao bleu)
   ============================================================ */
.duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

@media (max-width: 520px) {
  .duality { grid-template-columns: 1fr; }
}

.duality-red {
  background: rgba(120,10,10,.1);
  border: 1px solid rgba(180,40,40,.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #1a0510;
}

.duality-red .duality-label {
  display: block;
  font-weight: 700;
  color: #8a0808;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.duality-tao {
  background: rgba(10,60,100,.08);
  border: 1px solid rgba(40,100,160,.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #051020;
}

.duality-tao .duality-label {
  display: block;
  font-weight: 700;
  color: #1a3570;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* ============================================================
   GRILLE CONCEPTS — MUGEN TSUKIYOMI
   ============================================================ */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

@media (max-width: 520px) {
  .concept-grid { grid-template-columns: 1fr; }
}

.concept-item {
  background: linear-gradient(135deg, rgba(55,10,120,.92), rgba(35,5,90,.97));
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center !important;
  color: #e8e8f0 !important;
  font-size: 12px;
  box-shadow: inset 0 0 20px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
}

.concept-item .concept-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #c9a84c !important;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(201,168,76,.5);
}

/* ============================================================
   GRILLE RELATIVITÉ — EINSTEIN
   ============================================================ */
.relativity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

@media (max-width: 520px) {
  .relativity-grid { grid-template-columns: 1fr; }
}

.rel-item {
  background: linear-gradient(135deg, rgba(55,10,120,.92), rgba(35,5,90,.97));
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center !important;
  color: #e8e8f0 !important;
  font-size: 12px;
  box-shadow: inset 0 0 20px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
}

.rel-item .rel-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #c9a84c !important;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(201,168,76,.5);
}

/* ============================================================
   CARTES DE CONVERGENCE — EINSTEIN (Lévi / Neville / Einstein)
   ============================================================ */
.convergence-card {
  background: linear-gradient(135deg, rgba(55,10,120,.92), rgba(35,5,90,.97));
  border: 1px solid rgba(201,168,76,.55);
  border-radius: 12px;
  padding: 16px 18px;
  color: #c9a84c !important;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
  box-shadow: inset 0 0 24px rgba(0,0,0,.3), 0 4px 18px rgba(0,0,0,.3);
}

.convergence-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #e8c97a !important;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(201,168,76,.5);
  letter-spacing: .06em;
}

/* ============================================================
   TRINITÉ KABBALISTIQUE
   ============================================================ */
.trinite-item {
  background: linear-gradient(135deg, rgba(55,10,120,.92), rgba(35,5,90,.97));
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--gold) !important;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.trinite-item .trinite-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light) !important;
  margin-bottom: 6px;
  letter-spacing: .06em;
}

/* ============================================================
   CITATIONS MUGEN TSUKIYOMI — violet nuit / or (signature MT)
   ============================================================ */
.quote-moon {
  background: linear-gradient(135deg, #1a0840, #2a0a5e);
  color: #d4c4f0;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-style: italic;
  line-height: 1.7;
  box-shadow: inset 0 0 20px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  font-size: 13.5px;
  position: relative;
}

.quote-moon .quote-source {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: .06em;
  text-align: right;
}

/* ============================================================
   CITATIONS EINSTEIN — gris ardoise cosmique / bleu acier
   ============================================================ */
.quote-einstein {
  background: linear-gradient(135deg, #dce8f2, #c8dce8);
  color: #09192a;
  border-left: 4px solid #4a7aa0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-style: italic;
  line-height: 1.7;
  box-shadow: inset 0 0 20px rgba(74,122,160,.12), 0 4px 16px rgba(0,0,0,.25);
  font-size: 13.5px;
  position: relative;
}

.quote-einstein .quote-source {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: #2a5070;
  letter-spacing: .06em;
  text-align: right;
}

/* ============================================================
   VISION DIRECTE EINSTEIN — bleu acier clair
   ============================================================ */
.vision-einstein {
  background: linear-gradient(135deg, #dce8f2 0%, #c4d8e8 50%, #d8e8f4 100%);
  border: 2px solid #4a7aa0;
  border-radius: 16px;
  padding: 24px 26px;
  margin: 16px 0;
  color: #09192a;
  font-style: italic;
  line-height: 1.8;
  font-size: 13.5px;
  box-shadow: inset 0 0 30px rgba(74,122,160,.1), 0 10px 30px rgba(0,0,0,.3);
  position: relative;
}

.vision-einstein::before {
  content: "⚛";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: #c4d8e8;
  padding: 0 10px;
  color: #4a7aa0;
  font-size: 18px;
  font-style: normal;
}

.vision-einstein p { color: #09192a; text-align: left; }

.vision-einstein .vision-signature {
  color: #2a5070;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  display: block;
  text-align: right;
  margin-top: 16px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  text-decoration: none;
  color: #f0eaff;
  background: linear-gradient(90deg, var(--violet), rgba(123,61,212,.9), var(--gold));
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.btn:hover { filter: brightness(1.1); }

.buy {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--violet-dark);
  color: var(--gold);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,.4);
  font-weight: 600;
}

.buy:hover { background: #3d1080; }

a.btn, a.buy {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

a.btn:hover, a.buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123,61,212,.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center;
  padding: 14px 18px 22px;
  border-top: 1px solid rgba(201,168,76,.18);
  background: rgba(0,0,0,.18);
}

.tiny {
  margin: 0;
  color: rgba(240,234,255,.65);
  font-size: 12px;
  text-align: center;
}

.foot a, .tiny a { color: rgba(201,168,76,.7); text-decoration: none; }
.foot a:hover, .tiny a:hover { color: var(--gold); }

/* ============================================================
   HEADER TOP (catalogue)
   ============================================================ */
.top {
  padding: 28px 22px 18px;
  text-align: center;
}

.back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}

.note a { color: var(--gold); }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.card input[type="email"],
.card input[type="password"],
.card input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,.4);
  background: rgba(0,0,0,.4);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.card input:focus { border-color: var(--gold); }

/* ============================================================
   WELCOME + MISC
   ============================================================ */
.welcome {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

section {
  font-size: 12px;
  color: #2a0a5e;
}

div { font-size: 12px; }

mt { font-size: 16px; }

img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   CIEL ÉTOILÉ
   ============================================================ */
.stars {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #12062e;
  overflow: hidden;
  z-index: -1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite alternate;
}

/* ============================================================
   AUTEL PLANÉTAIRE
   ============================================================ */
.altar {
  margin: 50px auto;
  text-align: center;
  position: relative;
}

.circle {
  width: 260px; height: 260px;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.5);
  box-shadow: 0 0 40px rgba(123,61,212,.5), inset 0 0 30px rgba(201,168,76,.25);
  position: relative;
  animation: pulse 6s ease-in-out infinite;
}

.moon {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #c9a84c;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: 50%;
  animation: spin linear infinite;
  font-size: 30px;
  color: #ffffff;
}

.orbit1 { width: 120px; height: 120px; top: 70px; left: 70px; animation-duration: 20s; }
.orbit2 { width: 180px; height: 180px; top: 40px; left: 40px; animation-duration: 30s; }
.orbit3 { width: 230px; height: 230px; top: 15px; left: 15px; animation-duration: 45s; }

.planet {
  position: absolute;
  top: -6px; left: 50%;
  font-size: 16px;
  transform: translateX(-50%);
}

/* ============================================================
   FLAMME SACRÉE
   ============================================================ */
.flame {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 36px;
  background: linear-gradient(to top, #c9a84c, #fff8d1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: flameAnim 1s infinite alternate;
}

/* ============================================================
   GRILLE CATALOGUE
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 18px;
}

.item {
  padding: 22px;
  background: var(--violet-dark);
  color: var(--gold);
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,.4);
  box-shadow: inset 0 0 20px rgba(0,0,0,.3), 0 10px 20px rgba(0,0,0,.4);
  position: relative;
}

.item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,168,76,.06), transparent 40%);
  pointer-events: none;
  border-radius: 12px;
}

.item h3 {
  font-family: serif;
  margin-bottom: 10px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,168,76,.3);
}

/* ============================================================
   VOIX DES PERSONNAGES — BASE COMMUNE
   ============================================================ */
.voice-box {
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}

.voice-box .voice-name {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   🦉 ITACHI — CITATIONS (fond noir cadre, écriture blanche, signature dorée)
   ============================================================ */
.quote-itachi {
  background: #030303;
  border: 1px solid rgba(201,168,76,.25);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 16px 0;
  font-style: italic;
  line-height: 1.7;
  font-size: 13.5px;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.8),
    0 8px 30px rgba(0,0,0,.9),
    inset 0 0 40px rgba(0,0,0,.6);
}

.quote-itachi .quote-source {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: #c9a84c !important;
  letter-spacing: .06em;
  text-align: right;
}

.quote-itachi * { color: #ffffff !important; }
.quote-itachi .quote-source { color: #c9a84c !important; }

/* 🦉 ITACHI — VOIX (dialogue) */
.voice-itachi {
  background: #0a0a0a !important;
  border-left: 4px solid #cc2200 !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}

.voice-itachi .voice-name {
  color: #c9a84c !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}

.voice-itachi *,
.voice-itachi p,
.voice-itachi span { color: #ffffff !important; }
.voice-itachi .voice-name { color: #c9a84c !important; }

/* ============================================================
   🌕 MADARA — VOIX (dialogue court)
   fond rouge sang sombre, écriture blanche, signature rouge
   ============================================================ */
.voice-madara,
.vision-madara-voice {
  background: linear-gradient(135deg, #1a0808 0%, #2a0505 50%, #1a0808 100%) !important;
  border-left: 4px solid #8a1a1a !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}

.voice-madara .voice-name,
.vision-madara-voice .voice-name {
  color: #cc2200 !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}

.voice-madara *,
.vision-madara-voice * { color: #ffffff !important; }
.voice-madara .voice-name,
.vision-madara-voice .voice-name { color: #cc2200 !important; }

/* ============================================================
   🌕 MADARA — VISION (grand fragment/citation)
   background: #1a0808 → #2a0505 → #1a0808
   bordures: #8a1a1a | écriture blanche | signature rouge
   ============================================================ */
.vision-madara {
  background: linear-gradient(135deg, #1a0808 0%, #2a0505 50%, #1a0808 100%);
  border: 2px solid #8a1a1a;
  border-radius: 16px;
  padding: 24px 26px;
  margin: 16px 0;
  color: #ffffff !important;
  font-style: italic;
  line-height: 1.8;
  font-size: 13.5px;
  box-shadow: inset 0 0 30px rgba(140,20,20,.15), 0 10px 30px rgba(0,0,0,.4);
  position: relative;
}

.vision-madara p {
  color: #ffffff !important;
  text-align: left !important;
}

.vision-madara * { color: #ffffff !important; }

.vision-madara .vision-signature {
  color: #cc2200 !important;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  display: block;
  text-align: right;
  margin-top: 16px;
}

.vision-madara::before {
  content: "🌕";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: #1a0808;
  padding: 0 10px;
  font-size: 18px;
  font-style: normal;
}

/* ============================================================
   ⚡ SASUKE — violet sombre, texte clair, bordure or
   (couleur signature conservée intacte)
   ============================================================ */
.voice-sasuke {
  background: rgba(55,20,120,.75) !important;
  border-left: 3px solid #c9a84c !important;
  color: #e8e8f0 !important;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}

.voice-sasuke .voice-name {
  color: #c9a84c !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}

.voice-sasuke * { color: #e8e8f0 !important; }
.voice-sasuke .voice-name { color: #c9a84c !important; }

/* ============================================================
   🔥 MIGHT GUY — fond vert clair, texte vert foncé/marine
   (couleur signature conservée intacte)
   ============================================================ */
.voice-guy {
  background: rgba(220,255,220,.85);
  border-left: 4px solid #1a3a6e;
  color: #1a3a1a;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}

.voice-guy .voice-name {
  color: #1a3a6e;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   🐸 FUKASAKU — fond vert très doux, bordure orange
   (couleur signature conservée intacte)
   ============================================================ */
.voice-fukasaku {
  background: rgba(180,230,180,.85);
  border-left: 4px solid #ff751f;
  color: #0a2a0a;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}

.voice-fukasaku .voice-name {
  color: #ff751f;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   BANDEAU DE CHAPITRE & NUMÉROS — doré
   ============================================================ */
.chapter-badge  { color: var(--gold) !important; }
.section-number { color: var(--gold) !important; }

/* ============================================================
   GRILLE CATALOGUE (fond violet foncé → texte doré)
   ============================================================ */
.item { color: var(--gold); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(.96); }
  50%       { transform: scale(1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes flameAnim {
  0%   { transform: translate(-50%,-50%) rotate(-5deg) scaleY(1); }
  50%  { transform: translate(-50%,-50%) rotate(5deg)  scaleY(1.1); }
  100% { transform: translate(-50%,-50%) rotate(-5deg) scaleY(1); }
}

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

@keyframes sweep {
  to { left: 100%; }
}

.hero, .card, .intro, .intro-short {
  animation: fadeUp 0.8s ease-out both;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
  body { padding-top: 90px; }

  .main-nav ul li a {
    font-size: 10px;
    height: 44px;
    letter-spacing: 0;
    padding: 4px 2px;
  }

  h1 { font-size: 22px; }

  .sheet {
    box-shadow:
      0 0 0 5px var(--outer-border),
      0 10px 30px rgba(0,0,0,.6);
  }

  .concept-grid,
  .relativity-grid { grid-template-columns: 1fr; }
  .duality          { grid-template-columns: 1fr; }
}

.planet {
  position: absolute;
  top: -10px; left: 50%;
  font-size: 16px;
  transform-origin: center;
  transform: translateX(-50%);
  animation: counter-spin linear infinite;
  /* Même durée que l'orbite parente ! */
}

.orbit1 .planet { animation-duration: 20s; }
.orbit2 .planet { animation-duration: 30s; }
.orbit3 .planet { animation-duration: 45s; }

/* L'orbite tourne */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* La planète contre-tourne pour ne pas pivoter sur elle-même */
@keyframes counter-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-360deg); }
}

body {
  font-family: Arial, sans-serif;
}