/* ==============================
   JOURNAL LIST - GLOBAL STYLES
================================= */

.slider-content {
    width: 100%;
    height: 60vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-title {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.journaux-section-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 5px;
}

.journal-box {
    width: 30%;
    margin-bottom: 20px;
    height: 70vh;
    position: relative;
    border: 1px solid rgb(228, 228, 228);
    border-radius: 10px;
    overflow: hidden;
}

.journal-box img.journal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-box:hover .journal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
}

.journal-actions {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.journal-overview {
    width: 95%;
    margin: auto;
    min-height: 200vh;
    position: relative;
}

.journal-overview img {
    width: 100%;
    height: auto;
}

.journal-overview:hover .journal-overview-actions {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
}

.journal-overview-actions {
    display: none;
}

.journal-overview-actions a {
    margin: 0 5px;
}

/* ==============================
   MODALS
================================= */
.modal-content.abonnement-modal,
.abonnement-modal-container {
    background-color: rgba(0,0,0,0);
    border: none;
}

.abonnement-modal-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 30px 0;
}

.abonnement-formule {
    width: 32%;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
}

.abonnement-formule h4 {
    margin-top: 20px;
    color: #6c757d;
}

.abonnement-formule:hover,
.abonnement-formule:hover h4 {
    color: blue;
}

/* ==============================
   MEDIA QUERIES
================================= */

/* Small devices - phones */
@media (max-width: 600px) {
    .journaux-section-content {
        width: 100%;
        padding: 10px;
    }

    .journal-box {
        width: 48%;
        height: auto;
        margin-bottom: 10px;
    }

    .journal-box img.journal-img {
        height: 200px;
    }

    .journal-actions {
        display: none; /* On peut laisser hover pour desktop uniquement */
    }

    .journal-overview {
        min-height: unset;
        height: auto;
    }

    .journal-overview img {
        width: 100%;
        height: auto;
        position: relative;
    }
}

/* Medium devices - tablets */
@media (max-width: 992px) {
    .journal-box {
        width: 48%;
        height: auto;
        margin-bottom: 15px;
    }

    .journal-box img.journal-img {
        height: 250px;
    }
}

/* Large devices - desktops */
@media (min-width: 993px) {
    .journal-box {
        width: 30%;
    }

    .journal-box img.journal-img {
        height: 70vh;
    }
}

/* Slider responsive */
@media (max-width: 768px) {
    .slider-content {
        height: 40vh;
    }

    .slider-title {
        font-size: 28px;
    }
}
