/* 
Theme Name: Atelier Reya
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Theme for Atelier Reya B2B 
Author: Snazzy Digital Agency
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
*/

/* Add your custom styles here */

/* --- CONTAINER & SCROLL BAR --- */
/* --- CONTAINER & SCROLL BAR --- */
.luxe-carousel-container {
    width: 100%;
    overflow: hidden; 
    padding-bottom: 20px;
    position: relative; /* Pour les flèches */
}

.luxe-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px; 
    cursor: grab; 
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 #f0f0f0;
}

.luxe-carousel-track:active {
    cursor: grabbing; 
}

.luxe-carousel-track::-webkit-scrollbar { height: 6px; }
.luxe-carousel-track::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.luxe-carousel-track::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 10px; }

/* --- CARDS --- */
.luxe-carousel-card {
    flex: 0 0 22%; 
    min-width: 280px; 
    height: 500px; 
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e6e0d9; 
    user-select: none;
    -webkit-user-select: none;
}

.luxe-card-full-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10; 
}

.luxe-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease; 
}

.luxe-card-full-link, .luxe-card-bg {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.luxe-carousel-card:hover .luxe-card-bg {
    filter: brightness(0.85);
}

.luxe-card-content {
    position: relative;
    z-index: 5; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- DESIGN PAR DÉFAUT (MODE CATÉGORIE) --- */
.luxe-card-title {
    font-family: 'Aboreto', serif;
    font-size: 1.6rem; 
    color: #fff; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px; 
    text-shadow: 0px 2px 4px rgba(0,0,0,0.4); 
    text-align: center;
    line-height: 1.1;
    transition: transform 0.4s ease; /* Préparation pour les animations */
}

.luxe-card-btn {
    font-family: 'Afacad', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    background-color: #000;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    position: absolute;
    bottom: 40px;
    transform: translateY(20px); 
    opacity: 0; 
    visibility: hidden;
    transition: all 0.4s ease; 
}

.luxe-carousel-card:hover .luxe-card-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

.luxe-card-btn:hover {
    background-color: #333; 
    color: #fff;
}

/* =========================================================
   NOUVEAU : OVERRIDES POUR LE MODE COLLECTION
   ========================================================= */
.luxe-mode-collection .luxe-card-content {
    align-items: flex-end; /* Aligne le contenu à droite */
    justify-content: flex-end; /* Aligne le contenu en bas */
}

.luxe-mode-collection .luxe-card-title {
    position: absolute;
    bottom: 30px;
    right: 25px;
    margin-top: 0;
    text-align: right;
}

.luxe-mode-collection .luxe-card-btn {
    bottom: 25px;
    right: 25px;
    padding: 10px 24px; /* Bouton très légèrement plus compact */
}

/* Au survol du mode collection : le titre monte, le bouton glisse en dessous */
.luxe-mode-collection .luxe-carousel-card:hover .luxe-card-title {
    transform: translateY(-45px); 
}


/* --- FLÈCHES DE NAVIGATION --- */
.luxe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.luxe-arrow-prev { left: 20px; }
.luxe-arrow-next { right: 20px; }

.luxe-carousel-container:hover .luxe-arrow {
    opacity: 1;
    visibility: visible;
}

.luxe-arrow:hover { background-color: #000; color: #fff; }

.luxe-arrow.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* --- RESPONSIVE TABLETTE & MOBILE --- */
@media (max-width: 1024px) {
    .luxe-carousel-card { flex: 0 0 45%; }
    .luxe-arrow { display: none !important; }
}

@media (max-width: 768px) {
    .luxe-carousel-card { flex: 0 0 75%; min-width: unset; }
    
    /* Boutons et animations forcés sur mobile pour les DEUX modes */
    .luxe-card-btn {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Pour le mode collection sur mobile, on force le titre en haut pour faire place au bouton */
    .luxe-mode-collection .luxe-card-title {
        transform: translateY(-45px) !important;
    }
}