/* ============================================================
   NKOMON - Cookie Consent Modal Styles
   Préfixe : _nk26 (pour éviter les conflits CSS)
   ============================================================ */

/* ---- Overlay / Backdrop ---- */
.modal_nk26 {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay_nk26 0.3s ease;
}

.modal_nk26.show_nk26 {
    display: flex;
}

@keyframes fadeInOverlay_nk26 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Dialog container ---- */
.modal-dialog_nk26 {
    width: 90%;
    max-width: 480px;
    margin: auto;
    animation: slideUp_nk26 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp_nk26 {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Modal card ---- */
.modal-content_nk26 {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ---- Header ---- */
.modal-header_nk26 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 20px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title_nk26 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
    letter-spacing: 0.01em;
    /* Mise en évidence avec fond bleu comme dans l'image */
    background-color: #1565C0;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 6px;
}

.close_nk26 {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.close_nk26:hover {
    background: #f0f0f0;
    color: #111;
}

/* ---- Body ---- */
.modal-body_nk26 {
    padding: 24px 28px 16px;
    text-align: center;
}

.logo-container_nk26 {
    margin-bottom: 18px;
}

.logo-container_nk26 img {
    border-radius: 50%;
    object-fit: contain;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.cookie-text_nk26 {
    font-size: 14.5px;
    line-height: 1.65;
    color: #333;
    margin: 0;
    text-align: center;
}

/* ---- Barre de progression (compte à rebours desktop) ---- */
.cookie-timer-bar_nk26 {
    height: 3px;
    background: #e8e8e8;
    margin: 16px 28px 0;
    border-radius: 2px;
    overflow: hidden;
    display: none; /* affiché uniquement sur desktop via JS */
}

.cookie-timer-bar_nk26 .bar-fill_nk26 {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    border-radius: 2px;
    transform-origin: left;
    animation: timerShrink_nk26 60s linear forwards;
}

@keyframes timerShrink_nk26 {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.cookie-timer-label_nk26 {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    padding: 4px 28px 0;
    display: none;
}

/* ---- Footer / Boutons ---- */
.modal-footer_nk26 {
    padding: 16px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Base bouton partagé */
.buttonback3z {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: filter 0.2s, transform 0.15s;
}

.buttonback3z:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.buttonback3z:active {
    transform: translateY(0px);
    filter: brightness(0.95);
}

/* Accepter → vert */
.btn-accept_nk26 {
    background: #2e7d32;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
}

/* Refuser → gris */
.btn-refuse_nk26 {
    background: #757575;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Politique → orange/jaune */
.btn-policy_nk26 {
    background: #F9A825;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(249, 168, 37, 0.35);
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .modal-dialog_nk26 {
        width: 94%;
    }

    .modal-body_nk26 {
        padding: 20px 18px 12px;
    }

    .cookie-text_nk26 {
        font-size: 13.5px;
    }

    .modal-footer_nk26 {
        padding: 12px 16px 18px;
        gap: 8px;
    }

    .buttonback3z {
        padding: 13px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
}
