/* ============================================
   PORTFOLIO PROFESSIONNEL - FEUILLE DE STYLES
   Design moderne et responsive
   ============================================ */

/* ============================================
   VARIABLES CSS
   Définition des couleurs et valeurs réutilisables
   ============================================ */
:root {
    /* Palette de couleurs principale */
    --primary-color: #0080ff;        /* Bleu électrique */
    --secondary-color: #00d4ff;      /* Bleu cyan électrique */
    --accent-color: #00ffff;         /* Cyan */
    --dark-color: #001a33;           /* Bleu très foncé */
    --light-color: #f0f8ff;          /* Bleu très pâle */
    --gray-color: #4a5f7f;           /* Gris bleuté */
    --white: #ffffff;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Rayons de bordure */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
}

/* ============================================
   RESET ET STYLES DE BASE
   Normalisation des styles navigateurs
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sélection de texte personnalisée */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

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

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

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

ul {
    list-style: none;
}

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

/* ============================================
   CLASSES UTILITAIRES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
}

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

/* ============================================
   BOUTONS
   Styles des boutons avec variantes
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    font-size: 1rem;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   Barre de navigation fixe avec effet au scroll
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-bracket {
    color: var(--primary-color);
}

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

.nav-link {
    position: relative;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-medium);
}

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

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

/* Menu burger pour mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-medium);
}

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

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

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

/* ============================================
   SECTION HERO
   Page d'accueil avec présentation principale
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    background: linear-gradient(135deg, #f0f8ff 0%, #cce6ff 100%);
}

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

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
}

.image-wrapper {
    position: relative;
    padding: 15px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.4);
}

.profile-image {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 5px solid transparent;
    background-clip: padding-box;
}

/* Style pour l'image réelle */
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* Style pour l'icône de fallback */
.profile-image i {
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animation de morphing pour l'image */
@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Indicateur de scroll */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* ============================================
   SECTION À PROPOS
   Présentation détaillée et informations
   ============================================ */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--light-color);
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--gray-color);
}

.info-item p {
    font-size: 1rem;
    color: var(--dark-color);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--gradient-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ============================================
   SECTION COMPÉTENCES
   Affichage des compétences techniques
   ============================================ */
.skills {
    background: var(--light-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.skill-category {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.skill-category h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

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

.skill-item {
    margin-bottom: var(--spacing-sm);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

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

.skill-bar {
    height: 8px;
    background: var(--light-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 1s ease;
}

/* ============================================
   SECTION EXPÉRIENCE
   Timeline du parcours professionnel
   ============================================ */
.experience {
    background: var(--white);
}

.timeline-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.timeline-heading {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: var(--spacing-md);
}

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

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

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid var(--white);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 4px var(--light-color);
}

.timeline-content {
    background: var(--light-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.timeline-content h4 {
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    list-style: disc;
    padding-left: 1.5rem;
}

.timeline-description li {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

/* ============================================
   SECTION PORTFOLIO
   Grille de projets avec filtres
   ============================================ */
.portfolio {
    background: var(--light-color);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.portfolio-content {
    padding: var(--spacing-md);
}

.portfolio-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.portfolio-content > p {
    margin-bottom: var(--spacing-sm);
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.portfolio-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    color: var(--secondary-color);
    gap: 0.5rem;
}

/* ============================================
   SECTION CONTACT
   Formulaire et informations de contact
   ============================================ */
.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.contact-info > p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.3rem;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    color: var(--gray-color);
    margin: 0;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-social {
    margin-top: var(--spacing-md);
}

.contact-social h4 {
    margin-bottom: var(--spacing-sm);
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--light-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid transparent;
    background: var(--white);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-success {
    display: none;
    background: #0080ff;
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--white);
    margin: 0;
}

/* ============================================
   FOOTER
   Pied de page
   ============================================ */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.3rem 0;
    text-align: center;
}

.footer-text i {
    color: var(--accent-color);
}


/* ============================================
   BOUTON SCROLL TO TOP
   Bouton retour en haut de page
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   Animations d'entrée pour les sections
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   Adaptation mobile et tablette
   ============================================ */

/* Tablettes (max 1024px) */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .timeline-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tablettes et mobiles (max 768px) */
@media (max-width: 768px) {
    /* Navigation mobile */
    .burger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-medium);
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--light-color);
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .profile-image i {
        font-size: 8rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Mobiles (max 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-image i {
        font-size: 6rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    /* Vous pouvez ajouter ici des styles pour le mode sombre si désiré */
}