/* Responsive Styles */

/* Tablettes en mode paysage et grands écrans */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Tablettes en mode portrait */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 1.5rem; /* Réduit de 2rem à 1.5rem */
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
        order: 2;
    }

    .social-links {
        justify-content: center;
    }

    section {
        padding: 3rem 0; /* Réduit de 4rem à 3rem pour les tablettes */
    }
    
    .hero {
        height: 80vh; /* Réduit la hauteur pour tablettes */
    }
    
    .section-title {
        margin-bottom: 1.5rem; /* Réduit l'espacement */
    }
}

/* Smartphones en mode paysage */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    section {
        padding: 2.5rem 0; /* Réduit encore plus pour smartphone */
    }

    .hero {
        height: 75vh; /* Réduit davantage la hauteur pour smartphones */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }

    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .navbar li {
        margin: 0;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Smartphones en mode portrait */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .projects-filter {
        flex-direction: column;
        align-items: center;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .skill-item {
        flex-direction: column;
        text-align: center;
    }

    .skill-icon {
        margin: 0 auto 1rem;
    }

    section {
        padding: 3rem 0;
    }
}
