/*--------------------------------------------------------------
# Pop-up "Fermeture estivale" - La Maison du Tissu
# Affichée uniquement sur index.html
--------------------------------------------------------------*/
.lmt-popup {
    --lmt-popup-base: #efad2a;
    --lmt-popup-black: #1d1d1b;
    --lmt-popup-gray: #606164;
    --lmt-popup-white: #ffffff;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(29, 29, 27, .72);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity .35s ease, visibility .35s ease;
}

.lmt-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.lmt-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: auto;
    background-color: var(--lmt-popup-white);
    border-top: 5px solid var(--lmt-popup-base);
    box-shadow: 0 30px 60px rgba(29, 29, 27, .25);
    padding: 45px 40px 45px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    transform: translateY(24px) scale(.97);
    transition: transform .35s ease;
}

.lmt-popup.is-visible .lmt-popup__dialog {
    transform: translateY(0) scale(1);
}

/* Bouton de fermeture */
.lmt-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: var(--lmt-popup-black);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.lmt-popup__close:hover,
.lmt-popup__close:focus-visible {
    background-color: var(--lmt-popup-base);
    color: var(--lmt-popup-white);
    transform: rotate(90deg);
}

.lmt-popup__close svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

/* Logo */
.lmt-popup__logo {
    margin-bottom: 25px;
}

.lmt-popup__logo img {
    display: block;
    width: 145px;
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

/* Titre (sans balise de titre h1-h6) */
.lmt-popup__title {
    display: block;
    margin: 0 0 18px;
    color: var(--lmt-popup-black);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Texte */
.lmt-popup__text {
    margin: 0 0 12px;
    color: var(--lmt-popup-gray);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 500;
}

.lmt-popup__text:last-of-type {
    margin-bottom: 0;
}

.lmt-popup__text strong {
    color: var(--lmt-popup-black);
    font-weight: 800;
}

.lmt-popup__highlight {
    color: var(--lmt-popup-base);
    font-weight: 800;
}

.lmt-popup__text a {
    color: var(--lmt-popup-base);
    font-weight: 800;
    text-decoration: none;
    transition: color .3s ease;
}

.lmt-popup__text a:hover {
    color: var(--lmt-popup-black);
}

/* Bouton d'action */
.lmt-popup__btn {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-top: 28px;
    padding: 14px 42px;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    background-color: var(--lmt-popup-base);
    color: var(--lmt-popup-white);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
    transition: background-color .35s ease, color .35s ease;
}

.lmt-popup__btn:hover,
.lmt-popup__btn:focus-visible {
    background-color: var(--lmt-popup-black);
    color: var(--lmt-popup-white);
}

/* Blocage du défilement de la page */
body.lmt-popup-open {
    overflow: hidden;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media only screen and (max-width: 575px) {
    .lmt-popup {
        padding: 15px;
    }

    .lmt-popup__dialog {
        padding: 38px 22px 35px;
    }

    .lmt-popup__close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .lmt-popup__logo {
        margin-bottom: 20px;
    }

    .lmt-popup__logo img {
        width: 120px;
        max-width: 55%;
    }

    .lmt-popup__title {
        font-size: 21px;
        margin-bottom: 14px;
    }

    .lmt-popup__text {
        font-size: 15px;
        line-height: 1.6;
    }

    .lmt-popup__btn {
        margin-top: 22px;
        padding: 13px 30px;
        width: 100%;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .lmt-popup__dialog {
        max-width: 460px;
        padding: 40px 30px;
    }

    .lmt-popup__title {
        font-size: 23px;
    }
}

/* Écrans peu hauts (mobiles en paysage) */
@media only screen and (max-height: 560px) {
    .lmt-popup {
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .lmt-popup__dialog {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .lmt-popup__logo {
        margin-bottom: 15px;
    }

    .lmt-popup__logo img {
        width: 115px;
    }

    .lmt-popup__btn {
        margin-top: 18px;
    }
}

/* Accessibilité : préférence de mouvement réduit */
@media (prefers-reduced-motion: reduce) {

    .lmt-popup,
    .lmt-popup__dialog,
    .lmt-popup__close,
    .lmt-popup__btn {
        transition: none;
    }

    .lmt-popup__close:hover,
    .lmt-popup__close:focus-visible {
        transform: none;
    }
}
