/* ==========================================================
   TWAL POPUP
   ========================================================== */

/* 1. États masqués
   ---------------------------------------------------------- */

.tw-popup[hidden],
.tw-popup-group[hidden] {
    display: none !important;
}

/* 2. Overlay général
   ---------------------------------------------------------- */

.tw-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.tw-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 18, .72);
    backdrop-filter: blur(2px);

}

/* 3a. Boîte popup
   ---------------------------------------------------------- */

.tw-popup__content {
    position: relative;
    z-index: 1;

    /* carré responsive */
    width: min(90vw, 760px);

    /* sécurité */
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);

    overflow: auto;

    padding: 3rem;
	padding: 3rem 3rem 5rem 3rem;
    border-radius: 1rem;

    background-image: url('https://www.chaletdeno.fr/wp-content/uploads/2026/06/cdo-bg-popup-cta.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    box-shadow: 0 2rem 5rem rgba(0,0,0,.30);
}

/* 3b. CORPS DU POPUP : BODY titre + boutons
 * -----------------------------------------*/

.tw-popup__body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
	
}

.tw-popup-group__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* 3c. titre popup
   ---------------------------------------------------------- */

.tw-popup-group__title {
    margin: 0 0 2rem;
    text-align: center;
    color: #fff;
}

/*	3d. groupe bouton 
 * -----------------------------------*/

.tw-popup-group__cta {
    margin-top: auto;
}

/*	3e. afficher le numéro de téléphone
 * -----------------------------------*/

.tw-popup-group__cta .tw-main-cta__subtext {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    font-weight: 400;
    opacity: .85;
}

/* 4. Bouton fermer
   ---------------------------------------------------------- */

.tw-popup__close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(47, 48, 42, .08);
    color: #2f302a;
}

.tw-popup__close:hover {
    background: rgba(47, 48, 42, .16);
}



/* 6. CTA dans la popup
   ---------------------------------------------------------- */


.tw-popup-group__cta .tw-main-cta__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .8rem;
}

.tw-popup-group__cta .tw-main-cta__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: end;
    gap: 1.2rem;
}

/* CTA EN CARTE VISUELLE
 * ----------------------------*/

.tw-popup-group__cta .tw-main-cta__item {
    tmp_min-height: 180px;
	aspect-ratio: 1 / 1;
    padding: 1rem;
    border-radius: 0;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    border: 1px solid rgba(255,255,255,.7);
	
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .8rem;
}


.tw-popup-group__cta .tw-main-cta__item:hover {
    transform: translateY(-1px);
    background: #e2e7de;
}
/* ICONE
 * --------------------------------*/
.tw-popup-group__cta .tw-main-cta__icon {
    margin: 0;
    font-size: 1.8rem;
}
.tw-popup-group__cta .tw-main-cta__icon svg,
.tw-popup-group__cta .tw-main-cta__icon .material-symbols-outlined {
    width: 2rem;
    height: 2rem;
}

/* TEXTE
 * ------------------------------*/
.tw-popup-group__cta .tw-main-cta__text {
    text-align: center;
}
/* 7. Responsive mobile
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .tw-popup {
        align-items: end;
        padding: 0;
    }

    .tw-popup__content {
        width: 100%;
        max-height: 88vh;
        padding: 2rem 1.2rem 1.4rem;
        border-radius: 1.2rem 1.2rem 0 0;
    }

    .tw-popup-group__title {
        margin-bottom: 1.2rem;
        font-size: 1.45rem;
    }

    .tw-popup-group__cta .tw-main-cta__list {
        grid-template-columns: 1fr;
    }

    .tw-popup-group__cta .tw-main-cta__item {
        min-height: 4.2rem;
    }
}