/* ========================================
   BANDEAU COOKIES RGPD - LINKITCHEN 2025
   ======================================== */

:root {
    --cookie-dark: #1a1a2e;
    --cookie-blue: #16213e;
    --cookie-accent: #667eea;
    --cookie-text: #ffffff;
    --cookie-text-muted: #b8bcc8;
    --cookie-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   OVERLAY (FOND SOMBRE)
   ======================================== */
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cookie-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   BANDEAU PRINCIPAL
   ======================================== */
#cookie-banner {
    position: fixed;
    bottom: -500px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--cookie-dark) 0%, var(--cookie-blue) 100%);
    box-shadow: var(--cookie-shadow);
    padding: 2rem;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 2px solid var(--cookie-accent);
}

#cookie-banner.show {
    bottom: 0;
}

/* Pattern géométrique subtil */
#cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(102, 126, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(102, 126, 234, 0.03) 87.5%, rgba(102, 126, 234, 0.03)),
        linear-gradient(150deg, rgba(102, 126, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(102, 126, 234, 0.03) 87.5%, rgba(102, 126, 234, 0.03));
    background-size: 80px 140px;
    opacity: 0.3;
    pointer-events: none;
}

/* Ligne lumineuse en haut */
#cookie-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cookie-accent) 50%, transparent);
    animation: shimmerLine 3s infinite;
}

@keyframes shimmerLine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   CONTENU DU BANDEAU
   ======================================== */
.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   TEXTE & ICÔNE
   ======================================== */
.cookie-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--cookie-accent);
    animation: cookieRotate 4s ease-in-out infinite;
}

@keyframes cookieRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.05);
    }
}

.cookie-message {
    flex: 1;
}

.cookie-message h3 {
    font-size: 1.4rem;
    color: var(--cookie-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cookie-message p {
    font-size: 1rem;
    color: var(--cookie-text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-message a {
    color: var(--cookie-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-message a:hover {
    color: #8b9dff;
}

/* ========================================
   BOUTONS D'ACTION
   ======================================== */
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-btn i {
    font-size: 1.1rem;
}

/* Bouton Accepter (principal) */
.cookie-btn-accept {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: var(--cookie-text);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

/* Bouton Refuser */
.cookie-btn-refuse {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: var(--cookie-text);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.cookie-btn-refuse:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.5);
}

/* ========================================
   LIEN DE RÉOUVERTURE (FOOTER)
   ======================================== */
#cookie-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--cookie-text);
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

#cookie-settings-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--cookie-accent);
    transform: translateY(-2px);
}

#cookie-settings-link i {
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
    #cookie-banner {
        padding: 1.8rem;
    }

    .cookie-content {
        gap: 1.5rem;
    }

    .cookie-icon {
        font-size: 2.5rem;
    }

    .cookie-message h3 {
        font-size: 1.3rem;
    }

    .cookie-message p {
        font-size: 0.95rem;
    }

    .cookie-btn {
        padding: 11px 24px;
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        font-size: 2.5rem;
    }

    .cookie-message h3 {
        font-size: 1.2rem;
    }

    .cookie-message p {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Mobile Small */
@media (max-width: 450px) {
    #cookie-banner {
        padding: 1.2rem;
    }

    .cookie-icon {
        font-size: 2rem;
    }

    .cookie-message h3 {
        font-size: 1.1rem;
    }

    .cookie-message p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    #cookie-settings-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* ========================================
   ANIMATIONS D'ENTRÉE
   ======================================== */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
.cookie-btn:focus-visible,
#cookie-settings-link:focus-visible {
    outline: 3px solid var(--cookie-accent);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
