/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Dec 09 2025 | 14:35:10 */
/**************************************************
 * MAGAZINES SÉANCES SCOLAIRES
 * Carte couverture + overlay + lien Télécharger
 **************************************************/

/* === Wrapper de la couverture (section + colonne) === */
.mag_couv.elementor-section,
.mag_couv.elementor-column {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    aspect-ratio: 3 / 4;              /* ratio affiche type A4 portrait */
}

/* Le contenu prend toute la hauteur de la carte */
.mag_couv .elementor-container,
.mag_couv .elementor-widget-wrap {
    height: 100%;
}

/* On supprime les padding internes pour que l’affiche colle bien au bord */
.mag_couv.elementor-section > .elementor-container {
    padding: 0 !important;
}

/* ================================================
   OVERLAY BAS SUR L’AFFICHE (TITRE + INFOS + BOUTON)
   ================================================ */

/* Inner section overlay (celle avec la classe .mag_overlay) */
.mag_couv .mag_overlay.elementor-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;              /* collé en bas */
    top: auto;
    height: 38%;            /* hauteur de la bande noire, ajuste si besoin */
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.93);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;

    opacity: 0;
    transform: translateY(100%);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;   /* pas cliquable tant que caché */
}

/* Au survol de la carte : on fait remonter la bande noire */
.mag_couv:hover .mag_overlay.elementor-section {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Titres et textes dans l’overlay (Parution, Numéro, etc.) */
.mag_overlay .elementor-widget-heading .elementor-heading-title,
.mag_overlay .elementor-widget-text-editor,
.mag_overlay .elementor-widget-text-editor p {
    color: #FFFFFF;
    font-family: 'FuturaLT', sans-serif;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 4px;
}

/* Option : si tu as un gros numéro, on peut le faire un peu plus grand */
.mag_overlay .mag_numero .elementor-heading-title {
    font-size: 18px;
}

/* Bouton dans l’overlay ("Voir le magazine") */
.mag_overlay .download_buton .elementor-button {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 0;
    border: none;
    background: #FFFFFF;
    color: #000000;
}

.mag_overlay .download_buton .elementor-button-icon {
    margin-right: 6px;
}

/* ================================================
   LIEN "TÉLÉCHARGER" TOUJOURS VISIBLE SOUS L’AFFICHE
   ================================================ */

/* Cas 1 : tu ajoutes une classe CSS "download_bottom" sur le bouton du bas */
.download_bottom .elementor-button {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    text-decoration: none;
    color: #000000;
}

/* Cas 2 : si tu mets le bouton du bas juste après la section .mag_couv
   (widget bouton avec classe .download_buton) */
.mag_couv + .download_buton .elementor-button {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    text-decoration: none;
    color: #000000;
}

/* centrage horizontal du bouton du bas */
.download_bottom,
.mag_couv + .download_buton {
    text-align: center;
    margin-top: 6px;
}

.download_bottom .elementor-button-icon,
.mag_couv + .download_buton .elementor-button-icon {
    margin-right: 4px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .mag_couv.elementor-section,
    .mag_couv.elementor-column {
        aspect-ratio: 3 / 4;
    }

    .mag_couv .mag_overlay.elementor-section {
        height: 45%;
        padding: 8px 10px;
    }

    .mag_overlay .elementor-widget-heading .elementor-heading-title,
    .mag_overlay .elementor-widget-text-editor,
    .mag_overlay .elementor-widget-text-editor p {
        font-size: 11px;
    }

    .mag_overlay .download_buton .elementor-button {
        font-size: 11px;
        padding: 5px 10px;
    }
}
