/**
 * Fondation SSF - Styles Bannière
 * Bannière principale avec overlay sophistiqué et animations
 */

/* ============================================================================
   Bannière - Styles Généraux
   ============================================================================ */
.banner {
    position: relative;
    height: 380px;
    width: 100%;
    margin-top: 84px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0E0F34 0%, #1a1b4d 100%);
}

.banner-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: bannerZoom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================================
   Overlay - Dégradé Sophistiqué
   ============================================================================ */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 15, 52, 0.7) 0%,
        rgba(14, 15, 52, 0.5) 50%,
        rgba(14, 15, 52, 0.3) 100%
    );
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* Overlay supplémentaire pour effet de profondeur */
.banner-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 100% 0%,
        rgba(209, 22, 22, 0.1) 0%,
        transparent 70%
    );
}

/* ============================================================================
   Contenu - Animations et Typographie
   ============================================================================ */
.banner-content {
    position: relative;
    z-index: 10;
    max-width: 7xl;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    text-align: center;
    animation: contentSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.banner-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: contentSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

.banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.banner-breadcrumb a:hover {
    color: #d11616;
}

.banner-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.banner-current {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Badge/Tag de catégorie */
.banner-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(209, 22, 22, 0.2);
    border: 1px solid rgba(209, 22, 22, 0.4);
    color: #ff6b6b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    margin: 0 auto 1.5rem;
    animation: contentSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards;
    backdrop-filter: blur(10px);
}

/* Titre de la bannière */
.banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1.5rem;
    animation: contentSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
    letter-spacing: -0.02em;
    max-width: 25em;
}

/* Description de la bannière */
.banner-description {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 45rem;
    margin: 0 auto 2rem;
    animation: contentSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s backwards;
}

/* ============================================================================
   Boutons d'Action
   ============================================================================ */
.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: contentSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s backwards;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.banner-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Bouton primaire */
.banner-btn-primary {
    background: #d11616;
    color: white;
    box-shadow: 0 4px 20px rgba(209, 22, 22, 0.3);
}

.banner-btn-primary:hover {
    background: #ff3333;
    box-shadow: 0 8px 30px rgba(209, 22, 22, 0.5);
    transform: translateY(-2px);
}

/* Bouton secondaire */
.banner-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes bannerZoom {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes contentSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================================
   Élément décoratif - Lignes animées
   ============================================================================ */
.banner-decoration {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d11616, transparent);
    opacity: 0.5;
    z-index: 11;
    animation: slideRight 3s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================================================
   Responsive Design
   ============================================================================ */
@media (max-width: 768px) {
    .banner {
        height: 340px;
        min-height: 300px;
    }

    .banner-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .banner-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

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

    .banner-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }

    .banner-content {
        padding: 0 1rem;
    }

    .banner-title {
        font-size: 1.875rem;
    }

    .banner-breadcrumb {
        display: none;
    }

    .banner-badge {
        margin-bottom: 1rem;
    }
}
