/* Responsive Styles */

/* Large screens (max-width: 1200px) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

/* Medium screens (max-width: 992px) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-container {
        grid-template-columns: 1fr;
    }
    
    .experience-tabs {
        flex-direction: row;
        overflow-x: auto;
        border-left: none;
        border-bottom: 2px solid var(--color-border);
        margin-bottom: 2rem;
    }
    
    .exp-tab {
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
        white-space: nowrap;
    }
    
    .exp-tab:hover,
    .exp-tab.active {
        border-left-color: transparent;
        border-bottom-color: var(--color-accent);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Small screens (max-width: 768px) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 576px;
    }
    
    .header {
        height: auto;
    }
    
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .logo-img {
        height: 24px; /* Réduire la taille du logo sur mobile */
    }
    
    .logo span {
        font-size: 0.9rem;
    }
    
    .navbar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-header-bg);
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .navbar.active {
        max-height: 300px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: transparent;
        border-left-color: var(--color-accent);
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .repositories {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
}

/* Extra small screens (max-width: 576px) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-md);
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-text h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-text h2 {
        font-size: var(--font-size-lg);
    }
    
    .hero-text p {
        font-size: var(--font-size-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}
