/* Importation de la police "Oswald" (doit rester la première ligne) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');

/* --- VERROUILLAGE STRICT À 650PX --- */
.ma-hero-swiper,
.ma-hero-swiper .swiper-wrapper,
.ma-hero-swiper .swiper-slide {
    height: 650px !important;
    max-height: 650px !important;
    min-height: 650px !important;
}

/* On coupe tout ce qui essaierait de déborder */
.ma-hero-swiper {
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden !important; 
}

/* --- LE FOND (Layer 1) --- */
.ma-slider-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 9s ease; /* Transition adoucie pour correspondre au temps plus long */
}
.swiper-slide-active .ma-slider-bg { transform: scale(1.05); }

/* Filtre sombre */
.ma-slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

/* --- STRUCTURE INTERNE --- */
.ma-slide-inner {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 20px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- EN-TÊTE : Titre à gauche, Prix à droite (Layer 3) --- */
.ma-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    z-index: 30;
    pointer-events: none;
}
.ma-slide-titles, .ma-slide-price-container, .ma-slide-excerpt-container { pointer-events: auto; }
.ma-slide-titles { max-width: 1200px; }

/* TITRE (Taille ajustée à 6rem) */
.ma-slide-titles h2 {
    color: #fff;
    font-family: 'Oswald', sans-serif !important;
    font-size: 6rem !important; /* Taille réduite */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Sous-titre */
.ma-slide-subtitle {
    display: block;
    color: #cccccc;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Boîte tactique */
.ma-slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #F16725;
    color: #cccccc;
    padding: 10px 20px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 600;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.ma-slide-price {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: #fff;
    
    /* Peinture bicolore : 20px de orange franc à gauche, le reste en noir profond */
    background: linear-gradient(90deg, #F16725 20px, rgba(17, 17, 17, 0.95) 20px);
    border: none;
    padding: 10px 30px 10px 40px; /* L'espace est repoussé pour laisser respirer le carré orange */
    font-weight: 700;
    display: inline-block;
    
    /* Découpe agressive en haut à gauche ET en bas à droite */
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    text-shadow: none;

}

/* EXCERPT */
.ma-slide-excerpt-container { width: 100%; max-width: 800px; z-index: 30; }
.ma-slide-excerpt {
    color: #f1f1f1;
    font-size: 1.2rem;
    margin-top: 15px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* --- L'ARME (Layer 2 - Centrée) --- */
.ma-slide-fg-group {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}
.ma-png-main {
    position: relative;
    max-height: 480px; /* Légèrement ajusté pour 650px */
    width: auto;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0px 20px 30px rgba(0,0,0,0.8));
    opacity: 0;
    margin-top: 40px;
}

/* --- NOUVEAU : LE LOGO MARQUE (En bas à droite) --- */
.ma-png-secondary {
    position: absolute;
    bottom: 30px; /* Décollé du bas */
    right: 40px;  /* Décollé de la droite */
    max-height: 100px; /* Taille limitée pour un logo */
    width: auto;
    object-fit: contain;
    z-index: 25;
    opacity: 0;
    filter: drop-shadow(2px 2px 10px rgba(0,0,0,0.6));
}

/* --- BOUTON (Tout en bas centré) --- */
.ma-slide-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    z-index: 30;
    margin-top: auto;
    pointer-events: auto;
}
.ma-slide-buttons { display: flex; gap: 20px; }
.ma-btn-primary {
    display: inline-block;
    padding: 15px 50px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    background: #F16725;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(241,103,37,0.4);
}
.ma-btn-primary:hover { background: #d8571b; color: #fff; transform: translateY(-3px); }

/* ==========================================================================
   ANIMATIONS CASCADES
   ========================================================================== */
.ma-slide-titles h2, .ma-slide-subtitle, .ma-slide-badge, .ma-slide-price, .ma-slide-excerpt, .ma-slide-buttons { opacity: 0; }
.swiper-slide-active .ma-slide-titles h2 { animation: slideDownFade 0.6s ease forwards 0.3s; }
.swiper-slide-active .ma-slide-subtitle { animation: slideDownFade 0.6s ease forwards 0.4s; }
.swiper-slide-active .ma-slide-badge { animation: slideDownFade 0.6s ease forwards 0.5s; }
.swiper-slide-active .ma-slide-excerpt { animation: slideRightFade 0.6s ease forwards 0.6s; }
.swiper-slide-active .ma-slide-price { animation: slideLeftFade 0.6s ease forwards 0.5s; }
.swiper-slide-active .ma-slide-buttons { animation: slideUpFade 0.6s ease forwards 0.8s; }
.swiper-slide-active .ma-png-main { animation: weaponEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.05) forwards 0.6s; }

/* NOUVEAU : Animation du logo (Apparaît doucement après l'arme) */
.swiper-slide-active .ma-png-secondary { animation: logoEntrance 0.8s ease forwards 1s; }

@keyframes slideDownFade { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideRightFade { 0% { opacity: 0; transform: translateX(-40px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideLeftFade { 0% { opacity: 0; transform: translateX(40px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes weaponEntrance { 0% { opacity: 0; transform: translateY(40px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes logoEntrance { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

/* Mobile */
@media (max-width: 900px) {
    .ma-slide-header { flex-direction: column; align-items: center; text-align: center; }
    .ma-slide-titles { max-width: 100%; margin-bottom: 20px; }
    .ma-slide-titles h2 { font-size: 4rem !important; }
    .ma-slide-price { font-size: 2.5rem; }
    .ma-png-main { max-height: 250px; }
    .ma-png-secondary { bottom: 10px; right: 10px; max-height: 60px; }
}

/* ==========================================================================
   TRANSITION DU SLIDER (Liseré orange + Ombre portée)
   ========================================================================== */
.ma-hero-swiper {
    border-bottom: 3px solid #F16725 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 50px !important; /* Dégage de l'espace avant la grille des catégories */
}