/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM - SIMADOU AHONDO KOSSI GERMAIN
   Style moderne, dynamique, glassmorphism, responsive & accessible
   ========================================================================== */

/* --- 1. VARIABLES & DESIGN TOKENS --- */
:root {
    /* Palette Principale (Mode Sombre par défaut) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-card-glass: rgba(255, 255, 255, 0.03);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.35);
    
    /* Couleurs d'Accents Vibrantes */
    --accent-blue: #0284c7;
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
    --gradient-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15), transparent 70%);
    
    /* Ombres & Lueurs */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
    --glow-cyan: 0 0 25px rgba(14, 165, 233, 0.35);
    --glow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typographie */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Rayons & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mode Clair */
body.mode-clair {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --bg-card-glass: rgba(0, 0, 0, 0.02);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(2, 132, 199, 0.3);
    
    --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.04) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1), transparent 70%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
    --glow-cyan: 0 0 25px rgba(14, 165, 233, 0.2);
    --glow-card: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
}

/* --- 2. RESET & BASE STYLES --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Typographie de Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Barre de défilement moderne */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Utilitaires */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacing {
    padding: 90px 0;
    position: relative;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* En-tête de section */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 55px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- 3. HEADER & NAVIGATION --- */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

body.mode-clair header {
    background: rgba(255, 255, 255, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: var(--glow-cyan);
}

.logo-text span {
    color: var(--accent-cyan);
}

/* Menu Links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

body.mode-clair .nav-links li a:hover,
body.mode-clair .nav-links li a.active {
    background: rgba(0, 0, 0, 0.05);
}

.nav-links li a.active {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Actions Header */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-theme-toggle {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-theme-toggle:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    color: white;
}

/* Bouton Burger Mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.burger-menu span {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* --- 4. HERO SECTION --- */
.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Badge de statut */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    background-color: inherit;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-subtitle .separator {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-bio strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Boutons Réutilisables */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-3px);
}

/* Image de Profil du Hero */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 8px;
    background: var(--gradient-primary);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.35);
    transition: var(--transition-slow);
}

.avatar-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

.photo-profil {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    background-color: var(--bg-secondary);
}

/* Badges flottants sur le Hero */
.floating-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-top {
    top: 5%;
    left: -10px;
    animation-delay: 0s;
}

.floating-badge.badge-bottom {
    bottom: 5%;
    right: -10px;
    animation-delay: 2s;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.badge-main {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 700;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Bandeau de statistiques sous le hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 5. SECTION À PROPOS & BENTO GRID --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-span-8 { grid-column: span 8; }
.card-span-4 { grid-column: span 4; }
.card-span-6 { grid-column: span 6; }
.card-span-12 { grid-column: span 12; }

.card-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.bento-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bento-card p:last-child {
    margin-bottom: 0;
}

/* Timeline des étapes */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- 6. SECTION COMPÉTENCES --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.skill-category-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.category-header h3 {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.category-header span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.skills-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

body.mode-clair .skill-pill {
    background: rgba(0, 0, 0, 0.03);
}

.skill-pill:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.skill-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
}

/* --- 7. SECTION PROJETS --- */
.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-filter:hover {
    color: var(--text-main);
    border-color: var(--border-highlight);
}

.btn-filter.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.project-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card.hidden {
    display: none;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #0f172a;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-badge-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.project-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.project-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-project-primary {
    background: var(--gradient-primary);
    color: white;
    flex: 1;
}

.btn-project-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    color: white;
}

.btn-project-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    background: var(--bg-card-glass);
}

.btn-project-outline:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

/* --- 8. SECTION CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.direct-contact-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-cyan);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.direct-contact-card:hover {
    transform: translateX(6px);
    border-color: var(--border-highlight);
    border-left-color: var(--accent-cyan);
    box-shadow: var(--shadow-sm);
}

.contact-detail h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Formulaire Stylisé */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

body.mode-clair .form-control {
    background: rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
}

/* --- 9. FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 12px;
}

.btn-scroll-top {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-scroll-top:hover {
    background: var(--accent-cyan);
    color: white;
    transform: translateY(-3px);
}

/* --- 10. TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-cyan);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.35s ease forwards;
    max-width: 380px;
    cursor: pointer;
}

.toast.toast-success {
    border-left-color: var(--accent-emerald);
}

.toast.toast-error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* --- 11. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-bio {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .card-span-8, .card-span-4, .card-span-6 {
        grid-column: span 12;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px;
        font-size: 1.05rem;
    }
    .btn-nav-cta {
        display: none;
    }
    .avatar-frame {
        width: 250px;
        height: 250px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}