:root {
    /* Couleurs Fluo / Spray / Néon */
    --neon-green: #39ff14;
    --neon-pink: #ff007f;
    --neon-yellow: #fff000;
    --neon-orange: #ff5e00;
    --neon-blue: #00f0ff;
    --neon-purple: #b026ff;
    --neon-red: #ff073a;
    
    --bg-dark: #12161a; /* Fond de la page style asphalte */
    --card-bg: #1e252b; /* Fond des cartes */
    
    /* Le dégradé arc-en-ciel magique */
    --rainbow-grad: linear-gradient(90deg, 
        var(--neon-pink) 0%, 
        var(--neon-orange) 20%, 
        var(--neon-yellow) 40%, 
        var(--neon-green) 60%, 
        var(--neon-blue) 80%, 
        var(--neon-pink) 100%
    );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #1c232a;
    /* Léger effet de grain/brique en arrière-plan */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 20px 20px;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header style Graffiti */
header {
    text-align: center;
    padding: 3rem 1rem 2.5rem 1rem;
    background: linear-gradient(180deg, #090b0d 0%, var(--bg-dark) 100%);
    position: relative;
}

/* Ligne Arc-en-ciel sous le Header */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--rainbow-grad);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
}

header h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 4rem;
    color: #ffffff;
    letter-spacing: 3px;
    transform: rotate(-2deg);
    display: inline-block;
    text-shadow: 
        3px 3px 0px var(--neon-pink),
        -3px -3px 0px var(--neon-blue);
}

header p {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grille compacte */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: auto;
    padding: 3rem 1rem;
}

/* Cartes de base */
.card {
    text-decoration: none;
    color: #ffffff;
    background: var(--card-bg);
    border-radius: 16px;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Aligne le logo en haut et le texte en bas proprement */
    padding: 0.8rem 0.5rem; /* Ajustement des marges internes */
    border: 1px solid transparent; 
    transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Zone logo */
.icon-box {
    width: 140px;  /* Augmenté de 65px à 95px */
    height: 140px; /* Augmenté de 65px à 95px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 2px;
}

.icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Empêche la déformation du logo */
}

/* Titres des liens */
.card h2 {
    font-size: 0.9rem; /* Légèrement réduit pour laisser la priorité au gros logo */
    font-weight: 800;
    text-align: center;
    word-break: break-word;
    letter-spacing: 0.3px;
    line-height: 1.1;
    margin-top: 5px;
}

/* --- ATTRIBUTION DES COULEURS (Bordures de base & Survol) --- */

/* Vert Fluo */
.card-neon-green { border-color: var(--neon-green); }
.card-neon-green:hover { 
    background-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
}

/* Rose Fluo */
.card-neon-pink { border-color: var(--neon-pink); }
.card-neon-pink:hover { 
    background-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.6);
}

/* Jaune Fluo */
.card-neon-yellow { border-color: var(--neon-yellow); }
.card-neon-yellow:hover { 
    background-color: var(--neon-yellow);
    box-shadow: 0 0 30px rgba(255, 240, 0, 0.6);
}

/* Orange Fluo */
.card-neon-orange { border-color: var(--neon-orange); }
.card-neon-orange:hover { 
    background-color: var(--neon-orange);
    box-shadow: 0 0 30px rgba(255, 94, 0, 0.6);
}

/* Bleu Fluo */
.card-neon-blue { border-color: var(--neon-blue); }
.card-neon-blue:hover { 
    background-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

/* Violet Fluo */
.card-neon-purple { border-color: var(--neon-purple); }
.card-neon-purple:hover { 
    background-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.6);
}

/* Rouge Fluo */
.card-neon-red { border-color: var(--neon-red); }
.card-neon-red:hover { 
    background-color: var(--neon-red);
    box-shadow: 0 0 30px rgba(255, 7, 58, 0.6);
}

/* Effet général au survol */
.card:hover {
    transform: scale(1.08) rotate(1deg);
    color: #000000; /* Le texte passe en noir pour ressortir sur le fond fluo */
}


/* Footer avec fond coloré */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1.8rem;
    background-color: #090b0d;
    position: relative;
}

/* Ligne Arc-en-ciel au-dessus du Footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--rainbow-grad);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

footer p {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Style du lien dans le footer */
.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre le logo et le texte */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* Effet au survol du lien */
.footer-link:hover {
    opacity: 0.8;
}

/* Style du conteneur du footer */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    background-color: #090b0d;
    position: relative;
}

/* Alignement du contenu au centre */
.footer-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Espace entre le logo et le texte */
}

/* Effet de survol EXCLUSIF sur le logo */
.footer-logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.footer-logo-link:hover {
    transform: scale(1.15); /* Seul le logo zoome au survol */
}

.footer-logo {
    height: 28px; /* Ajuste la hauteur selon ton image */
    width: auto;
    object-fit: contain;
}

/* Le texte reste fixe et non cliquable */
.footer-text {
    color: #b6bac0;
    font-size: 0.7rem;
    letter-spacing: 1px;
    user-select: none; /* Empêche la sélection accidentelle du texte */
}