/**
 * Custom Cookie Consent Styles for Collabrio.fr
 * Personnalisation de la bannière de cookies pour correspondre à la charte graphique
 */

/* Personnalisation de la modale de consentement */
#cc-main .cm {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    max-width: 420px !important;
}

/* Titre de la modale */
#cc-main .cm__title {
    color: #1F2937 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
}

/* Description */
#cc-main .cm__desc {
    color: #4B5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* Boutons */
#cc-main .cm__btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

/* Bouton "Tout accepter" (primaire) */
#cc-main .cm__btn.cm__btn--primary {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

#cc-main .cm__btn.cm__btn--primary:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3) !important;
}

/* Bouton "Tout rejeter" (secondaire) */
#cc-main .cm__btn.cm__btn--secondary {
    background-color: #F3F4F6 !important;
    color: #374151 !important;
    border: 1px solid #E5E7EB !important;
}

#cc-main .cm__btn.cm__btn--secondary:hover {
    background-color: #E5E7EB !important;
    border-color: #D1D5DB !important;
}

/* Bouton "Gérer les préférences" */
#cc-main .cm__btn--link {
    color: #1D4ED8 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

#cc-main .cm__btn--link:hover {
    color: #1E40AF !important;
}

/* Footer avec liens */
#cc-main .cm__footer {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #E5E7EB !important;
}

#cc-main .cm__footer a {
    color: #6B7280 !important;
    font-size: 0.875rem !important;
    text-decoration: underline !important;
}

#cc-main .cm__footer a:hover {
    color: #1D4ED8 !important;
}

/* Modale des préférences */
#cc-main .pm {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

#cc-main .pm__header {
    background-color: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB !important;
    padding: 1.5rem !important;
}

#cc-main .pm__title {
    color: #1F2937 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* Sections des préférences */
#cc-main .pm__section {
    padding: 1.5rem !important;
    border-bottom: 1px solid #F3F4F6 !important;
}

#cc-main .pm__section-title {
    color: #1F2937 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

#cc-main .pm__section-desc {
    color: #6B7280 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

/* Liens dans les sections */
#cc-main .pm__section-desc a,
#cc-main .cc-link {
    color: #1D4ED8 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

#cc-main .pm__section-desc a:hover,
#cc-main .cc-link:hover {
    color: #1E40AF !important;
}

/* Toggle switches */
#cc-main .section__toggle {
    background-color: #E5E7EB !important;
}

#cc-main .section__toggle.toggle--on {
    background-color: #1D4ED8 !important;
}

#cc-main .section__toggle:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Badge "Toujours activé" */
#cc-main .pm__badge {
    background-color: #DBEAFE !important;
    color: #1E40AF !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    margin-left: 0.5rem !important;
}

/* Table des cookies */
#cc-main .cookie-table {
    width: 100% !important;
    margin-top: 1rem !important;
    border-collapse: collapse !important;
}

#cc-main .cookie-table th {
    background-color: #F9FAFB !important;
    color: #374151 !important;
    font-weight: 600 !important;
    padding: 0.75rem !important;
    text-align: left !important;
    font-size: 0.875rem !important;
    border-bottom: 2px solid #E5E7EB !important;
}

#cc-main .cookie-table td {
    padding: 0.75rem !important;
    border-bottom: 1px solid #F3F4F6 !important;
    color: #6B7280 !important;
    font-size: 0.875rem !important;
}

/* Footer de la modale des préférences */
#cc-main .pm__footer {
    padding: 1.5rem !important;
    background-color: #F9FAFB !important;
    border-top: 1px solid #E5E7EB !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

/* Bouton de fermeture */
#cc-main .pm__close-btn {
    color: #6B7280 !important;
    transition: color 0.2s ease !important;
}

#cc-main .pm__close-btn:hover {
    color: #1F2937 !important;
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cc-main .cm,
#cc-main .pm {
    animation: slideInUp 0.3s ease-out !important;
}

/* Responsive */
@media (max-width: 640px) {
    #cc-main .cm {
        max-width: 95% !important;
        margin: 1rem !important;
    }

    #cc-main .cm__btns {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    #cc-main .cm__btn {
        width: 100% !important;
    }
}

/* Overlay/Backdrop */
#cc-main .cm__overlay,
#cc-main .pm__overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important;
}
