/**
 * Booking Tunnel Widget Styles
 * Multi-step reservation funnel for MICE
 */

/* ==========================================
   WRAPPER
   ========================================== */
.leo-tunnel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.leo-tunnel-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.leo-tunnel-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #E8E8E8;
    min-width: 80px;
}

.leo-tunnel-step-indicator .leo-tunnel-step-icon {
    font-size: 20px;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.leo-tunnel-step-indicator .leo-tunnel-step-icon svg {
    width: 20px;
    height: 20px;
    fill: #999;
    transition: fill 0.3s ease;
}

.leo-tunnel-step-indicator .leo-tunnel-step-label {
    display: none;
}

.leo-tunnel-step-indicator.active {
    background-color: #E5A92E;
}

.leo-tunnel-step-indicator.active .leo-tunnel-step-icon,
.leo-tunnel-step-indicator.completed .leo-tunnel-step-icon {
    color: #fff;
}

.leo-tunnel-step-indicator.active .leo-tunnel-step-icon svg,
.leo-tunnel-step-indicator.completed .leo-tunnel-step-icon svg {
    fill: #fff;
}

.leo-tunnel-step-indicator.active .leo-tunnel-step-label,
.leo-tunnel-step-indicator.completed .leo-tunnel-step-label {
    color: #fff;
}

.leo-tunnel-step-indicator.completed {
    background-color: #0B0B68;
}

.leo-tunnel-step-connector {
    width: 40px;
    height: 3px;
    background-color: #E8E8E8;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.leo-tunnel-step-connector.completed {
    background-color: #0B0B68;
}

/* ==========================================
   ÉTAPE 0 — INTRODUCTION ÉTABLISSEMENT
   ========================================== */
.leo-tunnel-intro-card {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0B0B68;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.leo-tunnel-intro-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leo-tunnel-intro-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.75));
    pointer-events: none;
}

.leo-tunnel-intro-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}

.leo-tunnel-intro-card-name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.leo-tunnel-intro-card-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.leo-tunnel-intro-meta-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.leo-tunnel-intro-meta-item i {
    font-size: 13px;
}

.leo-tunnel-intro-question {
    text-align: center;
    margin-bottom: 24px;
}

.leo-tunnel-intro-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.leo-tunnel-intro-btn-direct {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background-color: #E5A92E;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.leo-tunnel-intro-btn-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 46, 0.35);
    filter: brightness(1.05);
}

.leo-tunnel-intro-btn-discover {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: transparent;
    color: #0B0B68;
    border: 2px solid #0B0B68;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.leo-tunnel-intro-btn-discover:hover {
    background-color: #0B0B68;
    color: #fff;
}

/* ==========================================
   STEPS CONTAINER
   ========================================== */
.leo-tunnel-steps {
    background-color: #fff;
    border-radius: 15px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   STEP TRANSITIONS
   ========================================== */
.leo-tunnel-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.leo-tunnel-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.leo-tunnel-step.leaving-left {
    display: block;
    opacity: 0;
    transform: translateX(-30px);
}

.leo-tunnel-step.entering-right {
    display: block;
    opacity: 0;
    transform: translateX(30px);
}

.leo-tunnel-step.entering-left {
    display: block;
    opacity: 0;
    transform: translateX(-30px);
}

/* ==========================================
   STEP TITLES
   ========================================== */
.leo-tunnel-step-title {
    font-size: 28px;
    font-weight: 700;
    color: #0B0B68;
    margin: 0 0 10px 0;
    text-align: center;
}

.leo-tunnel-step-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
}

.leo-tunnel-step-title + .leo-tunnel-env-grid,
.leo-tunnel-step-title + .leo-tunnel-participants,
.leo-tunnel-step-title + .leo-tunnel-dates,
.leo-tunnel-step-title + .leo-tunnel-form {
    margin-top: 30px;
}

/* ==========================================
   ÉTAPES 1 & 2 — IMAGES OBLIQUES
   ========================================== */
.leo-tunnel-env-grid {
    display: flex;
    gap: 15px;
    overflow: hidden;
    margin-top: 30px;
}

.leo-tunnel-env-card,
.leo-tunnel-event-card {
    flex: 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

/* Pseudo-element overlay sur toutes les images (invisible par défaut) */
.leo-tunnel-env-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Quand une sélection existe → overlay visible sur les cartes NON sélectionnées */
.leo-tunnel-env-grid.has-selection .leo-tunnel-env-card:not(.selected) .leo-tunnel-env-image::after,
.leo-tunnel-env-grid.has-selection .leo-tunnel-event-card:not(.selected) .leo-tunnel-env-image::after {
    opacity: 1;
}

/* Au survol d'une carte non sélectionnée → overlay réduit de moitié */
.leo-tunnel-env-grid.has-selection .leo-tunnel-env-card:not(.selected):hover .leo-tunnel-env-image::after,
.leo-tunnel-env-grid.has-selection .leo-tunnel-event-card:not(.selected):hover .leo-tunnel-env-image::after {
    opacity: 0.5;
}

.leo-tunnel-env-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.leo-tunnel-env-card:first-child .leo-tunnel-env-image,
.leo-tunnel-event-card:first-child .leo-tunnel-env-image {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.leo-tunnel-env-card:last-child .leo-tunnel-env-image,
.leo-tunnel-event-card:last-child .leo-tunnel-env-image {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.leo-tunnel-env-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.leo-tunnel-env-card:hover .leo-tunnel-env-image img,
.leo-tunnel-event-card:hover .leo-tunnel-env-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.leo-tunnel-env-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.6));
    transition: background 0.4s ease;
    pointer-events: none;
}

.leo-tunnel-env-card:hover .leo-tunnel-env-overlay,
.leo-tunnel-event-card:hover .leo-tunnel-env-overlay {
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.4));
}

.leo-tunnel-env-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    pointer-events: none;
}


/* ==========================================
   ÉTAPE 3 — COMPTEUR PARTICIPANTS
   ========================================== */
.leo-tunnel-participants {
    max-width: 500px;
    margin: 30px auto 0;
}

.leo-tunnel-counter-group {
    margin-bottom: 40px;
}

.leo-tunnel-counter-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #0B0B68;
    margin-bottom: 20px;
    text-align: center;
}

.leo-tunnel-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.leo-tunnel-counter-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #0B0B68;
    background: transparent;
    color: #0B0B68;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.leo-tunnel-counter-btn:hover {
    background-color: #0B0B68;
    color: #fff;
}

.leo-tunnel-counter-btn:focus,
.leo-tunnel-counter-btn:active {
    background-color: #E5A92E !important;
    border-color: #E5A92E !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.leo-tunnel-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.leo-tunnel-counter-btn:disabled:hover {
    background: transparent;
    color: #0B0B68;
}

.leo-tunnel-counter-value {
    font-size: 48px;
    font-weight: 800;
    color: #E5A92E;
    min-width: 100px;
    text-align: center;
    line-height: 1;
}

/* Range slider */
.leo-tunnel-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #E0E0E0;
    border-radius: 3px;
    outline: none;
}

.leo-tunnel-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #E5A92E;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.leo-tunnel-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.leo-tunnel-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #E5A92E;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.leo-tunnel-range::-moz-range-track {
    background: #E0E0E0;
    border-radius: 3px;
    height: 6px;
}

/* ==========================================
   ÉTAPE 4 — DATE PICKER
   ========================================== */
.leo-tunnel-dates {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.leo-tunnel-date-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.leo-tunnel-date-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0B0B68;
    margin-bottom: 8px;
}

.leo-tunnel-date-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.leo-tunnel-date-field input:focus {
    border-color: #E5A92E;
    outline: none;
}

.leo-tunnel-flexible {
    width: 100%;
    margin-top: 10px;
}

.leo-tunnel-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.leo-tunnel-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #E5A92E;
    cursor: pointer;
}

/* ==========================================
   ÉTAPE 5 — FORMULAIRE
   ========================================== */
.leo-tunnel-form {
    max-width: 700px;
    margin: 30px auto 0;
}

.leo-tunnel-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.leo-tunnel-form-field {
    flex: 1;
}

.leo-tunnel-form-field-full {
    width: 100%;
}

.leo-tunnel-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0B0B68;
    margin-bottom: 6px;
}

.leo-tunnel-form input,
.leo-tunnel-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.leo-tunnel-form input:focus,
.leo-tunnel-form textarea:focus {
    border-color: #E5A92E;
    outline: none;
}

.leo-tunnel-form input::placeholder,
.leo-tunnel-form textarea::placeholder {
    color: #999;
}

.leo-tunnel-form textarea {
    resize: vertical;
    min-height: 80px;
}

.leo-tunnel-form-field.has-error input,
.leo-tunnel-form-field.has-error textarea {
    border-color: #e74c3c;
}

.leo-tunnel-checkbox-wrapper {
    margin-top: 20px;
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */
.leo-tunnel-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.leo-tunnel-btn-prev,
.leo-tunnel-btn-next,
.leo-tunnel-btn-submit {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leo-tunnel-btn-prev {
    background-color: transparent;
    color: #0B0B68;
    border: 2px solid #0B0B68;
}

.leo-tunnel-btn-prev:hover {
    background-color: #0B0B68;
    color: #fff;
}

.leo-tunnel-btn-next,
.leo-tunnel-btn-submit {
    background-color: #E5A92E;
    color: #fff;
    margin-left: auto;
}

.leo-tunnel-btn-next:hover,
.leo-tunnel-btn-submit:hover {
    background-color: #d49a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(229, 169, 46, 0.3);
}

.leo-tunnel-btn-next:disabled,
.leo-tunnel-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.leo-tunnel-btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.leo-tunnel-btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: leo-tunnel-spin 0.6s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes leo-tunnel-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
    .leo-tunnel-intro-card {
        height: 240px;
    }

    .leo-tunnel-intro-card-name {
        font-size: 22px;
    }

    .leo-tunnel-intro-btn-direct {
        padding: 14px 20px;
    }

    .leo-tunnel-intro-btn-discover {
        padding: 12px 20px;
    }

    .leo-tunnel-progress {
        margin-bottom: 30px;
    }

    .leo-tunnel-step-connector {
        width: 24px;
    }

    .leo-tunnel-step-indicator {
        padding: 10px 16px;
        min-width: 60px;
    }

    .leo-tunnel-step-title {
        font-size: 24px;
    }

    .leo-tunnel-step-title + .leo-tunnel-env-grid,
    .leo-tunnel-step-title + .leo-tunnel-participants,
    .leo-tunnel-step-title + .leo-tunnel-dates,
    .leo-tunnel-step-title + .leo-tunnel-form {
        margin-top: 20px;
    }

    .leo-tunnel-env-grid {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 20px;
    }

    .leo-tunnel-env-card,
    .leo-tunnel-event-card {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .leo-tunnel-env-image {
        height: 180px;
        clip-path: none !important;
        border-radius: 12px;
    }

    .leo-tunnel-env-label {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {

    .leo-tunnel-intro-card {
        height: 200px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .leo-tunnel-intro-card-content {
        padding: 20px;
    }

    .leo-tunnel-intro-card-name {
        font-size: 20px;
    }

    .leo-tunnel-intro-card-meta {
        gap: 14px;
    }

    .leo-tunnel-intro-meta-item {
        font-size: 13px;
    }

    .leo-tunnel-intro-question {
        margin-bottom: 16px;
    }

    .leo-tunnel-intro-btn-direct {
        padding: 14px 16px;
        font-size: 15px;
    }

    .leo-tunnel-intro-btn-discover {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* --- Progress bar: cercles compacts + connecteurs fins --- */
    .leo-tunnel-progress {
        flex-wrap: nowrap;
        gap: 0;
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .leo-tunnel-step-connector {
        display: block;
        flex: 1;
        height: 2px;
        min-width: 0;
    }

    .leo-tunnel-step-indicator {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        flex: none;
    }

    .leo-tunnel-step-indicator .leo-tunnel-step-icon {
        font-size: 15px;
    }

    .leo-tunnel-step-indicator .leo-tunnel-step-icon svg {
        width: 15px;
        height: 15px;
    }

    /* --- Steps container --- */
    .leo-tunnel-steps {
        min-height: auto;
        border-radius: 10px;
    }

    /* --- Titles --- */
    .leo-tunnel-step-title {
        font-size: 20px;
        margin: 0 0 4px 0;
    }

    .leo-tunnel-step-subtitle {
        font-size: 14px;
        margin: 0 0 12px 0;
    }

    .leo-tunnel-step-title + .leo-tunnel-env-grid,
    .leo-tunnel-step-title + .leo-tunnel-participants,
    .leo-tunnel-step-title + .leo-tunnel-dates,
    .leo-tunnel-step-title + .leo-tunnel-form {
        margin-top: 14px;
    }

    /* --- Transitions plus courtes --- */
    .leo-tunnel-step { transform: translateX(15px); }
    .leo-tunnel-step.leaving-left { transform: translateX(-15px); }
    .leo-tunnel-step.entering-right { transform: translateX(15px); }
    .leo-tunnel-step.entering-left { transform: translateX(-15px); }

    /* --- Cartes images: grille 2 colonnes --- */
    .leo-tunnel-env-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 14px;
    }

    .leo-tunnel-env-card,
    .leo-tunnel-event-card {
        flex: none;
        width: auto;
    }

    .leo-tunnel-env-image {
        height: 110px;
        clip-path: none !important;
        border-radius: 10px;
    }

    .leo-tunnel-env-label {
        font-size: 13px;
        letter-spacing: 0.8px;
        bottom: 12px;
    }

    /* Carte seule en fin de grille → pleine largeur */
    .leo-tunnel-env-card:last-child:nth-child(odd),
    .leo-tunnel-event-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .leo-tunnel-env-card:last-child:nth-child(odd) .leo-tunnel-env-image,
    .leo-tunnel-event-card:last-child:nth-child(odd) .leo-tunnel-env-image {
        height: 100px;
    }

    /* --- Compteur participants --- */
    .leo-tunnel-participants {
        margin-top: 14px;
    }

    .leo-tunnel-counter-group {
        margin-bottom: 24px;
    }

    .leo-tunnel-counter-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .leo-tunnel-counter {
        gap: 20px;
        margin-bottom: 14px;
    }

    .leo-tunnel-counter-value {
        font-size: 36px;
        min-width: 70px;
    }

    .leo-tunnel-range::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .leo-tunnel-range::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    /* --- Date picker --- */
    .leo-tunnel-dates {
        flex-direction: column;
        gap: 12px;
        margin-top: 14px;
    }

    .leo-tunnel-date-field {
        min-width: 0;
    }

    .leo-tunnel-date-field label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .leo-tunnel-date-field input {
        padding: 12px 14px;
        font-size: 15px;
    }

    /* --- Formulaire --- */
    .leo-tunnel-form {
        margin-top: 14px;
    }

    .leo-tunnel-form-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .leo-tunnel-form label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .leo-tunnel-form input,
    .leo-tunnel-form textarea {
        padding: 12px 14px;
        font-size: 15px;
    }

    .leo-tunnel-form textarea {
        min-height: 70px;
    }

    /* --- Navigation: côte à côte, Précédent compact, Suivant dominant --- */
    .leo-tunnel-navigation {
        flex-direction: row;
        margin-top: 20px;
        gap: 10px;
    }

    .leo-tunnel-btn-prev,
    .leo-tunnel-btn-next,
    .leo-tunnel-btn-submit {
        padding: 14px 16px;
        font-size: 15px;
        text-align: center;
        margin-left: 0;
    }

    .leo-tunnel-btn-prev {
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .leo-tunnel-btn-next,
    .leo-tunnel-btn-submit {
        flex: 1 1 0%;
    }
}

/* --- Petit mobile (≤ 480px) --- */
@media (max-width: 480px) {

    .leo-tunnel-intro-card {
        height: 170px;
        border-radius: 10px;
    }

    .leo-tunnel-intro-card-content {
        padding: 16px;
    }

    .leo-tunnel-intro-card-name {
        font-size: 17px;
    }

    .leo-tunnel-intro-card-meta {
        gap: 10px;
    }

    .leo-tunnel-intro-meta-item {
        font-size: 12px;
    }

    .leo-tunnel-intro-btn-direct {
        padding: 13px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .leo-tunnel-intro-btn-discover {
        padding: 11px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .leo-tunnel-progress {
        padding: 0;
    }

    .leo-tunnel-step-indicator {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .leo-tunnel-step-indicator .leo-tunnel-step-icon {
        font-size: 13px;
    }

    .leo-tunnel-step-indicator .leo-tunnel-step-icon svg {
        width: 13px;
        height: 13px;
    }

    .leo-tunnel-step-title {
        font-size: 18px;
    }

    .leo-tunnel-step-subtitle {
        font-size: 13px;
    }

    .leo-tunnel-env-grid {
        gap: 6px;
    }

    .leo-tunnel-env-image {
        height: 95px;
    }

    .leo-tunnel-env-card:last-child:nth-child(odd) .leo-tunnel-env-image,
    .leo-tunnel-event-card:last-child:nth-child(odd) .leo-tunnel-env-image {
        height: 85px;
    }

    .leo-tunnel-env-label {
        font-size: 11px;
        letter-spacing: 0.5px;
        bottom: 8px;
    }

    .leo-tunnel-counter {
        gap: 14px;
    }

    .leo-tunnel-counter-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .leo-tunnel-counter-value {
        font-size: 30px;
        min-width: 55px;
    }

    .leo-tunnel-btn-prev,
    .leo-tunnel-btn-next,
    .leo-tunnel-btn-submit {
        padding: 13px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* --- Très petit écran (≤ 360px) --- */
@media (max-width: 360px) {

    .leo-tunnel-intro-card {
        height: 140px;
    }

    .leo-tunnel-intro-card-name {
        font-size: 15px;
    }

    .leo-tunnel-step-indicator {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .leo-tunnel-step-indicator .leo-tunnel-step-icon {
        font-size: 12px;
    }

    .leo-tunnel-step-indicator .leo-tunnel-step-icon svg {
        width: 12px;
        height: 12px;
    }

    .leo-tunnel-env-image {
        height: 80px;
    }

    .leo-tunnel-env-card:last-child:nth-child(odd) .leo-tunnel-env-image,
    .leo-tunnel-event-card:last-child:nth-child(odd) .leo-tunnel-env-image {
        height: 75px;
    }

    .leo-tunnel-step-title {
        font-size: 16px;
    }

    .leo-tunnel-counter-value {
        font-size: 26px;
    }

    /* Boutons empilés si vraiment trop étroit */
    .leo-tunnel-navigation {
        flex-direction: column-reverse;
    }

    .leo-tunnel-btn-prev {
        width: 100%;
    }
}

/* ==========================================
   Z-INDEX — Elementor Popup Compatibility
   ========================================== */

/* SweetAlert2 must be above Elementor popups (z-index: 9999999) */
.swal2-container {
    z-index: 100000000 !important;
}

/* SweetAlert2 button — force brand color */
.swal2-confirm.swal2-styled {
    background-color: #E5A92E !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

.swal2-confirm.swal2-styled:hover,
.swal2-confirm.swal2-styled:focus {
    background-color: #d49a28 !important;
}

/* Flatpickr calendar must be above Elementor popups */
.flatpickr-calendar {
    z-index: 100000000 !important;
}
