/*
Theme Name: Mon Theme Enfant
Template: twentytwentytwo
*/
/* --- RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================
   NOUVELLE SECTION : ANIMATIONS
   ========================================= */

/* Définition de l'effet de flou pulsant */
@keyframes pulseBlurEffect {
    0% {
        filter: blur(0px);
    }
    50% {
        filter: blur(4px); 
    }
    100% {
        filter: blur(0px);
    }
}

/* --- FOND PRINCIPAL : GRIS BETON / TITANE --- */
html, body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: #b0b8c1; 
    color: #0f0f0f;
    min-height: 100%;
    overscroll-behavior-y: none;
}

/* --- LE CONTENEUR --- */
.artist-landing {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* FONTS */
@font-face {
    font-family: 'rubik';
    src: url('assets/fonts/rubik/Rubik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'rubik';
    src: url('assets/fonts/rubik/Rubik-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

.container-projet {
    max-width: 1000px;
    margin: 40px auto; 
    padding: 20px;
}

/* --- MENU GLASSMORPHISM (ANCIEN MENU - GARDÉ AU CAS OÙ) --- */

.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(15px) saturate(130%);
    -webkit-backdrop-filter: blur(15px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-nav .logo a {
    font-family: 'rubik', sans-serif;
    font-weight: 700;
    text-decoration: none;
    color: #111;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #222;
    font-family: 'rubik', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #000;
}

/* Ajustement pour le contenu sous le header fixe */
body {
    padding-top: 100px; 
}

/* --- LES FORMES D'ARRIÈRE-PLAN --- */

.artist-landing::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 80vw;
    height: 80vh;
    border-radius: 40%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    opacity: 0.8;
}

.artist-landing::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 90vw;
    height: 90vh;
    border-radius: 45%;
    background: radial-gradient(circle at center, #4a5568 0%, rgba(74, 85, 104, 0) 70%);
    filter: blur(90px);
    z-index: 0;
    opacity: 0.9;
}

/* --- L'EFFET VERRE (La carte) --- */
.glass-container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* --- PROFIL --- */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    animation: pulseBlurEffect 5s ease-in-out infinite;
    will-change: filter;
}
.cover-static {<
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}
.track-page {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    animation: pulseBlurEffect 5s ease-in-out infinite;
    will-change: filter;
}

.artist-name {
    font-family: 'rubik', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

.artist-bio {
    font-family: 'rubik', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
}

/* --- LES LIENS --- */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    color: #222;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'rubik', sans-serif;
    font-weight: 600;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.link-card.featured {
    background: #2d3436; 
    color: white;
    border: none;
}
.link-card.featured:hover {
    background: #000;
    transform: scale(1.03);
}

.icon {
    margin-right: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.social-logo {
    width: 24px;
    height: 24px;
}

.text {
    font-size: 1rem;
}

.mini-footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
}

/* =========================================
   BOUTON BURGER (Plus grand et décollé)
========================================= */
.glass-burger {
    position: fixed !important; 
    top: 40px !important;   
    right: 40px !important; 
    width: 65px !important; 
    height: 65px !important; 
    border-radius: 50%;
    
    /* Effet Glassmorphism */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    z-index: 9999 !important; 
    cursor: pointer;
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Espace agrandi entre les barres */
    transition: background 0.3s ease;
}

.glass-burger:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Les 3 barres du burger (plus épaisses et larges) */
.glass-burger span {
    display: block;
    width: 32px;  
    height: 3px;  
    background-color: #ffffff; 
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation : le burger se transforme en croix */
.glass-burger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.glass-burger.active span:nth-child(2) {
    opacity: 0;
}
.glass-burger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* =========================================
   MENU LATÉRAL (Glassmorphism)
========================================= */
/* =========================================
   MENU LATÉRAL (Glassmorphism & Animations)
========================================= */
.glass-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 250px; /* <-- C'est cette valeur qu'on a réduite (avant 320px) */
    max-width: 100vw;
    height: 100vh;
    
    /* Effet Glassmorphism du panneau */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    
    z-index: 9998; 
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-menu.active {
    right: 0;
}

.glass-menu .nav-links {
    display: flex;
    flex-direction: column; /* C'est cette ligne qui force l'affichage vertical ! */
    align-items: center;    /* Centre les liens au milieu du panneau */
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 60px; /* Décale un peu vers le bas pour la croix */
}

/* État de base des liens (cachés et décalés vers le bas) */
.glass-menu .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Quand le menu s'ouvre, les liens apparaissent à leur place */
.glass-menu.active .nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Effet cascade (chaque lien arrive un peu après l'autre) */
.glass-menu.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.glass-menu.active .nav-links li:nth-child(2) { transition-delay: 0.2s; }
.glass-menu.active .nav-links li:nth-child(3) { transition-delay: 0.3s; }
.glass-menu.active .nav-links li:nth-child(4) { transition-delay: 0.4s; }
.glass-menu.active .nav-links li:nth-child(5) { transition-delay: 0.5s; }

.glass-menu .nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* Nouveau Hover : Une bulle glassmorphism apparaît derrière le texte */
.glass-menu .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

/* Rend le conteneur du header 100% invisible */
header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* 1. On supprime toutes les marges par défaut sur toute la page */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
}

/* 2. On s'assure que le bloc principal prend bien tout l'écran mais garde un espace sur les bords */
/* 2. On s'assure que le bloc principal est parfaitement centré avec des marges symétriques */
.artist-landing {
    margin-top: 0 !important;
    min-height: 100vh; 
    padding: 20px 20px !important; 
}

/* =========================================
   PAGE JEUX
========================================= */
.game-container {
    max-width: 800px; /* On élargit la carte pour le jeu (ajuste selon la taille de ton jeu) */
    width: 100%;
}

.my-html-game {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Si ton jeu utilise un canvas (très fréquent en HTML5) */
.my-html-game canvas {
    max-width: 100%;
    border-radius: 12px; /* Pour l'intégrer joliment dans la carte glassmorphism */
}