.carousel-item.active {
    position: relative;
}

/* Responsivité du premier slider */
.phone-first-slider {
    width: 80vw;
    justify-content: center;
    margin: auto !important;
}

.phone-first-slider:nth-child(2), .phone-first-slider:nth-child(3) {
    width: 50%;
    font-size: 5%;
}

.phone-center-logo {
    width: 70vw;
}

.center-logo {
    position: absolute;
    top: 50%; /* ✅ Centrage vertical fluide */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    opacity: 0;
    animation: fadeInLogo 2s forwards;
}

.center-logo img {
    height: 180px;
    width: auto;
}

/* Animation fluide du logo */
@keyframes fadeInLogo {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Centrage images Sécurité et Défense */
.slider-carbine-box.security,
.slider-carbine-box.defense {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Supprimer justify-content: flex-end dans .defense si présent */
.slider-carbine-box.defense {
    /* justify-content: flex-end; supprimé pour centrage */
}

/* Les images du slider doivent être responsive */
.slider-carbine-box img {
    max-width: 100%;
    height: auto;
}

/* Marges verticales sur petits écrans pour éviter la superposition */
@media (max-width: 768px) {
    .slider-carbine-box.security,
    .slider-carbine-box.defense {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    /* Cacher le logo central sur petits écrans
    .center-logo {
        display: none;
    }*/
}

/* Texte centré */
h1.in-left {
    text-align: center;
}

span.first-slide-tittle {
    width: 100%;
}

/* --- Slide Citation --- */
.quote-slide {
    min-height: 600px;
    background: transparent; /* pas de couleur de fond */
    color: #7b3e35; /* couleur similaire à celle de la citation */
    position: relative;
    text-align: center;
    padding: 60px 20px;
}

.quote-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.quote-line {
    width: 180px;
    height: 8px;
    background: linear-gradient(
            to right,
            #bda97a 0%,   /* beige clair */
            #6e6c4a 20%,  /* vert olive */
            #2b2b1f 40%,  /* noir/vert foncé */
            #3b5231 60%,  /* vert kaki */
            #bda97a 100%  /* retour beige clair */
    );
    border-radius: 3px;
}

.quote-author {
    position: absolute;
    right: 40px;
    bottom: 30px;
    font-size: 1rem;
    color: #2e2e2e;
    font-family: 'Poppins', sans-serif;
}

/* Responsivité */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1.6rem;
    }
    .quote-line {
        width: 120px;
        height: 6px;
    }
    .quote-author {
        right: 20px;
        bottom: 20px;
        font-size: 0.9rem;
    }
}

.slide-bottom-image {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* taille réduite */
    height: auto;
    opacity: 0;
    animation: fadeInUpSmall 2s forwards;
}

.gunselling_comp_wrapper_pourquoi {
    padding: 40px 0;
    min-height: 100vh;
}

.selling_box2_pourquoi {
    background-color: transparent;
}

.selling_box2_pourquoi ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.selling_box2_pourquoi ul li {
    margin-bottom: 30px;
    margin-left: 50px;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0;
    min-height: 50px;
}

.selling_box2_pourquoi ul li::before {
    content: '';
    position: absolute;
    left: -50px;
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.selling_box2_pourquoi ul li:nth-child(1)::before {
    background-image: url('./assets/images/products/equip.PNG');
}

.selling_box2_pourquoi ul li:nth-child(2)::before {
    background-image: url('./assets/images/products/cam-bleu2.webp');
}

.selling_box2_pourquoi ul li:nth-child(3)::before {
    background-image: url('./assets/images/products/arme3.jpeg');
}

.selling_box2_pourquoi ul li:nth-child(4)::before {
    background-image: url('./assets/images/products/blinde1.jpg');
}

.selling_box2_pourquoi .title-heading {
    margin: 0;
    padding-left: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selling_box2_pourquoi .text-bottom {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 30px;
    text-align: left;
}


/* ============================================
   CORRECTIFS ÉQUILIBRÉS - IMAGES ET CONTENEURS
============================================ */

/* Réinitialisation de base */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Conteneurs principaux */
.gun-selling-section {
    width: 100%;
    overflow-x: hidden;
}

.gun-selling-wrapper,
.custom-container {
    width: 100%;
    overflow-x: hidden;
}

.carousel {
    overflow: hidden;
}

.carousel-inner {
    overflow: hidden;
}

.carousel-item {
    overflow: hidden;
    padding: 40px 20px;
}

/* Rows et colonnes */
.carousel-item .row {
    margin: 0 -15px;
    width: 100%;
}

.carousel-item [class*="col-"] {
    padding: 15px;
    overflow: hidden;
}

/* ============================================
   IMAGES - CONTRÔLE STRICT DES TAILLES
============================================ */

/* Toutes les images de base */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Images dans les sliders */
.slider-image-box {
    width: 100%;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.slider-image-box img {
    max-width: 90%;
    max-height: 400px;
    height: auto;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Images hero */
.hero-image-wrapper {
    width: 100%;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.hero-image-wrapper img {
    max-width: 90%;
    max-height: 400px;
    height: auto;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.chandail-image {
    max-width: 80% !important;
    max-height: 350px !important;
}

/* Images dans slide-image-wrapper */
.slide-image-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px;
}

.slide-image-wrapper img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Logo central */
.logo-img {
    height: 100px;
    width: auto;
    max-width: 200px;
}

/* Images de la section "Pourquoi" */
.selling-img_box {
    width: 100%;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.selling-img_box img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Images produits */
.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Images du cercle d'armes */
.circle-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.circle-item {
    position: absolute;
    width: 150px;
    max-width: 150px;
    text-align: center;
}

.circle-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto;
}

/* Quote slide image */
.slide-bottom-image {
    width: 40%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

/* ============================================
   CONTENEURS - ADAPTATION FLEXIBLE
============================================ */

.slide-content-box,
.gun-box-1,
.gun-box-2 {
    width: 100%;
    padding: 20px;
    overflow: hidden;
}

.gun-box-wrapper {
    width: 100%;
    overflow: hidden;
}

.slide-hero-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* ============================================
   MEDIA QUERIES - ÉCRANS MOYENS
============================================ */

@media (max-width: 1199px) {
    .carousel-item {
        padding: 30px 15px;
    }

    .slider-image-box img,
    .hero-image-wrapper img {
        max-height: 300px;
        max-width: 85%;
    }

    .logo-img {
        height: 70px;
    }

    .circle-carousel-wrapper {
        max-width: 400px;
        height: 400px;
    }

    .circle-item {
        width: 120px;
        max-width: 120px;
    }

    .circle-item img {
        max-height: 100px;
    }
}

/* ============================================
   MEDIA QUERIES - MOBILE (< 768px)
============================================ */

@media (max-width: 767px) {
    .carousel-item {
        padding: 20px 10px;
    }

    .carousel-item [class*="col-"] {
        padding: 10px;
    }

    /* IMAGES - Tailles réduites pour mobile */
    .slider-image-box img,
    .hero-image-wrapper img {
        max-height: 220px !important;
        max-width: 95%;
    }

    .chandail-image {
        max-height: 200px !important;
        max-width: 70% !important;
    }

    .logo-img {
        height: 50px;
        max-width: 150px;
    }

    .slide-image-wrapper img {
        max-height: 250px;
    }

    .selling-img_box img {
        max-height: 300px;
    }

    /* Produits - images plus petites */
    .product-image {
        height: 140px;
    }

    /* Cercle d'armes - transformation en grille */
    .weapons-circle {
        overflow: visible;
    }

    .circle-carousel-wrapper {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        height: auto;
        max-width: 100%;
        padding: 20px 10px;
    }

    .circle-item {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    .circle-item img {
        max-height: 90px;
        width: auto;
        max-width: 100%;
    }

    .circle-caption {
        font-size: 0.7rem;
        margin-top: 8px;
    }

    /* Quote slide */
    .slide-bottom-image {
        width: 60%;
        max-width: 250px;
    }

    /* Conteneurs */
    .slide-content-box,
    .gun-box-1,
    .gun-box-2 {
        padding: 15px;
    }

    /* Centrer sur mobile */
    .slider-image-box,
    .hero-image-wrapper {
        padding: 15px 10px;
    }
}

/* ============================================
   MEDIA QUERIES - TRÈS PETIT MOBILE (< 576px)
============================================ */

@media (max-width: 575px) {
    .carousel-item {
        padding: 15px 8px;
    }

    /* IMAGES - Encore plus petites */
    .slider-image-box img,
    .hero-image-wrapper img {
        max-height: 180px !important;
        max-width: 100%;
    }

    .chandail-image {
        max-height: 160px !important;
        max-width: 80% !important;
    }

    .logo-img {
        height: 40px;
        max-width: 120px;
    }

    .slide-image-wrapper img {
        max-height: 200px;
    }

    .selling-img_box img {
        max-height: 250px;
    }

    /* Produits */
    .product-image {
        height: 120px;
    }

    /* Cercle d'armes */
    .circle-item img {
        max-height: 70px;
    }

    .circle-caption {
        font-size: 0.65rem;
        padding: 5px;
    }

    /* Quote */
    .slide-bottom-image {
        width: 70%;
        max-width: 200px;
    }

    /* Padding réduit */
    .slider-image-box,
    .hero-image-wrapper,
    .slide-image-wrapper {
        padding: 10px 5px;
    }

    .slide-content-box,
    .gun-box-1,
    .gun-box-2 {
        padding: 10px;
    }
}

/* ============================================
   GRANDS ÉCRANS (> 1400px)
============================================ */

@media (min-width: 1400px) {
    .slider-image-box img,
    .hero-image-wrapper img {
        max-height: 500px;
    }

    .logo-img {
        height: 120px;
    }

    .circle-carousel-wrapper {
        max-width: 600px;
        height: 600px;
    }

    .circle-item {
        width: 180px;
    }

    .circle-item img {
        max-height: 150px;
    }

    .product-image {
        height: 220px;
    }

    .slide-bottom-image {
        width: 35%;
        max-width: 450px;
    }
}

@keyframes fadeInUpSmall {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}