/**
 * Styles banniere de consentement cookies - Swole Youth
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#cookie-consent-banner.cookie-banner-hide {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.cookie-banner-text p {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #bbb;
}

.cookie-link {
    color: #19B4B4;
    text-decoration: underline;
    font-size: 13px;
}

.cookie-link:hover {
    color: #2dd4d4;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #19B4B4;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #148f8f;
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    background: #333;
    border-color: #888;
}

.cookie-btn-settings {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}

.cookie-btn-settings:hover {
    background: #333;
    color: #fff;
}

.cookie-btn-save {
    background: #19B4B4;
    color: #fff;
}

.cookie-btn-save:hover {
    background: #148f8f;
}

/* Panneau des parametres */
.cookie-settings-panel {
    border-top: 1px solid #333;
    background: #111;
}

.cookie-settings-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.cookie-settings-content h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-option:hover {
    background: #222;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #19B4B4;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.cookie-option-info small {
    font-size: 11px;
    color: #888;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-content {
        padding: 14px 16px;
    }

    .cookie-options {
        grid-template-columns: 1fr;
    }
}
