/* ============================
   Cookies consent – JOEL THEATRICAL
   Loi 25 Québec – v2.0.0
   ============================ */

/* ── Masquer les anciens panneaux HTML statiques ── */
.cookies.english,
.cookies.french {
    display: none !important;
}

.joel-cc-banner {
    position: fixed;
    z-index: 2100;
    width: 60%;
    padding: 1px;
    vertical-align: middle;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, 0);
    max-height: 90vh;
    overflow-y: auto;
}

.joel-cc-box {
    background-color: #232323;
    border-radius: 0;
    padding: 15px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #fff;
    text-align: center;
    font-size: 11pt;
    font-weight: 300;
    -webkit-box-shadow: -5px 5px 5px 2px rgba(0,0,0,0.5);
    box-shadow: -5px 5px 5px 2px rgba(0,0,0,0.5);
}

.joel-cc-box a {
    color: #CE181E !important;
    text-decoration: underline;
    font-weight: bold !important;
}

.joel-cc-box a:hover {
    text-decoration: none;
}

.joel-cc-box h3 {
    font-size: 1.25em;
    line-height: 1.25em;
    margin-bottom: .5em;
}

/* ── Rangée de boutons (nouveau layout flex) ── */
.joel-cc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: -10px;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* ── Bouton "Tout accepter" – vert (conserve le look existant) ── */
.joel-cc-banner .joel-cc-btn {
    background: #fff !important;
    color: #28a745 !important;
    border-color: #28a745 !important;
    font-weight: bold !important;
    border-style: solid !important;
    border-width: 2px !important;
    padding: 5px 10px;
    -webkit-box-shadow: -3px 3px 4px rgba(0,0,0,0.3);
    box-shadow: -3px 3px 4px rgba(0,0,0,0.3);
}

.joel-cc-banner .joel-cc-btn:hover {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
    font-weight: bold !important;
}

/* ── Bouton "Tout refuser" – blanc / rouge (conserve le look existant) ── */
.joel-cc-banner .joel-cc-btn-decline {
    background: #fff !important;
    color: #CE181E !important;
    border-color: #CE181E !important;
    border-style: solid !important;
    border-width: 2px !important;
    font-weight: bold !important;
    padding: 5px 10px;
    -webkit-box-shadow: -3px 3px 4px rgba(0,0,0,0.3);
    box-shadow: -3px 3px 4px rgba(0,0,0,0.3);
}

.joel-cc-banner .joel-cc-btn-decline:hover {
    background: #CE181E !important;
    color: #fff !important;
    border-color: #CE181E !important;
}

/* ── Bouton "Personnaliser" – fantôme discret ── */
.joel-cc-banner .joel-cc-btn-customize {
    background: #3a3a3a !important;
    color: #ccc !important;
    border-style: solid !important;
    border-color: #666 !important;
    border-width: 2px !important;
    font-weight: bold !important;
    padding: 5px 10px;
    -webkit-box-shadow: -3px 3px 4px rgba(0,0,0,0.3);
    box-shadow: -3px 3px 4px rgba(0,0,0,0.3);
}

.joel-cc-banner .joel-cc-btn-customize:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,0.55) !important;
    background: rgba(255,255,255,0.08) !important;
}

/* ── Panneau personnalisation : catégories ── */
.sv-cc-cat {
    background: rgba(206, 24, 30, 0.10);
    border: 1px solid rgba(206, 24, 30, 0.30);
    border-radius: 4px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.55rem;
    text-align: left;
}
.sv-cc-cat:last-child { margin-bottom: 0.7rem; }

.sv-cc-cat-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sv-cc-cat-text { flex: 1; min-width: 0; }

.sv-cc-cat-text strong {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.sv-cc-cat-desc {
    display: block;
    font-size: 0.9em;
    color: #D6D6D6;
    line-height: 1.4;
    margin: 0;
}

/* ── Badge "Toujours actif" ── */
.sv-cc-badge {
    flex-shrink: 0;
    font-size: 0.70em;
    font-weight: 600;
    color: #ff8080;
    background: rgba(206,24,30,0.18);
    border: 1px solid rgba(206,24,30,0.40);
    border-radius: 20px;
    padding: 0.18rem 0.6rem;
    white-space: nowrap;
    margin-top: 0.1rem;
}

/* ── Lien retour (←) dans le titre du panneau ── */
.sv-cc-back {
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    margin-right: 4px;
}
.sv-cc-back:hover { color: #fff !important; }

/* ── Toggle switch ── */
.sv-toggle {
    flex-shrink: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 0.1rem;
    margin-bottom: 0;
    font-weight: normal;
}

.sv-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sv-toggle-track {
    display: flex;
    align-items: center;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.10);
    transition: background 0.2s;
    padding: 2px;
    box-sizing: border-box;
}

.sv-toggle input[type="checkbox"]:checked + .sv-toggle-track {
    background: #CE181E;
    border-color: transparent;
}

.sv-toggle-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
}

.sv-toggle input[type="checkbox"]:checked + .sv-toggle-track .sv-toggle-thumb {
    transform: translateX(20px);
}

/* ── Lien "Gérer mes préférences" footer ── */
.sv-manage-link {
    display: inline-block;
    font-size: 11px;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: underline !important;
    cursor: pointer;
    margin: 0.2rem 0;
    transition: color 0.15s;
}
.sv-manage-link:hover   { color: rgba(255,255,255,0.80) !important; }
.sv-manage-link-wrap    { text-align: center; }

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .joel-cc-banner {
        width: 90%;
    }
    .joel-cc-btns { justify-content: center; }
}

@media (max-width: 480px) {
    .joel-cc-banner {
        width: 95%;
        bottom: 5px;
    }

    .joel-cc-box {
        padding: 10px;
        font-size: 10pt;
    }

    .joel-cc-box h3 {
        font-size: 1.1em;
    }
}

/* ── Accessibilité : mouvements réduits ── */
@media (prefers-reduced-motion: reduce) {
    .sv-toggle-thumb,
    .sv-toggle-track { transition: none; }
}