/* ==========================================================
   WIDGET POLITIQUE & SÉCURITÉ DSI - MAIRIE DE COMÉ
   ========================================================== */

#come-dsi-privacy-module {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 1. Bandeau Flottant */
.dsi-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111827;
    color: #f9fafb;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    box-sizing: border-box;
    display: none;
}

.dsi-cookie-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dsi-cookie-container p {
    margin: 0;
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d1d5db;
}

.dsi-cookie-container strong {
    color: #ffffff;
}

.dsi-link-policy {
    color: #60a5fa;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
}

.dsi-link-policy:hover {
    color: #93c5fd;
}

.dsi-cookie-actions {
    display: flex;
    gap: 12px;
}

/* Boutons */
.dsi-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dsi-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.dsi-btn-primary:hover {
    background-color: #1d4ed8;
}

.dsi-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #4b5563;
}

.dsi-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 2. Modale de Confidentialité */
.dsi-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.dsi-modal-content {
    background: #ffffff;
    color: #1f2937;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: dsiFadeIn 0.3s ease-out;
}

.dsi-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.dsi-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsi-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.dsi-modal-close:hover {
    color: #111827;
}

.dsi-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dsi-modal-body h4 {
    color: #1d4ed8;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.dsi-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f9fafb;
}

.dsi-modal-footer .dsi-btn-secondary {
    color: #374151;
    border-color: #d1d5db;
}

.dsi-modal-footer .dsi-btn-secondary:hover {
    background-color: #f3f4f6;
}

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

@media (max-width: 768px) {
    .dsi-cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .dsi-cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}