/* ============================================================ */
/* === SÉRÉNITÉ ET SOLUTIONS — CookieYes                    === */
/* ============================================================ */

/* ===== POSITION : bas droite ===== */
.cky-consent-container.cky-box-bottom-left,
.cky-consent-container.cky-box-bottom-right {
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
    max-width: 380px !important;
}

/* ===== BANDEAU PRINCIPAL — fond foncé + liseré vert sauge ===== */
.cky-consent-bar {
    background-color: #393C40 !important;
    border: 1px solid #7E947E !important;
    border-radius: 8px !important;
    padding: 22px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4) !important;
    font-family: 'Poppins', sans-serif !important;
}

/* ===== TITRE ===== */
.cky-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    margin: 0 0 10px 0 !important;
}

/* ===== DESCRIPTION ===== */
.cky-notice-des,
.cky-notice-des p {
    color: rgba(255,255,255,0.75) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ===== LIENS DANS LA DESCRIPTION ===== */
.cky-notice-des a {
    color: #B3C5B3 !important;
    text-decoration: underline !important;
}
.cky-notice-des a:hover {
    color: #ffffff !important;
}

/* ===== CONTENEUR BOUTONS ===== */
.cky-notice-btn-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 18px !important;
    width: 100% !important;
}

/* ===== TOUS LES BOUTONS — base commune ===== */
.cky-notice-btn-wrapper .cky-btn {
    flex: 1 1 auto !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    text-align: center !important;
}

/* ===== PERSONNALISER — outline blanc translucide ===== */
.cky-notice-btn-wrapper .cky-btn-customize {
    background-color: transparent !important;
    color: rgba(255,255,255,0.75) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    text-decoration: none !important;
}
.cky-notice-btn-wrapper .cky-btn-customize:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ===== TOUT REJETER — outline blanc translucide ===== */
.cky-notice-btn-wrapper .cky-btn-reject {
    background-color: transparent !important;
    color: rgba(255,255,255,0.75) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}
.cky-notice-btn-wrapper .cky-btn-reject:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ===== TOUT ACCEPTER — fond vert sauge clair plein ===== */
.cky-notice-btn-wrapper .cky-btn-accept {
    background-color: #B3C5B3 !important;
    color: #393C40 !important;
    border: 1px solid #B3C5B3 !important;
}
.cky-notice-btn-wrapper .cky-btn-accept:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #393C40 !important;
}

/* ===== BOUTON REVISIT (rouage flottant) ===== */
.cky-btn-revisit-wrapper {
    background-color: #393C40 !important;
    border: 2px solid #7E947E !important;
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
    border-radius: 50% !important;
}

/* ============================================================ */
/* ===== MODAL PRÉFÉRENCES                                  === */
/* ============================================================ */

.cky-preference-center {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* ===== EN-TÊTE MODAL ===== */
.cky-preference-header {
    background: #393C40 !important;
    border-bottom: 2px solid #7E947E !important;
    padding: 18px 22px !important;
}
.cky-preference-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

/* ===== BOUTON FERMER ===== */
.cky-btn-close {
    filter: brightness(10) !important;
}

/* ===== CORPS MODAL ===== */
.cky-preference-body-wrapper {
    background: #ffffff !important;
}
.cky-preference-content-wrapper,
.cky-preference-content-wrapper p {
    color: #444444 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
}

/* ===== ACCORDÉON ===== */
.cky-accordion-btn {
    color: #393C40 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}
.cky-accordion-header-des,
.cky-accordion-header-des p {
    color: #666666 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
}

/* ===== TOUJOURS ACTIF ===== */
.cky-always-active {
    color: #7E947E !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ===== TOGGLE ===== */
.cky-switch input:checked + .cky-slider {
    background-color: #393C40 !important;
}
.cky-switch input:checked + .cky-slider::before {
    background-color: #7E947E !important;
}

/* ===== PIED MODAL ===== */
.cky-footer-wrapper {
    background: #f5f5f5 !important;
    border-top: 1px solid #e8e8e8 !important;
}

/* ===== BOUTON SAUVEGARDER ===== */
.cky-btn-preferences {
    background-color: #393C40 !important;
    color: #ffffff !important;
    border: 1px solid #393C40 !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}
.cky-btn-preferences:hover {
    background-color: #7E947E !important;
    border-color: #7E947E !important;
    color: #393C40 !important;
}

/* ===== BOUTON REJETER DANS MODAL ===== */
.cky-prefrence-btn-wrapper .cky-btn-reject {
    background-color: transparent !important;
    color: #444444 !important;
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}
.cky-prefrence-btn-wrapper .cky-btn-reject:hover {
    border-color: #393C40 !important;
    color: #393C40 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .cky-consent-container.cky-box-bottom-left,
    .cky-consent-container.cky-box-bottom-right {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
    }
    .cky-consent-bar {
        border-radius: 12px 12px 0 0 !important;
    }
    .cky-notice-btn-wrapper {
        flex-direction: column !important;
    }
}