/*
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
*/

/* ─────────────────────────────────────────────────────────────
   CLOSERIE SLIDER — [closerie_slider]
   ───────────────────────────────────────────────────────────── */

.cl-slider-wrap {
    position: relative;
    padding: 20px 0 36px;
}

/* ── Sélecteur d'édition ─────────────────────────── */
.cl-select-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.cl-edition-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 7px 36px 7px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.cl-edition-select:hover,
.cl-edition-select:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.cl-edition-select option {
    background: #1a1a1a;
    color: #fff;
}

.cl-select-chevron {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
}

/* ── Éditions — visibilité ───────────────────────── */
.cl-edition {
    display: none;
}

.cl-edition--active {
    display: block;
}

/* ── Slider étalé ────────────────────────────────── */
.cl-track-outer {
    overflow: hidden;
    width: 100%;
}

.cl-track {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 380px;
}

/* États des slides */
.cl-slide {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    transition: flex-basis 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.35s ease,
                border     0.35s ease;
    position: relative;
    flex-basis: 0;
    opacity: 0;
}

.cl-slide[data-state="active"] {
    flex-basis: 52%;
    opacity: 1;
    border: 2px solid #4EAEE8;
    flex-shrink: 0;
}

.cl-slide[data-state="next"] {
    flex-basis: 30%;
    opacity: 1;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.cl-slide[data-state="after"] {
    flex-basis: 18%;
    opacity: 0.85;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.cl-slide[data-state="hidden"] {
    flex-basis: 0;
    opacity: 0;
    pointer-events: none;
}

.cl-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Footer : flèches + lien galerie ─────────────── */
.cl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.cl-arrows {
    display: flex;
    gap: 8px;
}

.cl-btn-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.cl-btn-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
}

.cl-btn-arrow:active {
    transform: scale(0.93);
}

.cl-galerie-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 22px;
    border-radius: 30px;
    transition: background 0.2s, border-color 0.2s;
}

.cl-galerie-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .cl-track {
        height: 240px;
    }

    .cl-slide[data-state="active"]  { flex-basis: 75%; }
    .cl-slide[data-state="next"]    { flex-basis: 25%; }
    .cl-slide[data-state="after"]   { flex-basis: 0; opacity: 0; }
}
