/* BBC School Algeria - Styles personnalisés */
:root {
    --bbc-primary: #392C7D;
    --bbc-secondary: #FF5170;
    --bbc-accent: #6C5CE7;
    --bbc-gradient: linear-gradient(135deg, #392C7D, #FF5170);
    --bbc-light: #F8F9FA;
    --bbc-dark: #2C3E50;
}

.bbc-header {
    background: var(--bbc-gradient);
    color: white;
    padding: 15px 0;
}

.bbc-logo {
    max-height: 60px;
    filter: brightness(1.1);
}

.bbc-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--bbc-primary);
}

.bbc-nav .nav-link {
    color: var(--bbc-dark) !important;
    font-weight: 500;
    padding: 12px 20px !important;
    transition: all 0.3s ease;
}

.bbc-nav .nav-link:hover {
    color: var(--bbc-primary) !important;
    background: rgba(57, 44, 125, 0.1);
    border-radius: 5px;
}

.bbc-section {
    padding: 60px 0;
}

.bbc-section-title {
    color: var(--bbc-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}

.bbc-section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bbc-gradient);
    border-radius: 2px;
}

.bbc-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
}

.bbc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(57, 44, 125, 0.2);
}

.bbc-btn {
    background: var(--bbc-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bbc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(57, 44, 125, 0.3);
    color: white;
}

.bbc-counter {
    background: var(--bbc-gradient);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.bbc-counter h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.bbc-slider {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.bbc-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(57, 44, 125, 0.7);
    z-index: 1;
}

.bbc-slider-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.bbc-news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.bbc-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(57, 44, 125, 0.15);
}

.bbc-news-date {
    background: var(--bbc-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.bbc-footer {
    background: var(--bbc-dark);
    color: white;
    padding: 50px 0 20px;
}

.bbc-footer h5 {
    color: var(--bbc-secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

.bbc-social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--bbc-gradient);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.bbc-social-link:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(57, 44, 125, 0.4);
}

.bbc-hero {
    background: var(--bbc-gradient);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bbc-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.bbc-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bbc-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Chatbot BBC School Integration */
#bbc-ai-chatbot {
    font-family: 'Arial', sans-serif;
}

#bbc-ai-chatbot #chat-trigger:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #FF5170, #392C7D);
}

#bbc-ai-chatbot .message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations BBC */
@keyframes bbcFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bbc-animate {
    animation: bbcFadeInUp 0.8s ease-out;
}

/* Style pour les sliders BBC School */
.carousel-item {
    background: var(--bbc-gradient);
    color: white;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* BBC School badges et éléments spéciaux */
.bbc-badge {
    background: var(--bbc-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 5px;
}

.bbc-highlight {
    background: linear-gradient(120deg, transparent 0%, var(--bbc-secondary) 0%, var(--bbc-secondary) 5%, transparent 5%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.3s ease;
}

.bbc-highlight:hover {
    background-position: 0 0;
    color: white;
}

/* Responsive BBC */
@media (max-width: 768px) {
    .bbc-hero h1 {
        font-size: 2.5rem;
    }
    
    .bbc-section-title {
        font-size: 2rem;
    }
    
    .bbc-counter h3 {
        font-size: 2rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    #bbc-ai-chatbot #chat-window {
        width: 300px;
        height: 400px;
    }
}

/* Amélioration des couleurs globales */
.text-primary {
    color: var(--bbc-primary) !important;
}

.bg-primary {
    background: var(--bbc-gradient) !important;
}

.btn-primary {
    background: var(--bbc-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF5170, #392C7D);
    transform: translateY(-2px);
}

/* Amélioration des formulaires */
.form-control:focus {
    border-color: var(--bbc-primary);
    box-shadow: 0 0 0 0.2rem rgba(57, 44, 125, 0.25);
}

/* Navigation améliorée */
.navbar-brand {
    font-weight: 800;
    color: var(--bbc-primary) !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link.active {
    color: var(--bbc-primary) !important;
    background: rgba(57, 44, 125, 0.1);
    border-radius: 5px;
}

/* Footer amélioré */
.footer {
    background: var(--bbc-dark);
    color: white;
}

.footer a {
    color: var(--bbc-secondary);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}