/**
 * Style Hero avec Bannière
 * Mayram Fashion House
 */

/* === HERO AVEC BANNIERE === */
.hero-banniere {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-banniere .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banniere .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-banniere .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(45, 45, 45, 0.6) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    backdrop-filter: blur(2px);
}

/* === CONTENU HERO === */
.hero-banniere .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-banniere .hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-banniere .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(212, 175, 55, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-banniere .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-banniere .hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* === BORDURE DOREE AUTOUR DU HERO === */
.hero-banniere::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    z-index: 5;
    pointer-events: none;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    }
    50% {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
    }
}

/* === ANIMATIONS === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BOUTONS HERO === */
.hero-banniere .btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-banniere .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Les styles des boutons sont maintenant gérés dynamiquement via PHP dans views/home/index.php
   pour respecter les couleurs configurées dans la base de données */

/* === EFFET PARALLAX === */
@media (prefers-reduced-motion: no-preference) {
    .hero-banniere .hero-image {
        animation: parallaxZoom 20s ease-in-out infinite;
    }
}

@keyframes parallaxZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .hero-banniere .hero-title {
        font-size: 3rem;
    }
    
    .hero-banniere .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-banniere {
        min-height: 500px;
    }
    
    .hero-banniere .hero-content {
        padding: 3rem 1.5rem;
    }
    
    .hero-banniere .hero-title {
        font-size: 2rem;
    }
    
    .hero-banniere .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-banniere .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-banniere .btn {
        width: 100%;
    }
    
    .hero-banniere::before {
        inset: 10px;
    }
}

@media (max-width: 480px) {
    .hero-banniere {
        min-height: 450px;
    }
    
    .hero-banniere .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-banniere .hero-subtitle {
        font-size: 1rem;
    }
}

/* === ACCESSIBILITE === */
@media (prefers-reduced-motion: reduce) {
    .hero-banniere .hero-title,
    .hero-banniere .hero-subtitle,
    .hero-banniere .hero-actions,
    .hero-banniere .hero-image,
    .hero-banniere::before {
        animation: none;
    }
}

/* === PRINT === */
@media print {
    .hero-banniere {
        min-height: 400px;
        page-break-after: avoid;
    }
    
    .hero-banniere .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}
