/* OVERLAY */
.krea3-ml-consent-overlay {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999; /* au-dessus de tout */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODALE */
.krea3-ml-consent-modal {
    background: #fff;
    max-width: 720px;
    width: 90%;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    position: relative;
}

/* ACTIONS */
.krea3-ml-consent-modal .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.krea3-ml-consent-modal .actions button {
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
}

/* BOUTON SECONDAIRE */
.krea3-ml-consent-modal .actions .secondary {
    background: #f5f5f5;
    border: 1px solid #ccc;
}

/* TEXTE INFO */
.ml-consent-info {
    font-size: 14px;
    color: #555;
    margin-top: 20px;
}

body.ml-consent-open {
    overflow: hidden;
}






/* ===============================
   OVERLAY
================================ */
.krea3-ml-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

/* ===============================
   MODALE
================================ */
.krea3-ml-consent-modal {
    background: #fff;
    max-width: 640px;
    width: 100%;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    color: #333;
}

.krea3-ml-consent-modal h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.krea3-ml-consent-modal p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ml-consent-info {
    font-size: 0.9rem;
    color: #666;
}

/* ===============================
   ACTIONS / BOUTONS
================================ */
.krea3-ml-consent-modal .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.krea3-ml-consent-modal button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Bouton principal */
#ml-consent-accept {
    background: #0e6c8e; /* couleur Krea3 / collectivité */
    color: #fff;
}

#ml-consent-accept:hover,
#ml-consent-accept:focus {
    background: #0b5873;
}

/* Bouton refuser */
#ml-consent-refuse {
    background: #f2f2f2;
    color: #333;
    border-color: #ccc;
}

#ml-consent-refuse:hover,
#ml-consent-refuse:focus {
    background: #e5e5e5;
}

/* Bouton secondaire */
#ml-consent-close.secondary {
    background: transparent;
    color: #555;
    border-color: #ddd;
}

#ml-consent-close.secondary:hover,
#ml-consent-close.secondary:focus {
    background: #f7f7f7;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
    .krea3-ml-consent-modal {
        padding: 1.5rem;
    }

    .krea3-ml-consent-modal .actions {
        flex-direction: column;
    }

    .krea3-ml-consent-modal button {
        width: 100%;
        text-align: center;
    }
}

/* ===============================
   ACCESSIBILITÉ
================================ */
.krea3-ml-consent-modal button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}


.krea3-ml-consent-modal {
    animation: consentFadeIn 0.25s ease-out;
}

@keyframes consentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

