/* ============================================
   PUB + BANNIÈRE "C'EST LE MOMENT DE VENDRE"
   ============================================ */

/* Container principal */
.pub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.3rem auto;
    max-width: 1280px;
    /*padding: 0 1rem;*/
    margin-top: 44px;
    padding-right: 0px;
}

/* Publicité - Style bannière horizontale */
.pub > .pub {
width: 100%;
    height: 113px;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    /* border-radius: 8px; */
    overflow: hidden;
    position: relative;
    /* border: 1px solid #e9ecef; */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0px !important;  
}

.pub > .pub:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

/* CORRECTION : Image de pub - Prend toute la largeur */
.pub > .pub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: block; /* Important */
}

.pub > .pub:hover img {
    opacity: 1;
}

/* Texte placeholder pour l'image pub */
.pub > .pub::before {
    content: "Publicité";
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

/* Bannière "C'est le moment de vendre" */
.cestlemomentdevendre {
    background: linear-gradient(135deg, #FF6B35 0%, #ea580c 100%);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    margin-top: 0.5rem;
}

/* Effet de fond décoratif */
.cestlemomentdevendre::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.cestlemomentdevendre::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

/* Texte de la bannière */
.cestlemomentdevendre .banner-text {
    color: white;
    z-index: 1;
    flex: 1;
}

.cestlemomentdevendre .banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cestlemomentdevendre .banner-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Bouton dans la bannière */
.cestlemomentdevendre .nav-btn {
    background: white !important;
    color: #FF6B35 !important;
    border: 2px solid transparent;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    margin-left: 1.5rem;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cestlemomentdevendre .nav-btn:hover {
    background: #f8f9fa !important;
    color: #FF6B35 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #FF6B35 !important;
}

/* Icône dans le bouton */
.cestlemomentdevendre .nav-btn i {
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
   
   @media (min-width: 480px) and (max-width: 640px) {
    .main-layout {
        margin-top: 5px !important;
    }

    .pub {
    margin-top: 97px !important;
    margin-left: 15px !important;
    }
}
   @media (min-width: 641px) and (max-width: 1024px) {
    .main-layout {
        margin-top: 5px !important;
    }

    .pub {
    margin-top: 97px !important;
    margin-left: 15px !important;
    }
    
    .carousel-btn {
        display:none !important;
        }
}


@media (max-width: 768px) {
    .pub {
        gap: 1rem;
        margin-top: 25px;
        padding-right: 0px !important;
        margin-bottom: 0px !important;
}

.pub-slide:first-child img {
    height: 590px;
}
    
    .pub > .pub {
        /* height: 90px;
       border-radius: 12px;*/
    }
    
    .cestlemomentdevendre {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
                padding: 1.25rem;
        margin: 0px;
    }
    
    .cestlemomentdevendre .banner-title {
        font-size: 1.3rem;
    }
    
    .cestlemomentdevendre .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .cestlemomentdevendre .nav-btn {
        margin-left: 0;
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 641px) {
    .pub {
                margin-top: 27px !important;
        margin-left: 15px !important;
        z-index: 55555;
    }
    .carousel-btn {
        display:none !important;
        }
}
   
   
@media (max-width: 480px) {
    .pub {
        padding: 0 0.5rem;
    }
    
    .pub > .pub {
       /*  max-height: 80px;
       border-radius: 10px;*/
    }
    
    .cestlemomentdevendre {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .cestlemomentdevendre .banner-title {
        font-size: 1.1rem;
    }
    
    .cestlemomentdevendre .banner-subtitle {
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATION POUR LA BANNIÈRE
   ============================================ */

@keyframes pulse-banner {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.25);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    }
}

.cestlemomentdevendre {
    animation: pulse-banner 3s ease-in-out infinite;
}

/* ============================================
   AJOUTS IMPORTANTS
   ============================================ */

/* Assurer que l'image remplit bien son conteneur */
.pub .pub img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Pour les images plus grandes que le conteneur */
.pub .pub {
    overflow: hidden;
}

/* Si vous voulez que l'image s'adapte en hauteur aussi */
@media (min-width: 769px) {
    .pub .pub img {
        height: 100%;
    }
}

/* Option : Supprimer le placeholder si vous avez une vraie image */
.pub .pub:has(img[src*="Societe-Generale"])::before {
    display: none; /* Cache "Publicité" si vous avez une vraie image */
}

/* Si vous voulez garder le label "Publicité" même avec une vraie image */
.pub .pub:has(img[src*="Societe-Generale"])::before {
    content: "Publicité";
    display: block; /* Affiche le label */
    background: rgba(215, 82, 13, 0.9); /* Couleur orange de votre site */
}

/*********************DEFILEMENT*********************/

    
/* ============================================
   CARROUSEL DE PUB + BANNIÈRE
   ============================================ */

/* ============================================
   CARROUSEL DE PUB + BANNIÈRE
   ============================================ */

/* Container principal */
.pub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.3rem auto;
    max-width: 1280px;
    margin-top: 60px;
    padding-right: 0;
    position: relative;
}

/* Container du carrousel */
.pub-carousel {
    width: 60%;
    height: 215px; /* Hauteur fixe totale */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .pub {
        gap: 1rem;
       /* margin-top: 54px !important; /* Marge ajustée pour mobile */
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .pub-carousel {
        height: 110px !important; /* Hauteur réduite pour mobile */ 
        border-radius: 8px;
    }
    
    .pub-slide:last-child .cestlemomentdevendre {
        display:grid !important;  
        gap: 3px !important;
    }
    
    #publish-btn {
        width: 100% !important;
        height: 20px;
        padding: 0px !important;
    }    
    
    .pub-slide:last-child .banner-title {
    font-size: 1.05rem !important;
    }
    
    /* Ajustements pour tous les slides sur mobile */
    .pub-slide:first-child,
    .pub-slide:first-child img,
    .pub-slide:last-child .cestlemomentdevendre {
        height: 110px !important; /* Hauteur réduite pour mobile */
    }
    
    /* Ajustement spécifique pour l'image */
    .pub-slide:first-child img {
        object-position: center; /* Centre l'image */
    }
    
    /* Ajustement de la bannière sur mobile */
    .pub-slide:last-child .cestlemomentdevendre {
        flex-direction: row; /* Garde la disposition horizontale */
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem !important;
    }
    
    /* Réduction du texte sur mobile */
    .pub-slide:last-child .banner-text {
        flex: 1;
        min-width: 0; /* Permet au texte de se réduire */
    }
    
    .pub-slide:last-child .banner-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .pub-slide:last-child .banner-title i {
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .pub-slide:last-child .banner-subtitle {
        font-size: 0.7rem !important;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limite à 2 lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Bouton ajusté pour mobile */
    .pub-slide:last-child .nav-btn {
        margin-left: 0.5rem !important;
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
        min-width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .pub-slide:last-child .nav-btn i {
        font-size: 0.8rem;
        margin-right: 0.2rem;
    }
    
    .pub-slide:last-child .nav-btn span {
        display: inline-block;
    }
    
    /* Navigation réduite sur mobile */
    .slide-nav-bottom {
        height: 35px !important;
        padding: 6px 0 !important;
        gap: 0.5rem !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent) !important;
    }
    
    /* Flèches plus petites sur mobile */
    .carousel-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    /* Points plus petits sur mobile */
    .dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    /* Label "Publicité" réduit */
    .pub-label {
        top: 8px !important;
        right: 8px !important;
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
    }
    
    /* Masquer les effets décoratifs sur mobile */
    .pub-slide:last-child .cestlemomentdevendre::before,
    .pub-slide:last-child .cestlemomentdevendre::after {
        display: none;
    }
    
    .pub-slide:last-child .cestlemomentdevendre {
        display: grid ;
    }
}

@media (max-width: 480px) {
    .pub {
        margin-top: 20px !important;
        margin-left: auto !important;
    }
    
    .pub-carousel {
        height: 110px !important;
        border-radius: 8px;
                width: 100%;
        /* margin-left: 0px !important; */
        left: -5px;
    }
    
    .pub-slide:first-child,
    .pub-slide:first-child img,
    .pub-slide:last-child .cestlemomentdevendre {
        height: 110px !important;
        display: grid;
    }
    
    /* Ajustements supplémentaires pour très petits écrans */
    .pub-slide:last-child .cestlemomentdevendre {
        padding: 0.5rem !important;
    }
    
    .pub-slide:last-child .banner-title {
        font-size: 0.8rem !important;
    }
    
    .pub-slide:last-child .banner-subtitle {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 1; /* Une seule ligne sur très petit écran */
    }
    
    .pub-slide:last-child .nav-btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    .pub-slide:last-child .nav-btn span {
        display: block; /* Cache le texte, ne garde que l'icône */
    }
    
    .pub-slide:last-child .nav-btn i {
        margin-right: 0;
        font-size: 0.9rem;
    }
    
    .slide-nav-bottom {
        height: 30px !important;
        padding: 5px 0 !important;
    }
    
    .carousel-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.6rem !important;
    }
    
    .dot {
        width: 5px !important;
        height: 5px !important;
    }
}

@media (max-width: 360px) {
    /* Pour les très petits téléphones */
    .pub-slide:last-child .banner-title {
        font-size: 0.75rem !important;
    }
    
    .pub-slide:last-child .banner-subtitle {
        display: none; /* Cache complètement le sous-titre */
    }
    
    .pub-slide:last-child .nav-btn {
        padding: 0.25rem 0.4rem !important;
    }
}

/* ============================================
   AJUSTEMENTS POUR TABLETTE
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .pub-carousel {
        height: 160px;
    }
    
    .pub-slide:first-child,
    .pub-slide:first-child img,
    .pub-slide:last-child .cestlemomentdevendre {
        height: 160px;
    }
    
    .pub-slide:last-child .banner-title {
        font-size: 1.4rem;
    }
    
    .pub-slide:last-child .banner-subtitle {
        font-size: 0.95rem;
    }
    
    .pub-slide:last-child .nav-btn {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.95rem;
        min-width: 160px;
    }
}

/* ============================================
   STYLES DE BASE (inchangés sauf pour mobile)
   ============================================ */

/* Slides du carrousel */
.pub-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Prend toute la hauteur de 180px */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.pub-slide.active {
    opacity: 1;
    pointer-events: all;
    z-index: 1;
}

/* Style pour l'image pub */
.pub-slide:first-child {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 220px; /* Hauteur fixe totale */
}

.pub-slide:first-child img {
    width: 100%;
    height: 295px; /* Image prend toute la hauteur */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pub-slide:first-child:hover img {
    transform: scale(1.02);
}

/* Label "Publicité" */
.pub-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(215, 82, 13, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Bannière dans le carrousel */
.pub-slide:last-child .cestlemomentdevendre {
    background: linear-gradient(135deg, #FF6B35 0%, #ea580c 100%);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 180px; /* Hauteur fixe totale */
    width: 100%;
    box-sizing: border-box;
}

/* Navigation au bas de chaque slide - TOUJOURS VISIBLE */
.slide-nav-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 12px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    height: 60px; /* Hauteur pour la zone de navigation */
    box-sizing: border-box;
    z-index: 10;
}

/* Pour la bannière orange */
.pub-slide:last-child .slide-nav-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/* Contrôles du carrousel - FLÈCHES CACHÉES PAR DÉFAUT */
.carousel-btn {
    background: rgba(249, 115, 22, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Caché par défaut */
    visibility: hidden; /* Caché par défaut */
    transform: scale(0.8);
}

/* Les flèches deviennent visibles au survol du carrousel */
.pub-carousel:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.carousel-btn:hover {
    background: #ea580c;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

/* Les points restent toujours visibles */
.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 1 !important; /* Toujours visible */
    visibility: visible !important; /* Toujours visible */
}

.dot.active {
    background: #f97316;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.6);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Texte de la bannière */
.pub-slide:last-child .banner-text {
    color: white;
    z-index: 1;
    flex: 1;
}

.pub-slide:last-child .banner-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pub-slide:last-child .banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.4;
}

/* Bouton dans la bannière */
.pub-slide:last-child .nav-btn {
    background: white !important;
    color: #FF6B35 !important;
    border: 2px solid transparent;
    font-weight: 700;
    padding: 1rem 2rem !important;
    margin-left: 2rem;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    border-radius: 12px;
    min-width: 200px;
    justify-content: center;
}

.pub-slide:last-child .nav-btn:hover {
    background: #f8f9fa !important;
    color: #FF6B35 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #FF6B35 !important;
}

.pub-slide:last-child .nav-btn i {
    font-size: 1.3rem;
}

/* Effets décoratifs pour la bannière */
.pub-slide:last-child .cestlemomentdevendre::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.pub-slide:last-child .cestlemomentdevendre::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse-banner {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.25);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    }
}

.pub-slide:last-child .cestlemomentdevendre {
    animation: pulse-banner 3s ease-in-out infinite;
}

/* Animation de fondu pour le carrousel */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pub-slide.active {
    animation: fadeIn 0.8s ease-out;
}

/* Transition douce pour l'apparition des flèches */
.carousel-btn {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Sur mobile, on peut garder les flèches visibles pour faciliter l'utilisation tactile */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn {
        opacity: 0.7;
        visibility: visible;
        transform: scale(0.9);
    }
    
    .carousel-btn:active {
        opacity: 1;
        transform: scale(1);
    }
}


/***************** ANCIEN DIV*******************/
.pub {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pub-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ajustez la largeur selon vos besoins */
    max-width: 1200px;
    /*width: 100%;*/
}


/* Styles de base */
#textdiv{
    font-size:26px !important;
}
.a1{
    padding: 14px 32px;    
}
.a2{
    padding: 16px 36px; 
}

/* RESPONSIVE AVEC SCALE UNIFORME */
@media (max-width: 1024px) {
    .pub {
        margin-top: 107px !important;
    }
    .souscat {
        display: none !important;
    }
}

/* Pour l'orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pub-carousel {
        min-height: 120px !important;
    }
    
    .pub-slide > div {
        transform: scale(0.6) !important;
        transform-origin: top center !important;
        width: 166.7% !important; /* 100% / 0.6 = 166.7% */
        margin-left: -33.35% !important; /* (166.7% - 100%) / 2 = 33.35% */
    }
    
    .slide-nav-bottom {
        transform: translateX(-50%) scale(0.7) !important;
        bottom: 5px !important;
    }
}

@media (max-width: 768px) {
    .pub {
        margin-top: 97px !important;
    }
    .slide-nav-bottom {
        top: 113px !important;
    }
    .souscat {
        display: none !important;
    }
    .pub-slide {
        height: auto;
        height:200px !important;
    }
    .pub-slide:first-child {
        height: auto;
    }
    .pub-slide:first-child, .pub-slide:first-child img, .pub-slide:last-child .cestlemomentdevendre {
        height: auto !important;
    }

    .pub-carousel {
        min-height: 140px !important;
    }
    
    /* Ajustement pour mobiles */
    .pub-slide > div {
        transform: scale(0.75) !important;
        transform-origin: top center !important;
        width: 133.3% !important; /* 100% / 0.75 = 133.3% */
        margin-left: -16.65% !important; /* (133.3% - 100%) / 2 = 16.65% */
    }
    
    /* Ajustement spécifique pour la bannière de 180px */
    .mondeal-banner-v1 {
        height: 200px !important; /* Force la hauteur */
    }
    
    /* Ajustement spécifique pour les bannières catégories de 200px */
    .category-banner {
        height: 200px !important; /* Force la hauteur */
    }
    
    /* Ajustement pour mondeal-cta-banner qui est aussi 180px */
    .mondeal-cta-banner {
        height: 200px !important; /* Force la hauteur */
    }
    
    .slide-nav-bottom {
        transform: translateX(-50%) scale(0.8) !important;
        bottom: 10px !important;
    }
    
    #textdiv{
        font-size:26px !important;
    }
}
@media (max-width: 768px) {
    .mondeal-banner-v1 {
        /* height: 180px !important; */
        height: 200px !important;
    }
}

@media (max-width: 640px) {
      /* MASQUER LES SOUS-CATÉGORIES DANS LES BANNIÈRES CATÉGORIE */
    .souscat {
        display: none !important;
    }
    .pub {
        margin-top: 27px !important;
    }
    .slide-nav-bottom {
        top: 107px !important;
    }
    .pub-carousel {
        min-height: 130px !important;
    }
    
    /* Réduction pour mobiles moyens */
    .pub-slide > div {
        transform: scale(0.65) !important;
        transform-origin: top center !important;
        width: 153.8% !important; /* 100% / 0.65 = 153.8% */
        margin-left: -26.9% !important; /* (153.8% - 100%) / 2 = 26.9% */
    }
    
    /* Hauteurs forcées */
    .mondeal-banner-v1,
    .mondeal-cta-banner {
        height: 200px !important;
    }
    
    .category-banner {
        height: 200px !important;
    }
    
    .slide-nav-bottom {
        transform: translateX(-50%) scale(0.75) !important;
        bottom: 8px !important;
    }
}
@media (max-width: 640px) {
    .mondeal-banner-v1, .mondeal-cta-banner {
        /* height: 180px !important; */
        height: 200px !important;
    }
    .a1{
        padding: 5px ;    
    }
    .a2{
        padding: 5px; 
    }
    #textdiv{
        font-size:25px !important;
    }
    .textdiv{
        font-size:26px !important;
        overflow: hidden;
    }
    .textdiv2{
        font-size:22px !important;
        overflow: hidden;
    }
    .textdiv3{
        font-size:24px !important;
        overflow: hidden;
    }
    .textdiv4{
        font-size:20px !important;
        overflow: hidden;
    }
    
    .voir_annonce{
        font-size:20px !important;
        overflow: hidden;
        visibility: hidden;
    }
    .nouvelle_annonce{
        font-size:16px !important;
        overflow: hidden;
        margin-left: 70px;
        visibility: hidden;
    }
    
    .imgafro{
         width: 49% !important;
    }
    
    .arrplan{
        background: #37415161;
        background: none;
        border-radius: 20px;
        padding: 10px !important;
    }
    
    /* Règles spécifiques pour ajuster certains textes si nécessaire */
    .mondeal-banner-v1 div[style*="font-size: 28px"] {
        font-size: 28px !important; /* Règle spécifique */
    }
    
    .category-banner div[style*="font-size: 24px"] {
        font-size: 28px !important; /* Règle spécifique */
    }
    .mondeal-banner-v1 div[style*="font-size: 26px"] {
        font-size: 28px !important; /* Règle spécifique */
    }
    
    .category-banner div[style*="font-size: 28px"] {
        font-size: 28px !important; /* Règle spécifique */
    }
}

@media (max-width: 480px) {
    .pub {
        margin-top: 25px !important;
    }
    .slide-nav-bottom {
        top: 97px !important;
    }   
    .pub-carousel {
        min-height: 110px !important;
    }
    
    /* Réduction pour petits mobiles */
    .pub-slide > div {
        transform: scale(0.55) !important;
        transform-origin: top center !important;
        width: 181.8% !important; /* 100% / 0.55 = 181.8% */
        margin-left: -40.9% !important; /* (181.8% - 100%) / 2 = 40.9% */
    }
    
    /* Hauteurs forcées */
    .mondeal-banner-v1,
    .mondeal-cta-banner {
        height: 180px !important;
    }
    
    .category-banner {
        height: 200px !important;
    }
    
    .slide-nav-bottom {
        transform: translateX(-50%) scale(0.65) !important;
        bottom: 5px !important;
        padding: 6px 12px !important;
    }
}
@media (max-width: 480px) {
    .mondeal-banner-v1, .mondeal-cta-banner {
        height: 200px !important;
    }
    
    /* Règles spécifiques pour ajuster certains textes si nécessaire */
    .mondeal-banner-v1 div[style*="font-size: 28px"] {
        font-size: 26px !important; /* Règle spécifique */
    }
    
    .category-banner div[style*="font-size: 24px"] {
        font-size: 26px !important; /* Règle spécifique */
    }
    .mondeal-banner-v1 div[style*="font-size: 26px"] {
        font-size: 26px !important; /* Règle spécifique */
    }
    
    .category-banner div[style*="font-size: 28px"] {
        font-size: 26px !important; /* Règle spécifique */
    }
    
}

@media (max-width: 360px) {
    .pub {
        margin-top: 20px !important;
    }
    .slide-nav-bottom {
        top: 97px !important;
    }

    
    .pub-carousel {
        min-height: 100px !important;
    }
    
    /* Réduction maximale pour très petits mobiles */
    .pub-slide > div {
        transform: scale(0.45) !important;
        transform-origin: top center !important;
        width: 222.2% !important; /* 100% / 0.45 = 222.2% */
        margin-left: -61.1% !important; /* (222.2% - 100%) / 2 = 61.1% */
    }
    
    
    .category-banner {
        height: 250px !important;
    }
    
    .slide-nav-bottom {
        transform: translateX(-50%) scale(0.55) !important;
        bottom: 2px !important;
        padding: 4px 8px !important;
    }
    .category-banner {
        height: 250px !important;
    }
    .pub-slide {
        height: auto;
        height: 250px !important;
    }
    .mondeal-banner-v1, .mondeal-cta-banner
     {
        height: 245px !important;
    }

}


/* Pour éviter les problèmes d'impression */
@media print {
    .pub-carousel {
        height: auto !important;
        min-height: auto !important;
    }
    
    .pub-slide {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-inside: avoid;
        transform: none !important;
    }
    
    .pub-slide > div {
        transform: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        height: auto !important;
        min-height: 180px !important;
    }
    
    .slide-nav-bottom {
        display: none !important;
    }
}



