/* 
 * Styles pour le système de gestion des cookies RGPD
 * Meet Party - Cookie Consent Styles
 */

/* ========================================
   BANNIÈRE DE COOKIES
======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color4) 0%, #1a1a2e 100%);
    border-top: 3px solid var(--color3);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--color3);
    animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-text {
    flex: 1;
    color: var(--color2);
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--color2);
}

.cookie-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: var(--color3) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.cookie-btn-accept:hover {
    background: #2929a3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(53, 51, 205, 0.4) !important;
}

.cookie-btn-refuse {
    background: transparent !important;
    color: #ff6b6b !important;
    border: 2px solid #ff6b6b !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.cookie-btn-refuse:hover {
    background: #ff6b6b !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.cookie-btn-customize {
    background: transparent !important;
    color: var(--color2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--color2) !important;
    transform: translateY(-2px) !important;
}

.cookie-links {
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

.cookie-links a {
    color: var(--color3);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cookie-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========================================
   MODAL DE PERSONNALISATION
======================================== */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal.hide {
    opacity: 0;
    visibility: hidden;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-content {
    background: var(--color4);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--color3), #2929a3);
}

.cookie-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--color3);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    margin: 0;
    color: var(--color2);
    font-size: 1.1rem;
}

.cookie-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cookie-status.required {
    background: #28a745;
    color: white;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: .4s;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: var(--color3);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-category p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.cookie-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-category li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.cookie-category li:before {
    content: "•";
    color: var(--color3);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ========================================
   BOUTON DE GESTION DES COOKIES
======================================== */

.manage-cookies-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.manage-cookies-btn:hover {
    border-color: var(--color3);
    color: var(--color3);
    transform: translateY(-2px);
}

/* ========================================
   TOAST DE NOTIFICATION
======================================== */

.cookie-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-toast.show {
    transform: translateX(0);
}

.cookie-toast.hide {
    transform: translateX(100%);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons button {
        width: 100% !important;
        margin: 0.3rem 0 !important;
    }

    .cookie-text h3 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-modal-overlay {
        padding: 1rem;
    }

    .cookie-modal-content {
        max-height: 90vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer button {
        width: 100%;
    }

    .cookie-toast {
        left: 10px;
        right: 10px;
        transform: translateY(-100%);
    }

    .cookie-toast.show {
        transform: translateY(0);
    }

    .cookie-toast.hide {
        transform: translateY(-100%);
    }
}

@media (max-width: 480px) {
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cookie-toggle {
        align-self: flex-end;
    }
}