:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-primary: #6366f1; /* Indigo vibrant */
    --accent-secondary: #ec4899; /* Pink vibrant */
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

/* Background Animation */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    z-index: -1;
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Layout */
.container {
    max-width: 1100px;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.profile-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
}

/* Card General Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card-icon.red { color: #ff0000; background: rgba(255, 0, 0, 0.1); }
.card-icon.purple { color: #d946ef; background: rgba(217, 70, 239, 0.1); }
.card-icon.blue { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }

/* Specific Cards Layout */
/* Profile: 2 colonnes de large */
.card-profile {
    grid-column: span 2;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.tags span {
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Youtube: 2 colonnes de large, 2 de hauteur */
.card-youtube {
    grid-column: span 2;
    grid-row: span 2;
}

.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.miniature-box {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}

.miniature-box:hover {
    transform: scale(1.02);
}

.subtext {
    font-size: 0.8rem !important;
    margin-top: auto;
}

/* Vertical & Write: 1 colonne chacune */
.card-vertical {
    grid-column: span 1;
}

.card-write {
    grid-column: span 1;
}

/* Tools: 2 colonnes */
.card-tools {
    grid-column: span 2;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--card-border);
}

/* Contact: 2 colonnes */
.card-contact {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-align: center;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-demo {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
}

.socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--text-main);
}

/* Animations d'entrée */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .card-profile, .card-youtube, .card-tools, .card-contact, .card-vertical, .card-write {
        grid-column: span 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .header {
        padding: 0 1rem;
    }
}

/* NOUVELLE RÈGLE pour les logos */
.showcase-logos {
    display: flex; /* Utilisation du flex pour une disposition horizontale facile */
    gap: 1.5rem;
    margin: 1rem 0;
    justify-content: center; /* Centrer les logos dans la boîte */
}

.channel-link {
    text-decoration: none; /* Enlève le soulignement du lien */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.channel-link:hover {
    transform: translateY(-5px); /* Animation au survol */
}

.channel-name {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-main) !important;
    text-align: center;
    line-height: 1.2;
}

.channel-logo {
    width: 60px;
    height: 60px;
    
    background-size: cover;
    background-position: center;
    background-color: #222;
    
    border-radius: 50%;
    
    /* MODIFICATION ICI pour un contour noir léger */
    border: 3px solid #333; 
    
    transition: border-color 0.3s;
}

.channel-link:hover .channel-logo {
    /* On garde l'effet d'accentuation au survol */
    border-color: var(--accent-primary); 
}