/* Personnalisation des boutons avec vos couleurs */

/* Boutons principaux - fond violet */
#tarteaucitronRoot button.tarteaucitronCTAButton,
#tarteaucitronRoot button#tarteaucitronCloseAlert,
#tarteaucitronAlertBig #tarteaucitronCloseAlert,
#tarteaucitronAlertBig #tarteaucitronPersonalize,
#tarteaucitronAlertBig #tarteaucitronPersonalize2,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow,
.tac_activate .tarteaucitronAllow,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed .tarteaucitronAllow,
#tarteaucitron #tarteaucitronServices #tarteaucitronServices_mandatory .tarteaucitronLine button.tarteaucitronAllow {
    background: #813EF2 !important;
    color: #ffffff !important;
    border: 2px solid #813EF2 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

#tarteaucitronRoot button.tarteaucitronCTAButton:hover,
#tarteaucitronRoot button#tarteaucitronCloseAlert:hover,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow:hover {
    background: #6b2fd4 !important;
    border-color: #6b2fd4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 62, 242, 0.3);
}

/* Boutons secondaires - fond blanc avec bordure violet */
#tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
#tarteaucitronAlertBig #tarteaucitronPrivacyUrlDialog,
#tarteaucitron #tarteaucitronPrivacyUrl,
#tarteaucitron #tarteaucitronPrivacyUrlDialog {
    background: #ffffff !important;
    color: #813EF2 !important;
    border: 2px solid #813EF2 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

#tarteaucitronAlertBig #tarteaucitronPrivacyUrl:hover,
#tarteaucitronAlertBig #tarteaucitronPrivacyUrlDialog:hover,
#tarteaucitron #tarteaucitronPrivacyUrl:hover,
#tarteaucitron #tarteaucitronPrivacyUrlDialog:hover {
    background: #f8f5ff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 62, 242, 0.2);
}

/* Bouton refuser - fond sombre */
#tarteaucitronRoot .tarteaucitronDeny,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied2.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsDenied .tarteaucitronDeny {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 2px solid #1e293b !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

#tarteaucitronRoot .tarteaucitronDeny:hover,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny:hover {
    background: #0f172a !important;
    border-color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

/* Bouton magic block */
.tarteaucitron-magic-block button {
    background-color: #813EF2 !important;
    color: #ffffff !important;
    border: 2px solid #813EF2 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tarteaucitron-magic-block button:hover {
    background-color: #6b2fd4 !important;
    border-color: #6b2fd4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 62, 242, 0.3);
}

/* Bouton save */
html body #tarteaucitronRoot button#tarteaucitronSaveButton {
    background: #813EF2 !important;
    color: #ffffff !important;
    border: 2px solid #813EF2 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

html body #tarteaucitronRoot button#tarteaucitronSaveButton:hover {
    background: #6b2fd4 !important;
    border-color: #6b2fd4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 62, 242, 0.3);
}

/* Bordure des services activés/refusés */
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed {
    border-color: #813EF2 !important;
}

#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsDenied {
    border-color: #1e293b !important;
}

/* Focus visible pour l'accessibilité */
#tarteaucitronRoot a:focus-visible, 
#tarteaucitronRoot button:focus-visible {
    outline: 3px solid #813EF2 !important;
    outline-offset: 2px;
}

/* Bordures et ombres des panneaux */
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig,
html body #tarteaucitronRoot.tarteaucitronSize-popup #tarteaucitronAlertBig {
    border: 1px solid rgba(129, 62, 242, 0.2);
    box-shadow: 0 20px 60px rgba(129, 62, 242, 0.15);
}

/* Couleur du backdrop */
html body.tarteaucitron-modal-open div#tarteaucitronRoot::before,
html body .tarteaucitronSize-middle.tarteaucitronBeforeVisible::before {
    background: rgba(129, 62, 242, 0.1) !important;
}

/* ============================================
   ICÔNES DE VALIDATION EN BLANC
   ============================================ */

/* Icône CHECK (✓) en blanc */
#tarteaucitronRoot .tarteaucitronCheck::before {
    color: #ffffff !important;
}

/* Icône CROSS (✗) en blanc */
#tarteaucitronRoot .tarteaucitronCross::before {
    color: #ffffff !important;
}

/* Spécifique pour les boutons Autoriser */
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow .tarteaucitronCheck::before,
#tarteaucitronRoot button.tarteaucitronCTAButton .tarteaucitronCheck::before {
    color: #ffffff !important;
}

/* Spécifique pour les boutons Refuser/Interdire */
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny .tarteaucitronCross::before,
#tarteaucitronRoot .tarteaucitronDeny .tarteaucitronCross::before {
    color: #ffffff !important;
}

/* Cases à cocher dans la liste des services */
#tarteaucitronRoot .tarteaucitronIsAllowed .tarteaucitronAllow .tarteaucitronCheck::before,
#tarteaucitronRoot .tarteaucitronIsDenied .tarteaucitronDeny .tarteaucitronCross::before {
    color: #ffffff !important;
}

/* Boutons "Tout accepter" / "Tout refuser" */
#tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed .tarteaucitronCheck::before,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied .tarteaucitronCross::before,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied2 .tarteaucitronCross::before {
    color: #ffffff !important;
}

/* Services obligatoires */
#tarteaucitronRoot #tarteaucitronServices_mandatory .tarteaucitronCheck::before {
    color: #ffffff !important;
}

/* Boutons du banner principal */
#tarteaucitronAlertBig button .tarteaucitronCheck::before,
#tarteaucitronAlertBig button .tarteaucitronCross::before {
    color: #ffffff !important;
}