/* 
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; /* Cache les barres de défilement globales inutiles */
    padding-bottom: 20px;
}

.luxe-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px; /* Espace pour la barre custom */
    cursor: grab; /* Affiche la petite main pour le drag & drop */
    
    /* Design de la scrollbar "barre en barre" */
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 #f0f0f0;
}

.luxe-carousel-track:active {
    cursor: grabbing; /* Main fermée quand on clique et glisse */
}

/* Scrollbar Webkit (Chrome, Safari, Edge) */
.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 {
    /* 22% de base permet d'avoir 4 cartes + un bout de la 5ème qui dépasse sur grand écran */
    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; 
}

/* --- LIEN GLOBAL SUR LA CARTE --- */
.luxe-card-full-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10; /* Se place au-dessus de tout pour rendre toute la carte cliquable */
}

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

/* Assombrir très légèrement l'image au hover pour faire ressortir le bouton */
.luxe-carousel-card:hover .luxe-card-bg {
    filter: brightness(0.85);
}

.luxe-card-content {
    position: relative;
    z-index: 5; /* Passe sous le lien global (10) mais au-dessus de l'image de fond */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- TITRE --- */
.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;
}

/* --- BOUTON LUXE (HOVER) --- */
.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; 
}

/* Affichage du bouton au survol */
.luxe-carousel-card:hover .luxe-card-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

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

/* --- RESPONSIVE TABLETTE --- */
@media (max-width: 1024px) {
    .luxe-carousel-card {
        flex: 0 0 45%; 
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .luxe-carousel-card {
        flex: 0 0 75%; 
        min-width: unset;
    }
    
    /* Affiche le bouton DÉCOUVRIR direct en mobile sans besoin de survoler */
    .luxe-card-btn {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}


/* --- CORRECTION DRAG & DROP : Empêcher la sélection du texte --- */
.luxe-carousel-card {
    user-select: none;
    -webkit-user-select: none;
}

/* --- FLÈCHES DE NAVIGATION (ORDINATEUR) --- */
.luxe-carousel-container {
    position: relative; /* Indispensable pour placer les flèches */
}

.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; }

/* Les flèches apparaissent au survol du carousel complet */
.luxe-carousel-container:hover .luxe-arrow {
    opacity: 1;
    visibility: visible;
}

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

/* On cache les flèches sur tablette/mobile (le swipe suffit) */
@media (max-width: 1024px) {
    .luxe-arrow {
        display: none !important;
    }
}

/* --- BLOQUER LE DRAG NATIF DU NAVIGATEUR --- */
.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;
}

/* --- MASQUER LES FLÈCHES EN BUTÉE --- */
.luxe-arrow.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}