
/* Bannière cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #1A252F;
    background: -webkit-linear-gradient(135deg, #1A252F 0%, #3A5463 100%);
    background: -moz-linear-gradient(135deg, #1A252F 0%, #3A5463 100%);
    background: linear-gradient(135deg, #1A252F 0%, #3A5463 100%);
    border-top: 3px solid #4B6675;
    -webkit-box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 1.5rem 0;
    -webkit-transform: translateY(100%);
    -moz-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: -moz-transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    visibility: visible;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: #F0F0F0;
    text-decoration: underline;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover,
.cookie-banner-text a:focus {
    color: #ffffff;
    outline: none;
}

.cookie-banner-actions {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.cookie-banner .btn-cookie {
    padding: 10px 20px;
    background: #F0F0F0;
    color: #1A252F;
    border: 2px solid #F0F0F0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Futura', Arial, sans-serif;
    outline: none;
}

.cookie-banner .btn-cookie:hover,
.cookie-banner .btn-cookie:focus {
    background: #ffffff;
    color: #1A252F;
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 2px 8px rgba(240, 240, 230, 0.3);
    -moz-box-shadow: 0 2px 8px rgba(240, 240, 230, 0.3);
    box-shadow: 0 2px 8px rgba(240, 240, 230, 0.3);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cookie-banner .btn-cookie:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* Responsive pour la bannière cookie */
@media (max-width: 768px) {
    .cookie-banner-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .cookie-banner-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cookie-banner .btn-cookie {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0;
    }

    .cookie-banner-content {
        padding: 0 15px;
        gap: 1rem;
    }

    .cookie-banner-text {
        font-size: 0.85rem;
    }
}

/* Fallback pour navigateurs sans support flexbox */
@media (max-width: 768px) {
    .no-flexbox .cookie-banner-content {
        display: block;
        text-align: center;
    }

    .no-flexbox .cookie-banner-text {
        display: block;
        margin-bottom: 1.5rem;
    }

    .no-flexbox .cookie-banner-actions {
        display: block;
    }

    .no-flexbox .cookie-banner .btn-cookie {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

/* Amélioration de l'accessibilité */
.cookie-banner:focus-within {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        -webkit-transition: none;
        -moz-transition: none;
        transition: none;
    }
    
    .cookie-banner .btn-cookie {
        -webkit-transition: none;
        -moz-transition: none;
        transition: none;
    }
}

/* Support pour les navigateurs très anciens */
.cookie-banner {
    *position: absolute; /* IE6/7 */
    *bottom: 0;
    *left: 0;
    *width: 100%;
}
