/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Container for all blocks */
.content-reveal-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 70px;
    width: 100%;
    justify-content: space-between;
    margin: 30px 0;
}

/* Individual block styling */
.content-reveal-block {
    flex: 1;
    flex-basis: calc(33.333% - 47px); /* Pour 3 blocs avec l'espace entre eux (gap 70px) */
    min-width: 250px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Preview section (visible by default) */
.content-reveal-preview {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    color: #333;
}

.content-reveal-info {
    background-color: white;
    padding: 30px;
    text-align: center;
    width: 100%;
}

.content-reveal-title, .content-reveal-details-title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: #05242e !important;
    text-align: left !important;
}

.content-reveal-button {
    color: #06252f !important;
    border: none;
    border-radius: 4px;
    font-weight: 400;
    position: relative;
    text-decoration: underline;
    font-size: 14px;
    background: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    display: block;
    background-color: transparent !important;
}

.content-reveal-button:hover {
    text-decoration: none;
}

/* Details section (slides on click) */
.content-reveal-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 10;
    display: block;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

/* Activation au clic via classe .active */
.content-reveal-details.active {
    transform: translateY(0);
}

.content-reveal-details-inner {
    height: 100%;
    width: 100%;
    padding: 30px;
    overflow-y: auto;
}

.content-reveal-details-header {
    display: block;
    margin-bottom: 10px;
}

.content-reveal-icon {
    width: 50px;
    height: 50px;
    margin-top: 15px;
}

.content-reveal-details-content {
    color: #52525B;
    line-height: 20px;
    font-size: 14px;
}

.content-reveal-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

/* Mobile swipe styles - cachés par défaut */
.mobile-container {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .content-reveal-container {
        flex-wrap: wrap;
        gap: 30px;
    }

    .content-reveal-block {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    /* Cacher complètement toutes les parties desktop */
    .content-reveal-preview, .content-reveal-details, .content-reveal-button {
        display: none !important;
    }

    .content-reveal-container {
        gap: 20px;
    }

    .content-reveal-block {
        flex-basis: 100%;
        margin-bottom: 20px;
        box-shadow: none;
    }

    /* Affiche le contenu mobile */
    .mobile-container {
        display: block;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Swiper container */
    .mobile-swiper {
        position: relative;
        display: flex;
        width: 200%;
        transform: translateX(0);
        transition: transform 0.4s ease;
    }

    .mobile-swiper.swiped {
        transform: translateX(-50%);
    }

    /* Pagination dots au-dessus de l'image */
    .mobile-pagination {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 5;
        padding: 15px;
        gap: 10px;
    }

    .pagination-dot {
        height: 4px;
        width: 50%;
        background-color: rgb(5 36 47 / 30%);
        border-radius: 2px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .pagination-dot.active {
        background-color: rgb(5 36 46);
    }

    /* Slides */
    .mobile-slide {
        width: 50%;
        flex-shrink: 0;
    }

    /* Preview slide (image et titre) */
    .content-reveal-preview-mobile {
        height: 400px;
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
    }

    /* Details slide */
    .mobile-details {
        background-color: white;
        padding: 30px;
        height: 400px;
        overflow-y: auto;
    }

    /* Style pour le titre sur mobile */
    .mobile-container .content-reveal-info {
        margin-top: auto;
    }
}