/* RESET COMPLET */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 1rem;
}

/* Reset zoom */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #0A0E27;
    color: #E8EAED;
    overflow-x: hidden;
}

/* ============ MENU HAMBURGER MOBILE ============ */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.5);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.7);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation hamburger -> X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* ============ SIDEBAR STICKY ============ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1A1F3A 0%, #0D1117 100%);
    border-right: 3px solid rgba(0, 217, 255, 0.5);
    box-shadow: 5px 0 20px rgba(0, 217, 255, 0.3);
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 2rem 1rem;
}

.nav-btn {
    width: 100%;
    background: #1A1F3A;
    color: #FFFFFF;
    border: 2px solid rgba(0, 217, 255, 0.4);
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-btn:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: #00D9FF;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
}

.nav-btn.active {
    background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%);
    border: 3px solid #00D9FF;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.7);
}

/* ============ MAIN CONTENT ============ */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

/* ============ HOME PAGE ============ */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #00D9FF;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    margin-bottom: 2rem;
    object-fit: cover;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.5rem;
    color: #00D9FF;
    margin-bottom: 1rem;
}

.hero-quote {
    font-size: 1.2rem;
    color: #8B9DC3;
    font-style: italic;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.metric-card {
    background: #1A1F3A;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #00D9FF;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00D9FF;
}

.metric-label {
    font-size: 1rem;
    color: #D5DAE1;
    margin-top: 0.5rem;
}

.section-title {
    color: #00D9FF;
    text-align: center;
    margin: 3rem 0;
    font-size: 2rem;
    font-weight: 800;
}

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

.home-project-card {
    background: #1A1F3A;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.home-project-card:hover {
    border-color: #00D9FF;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

.home-project-card h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.home-project-card p {
    color: #D5DAE1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    color: #8B9DC3;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============ BADGES & PILLS ============ */
.badge {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: 800;
}

.badge.complet {
    background: #667EEA;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-pill {
    display: inline-block;
    background: rgba(102, 126, 234, 0.5);
    color: #FFFFFF;
    padding: 0.5rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: rgba(0, 217, 255, 0.7);
    transform: scale(1.15);
}

/* ============ PAGES GÉNÉRALES ============ */
.page-title {
    color: #00D9FF;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
}

/* ============ ABOUT PAGE ============ */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #1A1F3A;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: #00D9FF;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

.about-card h2 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: #D5DAE1;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.cv-link {
    color: #00D9FF;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cv-link:hover {
    color: #667EEA;
}

/* ============ PROJECTS PAGE ============ */
.project-card {
    background: #1A1F3A;
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #00D9FF;
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

.project-title {
    color: #FFFFFF;
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.project-desc {
    color: #D5DAE1;
    font-size: 1.08rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.tech-section {
    margin: 1.5rem 0;
}

.tech-section strong {
    color: #00D9FF;
    font-size: 1.1rem;
}

.project-card h3 {
    color: #00D9FF;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.project-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.project-images img:hover {
    border-color: #00D9FF;
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-link {
    flex: 1;
    min-width: 150px;
    background: rgba(26, 31, 58, 0.9);
    color: #00D9FF;
    border: 2px solid #00D9FF;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%);
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.6);
}

.divider {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

/* ============ SKILLS PAGE ============ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #1A1F3A;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: #00D9FF;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

.skill-card h2 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============ CONTACT PAGE ============ */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: #1A1F3A;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #00D9FF;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

.contact-card h2 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card a {
    color: #00D9FF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    word-break: break-word;
}

.contact-card a:hover {
    color: #667EEA;
}

/* ============ FORMULAIRE DE CONTACT ============ */
.contact-form-wrapper {
    max-width: 700px;
    margin: 2rem auto;
    background: #1A1F3A;
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #00D9FF;
    font-weight: 700;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D9FF;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8B9DC3;
}

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

.submit-btn {
    background: linear-gradient(135deg, #00D9FF 0%, #667EEA 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

#form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    display: none;
}

#form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10B981;
    color: #10B981;
}

#form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #EF4444;
    color: #EF4444;
}

/* ============ ANIMATIONS AU SCROLL ============ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

.animate-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-from-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-from-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-zoom.animated {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   SECTION MES SERVICES
   ============================================ */
.subtitle {
    text-align: center;
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

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

.service-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00D9FF;
}

.service-card > p {
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-benefits li {
    color: #9CA3AF;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.services-cta .cta-text {
    font-size: 1.2rem;
    color: #E8EAED;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 768px) {
    /* Sidebar fermée par défaut sur mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    /* Sidebar fermée par défaut sur mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    /* Afficher le bouton hamburger */
    .menu-toggle {
        display: block;
    }

    /* Sidebar cachée par défaut sur mobile */
    .sidebar {
        transform: translateX(-100%);
    }

    /* Sidebar visible quand active */
    .sidebar.active {
        transform: translateX(0);
    }

    /* Overlay sombre quand menu ouvert */
    .sidebar.active::after {
        content: '';
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Main content prend toute la largeur */
    .main-content {
        margin-left: 0;
        padding: 5rem 1.5rem 1.5rem 1.5rem;
    }

    /* Textes plus petits */
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Photo de profil plus petite */
    .profile-img {
        width: 150px;
        height: 150px;
    }

    /* Métriques en 2 colonnes */
    .metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .metric-card {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

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

    /* Images projets en 1 colonne */
    .project-images {
        grid-template-columns: 1fr;
    }

    /* Cards plus compactes */
    .project-card,
    .about-card,
    .skill-card,
    .contact-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* Titres projets plus petits */
    .project-title {
        font-size: 1.4rem;
    }

    .project-desc {
        font-size: 1rem;
    }

    /* Liens projet en colonne */
    .project-link {
        min-width: 100%;
    }

    /* Tech pills plus petits */
    .tech-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Badges plus petits */
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    /* Désactiver animations hover sur mobile */
    .nav-btn:hover,
    .metric-card:hover,
    .home-project-card:hover,
    .project-card:hover,
    .about-card:hover,
    .skill-card:hover,
    .contact-card:hover {
        transform: none;
    }

    /* Footer plus compact */
    .footer {
        font-size: 0.9rem;
        padding: 1.5rem;
    }
}

/* ============ TRÈS PETITS ÉCRANS ============ */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .metrics {
        gap: 0.8rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.85rem;
    }

    .contact-form-wrapper {
        padding: 1rem;
    }
}
