:root {
    /* COULEURS */
    --bg-dark: #030303;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    
    /* ACCENTS */
    --accent-primary: #00ccff;
    --accent-secondary: #7000ff;

    /* VERRE */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    
    /* GESTION DU FOOTER STICKY */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* IMPORTANT : Cela pousse le footer vers le bas */
main {
    flex: 1;
    width: 100%;
}

/* --- FOND ANIMÉ --- */
.background-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 15s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%; left: -10%; width: 60vw; height: 60vw;
    background: var(--accent-primary);
}

.orb-2 {
    bottom: -10%; right: -10%; width: 50vw; height: 50vw;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Définition de l'animation 'Fluid Neon' */
@keyframes slideInGlow {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(10px); /* Donne l'effet fluide/liquide au démarrage */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.logo {
    /* Style du lien */
    text-decoration: none; /* Enlève le soulignement du lien */
    color: inherit;        /* Garde la couleur de ton texte défini précédemment */
    cursor: pointer;
    display: inline-block; /* Important pour que la transformation fonctionne */
    
    /* Application de l'animation */
    animation: slideInGlow 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    /* Petit délai pour que le logo arrive juste après la barre de nav si besoin */
    animation-delay: 0.1s; 
}

/* Optionnel : Effet Néon au survol */
.logo:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Ajuste la couleur selon ton thème */
    transition: text-shadow 0.3s ease;
}

/* --- LAYOUT GLOBAL --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
.glass-nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(3, 3, 3, 0.7);
    padding: 20px 0;
}

.nav-content {
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-weight: 700; font-size: 1.2rem; letter-spacing: 1px;
}
.accent-dot { color: var(--accent-primary); }

.contact-btn-small {
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: color 0.3s;
}
.contact-btn-small:hover { color: var(--text-white); }

/* --- HERO SECTION (Card Titre) --- */
.hero-glass-card {
    width: 100%;
    padding: 40px 30px;
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    /* Pas de cursor pointer */
}

/* Effet lumière Hero */
.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.hero-glass-card:hover::before { opacity: 1; }

.hero-glass-card h1, .hero-glass-card p { position: relative; z-index: 2; }
.hero-glass-card h1 { margin-top: 0; margin-bottom: 20px; font-size: 2.5rem; line-height: 1.2; }
.hero-glass-card .description { margin-bottom: 0; color: var(--text-gray); max-width: 600px; margin: 0 auto; }

.portal-text {
    background: linear-gradient(90deg, #fff, #504870);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- GRILLE & CARTES --- */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 40px; /* Marge avant le footer */
}

.card {
    position: relative;
    display: flex; align-items: center; gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.2s, border-color 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.card:active { transform: scale(0.98); }
.icon-box, .card-text, .arrow { position: relative; z-index: 2; }

.icon-box {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1.5rem;
}
.icon-box i { color: inherit; }

.card-text h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.card-text p { font-size: 0.85rem; color: var(--text-gray); }

.arrow { margin-left: auto; color: var(--text-gray); transition: transform 0.3s; }
.card:hover .arrow { transform: translateX(5px); color: var(--accent-primary); }

/* Effet lumière Cartes */
.interactive-glass::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.07), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.interactive-glass:hover::before { opacity: 1; }
.interactive-glass:hover { border-color: rgba(255,255,255,0.2); }

/* --- FOOTER --- */
.glass-footer {
    padding: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    width: 100%;
    margin-top: auto; /* Sécurité supplémentaire */
}

/* --- MOBILE --- */
@media (max-width: 600px) {
    .hero-glass-card h1 { font-size: 2rem; }
    .card { padding: 20px; }
}