/* ============================================================
   FONDS ENKI BILAL — INTERFACE DE RÉSERVATION (V2 — style LV)
   ------------------------------------------------------------
   Refonte complète style Fondation Louis Vuitton :
   - Layout 2 colonnes (main + sidebar exposition + conditions)
   - Breadcrumb top : Date & horaire › Vos billets › Paiement
   - Calendrier en grille bordurée (cellules outlined)
   - Heures en boutons rectangulaires bordurés
   - Billets avec lignes fines de séparation, +/- outlined
   - 2 boutons footer : Continuer mes achats + Passer au paiement
   ------------------------------------------------------------
   Ce fichier ne contient QUE les styles de l'interface
   réservation. Les styles globaux du site sont dans site.css.
   ============================================================ */

/* ============================================================
   1. MASQUAGE DES ÉLÉMENTS WC NATIFS (BLINDAGE)
   ============================================================ */
.interface-reservation form.cart > *:not(.feb-reservation-wrapper):not(.single_variation_wrap) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.interface-reservation .fooevents_date_selection,
.interface-reservation .variations_form table.variations,
.interface-reservation .variations_form .variations,
.interface-reservation .fusion-select-wrapper {
    display: none !important;
}

.interface-reservation .images,
.interface-reservation .woocommerce-tabs,
.interface-reservation .product_meta,
.interface-reservation .fooevents-event-details,
.interface-reservation .related.products,
.interface-reservation .fusion-sharing-box,
.interface-reservation .share-box,
.interface-reservation .woocommerce-product-details__short-description,
.interface-reservation .summary .price,
.interface-reservation .product_title.entry-title {
    display: none !important;
}

.interface-reservation .product {
    display: flex !important;
    flex-direction: column !important;
}
.interface-reservation .summary.entry-summary,
.interface-reservation .fusion-summary-column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* WC variation native cachée */
.interface-reservation .single_variation_wrap {
    display: none !important;
}

/* ============================================================
   2. WRAPPER PRINCIPAL — layout 2 colonnes
   ============================================================ */
.feb-reservation-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    font-family: var(--awb-typography5-font-family, "Sen", sans-serif);
    color: #080808;
}

@media (max-width: 768px) {
    .feb-reservation-wrapper {
        padding: 20px 16px 40px;
    }
}

/* ============================================================
   3. HEADER — breadcrumb + bouton fermer
   ============================================================ */
.feb-reservation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 0;
}

.feb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.feb-breadcrumb-item {
    color: #999;
    cursor: default;
    transition: color 0.2s;
}

.feb-breadcrumb-item.is-done {
    color: #080808;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.feb-breadcrumb-item.is-active {
    color: #080808;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

.feb-breadcrumb-sep {
    color: #999;
    font-size: 0.85rem;
}

.feb-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #080808;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: opacity 0.15s;
}
.feb-close:hover { opacity: 0.6; }

/* ============================================================
   4. BODY — grille main + sidebar
   ============================================================ */
.feb-reservation-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .feb-reservation-body {
        grid-template-columns: 1fr 320px;
        gap: 60px;
    }
}

@media (min-width: 1200px) {
    .feb-reservation-body {
        grid-template-columns: 1fr 360px;
    }
}

/* ============================================================
   5. SIDEBAR — exposition + conditions
   ============================================================ */
.feb-reservation-sidebar {
    order: -1;
}
@media (min-width: 992px) {
    .feb-reservation-sidebar {
        order: 0;
        position: sticky;
        top: 30px;
        align-self: start;
    }
}

.feb-exhibition-card {
    border: 1px solid #080808;
    padding: 22px 24px;
    margin-bottom: 28px;
}

.feb-exhibition-title {
    margin: 0;
    font-family: var(--awb-typography1-font-family, inherit);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: #080808;
}

.feb-conditions {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #555;
}
.feb-conditions p {
    margin: 0 0 18px;
    color: #555;
}
.feb-conditions p:last-child { margin-bottom: 0; }
.feb-conditions a {
    color: #080808;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.feb-conditions a:hover { color: #008236; }

/* ============================================================
   6. MAIN — titre étape + divider
   ============================================================ */
.feb-reservation-main {
    min-width: 0; /* permet aux enfants de shrinker */
}

.feb-step {
    display: none;
}
.feb-step.is-active {
    display: block;
}

.feb-step-title {
    font-family: var(--awb-typography1-font-family, inherit);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 16px;
    color: #080808;
}

.feb-step-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.5;
    max-width: 560px;
}

.feb-step-divider {
    border: none;
    border-top: 1px solid #080808;
    margin: 0 0 30px;
}

.feb-substep-title {
    font-family: var(--awb-typography1-font-family, inherit);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 36px 0 16px;
    color: #555;
}

/* ============================================================
   7. CALENDRIER — header (mois/année + flèches)
   ============================================================ */
.feb-calendar {
    margin-bottom: 24px;
}

.feb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 0 4px;
}

.feb-calendar-month-label {
    font-family: var(--awb-typography1-font-family, inherit);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #080808;
}

.feb-calendar-nav {
    display: flex;
    gap: 4px;
}

.feb-cal-arrow {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 22px;
    color: #080808;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: opacity 0.15s;
}
.feb-cal-arrow:hover { opacity: 0.5; }
.feb-cal-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* ============================================================
   8. CALENDRIER — grille (style LV : cellules bordurées)
   ============================================================ */
.feb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-collapse: collapse;
}

.feb-weekday {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #080808;
    padding: 8px 0 14px;
    text-transform: capitalize;
}

.feb-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #ccc;
    border: 1px solid #e5e5e5;
    margin-left: -1px;
    margin-top: -1px;
    background: #fff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.feb-day.is-empty {
    background: transparent;
    border-color: transparent;
}

.feb-day.is-other-month {
    color: #ccc;
}

.feb-day.is-available {
    color: #080808;
    cursor: pointer;
    font-weight: 400;
}

.feb-day.is-available:hover {
    background: #fafafa;
    border-color: #080808;
    z-index: 1;
    position: relative;
}

.feb-day.is-selected {
    background: #080808 !important;
    color: #fff !important;
    border-color: #080808 !important;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

/* ============================================================
   9. CRÉNEAUX HORAIRES — boutons rectangulaires bordurés
   ============================================================ */
.feb-time-slots {
    margin-top: 32px;
}

.feb-slot-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0;
    border-collapse: collapse;
    max-width: 480px;
}

.feb-slot {
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-left: -1px;
    margin-top: -1px;
    padding: 14px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #080808;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.feb-slot:hover {
    background: #fafafa;
    border-color: #080808;
    z-index: 1;
    position: relative;
}

.feb-slot.is-selected {
    background: #080808 !important;
    color: #fff !important;
    border-color: #080808 !important;
    z-index: 2;
    position: relative;
}

/* ============================================================
   10. ACTIONS — boutons footer (VALIDER, CONTINUER, etc.)
   ============================================================ */
.feb-step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.feb-step-actions--double {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---- Bouton primaire (VALIDER, PASSER AU PAIEMENT) ---- */
.feb-btn-primary {
    background: #555;
    color: #fff;
    border: 1px solid #555;
    border-radius: 999px;
    padding: 13px 36px;
    font-family: var(--awb-typography1-font-family, inherit);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.feb-btn-primary:hover:not(:disabled) {
    background: #080808;
    border-color: #080808;
}
.feb-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Bouton secondaire (CONTINUER LES ACHATS) ---- */
.feb-btn-secondary {
    background: transparent;
    color: #080808;
    border: none;
    padding: 8px 0;
    font-family: var(--awb-typography1-font-family, inherit);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.feb-btn-secondary:hover { opacity: 0.6; }
.feb-btn-secondary::after {
    content: "›";
    font-size: 1.1em;
    line-height: 1;
}

/* ============================================================
   11. BILLETS — lignes avec séparation fine
   ============================================================ */
.feb-ticket-rows {
    margin: 0 0 8px;
}

.feb-ticket-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #e5e5e5;
}
.feb-ticket-row:first-child {
    border-top: 1px solid #e5e5e5;
}

.feb-ticket-info {
    min-width: 0;
}

.feb-ticket-name {
    display: inline;
    font-size: 1rem;
    font-weight: 400;
    color: #080808;
    line-height: 1.4;
}

.feb-ticket-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    border-radius: 50%;
    font-size: 11px;
    color: #999;
    margin-left: 8px;
    cursor: help;
    font-style: italic;
    font-family: serif;
}

.feb-ticket-price {
    font-size: 1rem;
    font-weight: 500;
    color: #080808;
    text-align: right;
    min-width: 50px;
}

.feb-ticket-qty-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feb-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #999;
    border-radius: 50%;
    background: #fff;
    color: #080808;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.feb-qty-btn:hover {
    background: #080808;
    color: #fff;
    border-color: #080808;
}

.feb-qty-input {
    width: 28px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #080808;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}
.feb-qty-input::-webkit-outer-spin-button,
.feb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.feb-qty-input[type=number] { -moz-appearance: textfield; }
.feb-qty-input:focus { outline: none; }

/* ============================================================
   12. TOTAL + LOADING + MESSAGES
   ============================================================ */
.feb-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 24px 0;
    border-top: 1px solid #080808;
    margin-top: 16px;
    font-size: 1rem;
}
.feb-cart-total-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.feb-cart-total-amount {
    font-weight: 600;
    font-size: 1.2rem;
}

.feb-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: feb-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}
@keyframes feb-spin {
    to { transform: rotate(360deg); }
}

.feb-error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border-left: 3px solid #c62828;
    color: #991b1b;
    font-size: 0.9rem;
    border-radius: 4px;
}
.feb-error-msg button {
    background: transparent;
    border: 1px solid #c62828;
    color: #c62828;
    padding: 6px 14px;
    margin-left: 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
}

/* ============================================================
   13. MOBILE — adaptations
   ============================================================ */
@media (max-width: 600px) {
    .feb-step-title {
        font-size: 1.4rem;
    }
    .feb-day {
        font-size: 0.8rem;
    }
    .feb-weekday {
        font-size: 0.75rem;
    }
    .feb-ticket-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "info  price"
            "qty   qty";
        gap: 12px;
        padding: 18px 0;
    }
    .feb-ticket-info { grid-area: info; }
    .feb-ticket-price { grid-area: price; }
    .feb-ticket-qty-controls {
        grid-area: qty;
        justify-content: flex-end;
    }
    .feb-step-actions--double {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .feb-btn-primary,
    .feb-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}