/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navlinks-container {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 52, 96, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .navlinks-container.open {
        left: 0;
    }

    .main-navlinks {
        gap: 0;
    }

    nav {
        padding: 1rem;
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

    .header-text h2 {
        font-size: 1.2rem;
    }

    .presentation-row,
    .contact-grid,
    .parcours-grid {
        grid-template-columns: 1fr;
    }

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

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

    section {
        padding: 2rem 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

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

    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .header-text h1 {
        font-size: 2rem;
    }

    .header-text h2 {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .stats-line {
        gap: 1rem;
        flex-direction: column;
    }

    .skill-card {
        padding: 1rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    nav {
        padding: 0.8rem;
    }

    nav .nav-icon img {
        height: 30px;
    }
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    section {
        padding: 5rem 2rem;
    }
}

/* Small devices (360px) */
@media (max-width: 360px) {
    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text h2 {
        font-size: 0.9rem;
    }

    .header-text h3 {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    nav {
        padding: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

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

/* Print styles */
@media print {
    nav,
    .hamburger,
    .contact-form,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
