/* Studio Ekinox - Popup promotions v1.0.0. Classes isolées pour Bootstrap 4.5.2. */
.ekinoxpromo,
.ekinoxpromo * {
    box-sizing: border-box;
}

.ekinoxpromo {
    display: none;
    position: fixed;
    z-index: 1060;
    width: calc(100vw - 32px);
    overflow: visible;
    background: #fff;
    color: #252525;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .21);
    /* Pas de fond noir et aucune interception des clics ailleurs sur la page. */
}

.ekinoxpromo.is-visible {
    display: block;
    animation: ekinoxpromo-appear .22s ease-out both;
}

@keyframes ekinoxpromo-appear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ekinoxpromo--center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.ekinoxpromo--bottom-left {
    left: 24px;
    bottom: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.ekinoxpromo--bottom-right {
    right: 24px;
    bottom: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.ekinoxpromo__close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
}

.ekinoxpromo__close:hover,
.ekinoxpromo__close:focus {
    background: #f1f1f1;
    color: #111;
}

.ekinoxpromo__close:focus-visible {
    outline: 3px solid #2366d1;
    outline-offset: 2px;
}

.ekinoxpromo__image-wrap {
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}

.ekinoxpromo__image-link {
    display: block;
    text-decoration: none;
}

.ekinoxpromo__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.ekinoxpromo__text {
    padding: 25px 26px;
    padding-right: 42px;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.ekinoxpromo__text > :first-child { margin-top: 0; }
.ekinoxpromo__text > :last-child  { margin-bottom: 0; }
.ekinoxpromo__text img { max-width: 100%; height: auto; }

@media (max-width: 575.98px) {
    .ekinoxpromo--bottom-left,
    .ekinoxpromo--bottom-right {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none !important;
        max-height: calc(100vh - 24px);
    }
    .ekinoxpromo--center { max-height: calc(100vh - 24px); }
    .ekinoxpromo__text { padding: 20px 42px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .ekinoxpromo.is-visible { animation: none; }
}
