/* ============================================
   VARIABLES CSS (Light Mode par défaut)
   ============================================ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --border: #e5e5e7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* Variables pour le mode sombre */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --border: #27272a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}



/* ============================================
   RESET & STYLE DE BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

/* Burger caché par défaut (visible uniquement sur mobile) */
.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* ============================================
   SECTION HERO
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 0.8s ease;
}

.hero-greeting {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

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

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
}
/* ============================================
   SECTION SERVICES
   ============================================ */
.services {
    padding: 5rem 5%;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

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

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}
/* ============================================
   ABOUT PAGE - SECTION ABOUT HERO
   ============================================ */
.about-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.about-hero-content {
    flex: 1;
    animation: fadeInLeft 0.8s ease;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

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

.about-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

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

/* ============================================
   ABOUT PAGE - SECTION TIMELINE
   ============================================ */
.timeline-section {
    padding: 5rem 5%;
    background-color: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

/* Ligne verticale */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Points sur timeline */
.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-date {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.timeline-place {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* ============================================
   ABOUT PAGE - SECTION CENTRES D'INTÉRÊT
   ============================================ */
.interests-section {
    padding: 5rem 5%;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.interest-card {
    background-color: var(--bg-primary);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.interest-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

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

.interest-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
/* ============================================
   SKILLS PAGE - HERO
   ============================================ */
.skills-hero {
    text-align: center;
    padding: 5rem 5% 3rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInLeft 0.8s ease;
}

.skills-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0 1.2rem;
    line-height: 1.2;
}

.skills-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   SKILLS PAGE - COMPÉTENCES TECHNIQUES
   ============================================ */
.skills-section {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 2rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.skill-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.skill-bar {
    width: 100%;
    height: 12px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ec4899);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* ============================================
   SKILLS PAGE - OUTILS
   ============================================ */
.tools-section {
    padding: 5rem 5%;
    background-color: var(--bg-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-card {
    background-color: var(--bg-primary);
    padding: 2rem 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.tool-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   SKILLS PAGE - SOFT SKILLS
   ============================================ */
.soft-skills-section {
    padding: 5rem 5%;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.soft-skill-card {
    background-color: var(--bg-primary);
    padding: 2.2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.soft-skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.soft-skill-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.soft-skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* ============================================
   PROJECTS PAGE - HERO
   ============================================ */
.projects-hero {
    text-align: center;
    padding: 5rem 5% 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInLeft 0.8s ease;
}

.projects-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0 1.2rem;
    line-height: 1.2;
}

.projects-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   PROJECTS PAGE - FILTRES
   ============================================ */
.filters-section {
    padding: 2rem 5%;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--border);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: var(--shadow);
}

/* ============================================
   PROJECTS PAGE - GRID
   ============================================ */
.projects-section {
    padding: 3rem 5% 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.5s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

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

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-emoji {
    font-size: 5rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

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

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.tag {
    background-color: var(--bg-secondary);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-hover);
}
/* ============================================
   CONTACT PAGE - HERO
   ============================================ */
.contact-hero {
    text-align: center;
    padding: 5rem 5% 3rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInLeft 0.8s ease;
}

.contact-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0 1.2rem;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CONTACT PAGE - CONTENT
   ============================================ */
.contact-content {
    padding: 3rem 5% 5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* INFO À GAUCHE */
.contact-info {
    background-color: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 16px;
}

.contact-info-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.contact-info-text {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.info-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-word;
}

/* SOCIAL LINKS */
.social-links {
    margin-top: 2rem;
}

.social-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* FORMULAIRE À DROITE */
.contact-form-wrapper {
    background-color: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

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

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 20px;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    border: none;
}

.success-message {
    display: none;
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

.success-message.show {
    display: block;
    animation: fadeInLeft 0.5s ease;
}
/* ============================================
   ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================
   ============================================ */

/* ============================================
   TABLETTE (max 968px)
   ============================================ */
@media (max-width: 968px) {

    /* HERO (page accueil) */
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 3rem 5%;
    }

    .hero-name { font-size: 2.5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-description { margin: 0 auto 2rem; }
    .profile-photo { width: 280px; height: 280px; }

    /* ABOUT HERO */
    .about-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-photo { width: 280px; height: 280px; }

    /* CONTACT - 1 colonne au lieu de 2 */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* TIMELINE plus compacte */
    .timeline { padding-left: 1.5rem; }
    .timeline-item { padding-left: 1.5rem; }
    .timeline-dot { left: -2rem; }
}

/* ============================================
   MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {

    /* MENU BURGER affiché */
    .burger { display: flex; }

    /* Navigation cachée par défaut sur mobile */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    /* Menu visible quand classe "active" */
    .nav-links.active {
        left: 0;
    }

    /* Animation du burger en X quand actif */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* TITRES PLUS PETITS */
    .hero-name { font-size: 2rem; }
    .hero-title { font-size: 1.4rem; }
    .section-title { font-size: 1.8rem; }
    .about-title,
    .skills-main-title,
    .projects-main-title,
    .contact-main-title {
        font-size: 2rem;
    }

    /* HERO mobile */
    .profile-photo { width: 220px; height: 220px; }
    .about-photo { width: 220px; height: 220px; }

    /* SECTIONS padding réduit */
    .services,
    .timeline-section,
    .interests-section,
    .skills-section,
    .tools-section,
    .projects-section,
    .contact-content {
        padding: 3rem 5%;
    }

    /* SERVICES en 1 colonne */
    .services-grid,
    .interests-grid,
    .tools-grid,
    .soft-skills-grid {
        grid-template-columns: 1fr;
    }

    /* PROJECTS en 1 colonne */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* FILTRES sur mobile */
    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* CONTACT FORM padding réduit */
    .contact-form-wrapper,
    .contact-info {
        padding: 1.8rem 1.2rem;
    }

    /* TIMELINE compacte */
    .timeline-content { padding: 1rem; }
    .timeline-content h3 { font-size: 1.1rem; }
}

/* ============================================
   PETIT MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {

    .hero-name { font-size: 1.7rem; }
    .hero-title { font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }
    .about-title,
    .skills-main-title,
    .projects-main-title,
    .contact-main-title {
        font-size: 1.7rem;
    }

    /* Navbar plus compact */
    .navbar {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Photos plus petites */
    .profile-photo { width: 180px; height: 180px; }
    .about-photo { width: 200px; height: 200px; }

    /* Boutons plus petits */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Filtres en colonne */
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}