/* ====================================
   VARIABLES CSS ET RESET
   ==================================== */
:root {
    /* Couleurs principales */
    --primary-color: #2563eb;      /* Bleu moderne */
    --secondary-color: #64748b;    /* Gris-bleu */
    --accent-color: #f59e0b;       /* Orange/jaune pour les accents */
    --success-color: #10b981;      /* Vert pour les succès */
    --text-dark: #1e293b;         /* Texte principal */
    --text-light: #64748b;        /* Texte secondaire */
    --bg-white: #ffffff;          /* Fond blanc */
    --bg-light: #f8fafc;         /* Fond gris très clair */
    --bg-dark: #0f172a;          /* Fond sombre */
    
    /* Typographie */
    --font-family: 'Poppins', sans-serif;
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    
    /* Espacements */
    --spacing-xs: 0.5rem;        /* 8px */
    --spacing-sm: 1rem;          /* 16px */
    --spacing-md: 1.5rem;        /* 24px */
    --spacing-lg: 2rem;          /* 32px */
    --spacing-xl: 3rem;          /* 48px */
    --spacing-2xl: 4rem;         /* 64px */
    
    /* Autres */
    --border-radius: 0.5rem;     /* 8px */
    --border-radius-lg: 1rem;    /* 16px */
    --box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset CSS moderne */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ====================================
   UTILITAIRES GÉNÉRAUX
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    position: relative;
}

/* Ligne décorative sous les titres de section */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* ====================================
   BOUTONS
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-small {
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.btn-small:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(108, 75, 226, 0.459);
    box-shadow: var(--box-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Effet de soulignement animé */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Menu hamburger pour mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ====================================
   SECTION HERO (ACCUEIL)
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    position: relative;
    padding-top: 80px; /* Pour compenser la navbar fixe */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

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

.profile-photo {
    /* width: 100px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    transition: var(--transition); */
     width: a;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    transition: var(--transition); 
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-photo i {
    font-size: 120px;
    color: white;
}
.profile-photo img {
    
  object-fit: cover;
  border-radius: 20%;
  display: block;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}
/* Focus visible (accessibility) */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(37,99,235,0.25);
  outline-offset: 2px;
}

/* Quick skill badges */
.quick-skills { margin-top: 1rem; display:flex; gap:8px; flex-wrap:wrap; }
.skill-badge { background:#eef2ff; color:#1e293b; padding:6px 10px; border-radius:999px; font-weight:600; }

/* Project buttons disabled state */
[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }


/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ====================================
   SECTION À PROPOS
   ==================================== */
.about {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.about-text p {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-align: justify;
}

.about-text h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--spacing-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-content h4 {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
}

/* Cartes d'informations */
.about-cards {
    display: grid;
    gap: var(--spacing-sm);
}

.info-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance au survol */
.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.info-card:hover::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.info-card h4 {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.info-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
}

/* ====================================
   SECTION COMPÉTENCES
   ==================================== */
.skills {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-light);
    position: relative;
}

/* Formes géométriques décoratives en arrière-plan */
.skills::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.skills::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    transform: rotate(45deg);
    opacity: 0.1;
    animation: float 4s ease-in-out infinite reverse;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.skill-category {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.skill-info span:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-info span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance sur les barres de progression */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ====================================
   SECTION PROJETS
   ==================================== */
.projects {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
    position: relative;
}

/* Motif en arrière-plan */
.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image i {
    font-size: 60px;
    color: white;
    opacity: 0.9;
}

/* Effet d'onde au survol */
.project-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.project-card:hover .project-image::after {
    width: 300px;
    height: 300px;
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content h3 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tech-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.project-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* ====================================
   SECTION CONTACT
   ==================================== */
.contact {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

/* Particules décoratives */
.contact::before,
.contact::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact::before {
    top: 10%;
    left: -5%;
    animation: pulse 4s ease-in-out infinite;
}

.contact::after {
    bottom: 10%;
    right: -5%;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.contact-link i {
    font-size: var(--font-size-lg);
}

/* Formulaire de contact */
.contact-form {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.footer p {
    margin: var(--spacing-xs) 0;
    opacity: 0.8;
}

/* ====================================
   ANIMATIONS ET EFFETS SPÉCIAUX
   ==================================== */

/* Animation d'entrée pour les éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation de rotation pour les icônes */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.skill-category h3 i:hover {
    animation: rotate 0.6s ease-in-out;
}

/* Effet de particules flottantes */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 8s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 1.875rem; /* 30px */
        --font-size-3xl: 1.5rem;   /* 24px */
        --font-size-2xl: 1.25rem;  /* 20px */
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: var(--spacing-xl);
        transition: right 0.3s ease;
        box-shadow: var(--box-shadow);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Sections mobiles */
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .profile-photo i {
        font-size: 80px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-buttons {
        justify-content: center;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: var(--spacing-sm);
    }
    
    .timeline-item {
        padding-left: var(--spacing-sm);
    }
}

/* Petits smartphones */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* ====================================
   AMÉLIORATIONS UX/UI AVANCÉES
   ==================================== */

/* Curseur personnalisé */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewport="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23f59e0b" opacity="0.5"/></svg>') 10 10, auto;
}

a, button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewport="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%232563eb"/></svg>') 10 10, pointer;
}

/* Effet de sélection personnalisé */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-dark);
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Indicateur de progression de lecture */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.25s ease;
}

/* Mode sombre (bonus) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f1f5f9;
        --text-light: #cbd5e1;
        --bg-white: #1e293b;
        --bg-light: #0f172a;
        --bg-dark: #020617;
    }
    
    .navbar {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .hero {
        background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    }
}