/* ==========================================================================
   SECTION HERO - VERSION DESKTOP (Inchangée)
   ========================================================================== */
   
   /* Application de l'état initial et de l'animation */
   
   * {
    box-sizing: border-box;
}
  .games-title{
    font-weight: 800 !important;
    font-size: 2.8rem !important;
    text-align: center;
    width: 100%;
    color:#775b9f !important;
   }
.hero-section {
    width: 100%;
    min-height: 100vh;
    background-image: url("../assets/img/hero/mean.webp");
    background-position: center 100%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    direction: rtl;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-content {
    z-index: 2;
    max-width: 550px;
    margin-right: 8%;
    margin-top: 80px;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 64px;
    color: #775b9f;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 38px;
    color: #333;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 5px;
}

.hero-text {
    font-size: 19px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 35px;
    align-items: flex-start;
    width: 100%;
}

.stat-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 6px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.stat-item span {
    order: 2;
    color: #444;
    font-size: 15px;
    font-weight: 600;
}

.stat-item::before {
    content: '✓';
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background-color: #775b9f;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.btn {
    padding: 14px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: #775b9f;
    color: #fff;
    box-shadow: 0 8px 20px rgba(119, 91, 159, 0.4);
}

.btn.secondary {
    background: #fff;
    color: #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   SECTION HOW IT WORKS (Desktop)
   ========================================================================== */
.how-it-works {
    padding: 40px 0;
    direction: rtl;
   
}

.process-main-title {
    font-weight: 800 !important;
    font-size: 2.8rem !important;
    text-align: center;
    width: 100%;
    margin-bottom: -150px;
}
.process-main-title .word-blue { color: #1d4f91 !important; margin-left: 10px; }
.process-main-title .word-purple { color: #775b9f !important; }

.steps-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    max-width: 1100px;
    margin: 120px auto;
    height: 300px;
}

/* --- ANIMATION (RETOUR) --- */
.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    z-index: 2;
    /* État initial caché */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* État quand le JS ajoute la classe */
.animated-steps.is-visible .step-item {
    opacity: 1;
    transform: translateY(0);
    /* Délai basé sur la variable --delay du HTML */
    transition-delay: calc(var(--delay) * 0.2s);
}

.item-top {
    height: 100%;
    justify-content: flex-end;
    padding-bottom: 110px;
}

.item-bottom {
    height: 100%;
    justify-content: flex-start;
    padding-top: 110px;
}

.step-node {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 75px;
    height: 75px;
    background: white;
    border: 3px solid #775b9f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(119, 91, 159, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
}

.step-number {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    color: #1d4f91;
    top: -70px;
    right: 15px;
    z-index: -1;
    transition: all 0.4s ease;
}

.step-number1 {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    color: #1d4f91;
    top: 80px;
    right: 15px;
    z-index: -1;
    transition: all 0.4s ease;
}

.step-content {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #444;
    max-width: 180px;
    padding: 10px 0;
}

.step-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-50%);
    z-index: 1;
}

.step-item:hover .circle { background: #775b9f; transform: scale(1.1); }
.step-item:hover .circle i { color: white !important; }
.step-item:hover .step-number { color: rgba(119, 91, 159, 0.3); }
.step-item:hover .step-number1 { color: rgba(119, 91, 159, 0.3); }


.circle i { font-size: 24px; color: #775b9f; }

/* Desktop */
.steps-mobile {
    display: none;
}

/* ==========================================================================
   VERSION MOBILE (Harmonisée)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Reset Body pour éviter les conflits de gap */
    body {
        display: block;
    }

    /* Hero Mobile */
    .hero-section {
        min-height: 100vh;
        height: auto;
        background-image: url("../assets/img/hero/mean2.webp");
        background-position: center bottom;
        background-size: contain; 
        padding-top: 50px;
        padding-bottom: 280px; /* Espace pour l'image du bas */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        margin-right: 0;
        margin-top: 20px;
        padding: 0 20px;
        text-align: center;
        align-items: center;
    }

    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 20px; margin-bottom: 15px; }
    .hero-text { font-size: 15px; margin-bottom: 20px; }

    .hero-stats { align-items: center; margin-bottom: 20px; }
    .stat-item { background: rgba(255, 255, 255, 0.9); min-width: 220px; justify-content: center; }

    .btn.secondary { display: none !important; }
    .btn.primary { width: 220px; padding: 12px 0; font-size: 17px; }

    /* How It Works Mobile */
    .how-it-works {
        padding: 40px 0;
        margin-top: -30px; /* Réduit le gap entre Hero et Titre */
    }

   /* Dans votre @media (max-width: 768px) */
.process-main-title {
    font-size: 1.8rem !important;
    margin-bottom: 90px !important; /* On donne de l'air après le titre */
    margin-top: 20px !important;    /* On s'assure qu'il ne colle pas au Hero */
    text-align: center;
    width: 100%;
    position: relative; /* Force le titre à reprendre sa place dans le flux */
    z-index: 10;
    padding-top: 30px;
}

    .steps-wrapper { display: none; }

  /* Dans votre @media (max-width: 768px) */
/* Dans votre @media (max-width: 768px) */
.steps-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 

    /* Réduction maximale */
    padding-top: 0px !important;    /* Supprime l'espace interne en haut */
    padding-bottom: 10px !important; /* Réduit l'espace interne en bas */
    margin-top: -80px !important;   /* Remonte la section elle-même vers le haut */
    margin-bottom: 20px !important;  /* Rapproche la section suivante */

    text-align: center;
}
    .steps-mobile .step-item {
    width: 100%;
    max-width: 320px;

    display: flex;              /* 🔥 IMPORTANT */
    flex-direction: column;     /* 🔥 IMPORTANT */
    align-items: center;        /* 🔥 IMPORTANT */

    margin: 0 auto;

    opacity: 0;
    transform: translateY(20px);
    transition-delay: calc(var(--delay) * 0.15s);

    text-align: center;
}

    .steps-mobile .circle {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
    }

    .steps-mobile span {
        font-size: 24px;
        font-weight: 700;
        background: linear-gradient(45deg, #1f3c88, #775b9f);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .steps-mobile p {
        font-size: 15px;
        line-height: 1.5;
        color: #444;
        margin: 0;
        text-align: center;
    }

    /* Petit trait de liaison entre étapes */
    .steps-mobile .step-item:not(:last-child)::after {
        content: '';
        width: 2px;
        height: 25px;
        background: #775b9f;
        opacity: 0.2;
        margin-top: 10px;
    }

    /* Section suivante */
    .about-us-section {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

/* ================= FIX FINAL BOUTONS ================= */

/* Desktop */
.hero-buttons .btn-desktop {
    display: inline-flex;
}

.hero-buttons .btn-mobile {
    display: none;
}


/* Mobile */
@media (max-width: 768px) {

    .hero-buttons .btn-desktop {
        display: none;
    }

    .hero-buttons .btn-mobile {
        display: inline-flex;
    }

}


.hero-title, 
.hero-subtitle, 
.hero-text, 
.hero-stats, 
.hero-buttons {
    opacity: 0; /* Caché au départ */
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Réglage des délais pour l'effet de cascade */
.hero-title    { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-text     { animation-delay: 0.5s; }
.hero-stats    { animation-delay: 0.7s; }
.hero-buttons  { animation-delay: 0.9s; }

/* Définition de l'animation de fondu vers le haut */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
}
/* Systèmes de délais pour l'ordre d'apparition */
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }
.d-5 { transition-delay: 0.5s; }












/* --- STYLE SECTION & TITRE --- */
.about-us-section { 
    position: relative; 
}

.section-title { 
    position: relative; 
    z-index: 1; 
}

/* Correction spécifique mobile pour la section About */
@media (max-width: 768px) {
    .about-us-section {
        padding-top: 0px !important;
        margin-top: -50px; 
        margin-bottom: 90px;
    }
    .section-title h2 {
        margin-top: 0;
        padding-top: 20px;
    }
}

/* --- STYLE MINIATURE VIDÉO --- */
.video-preview-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    z-index: 2;
}

.img-landscape { 
    width: 100%; 
    display: block; 
    aspect-ratio: 16/9; 
    object-fit: cover; 
}

.play-button-overlay {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    z-index: 5;
}

/* --- STYLE LIGHTBOX (LECTEUR PLEIN ÉCRAN) --- */
.video-lightbox {
    display: none;
    position: fixed;
    left: 0; 
    top: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
}

.lightbox-content video {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,1);
}

.close-video {
    position: absolute; 
    top: 20px; 
    right: 30px;
    color: #fff; 
    font-size: 60px; 
    z-index: 10000000; 
    cursor: pointer;
    line-height: 1;
}

/* Blocage du scroll quand la vidéo est ouverte */
body.no-scroll {
    overflow: hidden !important;
    height: 100%;
}
.video-fix {
    width: 100%;
    max-width: 900px;
    margin: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: black;
    border-radius: 12px;
    position: relative;
}

.video-fix video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optionnel : superposition sur la vidéo Story */
.video-fix::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    opacity: 0.8;
    pointer-events: none;
}
/* Marges personnalisées pour le titre Services */
.custom-desktop-margin {
    margin-top: 0;
}

@media (min-width: 992px) {
    .custom-desktop-margin {
        margin-top: -60px;
    }
}

/* La couleur de fond de la section services est définie en inline, 
   mais vous pouvez l'ajouter ici si nécessaire : */
.services-section {
    background-color: #775b9f;
}


/* --- Structure Principale --- */
.partners {
    padding: 70px 0;
    background-color: #fff; /* Fond blanc */
}

.custom-carousel {
    position: relative;
    max-width: 1000px; /* Largeur max pour centrer l'ensemble */
    margin: 0 auto;
}

.partner-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Espace entre les logos */
    padding: 20px 0;
}

.partner img {
    height: 70px; /* Taille de vos logos, ajustée */
    width: auto;
    display: block;
}

/* --- Contrôles et Flèches Corrigés --- */

/* Conteneur pour rapprocher les flèches */
.carousel-controls-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 100px); /* Plus large que le contenu pour espacer les flèches */
    left: -50px;
    z-index: 10;
    pointer-events: none; /* Pour que les clics passent à travers, sauf sur les boutons */
}

.custom-carousel .carousel-control-prev,
.custom-carousel .carousel-control-next {
    position: relative;
    top: auto;
    bottom: auto;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: auto; /* Réactive les clics sur les boutons */
}

/* Positionnement exact des flèches par rapport au conteneur */
.custom-carousel .carousel-control-prev {
    float: left;
}

.custom-carousel .carousel-control-next {
    float: right;
}

/* --- Style et Couleur Noire pour les Flèches UNIQUEMENT --- */
.custom-carousel .carousel-control-prev-icon,
.custom-carousel .carousel-control-next-icon {
    /* Fond gris clair circulaire autour de la flèche */
    background-color: rgba(0, 0, 0, 0.1); 
    border-radius: 50%;
    padding: 10px;
    background-size: 60%;
    
    /* Filtre pour noircir UNIQUEMENT l'icône de la flèche (le SVG interne) */
    filter: invert(1) grayscale(100%) brightness(0);
}

.custom-carousel .carousel-control-prev:hover,
.custom-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Cache le 4ème logo pour n'en garder que 3 */
    .hide-on-mobile {
        display: none !important;
    }

    .partner img {
        height: 50px; 
    }
    
    .partner-group {
        gap: 20px; /* Moins d'espace pour que les 3 rentrent bien */
    }

    .carousel-controls-container {
        width: calc(100% + 40px);
        left: -20px;
    }

    /* Optionnel : réduire un peu la taille des flèches sur mobile */
    .custom-carousel .carousel-control-prev-icon,
    .custom-carousel .carousel-control-next-icon {
        padding: 8px;
    }
}
/* ====== SECTION PRICING (MOBILE FIRST) ====== */
#pricing {
    padding: 40px 15px;
    background-color: #f8f9fa;
}

.pricing-wrapper {
    display: flex;
    flex-direction: column; /* Par défaut sur mobile */
    gap: 30px;
    align-items: center;
}

.pricing-card {
    width: 100%;
    max-width: 360px;
    border: none !important;
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    position: relative;
}

/* Gestion des vagues SVG */
.top-wave {
    line-height: 0;
    margin-bottom: -1px; /* Évite un liseré blanc */
}

.top-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Classes de remplissage pour les SVG */
.price-red .cls-1 { fill: url(#red-linear-gradient); }
.price-red .cls-2 { fill: url(#red-linear-gradient-2); }
.price-red .cls-4 { fill: url(#red-linear-gradient-3); }

.price-blue .cls-1 { fill: url(#blue-linear-gradient); }
.price-blue .cls-2 { fill: url(#blue-linear-gradient-2); }
.price-blue .cls-4 { fill: url(#blue-linear-gradient-3); }

.price-gold .cls-1 { fill: url(#gold-linear-gradient); }
.price-gold .cls-2 { fill: url(#gold-linear-gradient-2); }
.price-gold .cls-4 { fill: url(#gold-linear-gradient-3); }

/* Contenu de la carte */
.card-body {
    padding: 20px 25px 30px;
    position: relative;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 14px;
    text-align: right; /* Pour l'arabe */
}

.card-body ul li {
    margin-bottom: 10px;
    color: #555;
}

.price {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

/* Ruban (Ribbon) pour le pack Gold */
.ribbon {
    position: absolute;
    top: 0;
    left: 20px;
    width: 50px;
    z-index: 10;
}

/* ====== RESPONSIVE DESKTOP ====== */
@media (min-width: 768px) {
    .pricing-wrapper {
        flex-direction: row; /* Aligne les cartes horizontalement */
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Ajustements spécifiques demandés pour le texte sur mobile */
@media (max-width: 767px) {
    .pricing-card .price {
        margin-top: -15px;
        font-size: 2rem;
    }
    .pricing-card .card-title {
        margin-top: -40px;
        font-size: 1.5rem;
    }
}

/* On cible précisément la liste dans la div act-inffo */
.act-inffo ul {
    list-style: none !important; /* Force la suppression des puces par défaut */
    padding-right: 30px !important; /* Crée l'espace nécessaire pour la puce à DROITE */
    padding-left: 0 !important;
    margin: 20px 0 !important;
    text-align: right !important; /* Pour l'Arabe */
}

.act-inffo ul li {
    position: relative !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    list-style: none !important;
}

/* On utilise l'élément ::before pour dessiner le point */
.act-inffo ul li::before {
    content: "" !important;
    position: absolute !important;
    right: -25px !important; /* Place le point dans la zone du padding-right */
    top: 10px !important;    /* Ajuste la hauteur du point */
    width: 10px !important;
    height: 10px !important;
    background-color: #775b9f !important; /* Votre violet */
    border-radius: 50% !important;
    display: block !important;
}

@media (max-width: 768px) {

    .about-page-content .section-title p {
        margin-bottom: -60px !important;
    }

    .about-page-content .section-title h2 {
        margin-top: 20px !important;
    }

}
/* Uniquement pour les écrans de moins de 768px (Mobile/Tablette) */
@media (max-width: 768px) {
    #contact .info-item a, 
    #contact .info-item h5 a,
    #contact .info-item i {
        color: #000000 !important;
    }

    /* Si vous voulez aussi que le texte de l'adresse soit noir sur mobile */
    #contact .info-item h6 {
        color: #000000 !important;
    }
}


@media (max-width: 390px) {
 
    /* HERO */
    .hero-section  { padding-bottom: 200px; }
    .hero-title    { font-size: 24px; }
    .hero-subtitle { font-size: 16px; }
    .hero-text     { font-size: 13px; line-height: 1.5; }
    /* Supprime les <br> en CSS sur très petits écrans */
    .hero-text br  { display: none; }
 
    .stat-item         { padding: 5px 10px; gap: 6px;margin-top: -5px; }
    .stat-item span    { font-size: 12px; }
    .stat-item::before { min-width: 16px; height: 16px; font-size: 9px; }
 
    .btn.primary { width: 60vw; font-size: 14px; padding: 10px 0;margin-top: -10px;}
 
    /* HOW IT WORKS */
    .process-main-title { font-size: 1.3rem !important; }
    .steps-mobile { gap: 12px; padding: 0 8px 8px; }
    .steps-mobile .circle { width: 48px; height: 48px; }
    .steps-mobile .circle i { font-size: 18px; }
    .steps-mobile span { font-size: 18px; }
    .steps-mobile p { font-size: 12px; }
 
    /* SERVICES — icônes encore plus petites */
    .service-block {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
 
    .service-block .inner-box { padding: 8px 2px; }
    .service-block .icon img  { max-width: 32px; height: auto; }
 
    /* PRICING */
    .pricing-card { width: 100%; }
    .pricing-card .price      { font-size: 1.5rem; }
    .pricing-card .card-title { font-size: 1.1rem; }
    .card-body { padding: 14px 12px 18px; }
    .card-body ul { font-size: 11px; }
 
    /* PARTENAIRES */
    .partner { padding: 0 14px; }
    .partner img { height: 20px; }
 
    /* CONTACT */
    #contact .rating-group { flex-wrap: wrap; gap: 6px; }
 
    /* GÉNÉRAL */
    .desc { font-size: 13px !important; line-height: 1.5 !important; }
    .abt-img img { width: 100%; height: auto; }
 
    /* ABOUT PAGE : les deux colonnes passent en pleine largeur */
    .about-page-content .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    
}



/* 1. Conteneur Externe (Le secret pour l'espacement des flèches) */
.carousel-external-wrapper {
    position: relative;
    margin: 0 50px; /* Crée l'espace nécessaire à gauche et à droite pour les flèches */
}

/* 2. Le Carousel */
.carousel-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 30px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Cacher la scrollbar */
.carousel-container::-webkit-scrollbar {
    display: none;
}

/* 3. La Carte (Votre style conservé) */
.carousel-card {
    flex: 0 0 300px; 
    height: 380px;
    background: white;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: grab;
}

.carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(111, 66, 193, 0.15);
}

.card-inner {
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    border-radius: 20px;
}

.card-footer-text {
    margin-top: 15px;
    font-weight: bold;
    color: #6f42c1;
    font-size: 1.1rem;
    text-align: center;
}

/* 4. Boutons de Navigation (Positionnés à l'extérieur) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white !important;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 20;
    color: #6f42c1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.nav-btn:hover {
    background: #6f42c1 !important;
    color: white;
}

/* Placement en dehors du flux grâce aux marges du wrapper */
.prev-btn { right: -50px; } 
.next-btn { left: -50px; }

/* 5. Adaptations Mobile */
@media (max-width: 768px) {
    .carousel-external-wrapper {
        margin: 0 10px; /* Réduit l'espace vide sur mobile */
        margin-top: 30px;
    }
    .nav-btn { 
        display: none; /* Cache les flèches sur mobile pour privilégier le swipe au doigt */
    }
    .carousel-card {
        flex: 0 0 260px; /* Cartes légèrement plus petites */
        height: 320px;
    }
      .games-title {
        font-size:20px !important;
    }
}

@media (max-width: 768px) {
    .section-mobile-down {
        margin-top: 10000px; /* augmente pour descendre plus */
    }
}