/* ═══════════════════════════════════════
   FLRNCΞ — index.html styles
   Swap this file for index-pride.css
   to enable Pride Month design.
═══════════════════════════════════════ */


    /* ════════════════════════════════════════════════════
       RESET & VARIABLES GLOBALES
       ════════════════════════════════════════════════════
       On remet les marges/paddings à zéro sur tous les
       éléments pour partir d'une base propre.

       Variables CSS (:root) = les couleurs principales.
       Pour changer les couleurs du site, modifie ces 3 lignes :
         --c  = couleur cyan  (éléments FLRNCΞ)
         --p  = couleur violet (éléments MNL)
         --bg = couleur de fond de la page
    */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --c:  #00f5ff; /* cyan  — couleur principale FLRNCΞ */
      --p:  #b44fff; /* violet — couleur principale MNL   */
      --bg: #04040f; /* fond très sombre, presque noir    */
    }

    html {
      background: var(--bg);
      color: #dde; /* couleur de texte par défaut : blanc légèrement bleuté */
      font-family: 'Share Tech Mono', monospace;
    }

    body {
      min-height: 100vh;
      overflow-x: hidden; /* pas de scroll horizontal sur mobile */
    }


    /* ════════════════════════════════════════════════════
       COUCHES D'ARRIÈRE-PLAN (empilées par z-index)
       ════════════════════════════════════════════════════
       Le fond est composé de 3 couches visuelles fixes
       qui restent en place pendant le scroll :

       z-index 0 → canvas  : grille animée + étoiles (dessinée en JS)
       z-index 1 → .scan   : fines lignes horizontales (effet écran CRT)
       z-index 2 → .vignette : assombrissement des bords (profondeur)
       z-index 10 → .stage  : le contenu de la page (au-dessus de tout)
    */

    /* Le canvas est dessiné en JavaScript — voir section JS en bas */
    canvas {
      position: fixed;
      inset: 0; /* raccourci pour top/right/bottom/left: 0 */
      z-index: 0;
    }

    /* Effet scanlines : fines lignes semi-transparentes superposées */
    .scan {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none; /* laisse passer les clics */
      background: repeating-linear-gradient(
        0deg,
        transparent, transparent 3px,
        rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
      );
    }

    /* Vignette : assombrit les bords pour concentrer le regard au centre */
    .vignette {
      position: fixed;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 30%,
        rgba(4,4,15,0.85) 100%
      );
    }


    /* ════════════════════════════════════════════════════
       MISE EN PAGE PRINCIPALE
       ════════════════════════════════════════════════════
       .stage  = conteneur pleine page qui centre la carte
       .card   = colonne centrale qui contient tous les blocs
    */

    .stage {
      position: relative;
      z-index: 10;
      min-height: 100vh;
      display: grid;
      place-items: center; /* centrage horizontal ET vertical avec CSS Grid */
      padding: 3rem 1.2rem 4rem; /* espace en haut/bas pour ne pas coller aux bords */
    }

    .card {
      width: min(400px, 100%); /* max 400px, mais s'adapte aux petits écrans */
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.8rem; /* espace entre chaque bloc (stream, bio, socials, MNL...) */
    }


    /* ════════════════════════════════════════════════════
       LOGO / NOM D'ARTISTE
       ════════════════════════════════════════════════════ */

    .logo-block { text-align: center; }

    /* Nom principal "FLRNCΞ" — police Orbitron, grande, avec halo cyan */
    .logo-name {
      font-family: 'Orbitron', monospace;
      font-size: clamp(2rem, 8vw, 2.8rem); /* responsive : entre 2rem et 2.8rem */
      font-weight: 900;
      letter-spacing: .35em;
      color: #fff;
      text-shadow: 0 0 18px var(--c), 0 0 60px rgba(0,245,255,0.22);
      position: relative;
      display: inline-block;
      animation: glitch 9s infinite; /* effet glitch toutes les 9 secondes */
    }

    /*
      Animation glitch : toutes les 9s, le texte se déforme brièvement
      entre 89% et 91% de la durée (soit ~0.8s de glitch toutes les 9s).
      clip-path coupe le texte en tranches pour l'effet de décalage.
    */
    @keyframes glitch {
      0%, 88%, 100% {
        text-shadow: 0 0 18px var(--c), 0 0 60px rgba(0,245,255,0.22);
        clip-path: none;
      }
      89% {
        text-shadow: -3px 0 var(--p), 3px 0 var(--c);
        transform: skewX(-2deg);
        clip-path: inset(20% 0 40% 0); /* cache la tranche du milieu */
      }
      90% {
        text-shadow: 3px 0 var(--p), -3px 0 var(--c);
        transform: skewX(2deg);
        clip-path: inset(55% 0 15% 0); /* cache la tranche du bas */
      }
      91% {
        text-shadow: 0 0 18px var(--c), 0 0 60px rgba(0,245,255,0.22);
        transform: none;
        clip-path: none;
      }
    }

    /*
      Le Ξ (Xi grec) n'est pas disponible dans Orbitron.
      On force Share Tech Mono qui l'a, et on ajuste la taille
      pour qu'il soit visuellement cohérent avec les autres lettres.
    */
    .xi {
      font-family: 'Share Tech Mono', monospace;
      font-size: 1.12em;
      font-weight: 400;
      display: inline;
      transform: scaleX(1.15);
      position: relative;
      top: 0.05em;
      letter-spacing: 0;
      margin-left: -.02em;
    }

    /* Sous-titre "VR CREATOR" sous le nom */
    .logo-tag {
      display: block;
      margin-top: .4rem;
      font-size: .6rem;
      letter-spacing: .45em;
      color: var(--c);
      opacity: .55;
      text-transform: uppercase;
    }


    /* ════════════════════════════════════════════════════
       PANNEAU EN VERRE (glassmorphism)
       ════════════════════════════════════════════════════
       Utilisé pour le bloc stream links et le bloc MNL.
       backdrop-filter:blur() crée l'effet verre dépoli.
    */
    .glass {
      width: 100%;
      background: rgba(255,255,255,0.032); /* blanc très transparent */
      border: 1px solid rgba(0,245,255,0.13);
      border-radius: 14px;
      padding: 1.4rem;
      backdrop-filter: blur(20px);
      box-shadow:
        0 0 60px rgba(0,245,255,0.04),           /* halo externe cyan */
        0 0 0 1px rgba(255,255,255,0.04) inset;  /* liseré interne blanc */
    }

    /* Label de section en haut d'un panneau (ex: "// Stream Links") */
    .panel-label {
      font-size: .6rem;
      letter-spacing: .3em;
      color: var(--c);
      opacity: .5;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: .6rem;
    }
    /* Ligne décorative qui s'étend après le label */
    .panel-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(0,245,255,0.2), transparent);
    }


    /* ════════════════════════════════════════════════════
       STREAM LINKS
       ════════════════════════════════════════════════════
       Chaque ligne est cliquable (onclick → copyLink()).
       .stream-row        = ligne PC (cyan)
       .stream-row.quest  = ligne Quest (violet)
       L'effet de balayage au hover est créé avec ::after
       qui se translate de gauche à droite.
    */

    .stream-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: .7rem .9rem;
      gap: 1rem;
      background: rgba(0,245,255,0.025);
      border: 1px solid rgba(0,245,255,0.07);
      border-radius: 9px;
      cursor: pointer;
      transition: border-color .2s, box-shadow .2s;
      position: relative;
      overflow: hidden;
    }

    /* Effet de balayage lumineux au survol */
    .stream-row::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(0,245,255,0.06), transparent);
      transform: translateX(-100%); /* commence hors cadre à gauche */
      transition: transform .55s ease;
      pointer-events: none;
    }
    .stream-row:hover::after  { transform: translateX(100%); } /* traverse vers la droite */
    .stream-row:hover {
      border-color: rgba(0,245,255,0.41);
      box-shadow: 0 0 24px rgba(0,245,255,0.07);
    }

    .stream-row + .stream-row { margin-top: .55rem; } /* espace entre les deux lignes */

    /* Variante violette pour Quest */
    .stream-row.quest {
      background: rgba(180,79,255,0.03);
      border-color: rgba(180,79,255,0.10);
    }
    .stream-row.quest::after {
      background: linear-gradient(90deg, transparent, rgba(180,79,255,0.06), transparent);
    }
    .stream-row.quest:hover {
      border-color: rgba(180,79,255,0.41);
      box-shadow: 0 0 24px rgba(180,79,255,0.07);
    }

    /* Petit point pulsant (indicateur de statut) */
    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
      background: var(--c);
      box-shadow: 0 0 8px var(--c);
      animation: blink 1.8s ease-in-out infinite;
    }
    .dot.p { /* variante violette pour Quest */
      background: var(--p);
      box-shadow: 0 0 8px var(--p);
      animation-delay: .9s; /* décalé pour ne pas clignoter en même temps */
    }

    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

    .stream-meta {
      display: flex;
      align-items: center;
      gap: .7rem;
      min-width: 0; /* empêche le flex de déborder */
    }

    .stream-name { font-size: .78rem; color: #ccd; white-space: nowrap; }

    /* Badge PCVR / QUEST */
    .badge {
      font-size: .55rem;
      letter-spacing: .12em;
      padding: 2px 8px;
      border-radius: 5px;
      border: 1px solid rgba(0,245,255,0.25);
      color: var(--c);
      background: rgba(0,245,255,0.06);
      white-space: nowrap;
    }
    .badge.p { /* variante violette */
      border-color: rgba(180,79,255,0.36);
      color: var(--p);
      background: rgba(180,79,255,0.06);
    }

    /* Bouton [ COPY ] — devient [ ✓ OK ] ou [ ERR ] via JS */
    .copy-btn {
      font-family: 'Share Tech Mono', monospace;
      font-size: .65rem;
      letter-spacing: .1em;
      color: rgba(0,245,255,0.72);
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      white-space: nowrap;
      transition: color .15s;
      flex-shrink: 0;
    }
    .copy-btn.p      { color: rgba(180,79,255,0.72); }
    .copy-btn:hover  { color: var(--c); }
    .copy-btn.p:hover{ color: var(--p); }
    .copy-btn.ok     { color: #00ff88 !important; } /* vert = succès */


    /* ════════════════════════════════════════════════════
       BIO
       ════════════════════════════════════════════════════
       Texte de présentation court, centré.
       Les tirets cyan sont ajoutés via CSS (::before / ::after)
       pour ne pas les avoir dans le HTML.
    */
    .bio {
      width: 100%;
      padding: .1rem .2rem;
      text-align: center;
    }
    .bio p {
      font-size: .72rem;
      line-height: 1.85;
      letter-spacing: .06em;
      color: rgba(210,225,240,0.80);
    }
    .bio p::before { content: '— '; color: var(--c); opacity: .4; }
    .bio p::after  { content: ' —'; color: var(--c); opacity: .4; }


    /* ════════════════════════════════════════════════════
       SÉPARATEUR "Also runs"
       ════════════════════════════════════════════════════
       Ligne décorative violette qui marque la transition
       entre la section FLRNCΞ et la section MNL.
    */
    .divider {
      width: 100%;
      display: flex;
      align-items: center;
      gap: .8rem;
    }
    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(180,79,255,0.2), transparent);
    }
    .divider span {
      font-size: .58rem;
      letter-spacing: .3em;
      text-transform: uppercase;
      color: rgba(180,79,255,0.58);
      white-space: nowrap;
    }


    /* ════════════════════════════════════════════════════
       BLOC MNL
       ════════════════════════════════════════════════════
       Panneau violet dédié à MNL.
       Hérite de .glass mais avec des couleurs violettes.
    */

    /* Surcharge du panneau verre en violet pour MNL */
    .mnl-block {
      border-color: rgba(180,79,255,0.26);
      box-shadow:
        0 0 60px rgba(180,79,255,0.04),
        inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .mnl-header { margin-bottom: .9rem; }

    /* Titre "⌬ MNL" */
    .mnl-title {
      font-family: 'Orbitron', monospace;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: .3em;
      color: #d0b0ff;
      text-shadow: 0 0 14px rgba(180,79,255,0.4);
    }

    /* Le symbole ⌬ utilise Share Tech Mono (Orbitron ne l'a pas) */
    .mnl-icon {
      font-family: 'Share Tech Mono', monospace;
      font-size: .9em;
      opacity: .7;
      letter-spacing: 0;
      margin-right: .1em;
    }

    /* Sous-titre "MNL · run by FLRNCΞ" */
    .mnl-subtitle {
      font-size: .6rem;
      letter-spacing: .2em;
      color: rgba(180,79,255,0.65);
      margin-top: .2rem;
    }

    /* Description avec bordure gauche violette */
    .mnl-desc {
      font-size: .72rem;
      line-height: 1.8;
      letter-spacing: .05em;
      color: rgba(200,190,220,0.72);
      border-left: 1px solid rgba(180,79,255,0.2);
      padding-left: .8rem;
      margin-bottom: 1rem;
    }

    /* Grille 2 colonnes pour les 4 liens MNL */
    .mnl-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: .5rem;
    }

    /* Chaque lien MNL (Discord, Bluesky, VRC, Ko-fi) */
    .mnl-link {
      display: flex;
      align-items: center;
      gap: .5rem;
      padding: .55rem .8rem;
      text-decoration: none;
      font-size: .7rem;
      letter-spacing: .08em;
      color: rgba(200,180,240,0.80);
      background: rgba(180,79,255,0.03);
      border: 1px solid rgba(180,79,255,0.1);
      border-radius: 8px;
      transition: all .2s ease;
    }
    .mnl-link:hover {
      color: #e0d0ff;
      border-color: rgba(180,79,255,0.51);
      box-shadow: 0 0 16px rgba(180,79,255,0.1);
      transform: translateY(-1px);
    }
    .mnl-link svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .7; }


    /* ════════════════════════════════════════════════════
       LIENS RÉSEAUX SOCIAUX PERSONNELS
       ════════════════════════════════════════════════════
       Grille 2×2 pour YouTube, Twitch, Bluesky, SoundCloud.
       Chaque lien a sa couleur de plateforme définie via
       des variables CSS locales (--sb, --sc, --sh).
    */

    /* Titre MNL cliquable vers mnl.html */
    .mnl-title-link { text-decoration: none; }
    .mnl-title-link:hover .mnl-title {
      text-shadow: 0 0 22px rgba(180,79,255,0.7);
    }

    /* Mini aperçu event dans le bloc résumé */
    .mnl-event-preview {
      margin-bottom: .9rem;
      padding: .65rem .9rem;
      background: rgba(180,79,255,0.04);
      border: 1px solid rgba(180,79,255,0.1);
      border-radius: 9px;
      font-size: .7rem; letter-spacing: .07em;
    }
    /* ── MNL event preview (index) ──────────────────── */
    .mnl-event-preview {
      margin-bottom: .9rem;
    }
    .mnl-event-loading { color: rgba(180,79,255,0.62); font-size: .7rem; }
    .mnl-event-none    { color: rgba(180,79,255,0.41); font-size: .68rem; letter-spacing: .08em; }

    /* Each event row */
    .mnl-event-item {
      padding: .65rem 0;
      border-bottom: 1px solid rgba(180,79,255,.07);
    }
    .mnl-event-item:last-child { border-bottom: none; padding-bottom: 0; }
    .mnl-event-item:first-child { padding-top: 0; }

    /* Header row: dot + title */
    .mnl-event-head {
      display: flex; align-items: center; gap: .55rem;
      margin-bottom: .35rem;
    }
    .mnl-event-dot {
      width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
      background: var(--p); box-shadow: 0 0 7px var(--p);
      animation: blink 2s ease-in-out infinite;
    }
    /* First (soonest) event gets cyan dot */
    .mnl-event-item:first-child .mnl-event-dot {
      background: var(--c); box-shadow: 0 0 7px var(--c);
    }

    .mnl-event-title-s {
      color: #d0b0ff;
      font-family: 'Orbitron', monospace;
      font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    }
    /* First event title slightly brighter */
    .mnl-event-item:first-child .mnl-event-title-s {
      color: #e8d0ff;
      text-shadow: 0 0 12px rgba(180,79,255,.35);
    }

    /* Date + time row */
    .mnl-event-date-row {
      display: flex; align-items: center; gap: .5rem;
      flex-wrap: wrap;
    }
    .mnl-event-date-chip {
      font-size: .6rem; letter-spacing: .07em;
      background: rgba(180,79,255,.07);
      border: 1px solid rgba(180,79,255,.18);
      border-radius: 4px; padding: 2px 8px;
      color: rgba(210,175,255,.65);
    }
    .mnl-event-time-s {
      font-size: .6rem; letter-spacing: .08em;
      color: rgba(180,79,255,.45);
    }

    /* Lien "Voir la page MNL complète →" */
    .mnl-page-link {
      display: block; margin-top: 1rem;
      text-align: right;
      font-size: .63rem; letter-spacing: .12em;
      color: rgba(180,79,255,0.68);
      text-decoration: none; transition: color .2s;
    }
    .mnl-page-link:hover { color: var(--p); }

    .socials {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: .55rem;
      width: 100%;
    }

    .soc {
      display: flex;
      align-items: center;
      gap: .55rem;
      padding: .65rem .9rem;
      text-decoration: none;
      font-size: .72rem;
      letter-spacing: .08em;
      color: rgba(220,220,240,0.6);
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 9px;
      transition: all .2s ease;
      position: relative;
      overflow: hidden;
    }
    /* Fond coloré au survol (via variable locale --sc) */
    .soc::before {
      content: '';
      position: absolute;
      inset: 0;
      opacity: 0;
      background: linear-gradient(135deg, var(--sc, rgba(0,245,255,0.06)), transparent);
      transition: opacity .25s;
      pointer-events: none;
    }
    .soc:hover::before { opacity: 1; }
    .soc:hover {
      color: #fff;
      transform: translateY(-2px);
      border-color: var(--sb, rgba(0,245,255,0.2));
      box-shadow: 0 4px 24px var(--sh, rgba(0,245,255,0.08));
    }
    .soc svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

    /* Couleurs spécifiques par plateforme
       --sb = couleur de la bordure au hover
       --sc = couleur du fond au hover
       --sh = couleur du halo (box-shadow) au hover         */
    .soc[data-p="yt"] { --sb:rgba(255,0,0,.3);   --sc:rgba(255,0,0,.06);   --sh:rgba(255,0,0,.08);   }
    .soc[data-p="tw"] { --sb:rgba(145,70,255,.3); --sc:rgba(145,70,255,.06);--sh:rgba(145,70,255,.08);}
    .soc[data-p="bs"] { --sb:rgba(0,133,255,.3);  --sc:rgba(0,133,255,.06); --sh:rgba(0,133,255,.08); }
    .soc[data-p="sc"] { --sb:rgba(255,85,0,.3);   --sc:rgba(255,85,0,.06);  --sh:rgba(255,85,0,.08);  }


    /* ════════════════════════════════════════════════════
       FOOTER
       ════════════════════════════════════════════════════ */
    .foot {
      font-size: .55rem;
      letter-spacing: .3em;
      color: rgba(255,255,255,0.32);
      text-align: center;
    }
    .foot a { color: rgba(0,245,255,0.65); text-decoration: none; }
    .foot a:hover { color: var(--c); }


    /* ════════════════════════════════════════════════════
       ANIMATIONS D'ENTRÉE
       ════════════════════════════════════════════════════
       Chaque bloc de .card apparaît en fondu + remontée
       avec un délai croissant pour un effet en cascade.
       Si tu ajoutes un bloc, ajoute un nth-child() ici.
    */
    .card > * {
      opacity: 0;
      animation: up .7s ease forwards;
    }
    .card > *:nth-child(1) { animation-delay: .05s; } /* logo        */
    .card > *:nth-child(2) { animation-delay: .18s; } /* stream      */
    .card > *:nth-child(3) { animation-delay: .30s; } /* bio         */
    .card > *:nth-child(4) { animation-delay: .40s; } /* socials     */
    .card > *:nth-child(5) { animation-delay: .50s; } /* divider     */
    .card > *:nth-child(6) { animation-delay: .58s; } /* MNL block   */
    .card > *:nth-child(7) { animation-delay: .65s; } /* footer      */

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


    /* ════════════════════════════════════════════════════
       RESPONSIVE — PETITS ÉCRANS (≤ 380px)
       ════════════════════════════════════════════════════
       Ajustements pour les téléphones très étroits.
       À 380px les grilles 2 colonnes passent en 1 colonne.
    */
    @media (max-width: 380px) {
      .logo-name              { font-size: 1.8rem; letter-spacing: .25em; }
      .socials                { grid-template-columns: 1fr; }
      .mnl-links              { grid-template-columns: 1fr; }
      .stream-row             { flex-wrap: wrap; gap: .5rem; }
      .glass                  { padding: 1rem; }
    }

  