/* =========================================================
   Message d'information (maintenance) - A nos velos
   ========================================================= */

.site-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-notice-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.site-notice-box {
    position: relative;
    width: 650px;
    max-width: 100%;
    height: 420px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background-color: #222; /* couleur de secours tant que l'image n'est pas ajoutee */
    background-image: url("../images/site-notice-bg.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.site-notice-overlay.is-visible .site-notice-box {
    transform: scale(1);
}

.site-notice-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.site-notice-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.site-notice-message {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 25px;
    max-width: 480px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.site-notice-close-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #fff;
    color: #222;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-notice-close-btn:hover {
    background: #e2e2e2;
    transform: translateY(-1px);
}

.site-notice-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.site-notice-close-x:hover {
    background: rgba(0, 0, 0, 0.7);
}

body.site-notice-open {
    overflow: hidden;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
    .site-notice-box {
        width: 100%;
        height: 340px;
    }

    .site-notice-title {
        font-size: 20px;
    }

    .site-notice-message {
        font-size: 14px;
    }

    .site-notice-close-btn {
        padding: 9px 22px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .site-notice-box {
        height: 300px;
    }
}
