/* ==========================================================================
   RESPONSIVE.CSS — Media queries adaptatives
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .container {
        padding: 80px 6%;
    }

    .page-header {
        padding: 120px 6% 50px 6%;
    }

    .breadcrumb {
        padding: 12px 6%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-text {
        text-align: justify;
    }

    .cv-wrapper {
        grid-template-columns: 1fr;
    }

    .cv-side {
        position: static;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .dropdown-arrow {
        display: none;
    }

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

    .featured-grid-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-project-card-landscape {
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 6%;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        background-color: rgba(11, 9, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding-top: 60px;
        z-index: 999;
        overflow-y: auto;
        border-left: 1px solid var(--border-color);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .burger {
        display: block;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .skills-grid-new,
    .card-grid,
    .overview-grid,
    .blocs-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .has-tooltip::after {
        width: 200px;
        font-size: 0.75rem;
    }

    .item-body h3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-preview embed,
    .cv-preview iframe,
    .cv-preview object {
        height: 450px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.9rem;
    }

    .page-header h1 {
        font-size: 2.1rem;
    }

    .contact-form {
        padding: 25px;
    }

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

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

    .item-img {
        height: auto;
    }

    .detail-links,
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-links .btn,
    .hero-btns .btn {
        justify-content: center;
    }
}