/* Reset complet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #dc2626;
    --yellow: #fbbf24;
    --pink: #ec4899;
    --purple: #9333ea;
    --sidebar-width: 280px;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: white;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* MENU LATÉRAL */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    opacity: 1;
    pointer-events: all;
}

.sidebar-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.sidebar-toggle:hover {
    background: var(--orange-dark);
    transform: scale(1.1);
}

.sidebar-content {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 20px;
}

.sidebar-content.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
}

.sidebar-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(249, 115, 22, 0.2);
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: var(--orange);
    color: white;
}

.nav-divider {
    margin: 20px 0 10px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-divider span {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Overlay quand le menu est ouvert */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* LOGOS ENTREPRISES */
.company-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* HERO SECTION - Gris foncé */
.header {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.header-main {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-photo-container {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 10px rgba(249, 115, 22, 0.3);
    transform: rotate(-5deg);
    transition: all 0.5s ease;
}

.profile-photo-container:hover {
    transform: rotate(0deg) scale(1.05);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    color: white;
}

.name {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 2.2rem;
    color: #d1d5db;
    font-weight: 300;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    background: rgba(249, 115, 22, 0.2);
    border: 2px solid rgba(249, 115, 22, 0.4);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.5);
}

/* SECTION PRÉSENTATION - Orange */
.section {
    width: 100%;
    padding: 8rem 3rem;
}

.section-presentation {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
}

.presentation {
    font-size: 1.6rem;
    line-height: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* SECTION LANGUES - Violet */
.section-langues {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}

.section-langues .section-title {
    color: white;
}

.langues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.langue-card {
    background: rgba(255, 255, 255, 0.97);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.langue-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.langue-nom {
    font-size: 2rem;
    font-weight: 700;
    color: #7e22ce;
    margin-bottom: 1rem;
}

.langue-niveau {
    font-size: 1.3rem;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.niveau-barre {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 1rem;
}

.niveau-progress {
    height: 100%;
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 100%);
    border-radius: 50px;
    transition: width 0.6s ease;
}

/* SECTION EXPÉRIENCE - Blanc */
.section-experience {
    background: #f9fafb;
}

.section-experience .section-title {
    color: var(--orange);
    text-align: left;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 6px solid var(--orange);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.25);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.8rem;
}

.company {
    font-size: 1.4rem;
    color: var(--orange);
    font-weight: 600;
}

.period {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
}

.description {
    color: #4b5563;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-top: 1.5rem;
}

/* SECTION FORMATION - Rouge */
.section-formation {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.section-formation .section-title {
    color: white;
}

.section-formation .card {
    background: rgba(255, 255, 255, 0.97);
    border-left-color: #fbbf24;
}

/* SECTION COMPÉTENCES - Jaune */
.section-competences {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.section-competences .section-title {
    color: #78350f;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.97);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.skill-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ea580c;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--orange);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: white;
    color: var(--orange);
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--orange);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: var(--orange);
    color: white;
    transform: scale(1.1);
}

/* SECTION PROJETS - Gris foncé */
.section-projets {
    background: #1f2937;
}

.section-projets .section-title {
    color: white;
}

.project-card {
    background: #374151;
    padding: 3.5rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-top: 5px solid var(--orange);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.4);
}

.project-card .card-title {
    color: white;
    font-size: 2.2rem;
}

.project-card .description {
    color: #d1d5db;
    font-size: 1.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    background: var(--orange);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--orange-dark);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.5);
}

/* SECTION DOWNLOAD - Rose */
.download-section {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    text-align: center;
}

.download-section h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 3rem;
    font-weight: 900;
}

.download-btn {
    background: white;
    color: #be185d;
    border: none;
    padding: 1.8rem 4.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .header-main {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 4rem;
    }

    .name {
        font-size: 4rem;
    }

    .contact-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
    }

    .header {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .profile-photo-container {
        max-width: 280px;
    }

    .name {
        font-size: 3rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .presentation {
        font-size: 1.3rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .langues-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }

    .sidebar-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
}

@media print {
    .sidebar,
    .sidebar-toggle {
        display: none;
    }

    .header {
        min-height: auto;
        background: white;
        color: black;
    }

    .name {
        -webkit-text-fill-color: var(--orange);
    }

    .download-section {
        display: none;
    }
}