@charset "utf-8";
/* Styles pour le bandeau de consentement */
    .cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #333; /* Fond sombre */
        color: #fff; /* Texte blanc */
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        z-index: 1000;
        transform: translateY(100%); /* Masqué par défaut */
        transition: transform 0.5s ease-out;
    }

    .cookie-banner.show {
        transform: translateY(0); /* Affiché */
    }

    .cookie-banner p {
        font-size: 0.9rem;
        margin: 0;
        text-align: center;
    }

    .cookie-banner-buttons {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur mobile */
        justify-content: center;
    }

    .btn-accept-cookies, .btn-reject-cookies, .btn-settings-cookies {
        padding: 0.6rem 1.2rem;
        border-radius: 0.375rem; /* rounded-md */
        font-weight: 600; /* font-semibold */
        transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
        white-space: nowrap; /* Empêche les sauts de ligne dans les boutons */
    }

    .btn-accept-cookies {
        background-color: #22c55e; /* green-500 */
        color: white;
    }

    .btn-accept-cookies:hover {
        background-color: #16a34a; /* green-600 */
    }

    .btn-reject-cookies {
        background-color: #ef4444; /* red-500 */
        color: white;
    }

    .btn-reject-cookies:hover {
        background-color: #dc2626; /* red-600 */
    }

    .btn-settings-cookies {
        background-color: #3b82f6; /* blue-500 */
        color: white;
    }

    .btn-settings-cookies:hover {
        background-color: #2563eb; /* blue-600 */
    }

    /* Styles pour le modal de préférences de cookies */
    .cookie-settings-modal {
        position: fixed;
        inset: 0; /* top:0; right:0; bottom:0; left:0; */
        background-color: rgba(0, 0, 0, 0.5); /* bg-gray-600 bg-opacity-50 */
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        visibility: hidden; /* Masqué par défaut avec JS */
        opacity: 0; /* Pour la transition */
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .cookie-settings-modal.show {
        visibility: visible;
        opacity: 1;
    }

    .cookie-settings-content {
        background-color: #fff; /* bg-white */
        padding: 1.5rem; /* p-6 */
        border-radius: 0.5rem; /* rounded-lg */
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* shadow-xl */
        max-width: 28rem; /* max-w-sm */
        width: 90%; /* mx-4 pour mobile */
        margin-left: 1rem;
        margin-right: 1rem;
        position: relative;
    }

    .cookie-settings-content h3 {
        font-size: 1.5rem; /* text-2xl */
        font-weight: 700; /* font-bold */
        margin-bottom: 1.5rem; /* mb-6 */
        color: #1f2937; /* text-gray-900 */
        text-align: center;
    }

    .cookie-settings-content .close-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #6b7280; /* text-gray-500 */
        transition: color 0.2s;
    }

    .cookie-settings-content .close-button:hover {
        color: #1f2937; /* text-gray-900 */
    }

    .cookie-preference-item {
        margin-bottom: 1rem; /* mb-4 */
        padding-bottom: 1rem; /* pb-4 */
        border-bottom: 1px solid #e5e7eb; /* border-b border-gray-200 */
    }

    .cookie-preference-item:last-of-type {
        border-bottom: none;
        margin-bottom: 1.5rem; /* mb-6 */
        padding-bottom: 0;
    }

    .cookie-preference-item label {
        display: flex;
        align-items: center;
        font-weight: 600; /* font-semibold */
        color: #1f2937; /* text-gray-900 */
        cursor: pointer;
    }

    .cookie-preference-item input[type="checkbox"] {
        margin-right: 0.75rem; /* mr-3 */
        width: 1.25rem; /* w-5 */
        height: 1.25rem; /* h-5 */
        accent-color: #3b82f6; /* blue-500 */
    }

    .cookie-preference-item p {
        margin-top: 0.5rem; /* mt-1 */
        margin-left: 1.75rem; /* ml-7 */
        font-size: 0.875rem; /* text-sm */
        color: #4b5563; /* text-gray-700 */
    }

    .cookie-settings-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem; /* gap-3 */
    }

    .btn-save-preferences, .btn-accept-all-modal {
        width: 100%; /* w-full */
        padding: 0.75rem 1rem; /* py-3 px-4 */
        border-radius: 0.375rem; /* rounded-md */
        font-weight: 700; /* font-bold */
        color: white;
        transition: background-color 0.3s ease-in-out;
    }

    .btn-save-preferences {
        background-color: #3b82f6; /* blue-600 */
    }

    .btn-save-preferences:hover {
        background-color: #2563eb; /* blue-700 */
    }

    .btn-accept-all-modal {
        background-color: #22c55e; /* green-600 */
    }

    .btn-accept-all-modal:hover {
        background-color: #16a34a; /* green-700 */
    }
