/* ═══ LunaRise — thème partagé v2 « Idol Live » (2026-10-15) ═══
   Chargé APRÈS le <style> propre à chaque page : il redéfinit les variables
   historiques (--bg, --bg2, --bg3, --text, --muted, --purple, --blue, --pink, --grad)
   en clair pastel / sombre néon, et uniformise en-tête, pied de page, boutons,
   barre mobile et typographie. L'accueil (index.html) embarque ses propres règles. */

:root {
  color-scheme: light;
  --bg: #F6F1FF;
  --glow-1: #E6D8FF; --glow-2: #D8EFFA; --glow-3: #FCE1F0;
  --surface: rgba(255,255,255,.76);
  --surface-2: rgba(255,255,255,.92);
  --border: rgba(110,80,180,.16);
  --text: #1D1630;
  --muted: #5B5675;
  --accent: #7E4FD0; --accent-2: #2C8DBA; --accent-3: #C94E97;
  --grad: linear-gradient(120deg, #8E5FE0 0%, #3E9FCB 52%, #D3619F 100%);
  --grad-btn: linear-gradient(120deg, #9B6FE6, #59B4DC 55%, #E07AB8);
  --btn-text: #FFFFFF;
  --shadow: 0 10px 30px rgba(90,60,160,.12);
  --header-bg: rgba(246,241,255,.84);
  --track: rgba(110,80,180,.16);
  --gold: #A86F00;
  /* variables historiques des pages */
  --bg2: var(--surface);
  --bg3: var(--surface-2);
  --purple: var(--accent);
  --blue: var(--accent-2);
  --pink: var(--accent-3);
  --grad-h: var(--grad-btn);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080B14;
  --glow-1: rgba(183,143,232,.16); --glow-2: rgba(126,200,227,.11); --glow-3: rgba(232,145,200,.12);
  --surface: #0D1120;
  --surface-2: #111827;
  --border: rgba(183,143,232,.2);
  --text: #EEF0F8;
  --muted: #9AA2BE;
  --accent: #B78FE8; --accent-2: #7EC8E3; --accent-3: #E891C8;
  --grad: linear-gradient(120deg, #B78FE8, #7EC8E3 52%, #E891C8);
  --grad-btn: linear-gradient(120deg, #B78FE8, #7EC8E3 55%, #E891C8);
  --btn-text: #0A0D18;
  --shadow: 0 14px 44px rgba(0,0,0,.45);
  --header-bg: rgba(8,11,20,.82);
  --track: #1c2336;
  --gold: #F5C56B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #080B14;
    --glow-1: rgba(183,143,232,.16); --glow-2: rgba(126,200,227,.11); --glow-3: rgba(232,145,200,.12);
    --surface: #0D1120;
    --surface-2: #111827;
    --border: rgba(183,143,232,.2);
    --text: #EEF0F8;
    --muted: #9AA2BE;
    --accent: #B78FE8; --accent-2: #7EC8E3; --accent-3: #E891C8;
    --grad: linear-gradient(120deg, #B78FE8, #7EC8E3 52%, #E891C8);
    --grad-btn: linear-gradient(120deg, #B78FE8, #7EC8E3 55%, #E891C8);
    --btn-text: #0A0D18;
    --shadow: 0 14px 44px rgba(0,0,0,.45);
    --header-bg: rgba(8,11,20,.82);
    --track: #1c2336;
    --gold: #F5C56B;
  }
}

/* ─── base ─── */
body {
  font-family: 'Noto Sans Thai', 'Prompt', system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 8% -8%, var(--glow-1), transparent 62%),
    radial-gradient(900px 560px at 100% 4%, var(--glow-2), transparent 58%),
    radial-gradient(900px 640px at 50% 105%, var(--glow-3), transparent 62%),
    var(--bg);
  color: var(--text);
}
h1, h2, h3 { font-family: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif; }
.inline-link { color: var(--accent); }
.breadcrumb a:hover { color: var(--text); }
::selection { background: rgba(155,111,230,.28); }

/* boutons */
.grad-btn {
  background: var(--grad-btn); color: var(--btn-text);
  font-family: 'Prompt', sans-serif; font-weight: 600;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(155,111,230,.3);
}
.grad-btn:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(155,111,230,.42); }

/* cartes : un contour et une ombre légère pour qu'elles se détachent en clair */
.card, .role-card, .rule, .qa details, .jobs-list li, .cta-block, .status-box, .post-card, .tool-card,
.calc-card, .sim-card, .ng-card, .nm-card, .pc-card, .faq-item, .training-item, .timeline-item, .coach-card,
.benefit-item, .skill-item, .path-card, .highlight-box, .zero-cost, .compare-wrap, .income-table-wrap, .vt-links li {
  border-color: var(--border);
}
.card, .role-card, .cta-block, .post-card, .tool-card, .calc-card, .sim-card, .ng-card, .nm-card, .pc-card, .coach-card, .benefit-item {
  box-shadow: var(--shadow);
}

/* illustrations chibi réutilisées (img/home/role-*.webp) */
.page-wrap h2 { clear: both; }
.chibi { float: right; width: 190px; margin: 6px 0 14px 24px; }
.chibi img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .chibi { float: none; display: block; width: 150px; margin: 4px auto 18px; }
}

/* ─── en-tête ─── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.logo-wrap { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.logo-name { font-family: 'Prompt', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .05em; white-space: nowrap; }
.logo-sub { font-size: .6rem; letter-spacing: .26em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: .9rem; color: var(--muted); font-weight: 500; position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; min-height: 40px; font-size: .9rem; }
.hamburger { display: none; width: 40px; height: 40px; background: none; border: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.hamburger span { width: 22px; height: 2px; border-radius: 2px; background: var(--text); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 78vw; max-width: 300px; background: var(--bg); border-left: 1px solid var(--border); z-index: 201; padding: 24px; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.mobile-panel.open { transform: translateX(0); }
.panel-close { align-self: flex-end; background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; margin-bottom: 28px; }
.panel-close:hover { color: var(--text); }
.panel-nav { display: flex; flex-direction: column; gap: 4px; }
.panel-nav a { font-family: 'Prompt', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--text); padding: 12px 14px; border-radius: 12px; border-left: none; }
.panel-nav a:hover, .panel-nav a.active { background: var(--surface-2); border-left: none; }

/* les pages historiques réservaient 110px pour un en-tête fixe : l'en-tête est désormais sticky */
.page-wrap { padding-top: 40px !important; }

/* bascule de langue (lr-i18n.js) */
.lang-toggle { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: 'Prompt', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .04em; flex-shrink: 0; }
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--accent); }
.lang-toggle:disabled { opacity: .6; cursor: progress; }
html[data-lang="en"]:not(.i18n-ready) body { visibility: hidden; animation: lr-i18n-failsafe 0s 2.5s forwards; }
@keyframes lr-i18n-failsafe { to { visibility: visible; } }
@media (max-width: 640px) { .header-inner { gap: 8px; } }

/* ─── pied de page ─── */
footer { background: transparent; border-top: 1px solid var(--border); padding: 36px 20px 40px; text-align: center; margin-top: 60px; }
.footer-copy { font-size: .8rem; color: var(--muted); line-height: 2; }
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }
.footer-divider { margin: 0 8px; opacity: .4; }

/* ─── LINE + barre mobile ─── */
.line-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; background: #06C755; color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(6,199,85,.4); }
.line-float:hover { color: #fff; transform: translateY(-2px); }
.line-float svg, .m-line svg { width: 20px; height: 20px; flex-shrink: 0; }
.m-bar { display: none; }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 820px) {
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .line-float { display: none; }
  .m-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .m-bar .grad-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-size: 1rem; }
  .m-line { width: 48px; height: 48px; border-radius: 50%; background: #06C755; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(6,199,85,.35); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
