
/* ── VARIABLES ── */
:root {
  --cyan:   #00e5ff;
  --cyan2:  #00b4cc;
  --red:    #ff2050;
  --gold:   #ffd060;
  --silver: #c8dce8;
  --white:  #e8f4ff;
  --muted:  #4a7a9a;
  --bg:     #020508;
  --card:   rgba(5,16,28,0.97);
  --border: rgba(0,229,255,0.18);
  --r:      14px;
  --t:      0.22s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── FOND SIMPLE (pas de 3D, pas de transform complexe) ── */
/* ── FOND PRINCIPAL ── */
.bg-static {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%, rgba(0,180,204,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 75%, rgba(0,80,160,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 100% 50% at 50% 110%, rgba(0,100,140,0.12) 0%, transparent 50%);
}

/* ── GRILLE ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background-image:
    linear-gradient(rgba(0,229,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.055) 1px, transparent 1px);
  background-size: 55px 55px;
  opacity: 0.65;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.035) 3px, rgba(0,0,0,0.035) 4px
  );
}

/* ── VIGNETTE ── */
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 35%, rgba(2,5,8,0.75) 100%);
}

/* ── PARTICULES ── */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--cyan); opacity: 0;
  animation: rise linear infinite;
}
.particle.type-cross {
  border-radius: 0;
  clip-path: polygon(40% 0%,60% 0%,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0% 60%,0% 40%,40% 40%);
}
@keyframes rise {
  0%   { opacity: 0; transform: translate3d(0, 80vh, 0); }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.1; }
  100% { opacity: 0; transform: translate3d(0, -5vh, 0); }
}
  8%   { opacity: 0.5; }
  90%  { opacity: 0.1; }
  100% { opacity: 0; transform: translate3d(0, -8vh, 0) scale(1.2); }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(2,5,8,0.95);
  border-bottom: none;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.6) 20%, rgba(0,229,255,0.6) 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.nav-separator {
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  height: 1px;
  z-index: 999;
  background: rgba(0,229,255,0.5);
}
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1rem; font-weight: 900;
  color: var(--cyan); letter-spacing: 4px;
  cursor: pointer; text-decoration: none;
  text-shadow: 0 0 15px rgba(0,229,255,0.4);
  transition: all var(--t);
}
.nav-logo:hover { text-shadow: 0 0 25px rgba(0,229,255,0.7); }
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--t);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}

.btn-logout {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,32,80,0.35);
  color: rgba(255,32,80,0.75);
  padding: 0.38rem 0.85rem; border-radius: 6px;
  cursor: pointer; margin-left: 0.6rem;
  transition: all var(--t);
}
.btn-logout:hover {
  background: rgba(255,32,80,0.1);
  border-color: var(--red); color: var(--red);
}

/* ── PAGE LOGIN ── */
.login-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* Couverture */
.cover-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadein 0.8s ease both;
}
.cover-box img {
  width: min(220px, 55vw);
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.22),
    0 16px 50px rgba(0,0,0,0.75),
    0 0 60px rgba(0,180,204,0.18);
}
.cover-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem; letter-spacing: 3px;
  color: var(--muted); text-transform: uppercase;
}

/* Carte formulaire */
.login-card {
  position: relative;
  z-index: 10;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  width: 100%; max-width: 390px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,229,255,0.08);
  animation: fadein 0.8s 0.15s ease both;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), rgba(0,229,255,0.3), transparent);
  pointer-events: none;
}

.card-head {
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--silver);
  text-align: center;
  margin-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.card-head i { color: var(--cyan); font-size: 0.9em; }

/* Messages */
.msg {
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem; font-weight: 700;
  text-align: center; letter-spacing: 0.4px;
  margin-bottom: 0.9rem;
  display: none;
}
.msg.error   { color: #ff8090; background: rgba(255,32,80,0.1);  border: 1px solid rgba(255,32,80,0.25); }
.msg.success { color: #60e890; background: rgba(20,180,80,0.09); border: 1px solid rgba(20,180,80,0.22); }
.msg.show { display: block; }

/* Champs */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.field-wrap { position: relative; }
.field-wrap input {
  display: block;
  width: 100%;
  padding: 0.82rem 1rem 0.82rem 2.65rem;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.14);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.field-wrap input::placeholder {
  color: rgba(200,220,240,0.2);
  font-style: italic; font-weight: 400;
}
.field-wrap input:focus {
  border-color: var(--cyan2);
  background: rgba(0,229,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}
.field-icon {
  position: absolute;
  left: 0.85rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(0,229,255,0.35);
  font-size: 0.82rem;
  pointer-events: none;
  transition: color var(--t);
}
.field-wrap input:focus + .field-icon { color: var(--cyan); }

/* Barre force MDP */
.strength-bar  { height: 2px; border-radius: 2px; margin-top: 0.35rem; background: rgba(255,255,255,0.06); overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.strength-txt  { font-size: 0.66rem; margin-top: 0.22rem; color: var(--muted); min-height: 1em; letter-spacing: 1px; }

/* Bouton principal */
.btn-main {
  display: block;
  width: 100%;
  padding: 0.9rem;
  margin-top: 1.2rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(0,80,110,0.9) 0%, rgba(0,160,190,0.8) 50%, rgba(0,229,255,0.5) 100%);
  border: 1px solid var(--cyan2);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 4px 20px rgba(0,180,200,0.3);
  position: relative; overflow: hidden;
}
.btn-main:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(0,229,255,0.35);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.btn-main:active:not(:disabled) { transform: translateY(0); }
.btn-main:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-main .spin {
  display: none;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
.btn-main.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toggle-link {
  display: block; text-align: center; margin-top: 1rem;
  color: var(--muted); font-size: 0.8rem; cursor: pointer;
  letter-spacing: 0.5px; user-select: none;
  transition: color var(--t);
}
.toggle-link b { color: var(--cyan); font-weight: 700; text-decoration: underline; }
.toggle-link:hover b { color: #fff; }

/* ── CONTENU APP ── */
.app-wrap, .page-main {
  position: relative; z-index: 10;
  max-width: 1100px;
  margin: 100px auto 100px auto;
  padding: 0 1.5rem;
}

/* Carte section */
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.2rem 2.5rem;
  position: relative; overflow: hidden;
  animation: fadein 0.4s ease both;
}
.section-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), rgba(0,229,255,0.3), transparent);
  pointer-events: none;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.85rem,1.8vw,1.05rem);
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 0.8rem;
  text-shadow: 0 0 12px rgba(0,229,255,0.35);
}
.section-title .line { flex: 1; height: 1px; background: var(--border); }

/* Accueil */
.home-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start; }
.home-cover {
  border-radius: var(--r); overflow: hidden;
  aspect-ratio: 2/3;
  box-shadow: 0 0 0 1px rgba(0,229,255,0.2), 0 16px 50px rgba(0,0,0,0.7);
  position: relative;
}
.home-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-cover-label {
  text-align: center; margin-top: 0.55rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.48rem; letter-spacing: 2.5px; color: var(--muted); text-transform: uppercase;
}
.meta-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.5rem 0.8rem; margin-bottom: 0.5rem;
  border-radius: 6px;
  background: rgba(0,229,255,0.03); border: 1px solid var(--border);
  font-size: 0.88rem;
}
.meta-key {
  font-family: 'Orbitron', monospace; font-size: 0.58rem;
  letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; min-width: 78px;
}
.meta-val { color: var(--white); font-weight: 600; }
.home-desc { color: rgba(200,220,240,0.7); line-height: 1.8; font-size: 0.92rem; margin: 1rem 0; }
.home-tip {
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.3px;
  padding: 0.7rem 1rem;
  border-left: 2px solid var(--cyan2);
  background: rgba(0,229,255,0.03); border-radius: 0 6px 6px 0;
}

/* Chapitres */
.chap-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.5rem; }
.chap-btn {
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  background: rgba(0,229,255,0.02);
  border: 1px solid var(--border); border-radius: var(--r);
  color: var(--white); font-family: 'Rajdhani', sans-serif;
  cursor: pointer; text-align: left;
  transition: all var(--t);
  position: relative; overflow: hidden;
}
.chap-btn::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--red));
  transform: scaleY(0); transition: transform var(--t); transform-origin: top;
}
.chap-btn:hover { background: rgba(0,229,255,0.06); border-color: rgba(0,229,255,0.3); transform: translateX(5px); }
.chap-btn:hover::before { transform: scaleY(1); }
.chap-num { font-family: 'Orbitron', monospace; font-size: 1.3rem; font-weight: 900; color: var(--cyan); opacity: 0.5; }
.chap-title { color: var(--white); font-weight: 700; font-size: 0.97rem; letter-spacing: 0.5px; display: block; }
.chap-meta  { color: var(--muted); font-size: 0.73rem; letter-spacing: 0.5px; display: block; margin-top: 0.15rem; }
.chap-arrow { color: var(--muted); font-size: 0.8rem; transition: all var(--t); }
.chap-btn:hover .chap-arrow { color: var(--cyan); transform: translateX(4px); }

/* Planning */
.plan-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 2rem; }
.pstat {
  background: rgba(0,229,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1rem 1.2rem; text-align: center;
  transition: all var(--t);
}
.pstat:hover { background: rgba(0,229,255,0.07); border-color: rgba(0,229,255,0.3); }
.pstat-val { font-family: 'Orbitron', monospace; font-size: 1.6rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.pstat-val.gold { color: var(--gold); }
.pstat-val.muted { color: var(--muted); opacity: 0.7; }
.pstat-lbl { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; font-family: 'Orbitron', monospace; }

/* Timeline */
.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.leg { display: flex; align-items: center; gap: 0.4rem; font-size: 0.65rem; letter-spacing: 1px; color: var(--muted); font-family: 'Orbitron', monospace; }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; }
.leg-dot.pub  { background: var(--cyan); box-shadow: 0 0 8px rgba(0,229,255,0.5); }
.leg-dot.wip  { background: var(--gold); box-shadow: 0 0 8px rgba(255,208,96,0.5); animation: pulse 1.8s ease-in-out infinite; }
.leg-dot.soon { background: var(--muted); opacity: 0.6; }
@keyframes pulse { 0%,100%{box-shadow:0 0 6px rgba(255,208,96,0.3)} 50%{box-shadow:0 0 14px rgba(255,208,96,0.7)} }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--cyan), rgba(0,229,255,0.05)); }

.tl-item { position: relative; margin-bottom: 1.4rem; }
.tl-dot {
  position: absolute; left: calc(-2rem + 0.5rem - 6px); top: 1.1rem;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--bg); z-index: 1;
}
.tl-dot.pub  { background: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,0.5); }
.tl-dot.wip  { background: var(--gold); animation: pulse 1.8s ease-in-out infinite; }
.tl-dot.soon { background: var(--muted); opacity: 0.5; }

.tl-card {
  background: rgba(0,229,255,0.02); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.4rem;
  transition: all var(--t);
}
.tl-card:hover { background: rgba(0,229,255,0.05); border-color: rgba(0,229,255,0.3); }
.tl-card.pub  { border-left: 2px solid var(--cyan); }
.tl-card.wip  { border-left: 2px solid var(--gold); border-color: rgba(255,208,96,0.22); }
.tl-card.soon { border-left: 2px solid var(--muted); opacity: 0.65; }

.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.tl-num   { font-family: 'Orbitron', monospace; font-size: 0.6rem; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.tl-title { font-weight: 700; font-size: 0.97rem; color: var(--white); letter-spacing: 0.5px; margin-top: 0.1rem; }
.tl-badges { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.badge {
  font-family: 'Orbitron', monospace; font-size: 0.53rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 30px; font-weight: 700;
}
.badge.pub  { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.28); }
.badge.wip  { background: rgba(255,208,96,0.1); color: var(--gold); border: 1px solid rgba(255,208,96,0.3); animation: badge-glow 2s ease-in-out infinite; }
.badge.soon { background: rgba(74,122,154,0.12); color: var(--muted); border: 1px solid rgba(74,122,154,0.22); }
.badge.date { background: rgba(255,255,255,0.04); color: rgba(200,220,240,0.55); border: 1px solid rgba(255,255,255,0.06); }
@keyframes badge-glow { 0%,100%{box-shadow:0 0 6px rgba(255,208,96,0.2)} 50%{box-shadow:0 0 14px rgba(255,208,96,0.5)} }

.tl-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-top: 0.35rem; }
.tl-scenes { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.7rem; }
.sc {
  font-size: 0.63rem; letter-spacing: 1px; padding: 0.18rem 0.52rem;
  border-radius: 30px; font-weight: 700; text-transform: uppercase;
}
.sc.done { background: rgba(0,229,255,0.08); color: var(--cyan2); border: 1px solid rgba(0,229,255,0.18); }
.sc.wip  { background: rgba(255,208,96,0.08); color: var(--gold); border: 1px solid rgba(255,208,96,0.2); }
.sc.plan { background: rgba(74,122,154,0.08); color: var(--muted); border: 1px solid rgba(74,122,154,0.15); }

.pb-wrap { margin-top: 0.9rem; }
.pb-label { display: flex; justify-content: space-between; font-size: 0.63rem; letter-spacing: 1px; color: var(--muted); margin-bottom: 0.3rem; font-family: 'Orbitron', monospace; }
.pb-track { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.pb-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.pb-fill.cyan { background: linear-gradient(90deg, var(--cyan2), var(--cyan)); }
.pb-fill.gold { background: linear-gradient(90deg, rgba(255,208,96,0.6), var(--gold)); }
.pb-fill.muted { background: var(--muted); opacity: 0.3; }

/* Lecture */
.read-tag   { font-family: 'Orbitron', monospace; font-size: 0.6rem; letter-spacing: 3px; color: var(--cyan); margin-bottom: 0.5rem; }
.read-title { font-family: 'Cinzel', serif; font-size: clamp(1.1rem,2.5vw,1.55rem); color: var(--white); font-weight: 900; }
.read-header { margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }

.scene-div { text-align: center; margin: 2.2rem 0; position: relative; }
.scene-div::before { content: ''; position: absolute; top: 50%; left: 0; width: calc(50% - 60px); height: 1px; background: linear-gradient(90deg, transparent, var(--border)); }
.scene-div::after  { content: ''; position: absolute; top: 50%; right: 0; width: calc(50% - 60px); height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.scene-div span {
  display: inline-block; padding: 0.28rem 0.9rem;
  font-family: 'Orbitron', monospace; font-size: 0.6rem; color: var(--cyan); letter-spacing: 2.5px;
  border: 1px solid var(--border); border-radius: 30px;
  background: var(--card);
}
.read-txt { font-size: 0.93rem; line-height: 2.05; color: rgba(220,238,255,0.8); white-space: pre-wrap; font-weight: 400; }

/* Personnages */
.char-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.3rem 1.5rem; margin-bottom: 0.9rem;
  background: rgba(0,229,255,0.02); border: 1px solid var(--border);
  border-radius: var(--r); transition: all var(--t);
}
.char-card:hover { background: rgba(0,229,255,0.05); border-color: rgba(0,229,255,0.3); }
.char-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.13), rgba(0,100,140,0.28));
  border: 1px solid rgba(0,229,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1.1rem; flex-shrink: 0;
}
.char-name { font-family: 'Orbitron', monospace; font-size: 0.82rem; font-weight: 700; color: var(--cyan); letter-spacing: 2px; margin-bottom: 0.4rem; }
.char-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.char-soon { color: var(--muted); font-style: italic; font-size: 0.78rem; text-align: center; margin-top: 0.7rem; letter-spacing: 0.5px; }

/* Bouton retour */
.btn-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; padding: 0.55rem 1.1rem;
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; color: var(--muted);
  font-family: 'Rajdhani', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; transition: all var(--t);
}
.btn-back:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.06); }

/* Utilitaires */
.hidden { display: none !important; }
@keyframes fadein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 700px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-cover { max-width: 160px; margin: 0 auto; }
  .plan-stats { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
}
@media (max-width: 580px) {
  .nav-inner { padding: 0 0.6rem; height: 54px; gap: 0.2rem; }
  .nav-logo { font-size: 0.8rem; letter-spacing: 2px; }
  .nav-logo::after { display: none; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.3rem 0.35rem; font-size: 0.6rem; letter-spacing: 0; }
  .profile-btn span { display: none; }
  .profile-btn .profile-arrow { display: none; }
  .btn-logout { padding: 0.3rem 0.5rem; font-size: 0.68rem; }
  .app-wrap { margin-top: 68px; padding: 0 0.9rem; }
  .section-card { padding: 1.4rem 1.1rem; }
  .login-card { padding: 1.8rem 1.2rem; }
}
@media (max-width: 400px) {
  .plan-stats { grid-template-columns: 1fr 1fr; }
  .plan-stats .pstat:last-child { grid-column: span 2; }
}



/* ── HORLOGE PLANNING ── */
.plan-clock-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
  padding: 0.65rem 1.1rem;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.14);
  border-radius: 10px;
  font-family: 'Orbitron', monospace;
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.plan-clock-bar i {
  font-size: 0.9rem;
  opacity: 0.7;
}
.plan-clock-date {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-left: auto;
  text-transform: uppercase;
  font-weight: 400;
}


/* ── PROFIL DROPDOWN ── */
.profile-wrap {
  position: relative;
  margin-left: 0.6rem;
}
.profile-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  padding: 0.38rem 0.85rem;
  color: var(--cyan);
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px;
  cursor: pointer;
  transition: all var(--t);
}
.profile-btn:hover {
  background: rgba(0,229,255,0.12);
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 0 14px rgba(0,229,255,0.15);
}
.profile-btn i:first-child { font-size: 1rem; }
.profile-arrow {
  font-size: 0.6rem !important;
  transition: transform var(--t);
}
.profile-arrow.open { transform: rotate(180deg); }

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(4,12,22,0.98);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 20px rgba(0,229,255,0.08);
  z-index: 2000;
  animation: fadein 0.15s ease;
}
.profile-menu::before {
  content: '';
  position: absolute;
  top: -5px; right: 14px;
  width: 10px; height: 10px;
  background: rgba(4,12,22,0.98);
  border-left: 1px solid rgba(0,229,255,0.2);
  border-top: 1px solid rgba(0,229,255,0.2);
  transform: rotate(45deg);
}

.profile-menu-user {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem 0.5rem;
  color: var(--white);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.profile-menu-user i {
  color: var(--cyan); font-size: 1.1rem;
}

.profile-menu-sep {
  height: 1px;
  background: rgba(0,229,255,0.1);
  margin: 0.3rem 0;
}

.profile-menu-item {
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%; padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none;
  background: transparent; border: none;
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
}
.profile-menu-item i {
  width: 16px; text-align: center; font-size: 0.85rem;
}
.profile-menu-item:hover {
  background: rgba(0,229,255,0.07);
  color: var(--white);
}
.profile-menu-item.danger { color: rgba(255,32,80,0.7); }
.profile-menu-item.danger:hover {
  background: rgba(255,32,80,0.1);
  color: var(--red);
}

/* Modal paramètres */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadein 0.2s ease;
}
.modal-box {
  background: rgba(4,12,22,0.99);
  border: 1px solid rgba(0,229,255,0.22);
  border-radius: 16px;
  padding: 2rem;
  width: 100%; max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  pointer-events: none;
}
.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 2.5px;
  color: var(--cyan); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; cursor: pointer;
  transition: all var(--t);
  z-index: 10;
}
.modal-close:hover { color: var(--white); background: rgba(255,32,80,0.15); border-color: rgba(255,32,80,0.3); }
.modal-info {
  font-size: 0.82rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 1.2rem;
}
.modal-info span { color: var(--cyan); font-family: 'Orbitron', monospace; font-size: 0.75rem; }
.modal-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.6rem;
}

@media (max-width: 580px) {
  .profile-btn span { display: none; }
  .profile-arrow { display: none; }
  .profile-btn { padding: 0.38rem 0.6rem; }
}


/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 10;
  background: rgba(2,5,8,0.95);
  border-top: none;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.6) 20%, rgba(0,229,255,0.6) 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand .footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem; font-weight: 900;
  color: var(--cyan); letter-spacing: 4px;
  text-shadow: 0 0 14px rgba(0,229,255,0.4);
  display: block; margin-bottom: 0.5rem;
}
.footer-brand .footer-tagline {
  font-size: 0.75rem; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  font-family: 'Orbitron', monospace;
  margin-bottom: 1rem;
}
.footer-brand .footer-desc {
  font-size: 0.83rem; color: rgba(74,122,154,0.8);
  line-height: 1.7; max-width: 300px;
}

.footer-col-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,229,255,0.15);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.83rem; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 0.5rem;
  transition: all var(--t);
}
.footer-links a i { font-size: 0.75rem; width: 14px; text-align: center; }
.footer-links a:hover { color: var(--cyan); transform: translateX(4px); }

.footer-bottom {
  max-width: 1100px; margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,229,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem;
}
.footer-copy {
  font-size: 0.72rem; color: rgba(74,122,154,0.6);
  letter-spacing: 0.5px;
}
.footer-copy span { color: var(--cyan); }
.footer-badge {
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem; letter-spacing: 2px;
  color: rgba(74,122,154,0.5); text-transform: uppercase;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}



  .music-vol { display: none; }
}


 .music-vol { display: none; } }


.modal-music-ctrl {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0,229,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.modal-music-info {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--white);
}
.modal-music-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem; letter-spacing: 1.5px;
  padding: 0.35rem 0.85rem;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 6px; color: var(--cyan);
  cursor: pointer; transition: all var(--t);
}
.modal-music-btn:hover { background: rgba(0,229,255,0.2); }
.modal-music-btn.playing { background: rgba(255,32,80,0.1); border-color: rgba(255,32,80,0.3); color: var(--red); }
.modal-music-vol {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.modal-music-vol input[type=range] {
  flex: 1; height: 3px; cursor: pointer;
  accent-color: var(--cyan);
  background: rgba(255,255,255,0.1);
  border-radius: 3px; border: none; outline: none;
}


/* ── TOGGLE SWITCH ── */
.modal-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.8rem;
}
.modal-toggle-info { display: flex; flex-direction: column; gap: 0.15rem; }
.modal-toggle-label { font-size: 0.88rem; color: var(--white); font-weight: 600; }
.modal-toggle-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.3px; }

.toggle-switch {
  position: relative; width: 44px; height: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; cursor: pointer;
  transition: all 0.25s ease; flex-shrink: 0;
}
.toggle-switch.on {
  background: rgba(0,229,255,0.25);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted);
  transition: all 0.25s ease;
}
.toggle-switch.on .toggle-thumb {
  transform: translateX(20px);
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
}

.modal-vol-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.vol-slider {
  flex: 1; height: 3px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.1); border-radius: 3px; outline: none;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); cursor: pointer;
  box-shadow: 0 0 6px rgba(0,229,255,0.4);
}
.vol-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); cursor: pointer; border: none;
}
.vol-value {
  font-family: 'Orbitron', monospace; font-size: 0.6rem;
  color: var(--cyan); min-width: 32px; text-align: right;
}


/* ── ADMIN ── */
.profile-menu-item.admin-only { color: var(--gold) !important; }
.profile-menu-item.admin-only i { color: var(--gold); }
.profile-menu-item.admin-only:hover { background: rgba(255,208,96,0.1) !important; color: var(--gold) !important; }

.admin-modal { max-width: 600px; }
.admin-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-tab {
  font-family: 'Orbitron', monospace; font-size: 0.58rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); color: var(--muted);
  background: transparent; transition: all var(--t);
}
.admin-tab.active, .admin-tab:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.07); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-chap-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.admin-chap-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: rgba(0,229,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; transition: all var(--t);
}
.admin-chap-item:hover { border-color: rgba(0,229,255,0.25); }
.admin-chap-num {
  font-family: 'Orbitron', monospace; font-size: 0.7rem; font-weight: 900;
  color: var(--cyan); opacity: 0.6; min-width: 28px;
}
.admin-chap-info { flex: 1; }
.admin-chap-title { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.admin-chap-meta  { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }
.admin-chap-actions { display: flex; gap: 0.4rem; }
.admin-btn-sm {
  font-size: 0.72rem; padding: 0.3rem 0.65rem; border-radius: 6px;
  cursor: pointer; border: 1px solid; transition: all var(--t);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; background: transparent;
}
.admin-btn-sm.edit  { border-color: rgba(0,229,255,0.3); color: var(--cyan); }
.admin-btn-sm.edit:hover  { background: rgba(0,229,255,0.1); }
.admin-btn-sm.del   { border-color: rgba(255,32,80,0.3); color: var(--red); }
.admin-btn-sm.del:hover   { background: rgba(255,32,80,0.1); }

.admin-form { display: flex; flex-direction: column; gap: 0.8rem; }
.admin-field label {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.35rem;
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.14);
  border-radius: 8px; color: var(--white);
  font-family: 'Rajdhani', sans-serif; font-size: 0.92rem;
  outline: none; transition: border-color var(--t);
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus { border-color: var(--cyan2); background: rgba(0,229,255,0.07); }
.admin-field textarea { resize: vertical; min-height: 70px; }
.admin-field select option { background: #0a1520; }
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.admin-actions { display: flex; gap: 0.7rem; margin-top: 0.5rem; flex-wrap: wrap; }
.admin-btn {
  font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer;
  transition: all var(--t);
}
.admin-btn.primary {
  background: linear-gradient(135deg, rgba(0,120,150,0.9), rgba(0,200,220,0.7));
  border: 1px solid var(--cyan2); color: #fff;
  box-shadow: 0 4px 14px rgba(0,180,200,0.25);
}
.admin-btn.primary:hover { box-shadow: 0 4px 20px rgba(0,229,255,0.35); transform: translateY(-1px); }
.admin-btn.secondary { border: 1px solid var(--border); color: var(--muted); background: transparent; }
.admin-btn.secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.admin-saved {
  font-size: 0.72rem; color: #60e890; display: none;
  font-family: 'Orbitron', monospace; letter-spacing: 1px;
}
.admin-saved.show { display: inline; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.pub  { background: var(--cyan); }
.status-dot.wip  { background: var(--gold); }
.status-dot.soon { background: var(--muted); }


/* ── SCÈNES ADMIN ── */
.admin-scenes-list { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-scene-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  background: rgba(0,229,255,0.03); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: all var(--t);
}
.admin-scene-item:hover { background: rgba(0,229,255,0.07); border-color: rgba(0,229,255,0.25); }
.admin-scene-item.active { border-color: var(--cyan); background: rgba(0,229,255,0.08); }
.admin-scene-name { flex:1; font-size: 0.82rem; font-weight: 600; color: var(--white); }
.admin-scene-len { font-size: 0.68rem; color: var(--muted); }
.admin-modal { max-width: 640px !important; max-height: 90vh; overflow-y: auto; }

