/* ============================================================
   FRÉQUENCE LYRA — fl-styles.css
   Styles partagés entre toutes les pages modulaires FL
   Extrait de index.html — version 1.0.0 — 2026-06-09
   ============================================================ */

:root {
    --abyssal: #080510;
    --lunaire: #F0EEF8;
    --lila: #D1A3FF;
    --orion: #C9A84C;
    --celeste: #008080;
    --or-doux: #C9A84C;
    --or: #C9A84C;
    --texte-clair: #F4F4F5;
    --texte-dim: #A1A1AA;
}

body {
    background-color: var(--abyssal);
    color: var(--lunaire);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.font-serif { font-family: 'Cormorant Garamond', serif !important; }

.text-glow-lila { color: var(--lila); text-shadow: 0 0 15px rgba(209, 163, 255, 0.4); }
.text-glow-orion { color: var(--orion); text-shadow: 0 0 10px rgba(201, 168, 76, 0.5); }

/* .hidden sans !important pour laisser Tailwind lg:flex/lg:block fonctionner */
.hidden { display: none; }

/* ── Panels ── */
.glass-panel-dark {
    background: rgba(12, 10, 26, 0.85);
    border: 1px solid rgba(240, 238, 248, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 4px;
}
.glass-panel-light {
    background: rgba(240, 238, 248, 0.04);
    border: 1px solid rgba(240, 238, 248, 0.1);
    border-radius: 4px;
}

/* ── Cartes FL ── */
.fl-card {
    background: rgba(12, 10, 26, 0.6);
    border: 1px solid rgba(240, 238, 248, 0.08);
    border-top: 2px solid var(--orion);
    padding: 24px;
    border-radius: 2px;
}
.fl-card-analyse {
    background: rgba(12, 10, 26, 0.7);
    border: 1px solid rgba(209, 163, 255, 0.15);
    padding: 20px;
    border-radius: 4px;
}
.fl-body {
    color: rgba(240, 238, 248, 0.8);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Tabs membres ── */
.mb-tab-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px;
    font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
    color: rgba(240,238,248,.4); border-radius: 2px; transition: all .2s;
    cursor: pointer; background: transparent; border: none;
}
.mb-tab-btn:hover { color: rgba(240,238,248,.8); background: rgba(255,255,255,.05); }
.mb-tab-btn.active { color: #C9A84C; background: rgba(201,168,76,.1); }
.mb-panel { animation: fadeInUp .3s ease; }
@keyframes fadeInUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

/* ── Tabs admin ── */
.admin-tab {
    padding: 10px 16px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
    font-weight: 700; color: rgba(240,238,248,.4); border-bottom: 2px solid transparent;
    transition: all .2s; cursor: pointer; background: transparent;
    border-left: none; border-right: none; border-top: none;
}
.admin-tab:hover { color: rgba(240,238,248,.8); }
.admin-tab.active { color: #C9A84C; border-bottom-color: #C9A84C; }

/* ── MOOC ── */
.mod-filter-btn.active { background: rgba(209,163,255,.15); border-color: rgba(209,163,255,.6); color: #D1A3FF; }
.mod-check.done { background: #D1A3FF; color: #080510; border-color: #D1A3FF; font-size: 10px; }
.mod-check.done::before { content: '\2713'; }

/* ── Tableau de navigation (tnav) ── */
.tnav-filter {
    padding: 4px 10px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
    font-weight: 700; color: rgba(240,238,248,.4); border: 1px solid rgba(240,238,248,.1);
    background: transparent; cursor: pointer; transition: all .2s; white-space: nowrap; border-radius: 2px;
}
.tnav-filter:hover { border-color: rgba(201,168,76,.4); color: #C9A84C; }
.tnav-filter.active { border-color: #C9A84C; color: #C9A84C; background: rgba(201,168,76,.08); }

.tnav-md { color: rgba(240,238,248,.85); font-size: 13px; line-height: 1.7; }
.tnav-md h1 { font-family:'Cormorant Garamond',serif; font-size: 1.8rem; color: #F0EEF8; margin: 1.5em 0 .5em; border-bottom: 1px solid rgba(201,168,76,.25); padding-bottom: .4em; }
.tnav-md h2 { font-family:'Cormorant Garamond',serif; font-size: 1.4rem; color: #C9A84C; margin: 1.4em 0 .4em; }
.tnav-md h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #D1A3FF; margin: 1.2em 0 .3em; }
.tnav-md h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(240,238,248,.6); margin: 1em 0 .25em; }
.tnav-md p { margin: .4em 0; }
.tnav-md strong { color: #F0EEF8; }
.tnav-md em { color: rgba(209,163,255,.8); font-style: italic; }
.tnav-md code { background: rgba(201,168,76,.1); color: #C9A84C; padding: 1px 5px; border-radius: 2px; font-size: .82em; font-family: monospace; }
.tnav-md ul, .tnav-md ol { padding-left: 1.4em; margin: .4em 0; }
.tnav-md li { margin: .15em 0; }
.tnav-md blockquote { border-left: 3px solid rgba(209,163,255,.4); padding: .3em 1em; margin: .6em 0; color: rgba(240,238,248,.55); font-style: italic; }
.tnav-md table { width: 100%; border-collapse: collapse; margin: .6em 0; font-size: .8em; }
.tnav-md th { background: rgba(201,168,76,.12); color: #C9A84C; padding: 6px 10px; text-align: left; border: 1px solid rgba(201,168,76,.2); font-size: .75em; text-transform: uppercase; letter-spacing: .06em; }
.tnav-md td { padding: 5px 10px; border: 1px solid rgba(240,238,248,.07); color: rgba(240,238,248,.7); vertical-align: top; }
.tnav-md hr { border: none; border-top: 1px solid rgba(201,168,76,.2); margin: 1em 0; }
.tnav-md .tnav-section { padding: 16px; border: 1px solid rgba(240,238,248,.06); border-radius: 4px; margin: .5em 0; }
.tnav-md .tnav-section.hidden-section { display: none; }

.tnav-search-hit { background: rgba(201,168,76,.12); border-left: 2px solid #C9A84C; padding: 3px 8px; border-radius: 2px; font-size: .78em; cursor: pointer; transition: background .15s; }
.tnav-search-hit:hover { background: rgba(201,168,76,.2); }
.tnav-highlight { background: rgba(201,168,76,.25); border-radius: 2px; padding: 0 2px; }

.tnav-mat-btn { display:flex; align-items:center; gap:6px; padding:6px 10px; font-size:9px; text-transform:uppercase; letter-spacing:.08em; font-weight:700; border:1px solid rgba(240,238,248,.12); color:rgba(240,238,248,.6); background:transparent; cursor:pointer; transition:all .15s; border-radius:2px; white-space:nowrap; }
.tnav-mat-btn:hover { border-color: rgba(240,238,248,.35); color: #F0EEF8; background: rgba(240,238,248,.05); }
.tnav-mat-qst { border-color: rgba(209,163,255,.3); color: #D1A3FF; }
.tnav-mat-qst:hover { border-color: #D1A3FF; background: rgba(209,163,255,.1); color: #F0EEF8; }
.tnav-mat-canvas { border-color: rgba(201,168,76,.3); color: #C9A84C; }
.tnav-mat-canvas:hover { border-color: #C9A84C; background: rgba(201,168,76,.1); color: #F0EEF8; }
.tnav-mat-formation { border-color: rgba(74,222,128,.3); color: #4ade80; }
.tnav-mat-formation:hover { border-color: #4ade80; background: rgba(74,222,128,.1); color: #F0EEF8; }
.tnav-mat-exo { border-color: rgba(74,222,128,.2); color: rgba(74,222,128,.8); }
.tnav-mat-exo:hover { border-color: #4ade80; background: rgba(74,222,128,.08); color: #F0EEF8; }
.tnav-section-card { transition: border-color .2s; }
.tnav-section-card:hover { border-color: rgba(240,238,248,.12); }
.tnav-chevron.open { transform: rotate(180deg); }

/* ── Utilitaires Tailwind critiques (pas de CDN Tailwind sur les pages modulaires) ── */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-3 { padding: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.grid { display: grid; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.rounded-full { border-radius: 9999px; }
.rounded-sm { border-radius: 2px; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: .1em; }
.resize-none { resize: none; }
.outline-none { outline: none; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.2s; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-\[400\] { z-index: 400; }
.inline-block { display: inline-block; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.max-h-56 { max-height: 14rem; }
.max-w-\[1200px\] { max-width: 1200px; }
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
}
