/**
 * Accueil index.php — hero responsive (mobile + desktop).
 */

/* ========== Mobile : texte puis image, centré ========== */
@media (max-width: 767px) {
    section.main-section {
        min-height: unset !important;
        height: auto !important;
        padding: 6.25rem 0.75rem 0.85rem !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    section.main-section .main-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        row-gap: 0.35rem !important;
        column-gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
    }

    section.main-section .hero-copy {
        grid-row: 1;
        text-align: center;
        flex: unset !important;
        max-width: 100% !important;
    }

    section.main-section .hero-copy h3 {
        margin-bottom: 0.35rem;
        line-height: 1.12;
        max-width: none;
    }

    section.main-section .hero-copy h3 span {
        margin-top: 0.15rem;
        line-height: 1.05;
        font-size: clamp(1.35rem, 6.5vw, 1.85rem) !important;
    }

    section.main-section .hero-copy p {
        padding: 0.2rem 0;
        margin: 0;
        max-width: none;
    }

    section.main-section .hero-copy .info-button {
        margin-top: 0.35rem;
        margin-bottom: 0;
    }

    section.main-section .image-gallery {
        grid-row: 2;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0;
        text-align: center;
        flex: unset !important;
    }

    section.main-section .image-gallery .canada-image {
        display: inline-block;
        width: min(240px, 68vw);
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}

/* ========== Desktop : deux colonnes équilibrées ========== */
@media (min-width: 768px) {
    section.main-section {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: unset !important;
        height: auto !important;
        padding: 5.25rem 2rem 2.25rem !important;
    }

    section.main-section .main-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: clamp(1.75rem, 4vw, 3.5rem) !important;
        width: 100% !important;
        max-width: 1140px !important;
        margin: 0 auto !important;
    }

    section.main-section .hero-copy {
        flex: 1 1 58% !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        text-align: left !important;
    }

    section.main-section .hero-copy h3 {
        max-width: 16em;
        margin-bottom: 0.65rem;
    }

    section.main-section .hero-copy h3 span {
        display: block !important;
        margin-top: 0.35rem;
    }

    section.main-section .hero-copy p {
        max-width: 32em;
    }

    section.main-section .image-gallery {
        flex: 0 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
        max-width: 320px !important;
        width: auto !important;
    }

    section.main-section .image-gallery .canada-image {
        width: min(280px, 26vw) !important;
        max-width: 280px !important;
        height: auto;
    }
}
