@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* SECTION DESKTOP (Grille) */
.deleage-slider-container { position: relative; width: 100%; }
.deleage-grid { display: flex; gap: 75px; flex-wrap: nowrap; justify-content: center; margin: 40px 0; }
.deleage-grid-item { width: 300px; height: 300px; position: relative; overflow: hidden; flex-shrink: 0; }
.deleage-grid-item a { display: block; width: 100%; height: 100%; position: relative; text-decoration: none; }
.deleage-grid-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.4s ease; }
.deleage-grid-item a::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); pointer-events: none; transition: background 0.3s ease; }
.deleage-grid-item:hover a::after { background: rgba(0, 0, 0, 1); }
.deleage-grid-item:hover .deleage-grid-img { transform: scale(1.05); opacity: 0; }

.deleage-grid-item h4 {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 85%; margin: 0; padding: 0; letter-spacing: 0.5px;
    color: #ffffff !important; font-family: 'regular' !important; font-weight: bold !important;
    font-size: 24px !important; text-align: center; line-height: 1.3;
    text-transform: uppercase; z-index: 2; -webkit-font-smoothing: antialiased;
}

.deleage-nav { display: none; }

/* ============================================================
   SECTION MOBILE
   ============================================================ */

@media (max-width: 768px) {
    /* Conteneur principal mobile : On réduit un peu pour les flèches */
    .deleage-slider-container {
        width: calc(100% - 40px); /* 20px de marge de chaque côté pour les flèches */
        margin: 0 auto;
    }
    
    .deleage-grid-item h4 {
        font-size: 16px !important; /* Ajuste la valeur selon tes besoins */
        line-height: 1.2;
    }

    /* Grille mobile : Scroll précis et invisible */
    .deleage-grid {
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        justify-content: flex-start;
        width: 100%;
        margin: 20px auto;
        scrollbar-width: none;
        padding: 0; /* Important pour le positionnement des items */
    }

    .deleage-grid::-webkit-scrollbar { display: none; }

    /* Item : Format carré, toujours */
    .deleage-grid-item {
        scroll-snap-align: center;
        width: 100%; /* Prend toute la largeur disponible */
        flex: 0 0 100%;
        height: auto;
        aspect-ratio: 1 / 1; /* Force le format carré */
    }

    /* Flèches de navigation (Cachées sur desktop) */
    .deleage-nav {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.6); /* Fond semi-transparent pour visibilité */
        border: none;
        cursor: pointer;
        padding: 8px; /* Plus compact pour ne pas dépasser */
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

    .deleage-nav.prev {
        left: -35px; /* Positionnement à l'extérieur, sans déborder */
    }

    .deleage-nav.next {
        right: -35px; /* Positionnement à l'extérieur, sans déborder */
    }

    /* Icône SVG (Ton original) */
    .deleage-nav svg {
        fill: #333;
        width: 10px; /* Taille compacte pour rentrer dans le cercle */
        height: auto;
    }
}

/* DESIGN FOOTER - TON ORIGINAL */
.stratall-footer-card { font-family: 'Montserrat', sans-serif; max-width: 100%; }
.s-card-intro { font-size: 13px; color: #bbb; margin-bottom: 12px; }
.s-card-link { display: block; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; overflow: hidden; }
.s-card-link:hover { background: rgba(255,255,255,0.08); }
.s-card-img-container { float: left; width: 50px; height: 50px; border-radius: 6px; margin-right: 15px; margin-bottom: 5px; overflow: hidden; background: #000; }
.s-card-real-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-card-title { font-size: 14px; font-weight: 700; color: #ffffff; margin: 0; line-height: 1.4; }
.s-card-meta { clear: both; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; margin-top: 10px; }
.s-card-date { font-size: 11px; color: #888; }
.s-card-cta { font-size: 11px; color: #d1df01; font-weight: 600; text-transform: uppercase; }

/* RECTIFS MOBILE */
@media (max-width: 768px) {
    /* GRILLE : Police à 18px comme demandé */
    .deleage-grid-item h4 {
        font-size: 18px !important;
        line-height: 1.2;
    }

    /* FOOTER : Ton format 16:9 Cinema */
    .s-card-img-container {
        float: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-right: 0;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    .s-card-title {
        font-size: 16px;
        display: block;
        clear: both;
    }
}