@charset "UTF-8";

/* ==========================================================
   TRÈS GRANDS ÉCRANS
========================================================== */

@media (min-width: 1600px) {
    .container {
        max-width: 1450px;
    }
}

/* ==========================================================
   MENU MOBILE (panneau sous la barre de navigation)
   La page CV a plus de liens : elle se replie plus tôt (xl).
========================================================== */

@media (max-width: 1199.98px) {
    .navbar-expand-xl .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        background: var(--surface-color);
        box-shadow: var(--shadow);
    }

    .navbar-expand-xl .navbar-nav .nav-item:last-child {
        margin-top: 8px;
    }
}

@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        background: var(--surface-color);
        box-shadow: var(--shadow);
    }

    .navbar-expand-lg .navbar-nav .nav-item:last-child {
        margin-top: 8px;
    }
}

/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 80px;
    }

    :root {
        --section-padding: 80px;
    }

    #hero,
    .cv-header {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 70px;
        text-align: center;
    }

    .hero-text,
    .cv-header .lead-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo,
    .profile-picture {
        margin-top: 40px;
    }

    .experience-header {
        flex-direction: column;
        gap: 6px;
    }

    footer,
    footer .text-md-end {
        text-align: center !important;
    }

    footer .text-md-end {
        margin-top: 12px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {
    :root {
        --section-padding: 64px;
    }

    .section-title {
        margin-bottom: 44px;
    }

    .about-card {
        padding: 28px 22px;
    }

    .download-card {
        padding: 40px 22px;
    }

    .hero-photo {
        width: 260px;
        height: 260px;
    }

    .timeline {
        --tl-pad: 36px;
        --tl-line-x: 12px;
        --tl-dot: 18px;
    }

    .timeline-content {
        padding: 22px;
    }

    .timeline-dot {
        top: 28px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-buttons .btn,
    .download-card .btn {
        width: 100%;
    }

    .profile-picture {
        width: 210px;
        height: 210px;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
    }
}

/* ==========================================================
   PAYSAGE SUR TÉLÉPHONE
========================================================== */

@media (max-height: 650px) and (orientation: landscape) {
    #hero,
    .cv-header {
        min-height: auto;
        padding: 110px 0 50px;
    }
}

/* ==========================================================
   MOUVEMENT RÉDUIT (préférence système)
========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   IMPRESSION (ex. « Enregistrer en PDF » sur la page CV)
========================================================== */

@media print {
    .navbar,
    .scroll-top,
    .skip-link,
    .download-card,
    .theme-toggle {
        display: none !important;
    }

    body,
    .section-alt,
    .cv-header,
    footer {
        background: #fff !important;
        color: #000;
    }

    /* Sans ça, les blocs jamais affichés à l'écran resteraient invisibles */
    .js .fade-in,
    .js .slide-left,
    .js .slide-right,
    .js .zoom-in,
    .js .timeline-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    section {
        padding: 24px 0;
    }

    .cv-header {
        min-height: auto;
        padding-top: 0;
    }

    .about-card, .skill-card, .skill-category, .project-card, .experience-card,
    .language-card, .certification-card, .contact-card, .info-card,
    .interest-card, .timeline-content {
        box-shadow: none;
        break-inside: avoid;
    }
}
