/* --- VARIABLES --- */
:root {
    --sega-blue: #00a3ff; /* Bleu Sega classique */
    --neon-color: #bc13fe;
    --sidebar-bg: #e0e0e0; /* Gris clair */
    --content-bg: #f4f4f4; /* Blanc cassé foncé */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--content-bg);
}

/* --- HEADER COMPACT --- */
.header-mini {
    /* Un dégradé très subtil du noir vers un gris très foncé */
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    height: 65px; /* On l'agrandit d'un poil pour respirer */
    display: flex; 
    align-items: center; 
    padding: 0 20px;
    border-bottom: 3px solid var(--sega-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo-mini { height: 40px; margin-right: 15px; }

.header-titles { font-weight: bold; font-size: 1.1rem; }

.sega-blue {
    color: var(--sega-blue);
    font-family: 'Arial Black', sans-serif; /* Une police plus grasse aide au contraste */
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-color), 0 0 10px var(--neon-color);
    animation: breathe 3s ease-in-out infinite alternate;
}

@keyframes breathe {
    from { opacity: 0.7; }
    to { opacity: 1; text-shadow: 0 0 10px var(--neon-color), 0 0 20px var(--neon-color); }
}

/* --- LAYOUT SIDEBAR + CONTENU --- */
.page-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    padding: 20px;
    border-right: 1px solid #ccc;
}

.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-bottom: 15px; }
.sidebar a { text-decoration: none; color: #333; font-weight: bold; }
.sidebar a.active { color: var(--sega-blue); }

.content-area {
    flex-grow: 1;
    padding: 20px;
}

/* --- LES CARDS --- */
.cards-container {
    display: flex;
    flex-direction: column; /* Empilement vertical, dernier en haut */
    gap: 20px;
}

.lesson-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    border-left: 5px solid #ccc;
}

.lesson-card.new { border-left-color: var(--sega-blue); }

.badge {
    background: var(--sega-blue);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    position: absolute;
    top: 10px; right: 10px;
}

.btn-read {
    display: inline-block;
    margin-top: 10px;
    color: var(--sega-blue);
    text-decoration: none;
    font-weight: bold;
}

/* --- CONTENEUR DES OUTILS --- */
/* --- SYSTÈME DE LOGOS OUTILS VERSION XL --- */
.tools-container {
    display: flex;
    gap: 50px;           /* Plus d'espace car les logos sont énormes */
    margin-top: 5px;
	margin-bottom: 25px;
    justify-content: flex-start;
    flex-wrap: wrap;     /* Important : s'ils sont trop gros, ils passent à la ligne sur petit écran */
}

.tool-logo-link {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet de rebond sympa */
}

.tool-logo-only {
    width: 240px;        /* 3x plus gros que 80px */
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.4));
    transition: filter 0.3s ease;
}

/* EFFET AU SURVOL */
.tool-logo-link:hover {
    transform: scale(1.1) rotate(2deg); /* Grossit et tourne légèrement pour le côté fun */
}

.tool-logo-link:hover .tool-logo-only {
    /* Lueur Sega bleue renforcée pour la taille XL */
    filter: drop-shadow(0 0 25px var(--sega-blue));
}

/* --- AJUSTEMENT MOBILE (ESSENTIEL À CETTE TAILLE) --- */
@media (max-width: 768px) {
    .tool-logo-only {
        width: 150px;    /* On réduit un peu sur mobile sinon ça sort de l'écran */
        height: 150px;
    }
    .tools-container {
        justify-content: center; /* On centre sur mobile pour l'esthétique */
        gap: 20px;
    }
}