/* --- VARIABLES ET CONFIGURATION --- */
:root {
    --bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --highlight: rgba(255, 255, 255, 0.15);
    --accent: #3b82f6; /* Bleu électrique - Changez cette couleur pour votre asso */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    /* Variables dynamiques modifiées par le JS */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* --- FOND MAGIQUE (GRILLE + SPOTLIGHT) --- */
.background-effect {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    /* Motif de grille */
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Masque qui révèle la grille uniquement sous la souris */
    mask-image: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(0,0,0,1), 
        rgba(0,0,0,0) 40%
    );
    -webkit-mask-image: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        black, 
        transparent 40%
    );
    pointer-events: none;
}

/* Lueur d'ambiance (bleue par défaut) */
.ambient-glow {
    position: fixed;
    top: 50%; left: 50%;
    width: 100vw; height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* --- CONTENEUR PRINCIPAL --- */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
}

/* --- EN-TÊTE (PROFIL) --- */
.header {
    text-align: center;
    margin-bottom: 10px;
}



/* Si vous utilisez une vraie image pour le logo, utilisez cette classe */
.logo-img {
    width: 110px; /* Taille légèrement augmentée pour le logo */
    height: 110px;
    border-radius: 50%; /* C'est ça qui rend l'image ronde */
    margin: 0 auto 16px;
    object-fit: cover; /* Remplissage intelligent du cercle */
    border: 3px solid var(--accent); /* Une bordure bleue autour du cercle */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); /* Petit effet de lueur bleue */
    display: block; /* Important pour que margin: auto fonctionne */
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* --- CARTES DE LIENS --- */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Effet Hover */
.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.link-title {
    font-weight: 500;
    font-size: 1rem;
}

.arrow-icon {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.link-card:hover .arrow-icon {
    color: var(--text-main);
    transform: translateX(4px);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    margin-top: 2rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .background-effect {
        /* Sur mobile, on affiche un halo fixe car pas de souris */
        mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
        -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    }
}