/* =========================================
   SHADOWRUN THEME - VARIABLES
   ========================================= */
:root {
    /* Palette Shadowrun / Synthwave Dark */
    --neon-purple: #bd00ff;   /* Violet Principal */
    --neon-cyan: #00f3ff;     /* Cyan Secondaire (Contraste) */
    --neon-pink: #d600ff;     /* Rose Magenta (Accents) */
    
    /* NOUVEAU : Rouge pour la section Intérêts */
    --neon-red: #ff2a2a; 
    
    --bg-dark: #07020a;       /* Noir teinté violet très sombre */
    --panel-bg: rgba(15, 10, 25, 0.75); /* Panneaux vitrés */
    
    --sidebar-width: 300px;
    --font-main: 'Segoe UI', 'Roboto', sans-serif;
    --font-tech: 'Courier New', monospace;
    
    --glass-border: 1px solid rgba(189, 0, 255, 0.2);
}

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

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: var(--font-main);
    height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
}

#neural-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* =========================================
   SIDEBAR (Gauche)
   ========================================= */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(5, 0, 10, 0.9);
    border-right: 1px solid rgba(189, 0, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 25px;
    z-index: 10;
    overflow-y: auto;
    box-shadow: 10px 0 40px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

/* --- MYSTIC PROFILE PICTURE --- */
.photo-container {
    position: relative;
    width: 140px; height: 140px;
    margin: 0 auto 25px auto;
    display: flex; justify-content: center; align-items: center;
}

.profile-pic {
    width: 120px; height: 120px;
    border-radius: 50%; object-fit: cover; z-index: 2;
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8) inset;
    filter: contrast(1.1) saturate(1.1);
}

.ring-one {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; border: 2px solid transparent;
    border-top-color: var(--neon-cyan); border-right-color: var(--neon-purple); border-left-color: var(--neon-purple);
    z-index: 1; animation: spinLoader 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px var(--neon-purple);
}

.ring-two {
    position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%; border: 1px dashed rgba(189, 0, 255, 0.4);
    z-index: 0; animation: spinLoader 12s linear infinite reverse; opacity: 0.7;
}

@keyframes spinLoader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.photo-container:hover .ring-one { animation-duration: 0.8s; border-top-color: #fff; box-shadow: 0 0 20px var(--neon-cyan); }
.photo-container:hover .profile-pic { filter: contrast(1.2) brightness(1.1); }

/* --- SIDEBAR TEXT & INFO --- */
/* =========================================
   GLITCH EFFECT for sidebar h1
   ========================================= */

/* On prépare le titre pour l'effet */
.sidebar h1 {
    position: relative; /* Indispensable pour l'effet */
    color: var(--neon-purple); /* Couleur de base */
    /* Le reste de tes styles h1 restent ici... */
}

/* Création des deux couches de glitch */
.sidebar h1::before,
.sidebar h1::after {
    /* L'astuce magique : récupère le texte directement du HTML */
    content: attr(data-text); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Couche 1 : Cyan, décalée vers la gauche */
.sidebar h1::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

/* Couche 2 : Rose/Rouge, décalée vers la droite */
.sidebar h1::after {
    color: var(--neon-pink); /* Ou var(--neon-red) selon tes gouts */
    z-index: -2;
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

/* --- KEYFRAMES (Copiés et adaptés de ton exemple) --- */
@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px,0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px,0); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px,0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px,0); }
    80% { clip-path: inset(10% 0 60% 0); transform: translate(-2px,0); }
    100% { clip-path: inset(30% 0 30% 0); transform: translate(2px,0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px,0); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px,0); }
    40% { clip-path: inset(30% 0 20% 0); transform: translate(2px,0); }
    60% { clip-path: inset(10% 0 80% 0); transform: translate(-2px,0); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(2px,0); }
    100% { clip-path: inset(20% 0 70% 0); transform: translate(-2px,0); }
}

.sidebar h2 {
    color: var(--neon-cyan); font-size: 0.85rem; text-align: center; margin-bottom: 15px; letter-spacing: 1px;
}

.tagline {
    font-size: 0.8rem; color: #999; text-align: center; font-style: italic; margin-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 10px 0;
}

.social-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.social-btn {
    background: rgba(189, 0, 255, 0.1); color: var(--neon-purple); border: 1px solid var(--neon-purple);
    padding: 6px 16px; font-family: var(--font-tech); font-size: 0.75rem; text-decoration: none;
    transition: 0.3s; text-transform: uppercase; border-radius: 2px;
}
.social-btn:hover { background: var(--neon-purple); color: #fff; box-shadow: 0 0 15px var(--neon-purple); }

.info-section { font-size: 0.85rem; line-height: 1.6; color: #bbb; margin-bottom: 15px; }

/* Skills (Standard) */
.skills-section h3 {
    font-family: var(--font-tech); color: #fff; font-size: 0.75rem; margin: 20px 0 10px;
    border-left: 2px solid var(--neon-cyan); padding-left: 10px; text-transform: uppercase; opacity: 0.8;
}

.tags-container { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
    font-size: 0.7rem; padding: 4px 8px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3); color: #aaa; cursor: default; border-radius: 2px;
}
.tag-god { border-color: var(--neon-purple); color: var(--neon-purple); background: rgba(189, 0, 255, 0.05); }
.tag-expert { border-color: var(--neon-cyan); color: var(--neon-cyan); }


/* =========================================
   SECTION INTÉRÊTS (RED ZONE) - NOUVEAU
   ========================================= */
.interests-section {
    margin-top: 25px;
    padding: 15px;
    border: 1px solid var(--neon-red);
    background: rgba(255, 42, 42, 0.05);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.1), inset 0 0 10px rgba(255, 42, 42, 0.05);
    position: relative;
}

.interests-section::before {
    content: 'DATA_INTERESTS'; position: absolute; top: -10px; right: 10px;
    background: rgba(5, 0, 10, 1); padding: 0 5px; font-family: var(--font-tech);
    font-size: 0.6rem; color: var(--neon-red); letter-spacing: 1px;
}

.interests-section h3 {
    font-family: var(--font-tech); color: #fff; font-size: 0.75rem; margin: 0 0 15px 0;
    border-left: 3px solid var(--neon-red); padding-left: 10px;
    text-transform: uppercase; text-shadow: 0 0 5px var(--neon-red);
}

.interests-section ul { list-style: none; padding: 0; }

.interests-section li {
    font-family: var(--font-main); font-size: 0.8rem; color: #ccc; margin-bottom: 8px;
    display: flex; align-items: center; transition: transform 0.2s;
}

.interests-section li::before {
    content: '>'; color: var(--neon-red); font-weight: bold; margin-right: 8px;
    font-family: monospace; font-size: 1rem; line-height: 1;
}

.interests-section li:hover { color: #fff; transform: translateX(5px); text-shadow: 0 0 5px var(--neon-red); }


/* =========================================
   MAIN CONTENT (Droite)
   ========================================= */
.main-container {
    flex: 1; display: flex; flex-direction: column; z-index: 5; position: relative;
}

/* --- NAVIGATION --- */
.top-nav {
    display: flex; justify-content: center; padding: 20px 0; gap: 20px;
    background: linear-gradient(to bottom, rgba(7, 2, 10, 0.95), transparent); overflow-x: auto;
}

.nav-link {
    position: relative; text-decoration: none; color: #888; font-family: var(--font-tech);
    font-weight: bold; text-transform: uppercase; font-size: 0.85rem; padding: 8px 0; margin: 0 10px;
    transition: 0.3s; letter-spacing: 1px;
}
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--neon-purple); transition: 0.3s; }
.nav-link:hover { color: #fff; text-shadow: 0 0 5px var(--neon-purple); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
.nav-link.active::after { width: 100%; background: var(--neon-cyan); }

/* Effet Glitch */
.glitch-effect { animation: text-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; color: var(--neon-purple); }
@keyframes text-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--neon-pink); }
    40% { transform: translate(-2px, -2px); text-shadow: 3px 0 var(--neon-pink), -3px 0 var(--neon-cyan); }
    60% { transform: translate(2px, 2px); text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-purple); }
    80% { transform: translate(2px, -2px); text-shadow: 0 0 5px #fff; }
    100% { transform: translate(0); }
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
    flex: 1; padding: 40px; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
}

.glass-panel {
    background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(189, 0, 255, 0.3); border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    backdrop-filter: blur(15px); border-radius: 4px; padding: 40px; width: 100%; max-width: 900px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5); margin-top: 10px;
}
.center-content h1 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; text-shadow: 0 0 15px var(--neon-purple); font-weight: 300; }

.tab-content { display: none; width: 100%; justify-content: center; opacity: 0; transition: opacity 0.5s ease; }
.tab-content.active { display: flex; opacity: 1; }

/* =========================================
   CHAT INTERFACE & INPUT (REFAIT)
   ========================================= */

.chat-wrapper {
    display: flex; flex-direction: column;
    height: 75vh;
    padding: 0;
}

.chat-window {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none; /* Collé à l'input */
    border-radius: 8px 8px 0 0;
    overflow-y: auto;
    padding: 25px;
    display: flex; flex-direction: column; gap: 20px;
    font-family: var(--font-main);
    scroll-behavior: smooth;
}

/* Messages */
.message {
    max-width: 80%; padding: 14px 18px; border-radius: 12px; font-size: 0.95rem;
    line-height: 1.5; position: relative; word-wrap: break-word; animation: popIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.bot-msg {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(40, 40, 50, 0.95));
    border: 1px solid rgba(0, 243, 255, 0.2); color: #e0e0e0;
    border-bottom-left-radius: 2px;
}
.bot-msg::before { content: 'FLORIAN (AI)'; display: block; font-size: 0.7rem; color: var(--neon-cyan); margin-bottom: 5px; font-family: var(--font-tech); letter-spacing: 1px; }

.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--neon-purple), #8a00bc);
    color: #fff; border-bottom-right-radius: 2px;
    box-shadow: 0 4px 15px rgba(189, 0, 255, 0.3);
}

.system-msg {
    align-self: center; max-width: 90%; background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.1); color: #888; font-size: 0.8rem;
    text-align: center; border-radius: 4px; padding: 8px 15px;
}

/* --- LOADING BAR --- */
.loading-container {
    align-self: flex-start; width: 300px; background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--neon-cyan); border-radius: 4px; padding: 15px; margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1); animation: pulseBorder 1.5s infinite alternate;
}
@keyframes pulseBorder { from { box-shadow: 0 0 5px rgba(0, 243, 255, 0.1); } to { box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); } }
.loading-text { font-family: var(--font-tech); color: var(--neon-cyan); font-size: 0.75rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; }
.loading-bar-bg { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loading-bar-fill { height: 100%; width: 0%; background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); transition: width 0.3s ease-out; }

/* --- INPUT AREA (Nouvelle Version Large & Sombre) --- */

/* --- INPUT AREA (Correction Mobile) --- */
.input-area {
    display: flex;
    /* width: 100%;  <-- IL FAUT ENLEVER CA */
    gap: 15px;
    padding: 20px;
    background-color: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(189, 0, 255, 0.2);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    margin-top: -1px;
    
    /* Sécurité pour ne pas dépasser */
    max-width: 100%; 
    box-sizing: border-box;
}

#user-input {
    flex-grow: 1;
    padding: 15px 20px;
    background-color: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#user-input:focus {
    border-color: var(--neon-purple);
    background-color: rgba(30, 30, 40, 0.9);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

#user-input::placeholder {
    color: #666; font-style: italic;
}

#send-btn {
    padding: 0 30px;
    background-color: var(--neon-purple);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#send-btn:hover {
    background-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* =========================================
   MOBILE RESPONSIVE (OPTIMISÉ)
   ========================================= */
@media (max-width: 900px) {
    body { 
        flex-direction: column; 
        overflow: auto; 
        height: auto; /* Laisse le body grandir */
    }

    /* Sidebar passe en haut ou en mode compact */
    .sidebar { 
        width: 100%; 
        height: auto; 
        border-right: none; 
        border-bottom: 1px solid var(--neon-purple); 
        flex-direction: row; 
        flex-wrap: wrap; 
        align-items: center; 
        justify-content: space-between; /* Espace mieux les éléments */
        gap: 15px; 
        padding: 15px;
    }

    /* On simplifie la sidebar sur mobile */
    .profile-section { 
        border: none; margin: 0; padding: 0; 
        flex-direction: row; gap: 10px;
    }
    .photo-container { margin: 0; width: 60px; height: 60px; } 
    .profile-pic { width: 60px; height: 60px; border: 1px solid var(--neon-cyan); }
    .sidebar h1 { font-size: 1rem; text-align: left; }
    .sidebar h2, .tagline, .social-links, .ring-one, .ring-two, .skills-section, .interests-section { 
        display: none; /* On cache le superflu sur mobile */ 
    }

    /* Navigation scrollable horizontalement */
    .top-nav { 
        justify-content: flex-start; 
        padding: 15px; 
        gap: 10px;
    }
    
    /* Contenu principal */
    .content-wrapper { 
        padding: 15px; /* Marges réduites (était 40px) */
    }
    
    .glass-panel { 
        padding: 20px; /* Marges internes réduites (était 40px) */
        width: 100%;
    }

    /* Chat & Input */
    .chat-wrapper { height: 65vh; } /* Un peu moins haut sur mobile */
    
    .input-area { 
        padding: 10px; /* Moins de gras autour de l'input */
        gap: 8px;
        flex-wrap: wrap; /* Permet au bouton de passer dessous si l'écran est minuscule (iPhone SE) */
    }
    
    #user-input {
        padding: 12px;
        font-size: 0.9rem;
        width: 100%; /* S'assure qu'il prend la place dispo */
        min-width: 0; /* Fix flexbox important */
    }

    #send-btn { 
        padding: 12px 0; 
        width: 100%; /* Bouton pleine largeur sur mobile, plus facile à taper */
        margin-top: 5px;
    }
}

/* --- STYLE DU POÈME --- */
.poem-container {
    font-family: 'Georgia', serif; /* Police avec serif pour le côté littéraire */
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    text-shadow: 0 0 5px rgba(189, 0, 255, 0.3);
    margin-top: 20px;
}

.poem-container p {
    margin-bottom: 0;
}

/* Le titre du poème */
#home h1 {
    font-family: var(--font-tech);
    color: var(--neon-purple);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#home h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Signature Gemini */
.ai-signature {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--neon-pink);
    opacity: 0.7;
    margin-top: 15px;
    text-align: right;
    width: 100%;
    padding-right: 20px;
    letter-spacing: 1px;
}

/* Petit effet curseur clignotant à la fin */
.ai-signature::after {
    content: '_';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* --- BOUTON D'INTRODUCTION --- */
.intro-btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 1rem;
    color: var(--bg-dark);
    background: var(--neon-purple);
    padding: 15px 30px;
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.intro-btn:hover {
    background: transparent;
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    text-shadow: 0 0 8px var(--neon-cyan);
} 

/* =========================================
   SECTION PÉDAGOGIE (MASTER-DETAIL)
   ========================================= */

/* On enlève le padding par défaut du glass-panel pour gérer nous-même l'espace */
.pedagogy-panel {
    padding: 0; 
    display: flex;
    overflow: hidden; /* Important pour que le contenu ne dépasse pas */
    height: 70vh; /* Hauteur fixe pour permettre le scroll interne */
}

/* --- 1. MENU LATÉRAL (Gauche) --- */
.pedagogy-menu {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(189, 0, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.pedagogy-menu h3 {
    font-family: var(--font-tech);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.pedagogy-menu ul {
    list-style: none;
}

.course-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #888;
    padding: 12px 15px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    margin-bottom: 5px;
}

.course-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.course-btn.active {
    background: rgba(189, 0, 255, 0.15);
    color: var(--neon-purple);
    border-left: 3px solid var(--neon-purple);
    font-weight: bold;
}

/* --- 2. ZONE DE CONTENU (Droite) --- */
.pedagogy-viewer {
    flex: 1;
    padding: 30px;
    overflow-y: auto; /* Scroll indépendant pour le texte */
    background: rgba(0, 0, 0, 0.1);
}

#pedagogy-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--neon-purple);
}

#pedagogy-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ddd;
}

/* MOBILE */
@media (max-width: 900px) {
    .pedagogy-panel { flex-direction: column; height: auto; }
    .pedagogy-menu { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #333; }
    .pedagogy-viewer { height: 500px; }
} 
/* =========================================
   INTEGRATION GOOGLE COLAB (CYBERPUNK STYLE)
   ========================================= */

.colab-card {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #f9ab00; /* Couleur Orange Colab */
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(249, 171, 0, 0.1);
    transition: transform 0.3s;
}

/* Effet de scan en arrière plan */
.colab-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: #f9ab00;
}

.colab-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(249, 171, 0, 0.2);
    background: rgba(249, 171, 0, 0.05);
}

.colab-icon {
    width: 40px; height: 40px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/d0/Google_Colaboratory_SVG_Logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px #f9ab00);
}

.colab-info {
    flex: 1;
}

.colab-info h4 {
    color: #f9ab00;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.colab-info p {
    color: #aaa;
    font-size: 0.85rem;
    margin: 0;
}

.colab-btn {
    text-decoration: none;
    font-family: var(--font-tech);
    background: #f9ab00;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 10px 20px;
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap;
}

.colab-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px #f9ab00;
}

/* Adaptation Mobile pour la carte */
@media (max-width: 600px) {
    .colab-card { flex-direction: column; text-align: center; }
    .colab-card::before { width: 100%; height: 4px; top: 0; left: 0; }
    .colab-btn { width: 100%; }
}

/* =========================================
   SLIDESHOW CYBERPUNK
   ========================================= */

.slideshow-container {
    position: relative;
    margin: 30px 0;
    border: 2px solid var(--neon-purple);
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
    /* Un petit effet d'écran scanné */
    background-image: linear-gradient(rgba(189, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 5px;
}

/* Zone d'affichage de l'image */
.slides-wrapper {
    position: relative;
    /* Hauteur fixe pour éviter que la page saute. Ajuste selon tes images (ex: 500px) */
    height: 450px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* Les images */
.slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* L'image entière est visible sans être coupée */
    display: none; /* Cachées par défaut */
    border: 1px solid #333;
}

/* L'image active */
.slide-img.active {
    display: block;
    animation: scanIn 0.5s ease-out;
}
@keyframes scanIn { from { opacity: 0; filter: brightness(2); } to { opacity: 1; filter: brightness(1); } }

/* Boutons de navigation (Flèches) */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    font-size: 1.8rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-family: monospace;
}
.slide-nav:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 15px var(--neon-cyan); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Compteur en bas */
.slide-counter {
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-tech);
    color: var(--neon-purple);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Adaptation Mobile */
@media (max-width: 600px) {
    .slides-wrapper { height: 250px; } /* Moins haut sur mobile */
    .slide-nav { padding: 5px 10px; font-size: 1.2rem; }
}
