/**
 * Restaurant Les Vénètes - Offre du moment
 * @author Beekom Studio
 * @version 2.0.0
 */

/* ── Wrapper ─────────────────────────────────────────────────────── */
.rlv-odm-wrapper {
    --rlv-gap: 20px;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}

.rlv-odm-wrapper *,
.rlv-odm-wrapper *::before,
.rlv-odm-wrapper *::after {
    box-sizing: border-box;
}

/* ── Navigation (flèches) ────────────────────────────────────────── */
.rlv-odm-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rlv-odm-nav--top {
    margin-bottom: 24px;
}
.rlv-odm-nav--bottom {
    margin-top: 24px;
}

/* Positionnement selon configuration */
.rlv-odm-arrows-top-left    .rlv-odm-nav--top    { justify-content: flex-start; }
.rlv-odm-arrows-top-right   .rlv-odm-nav--top    { justify-content: flex-end; }
.rlv-odm-arrows-bottom-left   .rlv-odm-nav--bottom { justify-content: flex-start; }
.rlv-odm-arrows-bottom-center .rlv-odm-nav--bottom { justify-content: center; }
.rlv-odm-arrows-bottom-right  .rlv-odm-nav--bottom { justify-content: flex-end; }

/* Extrêmes : prev tout à gauche, next tout à droite, séparés par la largeur du wrapper */
.rlv-odm-arrows-top-extremes    .rlv-odm-nav--top,
.rlv-odm-arrows-bottom-extremes .rlv-odm-nav--bottom {
    width: 100%;
    justify-content: space-between;
    /* On annule le gap utilisateur ici, sinon ça ajoute un espace inutile au milieu */
    gap: 0;
}

.rlv-odm-nav-btn {
    width: 36px;
    height: 36px;
    /* Reset complet de tous les défauts navigateur + thème.
       Aucun background, aucune bordure, aucune ombre par défaut.
       Tout ce que l'utilisateur veut, il l'ajoute via Elementor. */
    background: transparent;
    background-color: transparent;
    border-style: none;
    border-width: 0;
    border-color: currentColor;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
    line-height: 0;
}

/* Reset explicite sur TOUS les états du bouton — neutralise les styles
   de thème (Astra/Hello/etc.) qui ajoutent souvent un background sur
   :focus / :active. Les contrôles Elementor (couleur de fond hover, etc.)
   gardent une spécificité supérieure via {{WRAPPER}}, donc continuent
   d'override quand le user les définit. */
.rlv-odm-nav-btn:hover,
.rlv-odm-nav-btn:focus,
.rlv-odm-nav-btn:active,
.rlv-odm-nav-btn:focus-within {
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

/* Accessibilité clavier : indicateur subtil uniquement quand la nav
   se fait au clavier (Tab), pas au clic souris. */
.rlv-odm-nav-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.rlv-odm-nav-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}
.rlv-odm-nav-btn img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.rlv-odm-nav-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.rlv-odm-nav-btn:hover {
    background-color: transparent;
}
.rlv-odm-prev:hover { transform: translateX(-2px); }
.rlv-odm-next:hover { transform: translateX(2px); }

.rlv-odm-nav-btn[data-disabled="true"] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
    transform: none !important;
}

/* ── Track ───────────────────────────────────────────────────────── */
.rlv-odm-track-container {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}
.rlv-odm-track-container.is-dragging { cursor: grabbing; }

.rlv-odm-track {
    display: flex;
    gap: var(--rlv-gap);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.rlv-odm-track.no-transition { transition: none !important; }

/* ── Carte ───────────────────────────────────────────────────────── */
.rlv-odm-card {
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rlv-odm-card.is-active {
    cursor: default;
}

/* ── Image ───────────────────────────────────────────────────────── */
.rlv-odm-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: transparent;
    text-decoration: none;
    position: relative;
}
.rlv-odm-card__img img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-drag: none;
    pointer-events: none;
}
.rlv-odm-card:hover .rlv-odm-card__img img {
    transform: scale(1.04);
}

/* ── Corps texte ─────────────────────────────────────────────────── */
.rlv-odm-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

/* Typographie : on hérite du thème, Elementor reprend la main */
.rlv-odm-card__title,
.rlv-odm-card__desc,
.rlv-odm-card__btn {
    font: inherit;
    margin: 0;
    padding: 0;
}

.rlv-odm-card__title {
    line-height: 1.25;
}
.rlv-odm-card__desc {
    line-height: 1.5;
    flex: 1 1 auto;
}

/* ── Bouton ──────────────────────────────────────────────────────── */
.rlv-odm-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid currentColor;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    align-self: flex-start;
}
.rlv-odm-card__btn:hover,
.rlv-odm-card__btn:focus {
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .rlv-odm-nav-btn { width: 32px; height: 32px; }
}
