/* Variables de couleurs vives */
:root {
	--color-lolo: #FF0000; 
    --color-primary: #FF5733; /* Orange vif */
    --color-secondary: #33FF57; /* Vert électrique */
    --color-accent: #3357FF; /* Bleu électrique */
    --color-background-dark: #121212; /* Noir très sombre */
    --color-text-light: #f0f0f0;
    --color-text-subtle: #9e9e9e;
    --color-card-1: #FF5733; /* Orange */
    --color-card-2: #33FF57; /* Vert */
    --color-card-3: #3357FF; /* Bleu */
    --color-card-4: #FF33A1; /* Rose */
}

/* Base et typographie */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    min-height: 100vh;
    overflow-x: hidden; /* Empêche le scroll horizontal dû aux blobs */
    position: relative;
    padding: 40px 20px;
}

/* Effet de fond "Blobs" */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    filter: blur(100px); /* Effet flou */
    opacity: 0.3;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    animation: pulse 15s infinite alternate;
}

.blob-1 {
    background-color: var(--color-card-3);
    top: -100px;
    left: -100px;
}

.blob-2 {
    background-color: var(--color-card-3);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    background-color: var(--color-card-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 50px); }
}

/* Conteneur principal */
.container {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Hero (En-tête) */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 4.5em;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--color-card-3), var(--color-card-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-section h1 span {
    color: var(--color-lolo);
    text-shadow: 0 0 10px var(--color-lolo);
}

.subtitle {
    font-size: 1.5em;
    color: var(--color-text-subtle);
}

/* Grille des liens */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Carte de lien */
.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--color-text-light);
    min-height: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Effet Glassmorphism subtil */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Couleurs des cartes */
.color-1 { background: linear-gradient(135deg, #3357FF, #A133FF); } 
.color-2 { background: linear-gradient(135deg, #3357FF, #A133FF); } 
.color-3 { background: linear-gradient(135deg, #3357FF, #A133FF); } 
.color-4 { background: linear-gradient(135deg, #3357FF, #A133FF); } 
/*.color-1 { background: linear-gradient(135deg, #FF5733, #FFC300); } Orange/Jaune */
/*.color-2 { background: linear-gradient(135deg, #33FF57, #33FFBD); }  Vert/Cyan */
/*.color-3 { background: linear-gradient(135deg, #3357FF, #A133FF); } Bleu/Violet */
/*.color-4 { background: linear-gradient(135deg, #FF33A1, #FF3333); } Rose/Rouge */

/* Effets de survol (Hover) */
.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 10; /* Assure que la carte survolée est au-dessus */
}

/* Effet de lumière au survol */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card .card-icon {
    font-size: 3em;
    margin-bottom: 10px;
    transition: transform 0.3s;
    animation: pulse-icon 2s ease-in-out infinite;
}

.link-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
}

.link-card h2 {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

.link-card:hover h2 {
    transform: scale(1.05);
}

/* Animations au scroll (Animate-in) */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délais d'animation */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }

/* Pied de page */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #282828;
    color: var(--color-text-subtle);
    font-size: 0.9em;
}

.credits {
    margin-top: 5px;
    font-size: 0.8em;
}

/* Effet de Ripple au clic */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Fade In Scale */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de pulsation pour les icônes */
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animation de glow */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* Media Queries pour le Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3em;
    }
    .subtitle {
        font-size: 1.2em;
    }
    .link-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    body {
        padding: 20px 10px;
    }
}
