:root {
    --bg-color: #08080c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    /* Gradient Tech/Dynamique : Cyan vers Vert menthe ou Violet vers Orange */
    --accent-1: #00C9FF;
    --accent-2: #92FE9D;
    
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* --- Arrière-plan Dynamique --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 12s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 8%) scale(1.1); }
}

/* --- Layout Général --- */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- Composants Réutilisables --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hover-scale {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hover-scale:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations d'apparition */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- Boutons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 201, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 201, 255, 0.5);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 4rem 2rem;
}

.profile-img-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    margin-bottom: 1rem;
    box-shadow: 0 0 30px rgba(0, 201, 255, 0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Section À Propos --- */
.about .section-header h2 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.about .section-header i {
    color: var(--accent-1);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Section Projets --- */
.projects .section-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne pour un style link-in-bio plus classique, mais on peut passer en 2 colonnes sur desktop */
    gap: 1.2rem;
}

@media (min-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Un petit éclat au survol de la carte */
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Section Univers (Réseaux Sociaux) --- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem 1rem;
    text-align: center;
}

.social-card i {
    font-size: 2.5rem;
}

/* Couleurs spécifiques aux réseaux */
.social-card.youtube i { color: #FF0000; }
.social-card.podcast i { color: #A020F0; }
.social-card.linkedin i { color: #0A66C2; }

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.social-card small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer a {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Responsif Mobile --- */
@media (max-width: 500px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}
