/* ============================================
   CHECKOUT STYLES - Variables & Reset
   ============================================ */

:root {
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --paypal-color: #0070ba;
    --stripe-color: #635bff;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section-checkout {
    height: 85vh !important;
    position: relative;
    overflow: hidden;
}

.hero-section {
    background: linear-gradient(
        135deg,
        var(--color-primary-darker) 0%,
        var(--color-primary) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.2) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

#checkoutTab {
    background: var(--color-gray-50);
    border-bottom: 2px solid var(--color-gray-200);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

#billing-form {
    padding: 2.5rem;
    background: var(--bg-white);
    border-bottom: 2px solid var(--color-gray-200);
}

.checkout-card {
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-gray-200);
    background: var(--bg-white);
    overflow: hidden;
}

/* ============================================
   NAVIGATION TABS
   ============================================ */

#checkoutTab .nav-link {
    padding: 0rem 1.75rem;
    border-radius: var(--radius-lg);
    margin: 0.5rem;
    transition: var(--transition-cubic);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-600);
    border: 2px solid transparent;
    background: var(--color-gray-50);
}

#checkoutTab .nav-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        135deg,
        var(--color-gray-100) 0%,
        var(--color-gray-200) 100%
    );
    font-size: 1.1rem;
    transition: var(--transition-cubic);
    color: var(--color-gray-700);
}

#checkoutTab .nav-link.active {
    color: var(--color-primary-darker);
    background: var(--color-gray-50);
}

#checkoutTab .nav-link.active i {
    background: var(--color-primary-darker);
    color: var(--color-accent-gold);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#checkoutTab .nav-link.disabled {
    background: var(--color-gray-50);
    pointer-events: none;
    opacity: 0.5;
    color: var(--color-gray-700);
}

/* ============================================
   RESTAURANT INFO CARD
   ============================================ */

.restaurant-info-card {
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-accent-gold);
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.05) 0%,
        rgba(255, 160, 122, 0.03) 100%
    );
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.info-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-circle i {
    font-size: 1.75rem;
    color: white;
}

.restaurant-detail-box {
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-accent-gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.location-info {
    color: var(--color-primary-darker);
}

.location-info div {
    color: var(--color-gray-700);
    font-weight: 500;
}

/* ============================================
   PAYMENT METHOD CARDS
   ============================================ */

.payment-header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.payment-header-icon i {
    font-size: 2rem;
    color: white;
}

.payment-method-card {
    position: relative;
    background: white;
    border: 3px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.payment-method-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--color-gray-300),
        var(--color-gray-200)
    );
    transition: all 0.3s ease;
}

.payment-method-card[data-method="paypal"]::before {
    background: linear-gradient(90deg, #0070ba, #003087);
}

.payment-method-card[data-method="stripe"]::before {
    background: linear-gradient(90deg, #635bff, #0a2540);
}

.payment-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--color-gray-300);
}

.payment-method-card.selected {
    border-color: var(--color-accent-gold);
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.05) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.payment-method-card.selected::before {
    background: linear-gradient(
        90deg,
        var(--color-accent-gold),
        #e6c200
    ) !important;
    height: 6px;
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.payment-method-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-method-icon.paypal {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
}

.payment-method-icon.stripe {
    background: linear-gradient(135deg, #635bff 0%, #0a2540 100%);
}

.payment-method-info {
    flex: 1;
}

.payment-method-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.payment-method-desc {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin: 0;
}

.payment-method-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-gray-700);
}

.feature-item i {
    font-size: 1.1rem;
    color: var(--color-accent-gold);
    flex-shrink: 0;
}

.payment-method-check {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    color: var(--color-gray-300);
    transition: all 0.3s ease;
}

.payment-method-card.selected .payment-method-check {
    color: var(--color-accent-gold);
    transform: scale(1.1);
}

.security-badge {
    background: linear-gradient(
        135deg,
        rgba(127, 168, 119, 0.08) 0%,
        rgba(155, 193, 148, 0.08) 100%
    );
    border: 2px solid rgba(127, 168, 119, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-success);
    font-weight: 600;
}

.security-badge i {
    font-size: 1.25rem;
    vertical-align: middle;
}

/* ============================================
   TIME SLOTS
   ============================================ */

.time-slot {
    cursor: pointer;
    transition: var(--transition-cubic);
    padding: 0rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    background: white;
    position: relative;
    color: var(--color-gray-700);
}

.time-slot:hover:not(.disabled) {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.08),
        rgba(255, 160, 122, 0.08)
    );
    border-color: var(--color-accent-gold);
}

.time-slot.selected {
    background: linear-gradient(
        135deg,
        var(--color-accent-gold) 0%,
        #e6c200 100%
    );
    color: var(--color-primary-darker);
    border-color: var(--color-accent-gold);
    font-weight: 700;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
}

.time-slot i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.service-section {
    margin: 2rem 0px;
}

.service-time-section {
    margin-bottom: 0rem;
    padding-bottom: 2rem;
}

.service-time-section:last-child {
    margin-top: 0rem;
}

.service-time-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.service-time-header i {
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg,
        var(--color-accent-gold) 0%,
        #e6c200 100%
    );
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary-darker);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* ============================================
   CHECKOUT ITEMS
   ============================================ */

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--color-accent-gold);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.checkout-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    border: 2px solid var(--color-accent-gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.checkout-item-price {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.checkout-qty-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.75rem 1rem;
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary-darker);
}

.checkout-item-total-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-darker);
    min-width: 100px;
    text-align: right;
}

.garniture-checkout-item {
    margin-left: 2.5rem;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.05) 0%,
        rgba(255, 160, 122, 0.05) 100%
    );
    border-color: var(--color-accent-gold);
    border-left: 4px solid var(--color-accent-gold);
    opacity: 0.95;
}

.garniture-checkout-item .checkout-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.checkout-item-left {
    align-items: center;
    display: flex;
    gap: 10px;
}

.qty-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* ============================================
   SUMMARY & TOTALS
   ============================================ */

.commande-container h4 {
    padding: 2.5rem 2.5rem 0 2.5rem;
}

.commande-container #checkout-order-list {
    padding: 1rem 2.5rem;
}

.checkout-summary-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin: 0px 2.5rem 2.5rem 2.5rem;
    border: 2px solid var(--color-accent-gold);
}

.summary-content {
    padding: 1rem 2.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--color-gray-700);
    border: none;
    padding-bottom: 10px;
}

.summary-row span:first-child {
    font-weight: 600;
    color: var(--color-gray-700);
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--color-primary-darker);
    font-size: 1.05rem;
}

.summary-row.discount {
    color: var(--color-success);
    padding-bottom: 0px;
}

.summary-row.discount span:first-child {
    color: var(--color-success);
}

.summary-row.discount span:last-child {
    color: var(--color-success);
    font-weight: 700;
}

.summary-row.total {
    border-top: 3px solid var(--color-accent-gold);
    font-size: 1.25rem;
}

.summary-row.total .total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    padding: 10px 2.5rem 0px 2.5rem;
}

.summary-row.total span:first-child {
    font-weight: 700;
    color: var(--color-primary-darker);
}

.summary-row.total span:last-child {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent-gold);
}

/* ============================================
   DISCOUNT PROGRESS
   ============================================ */

.discount-info-box {
    margin: 0px 2.5rem 2rem 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(127, 168, 119, 0.08) 0%,
        rgba(155, 193, 148, 0.08) 100%
    );
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gray-200);
    border-left: 5px solid var(--color-success);
}

.discount-message {
    font-size: 0.95rem;
    color: var(--color-success);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-wrapper {
    height: 14px;
    border-radius: var(--radius-lg);
    background: var(--color-gray-200);
    overflow: hidden;
    border: 1px solid var(--color-gray-300);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-success) 0%,
        var(--color-success-light) 100%
    );
    border-radius: var(--radius-lg);
    transition: width 0.4s ease;
    box-shadow: 0 2px 4px rgba(127, 168, 119, 0.3);
}

/* ============================================
   ALERTS
   ============================================ */

.service-closed-alert {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid var(--color-accent-gold);
    color: var(--color-primary-darker);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.alert-danger {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border: 2px solid #dc3545;
    border-left: 5px solid #dc3545;
}

.alert-info {
    background: var(--bg-white);
    border: 2px solid var(--color-accent-gold) !important;
    border-left: 5px solid var(--color-accent-gold) !important;
    color: var(--color-gray-700);
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: 0.95rem 1.1rem;
    transition: var(--transition-cubic);
    background: white;
    color: var(--color-gray-800);
    font-weight: 500;
}

.form-control::placeholder {
    color: var(--color-gray-400);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-checkout {
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: var(--transition-cubic);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.footer-checkout {
    background: var(--color-gray-50);
    border-top: 2px solid var(--color-gray-200);
}

.btn-checkout.btn-primary {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    border: 2px solid transparent;
    color: var(--bg-white);
}

.btn-checkout.btn-primary:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-checkout.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-checkout.btn-light {
    background: var(--bg-white);
    border: 2px solid var(--color-gray-300);
    color: var(--color-gray-700);
}

.btn-checkout.btn-light:hover {
    background: var(--color-gray-100);
    border-color: var(--color-accent-gold);
    color: var(--color-primary-darker);
}

/* ============================================
   PAYMENT & CONFIRMATION
   ============================================ */

.confirmation-icon {
    font-size: 5rem;
    color: var(--color-success);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-section h3 {
    color: var(--color-primary-darker);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   BOOTSTRAP DATEPICKER CUSTOM
   ============================================ */

.datepicker {
    border-radius: 0;
    padding: 0;
}

.datepicker-days table thead,
.datepicker-days table tbody,
.datepicker-days table tfoot {
    padding: 5px;
    display: list-item;
}

.datepicker-days table thead,
.datepicker-months table thead,
.datepicker-years table thead,
.datepicker-decades table thead,
.datepicker-centuries table thead {
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 0;
}

.datepicker-days table thead tr:nth-child(2n + 0) td,
.datepicker-days table thead tr:nth-child(2n + 0) th {
    border-radius: 3px;
}

.datepicker-days table thead tr:nth-child(3n + 0) {
    text-transform: uppercase;
    font-weight: 300 !important;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.table-condensed > tbody > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > thead > tr > th {
    padding: 11px 13px;
}

.datepicker-months table thead td,
.datepicker-months table thead th,
.datepicker-years table thead td,
.datepicker-years table thead th,
.datepicker-decades table thead td,
.datepicker-decades table thead th,
.datepicker-centuries table thead td,
.datepicker-centuries table thead th {
    border-radius: 0;
}

.datepicker td,
.datepicker th {
    border-radius: 50%;
    padding: 0 12px;
    width: 45px;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-image: none;
}

.datepicker .prev,
.datepicker .next {
    color: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
    width: 37px;
    height: 37px;
}

.datepicker .prev:hover,
.datepicker .next:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.99);
    font-size: 21px;
}

.datepicker .datepicker-switch {
    font-size: 24px;
    font-weight: 400;
    transition: 0.3s;
}

.datepicker .datepicker-switch:hover {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.datepicker table tr td span {
    border-radius: 2px;
    margin: 3%;
    width: 27%;
}

.datepicker table tr td span.active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover {
    background-color: var(--color-primary);
    background-image: none;
}

.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.datepicker-dropdown.datepicker-orient-top:before {
    border-top: 7px solid rgba(0, 0, 0, 0.1);
}

.datepicker table tr td.today {
    background-image: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    ) !important;
    color: var(--text-white);
}

.datepicker table tr td.today:hover:hover {
    background-image: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 100%
    ) !important;
    color: var(--text-white) !important;
}

.datepicker table tr td.active.active {
    background-color: var(--color-primary);
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */

@media (min-width: 768px) {
    .summary-row span:first-child {
        flex: 1;
    }

    .summary-row span:last-child {
        text-align: right;
        min-width: 120px;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE (iPad, tablettes)
   ============================================ */

@media (max-width: 991px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-section-checkout {
        height: 60vh !important;
    }

    .info-icon-circle {
        width: 60px;
        height: 60px;
    }

    .info-icon-circle i {
        font-size: 1.5rem;
    }

    .payment-header-icon {
        width: 70px;
        height: 70px;
    }

    .payment-header-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero-section-checkout {
        height: 50vh !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    /* Navigation Tabs */
    #checkoutTab {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    #checkoutTab .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        margin: 0.3rem;
    }

    #checkoutTab .nav-link i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #checkoutTab .nav-link span {
        display: none !important;
    }

    /* Restaurant Info */
    .restaurant-info-card {
        padding: 1.5rem !important;
    }

    .restaurant-detail-box {
        padding: 1rem !important;
    }

    .location-info .fw-bold {
        font-size: 1rem;
    }

    .restaurant-detail-box .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    .restaurant-detail-box .btn {
        width: 100%;
        justify-content: center;
    }

    /* Forms */
    #billing-form {
        padding: 1.5rem;
    }

    /* Payment Methods */
    .payment-method-card {
        padding: 1.5rem;
    }

    .payment-method-header {
        flex-direction: row;
        align-items: center;
    }

    .payment-method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .payment-method-title {
        font-size: 1.1rem;
    }

    .payment-method-check {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    /* Checkout Items */
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .checkout-item-left {
        width: 100%;
    }

    .qty-price {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.75rem;
    }

    .checkout-item-image {
        width: 60px;
        height: 60px;
    }

    .garniture-checkout-item {
        margin-left: 0;
        padding-left: 1rem;
    }

    /* Summary */
    .commande-container h4 {
        padding: 1.5rem 1.5rem 0 1.5rem;
        font-size: 1.25rem;
    }

    .commande-container #checkout-order-list {
        padding: 1rem 1.5rem;
    }

    .checkout-summary-box {
        margin: 0 1.5rem 1.5rem 1.5rem;
    }

    .summary-content {
        padding: 1rem 1.5rem;
    }

    .summary-row {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }

    .summary-row span:last-child {
        font-size: 1rem;
    }

    .summary-row.total {
        padding-top: 1rem;
        margin-top: 1rem;
        font-size: 1.1rem;
    }

    .summary-row.total .total-bar {
        flex-direction: row;
        padding: 10px 1.5rem 0 1.5rem;
    }

    .summary-row.total span:last-child {
        font-size: 1.5rem;
    }

    /* Discount */
    .discount-info-box {
        margin: 0 1.5rem 1.5rem 1.5rem;
        padding: 1.25rem;
    }

    /* Buttons */
    .footer-checkout {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem !important;
    }

    .footer-checkout .btn-checkout {
        width: 100%;
        justify-content: center;
    }

    /* Confirmation */
    .confirmation-icon {
        font-size: 3.5rem;
    }

    .confirmation-section h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (Téléphones)
   ============================================ */

@media (max-width: 576px) {
    /* Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hero */
    .hero-section-checkout {
        height: 40vh !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .hero-content p {
        font-size: 0.85rem !important;
    }

    /* Navigation Tabs */
    #checkoutTab {
        padding: 0.75rem !important;
    }

    #checkoutTab .nav-link {
        padding: 0.6rem 0.75rem;
        margin: 0.25rem;
        font-size: 0.75rem;
    }

    #checkoutTab .nav-link i {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Restaurant Info */
    .restaurant-info-card {
        padding: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .restaurant-info-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .info-icon-circle {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }

    .info-icon-circle i {
        font-size: 1.25rem;
    }

    .alert-info {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .restaurant-detail-box {
        padding: 0.75rem !important;
    }

    .location-info .fw-bold {
        font-size: 0.9rem;
    }

    .location-info div {
        font-size: 0.85rem;
    }

    /* Forms */
    #billing-form {
        padding: 1rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .form-control,
    .form-select {
        padding: 0.75rem 0.9rem;
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    /* Time Slots */
    .service-time-header {
        gap: 0.75rem;
    }

    .service-time-header i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-time-header h5 {
        font-size: 1rem;
    }

    .time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Payment Methods */
    .payment-header-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .payment-header-icon i {
        font-size: 1.5rem;
    }

    .payment-method-card {
        padding: 1.25rem;
    }

    .payment-method-header {
        margin-bottom: 1rem;
        gap: 1rem;
    }

    .payment-method-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .payment-method-title {
        font-size: 1rem;
    }

    .payment-method-desc {
        font-size: 0.8rem;
    }

    .feature-item {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .security-badge {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .payment-method-check {
        font-size: 1.25rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Checkout Items */
    .checkout-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .checkout-item-image {
        width: 50px;
        height: 50px;
    }

    .checkout-item-name {
        font-size: 0.95rem;
    }

    .checkout-item-price {
        font-size: 0.8rem;
    }

    .checkout-qty-display {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .checkout-item-total-price {
        font-size: 1rem;
        min-width: 80px;
    }

    .garniture-checkout-item .checkout-item-name {
        font-size: 0.85rem;
    }

    /* Summary */
    .commande-container h4 {
        padding: 1rem 1rem 0 1rem;
        font-size: 1.1rem;
    }

    .commande-container #checkout-order-list {
        padding: 0.75rem 1rem;
    }

    .checkout-summary-box {
        padding: 0;
        margin: 0 1rem 1rem 1rem;
    }

    .summary-content {
        padding: 0.75rem 1rem;
    }

    .summary-row {
        padding: 0.5rem 0;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .summary-row span:last-child {
        font-size: 0.95rem;
    }

    .summary-row.total {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        font-size: 1rem;
    }

    .summary-row.total .total-bar {
        padding: 10px 1rem 0 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .summary-row.total span:first-child {
        width: 100%;
    }

    .summary-row.total span:last-child {
        font-size: 1.35rem;
        width: 100%;
        text-align: right;
    }

    /* Discount */
    .discount-info-box {
        margin: 0 1rem 1rem 1rem;
        padding: 1rem;
    }

    .discount-message {
        font-size: 0.85rem;
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .progress-wrapper {
        height: 12px;
    }

    /* Buttons */
    .btn-checkout {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .footer-checkout {
        padding: 1rem !important;
    }

    /* Confirmation */
    .confirmation-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .confirmation-section h3 {
        font-size: 1.25rem;
    }

    .confirmation-section p {
        font-size: 0.9rem;
    }

    #finished-pane .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Datepicker Mobile */
    .datepicker {
        font-size: 0.85rem;
    }

    .datepicker td,
    .datepicker th {
        width: 35px;
        padding: 0 8px;
    }

    .table-condensed > tbody > tr > td,
    .table-condensed > thead > tr > td {
        padding: 8px 10px;
    }

    .datepicker .datepicker-switch {
        font-size: 1.1rem;
    }
}

/* ============================================
   RESPONSIVE - TRÈS PETITS ÉCRANS (<400px)
   ============================================ */

@media (max-width: 400px) {
    .hero-section-checkout {
        height: 35vh !important;
    }

    .hero-title {
        font-size: 1.25rem !important;
    }

    #checkoutTab .nav-link {
        padding: 0.5rem;
        margin: 0.2rem;
    }

    #checkoutTab .nav-link i {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .checkout-item-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .qty-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .checkout-item-total-price {
        text-align: left;
    }

    .payment-method-card {
        padding: 1rem;
    }

    .payment-method-features {
        gap: 0.5rem;
    }

    .btn-checkout {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   ORIENTATION PAYSAGE (Landscape) - MOBILE
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section-checkout {
        height: 100vh !important;
    }

    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .checkout-card {
        margin-top: 1rem;
    }
}

/* ============================================
   AMÉLIORATIONS TACTILES (Touch devices)
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Augmenter les zones tactiles */
    .btn-checkout {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }

    .time-slot {
        min-height: 48px;
        padding: 0.75rem;
    }

    .payment-method-card {
        min-height: 120px;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    /* Améliorer le feedback tactile */
    .btn-checkout:active {
        transform: scale(0.98);
    }

    .time-slot:active:not(.disabled) {
        transform: scale(0.98);
    }

    .payment-method-card:active {
        transform: scale(0.99);
    }

    /* Désactiver les effets hover sur tactile */
    .btn-checkout:hover,
    .time-slot:hover,
    .payment-method-card:hover {
        transform: none;
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    /* Vous pouvez ajouter un mode sombre ici si souhaité */
}

/* Réduction des animations pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   IMPRESSION
   ============================================ */

@media print {
    .hero-section-checkout,
    #checkoutTab,
    .footer-checkout,
    .btn-checkout {
        display: none !important;
    }

    .checkout-card {
        border: 1px solid #000;
        box-shadow: none;
    }

    .tab-content {
        display: block !important;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .payment-method-card {
        page-break-inside: avoid;
    }
}

/* ============================================
   AMÉLIORATIONS DE PERFORMANCE MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Réduire les ombres pour améliorer les performances */
    .checkout-card,
    .restaurant-info-card,
    .payment-method-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-checkout.btn-primary:hover:not(:disabled) {
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    }

    /* Optimiser les gradients */
    .payment-method-card::before {
        will-change: height;
    }
}

/* ============================================
   FIX POUR LES NAVIGATEURS SPÉCIFIQUES
   ============================================ */

/* Safari iOS - Fix pour le scroll et les inputs */
@supports (-webkit-touch-callout: none) {
    .form-control,
    .form-select {
        font-size: 16px; /* Évite le zoom sur focus */
    }

    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix pour le viewport sur iOS */
    .hero-section-checkout {
        min-height: -webkit-fill-available;
    }
}

/* Fix pour Edge et IE11 */
@supports (-ms-ime-align: auto) {
    .checkout-item {
        display: -ms-flexbox;
    }

    .summary-row {
        display: -ms-flexbox;
    }
}

/* Firefox - Fix pour le scrollbar */
@-moz-document url-prefix() {
    .checkout-card {
        scrollbar-width: thin;
    }
}

/* ============================================
   UTILITAIRES RESPONSIVE SUPPLÉMENTAIRES
   ============================================ */

/* Cacher sur mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Cacher sur desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Largeur complète sur mobile */
@media (max-width: 767px) {
    .full-width-mobile {
        width: 100% !important;
    }
}

/* ============================================
   ANIMATIONS OPTIMISÉES MOBILE
   ============================================ */

@media (max-width: 768px) {
    .confirmation-icon {
        animation-duration: 0.3s;
    }

    .btn-checkout,
    .time-slot,
    .payment-method-card {
        transition-duration: 0.2s;
    }
}

/* ============================================
   RÉSOLUTION HAUTE DÉFINITION (Retina)
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .checkout-item-image,
    .info-icon-circle,
    .payment-method-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   RESPONSIVE GRID TIME SLOTS
   ============================================ */

@media (max-width: 576px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
}

@media (max-width: 400px) {
    .time-slots-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   RÉCAPITULATIF RÉSERVATION - DESIGN AMÉLIORÉ
   ============================================ */

/* Conteneur principal du récapitulatif */
.reservation-summary-box {
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Contenu du récapitulatif */
.reservation-summary-box .row {
    padding: 2rem;
    padding-top: 2.5rem;
}

/* Items individuels du récapitulatif */
.summary-item {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--color-gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Effet hover sur les items */
.summary-item:hover {
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.15);
}

/* Barre latérale colorée */
.summary-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        180deg,
        var(--color-accent-gold) 0%,
        #e6c200 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-item:hover::before {
    opacity: 1;
}

/* Icônes du récapitulatif */
.summary-item i {
    font-size: 1.5rem;
    color: var(--color-accent-gold);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(212, 175, 55, 0.05) 100%
    );
    border-radius: 10px;
    transition: all 0.3s ease;
}

.summary-item:hover i {
    background: linear-gradient(
        135deg,
        var(--color-accent-gold) 0%,
        #e6c200 100%
    );
    color: white !important;
    transform: scale(1.05);
}

/* Contenu texte */
.summary-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.summary-item span:not(strong) {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-darker);
    line-height: 1.4;
}

/* Item des notes (pleine largeur) */
#summary-notes-container .summary-item {
    flex-direction: column;
    align-items: flex-start;
}

#summary-notes-container .summary-item i {
    margin-bottom: 0.5rem;
}

#summary-notes {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    font-weight: 500;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent-gold);
    margin-top: 0.5rem;
    width: 100%;
}

/* Espacement de la grille */
.reservation-summary-box .row.g-3 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
}

/* Badge de statut (optionnel) */
.reservation-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(
        135deg,
        rgba(127, 168, 119, 0.1) 0%,
        rgba(155, 193, 148, 0.1) 100%
    );
    border: 2px solid var(--color-success);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-success);
    margin-top: 1rem;
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */

@media (max-width: 991px) {
    .reservation-summary-box {
        margin-bottom: 1.75rem;
    }

    .reservation-summary-box .row {
        padding: 1.75rem;
        padding-top: 2.25rem;
    }

    .summary-item {
        padding: 1rem 1.25rem;
    }

    .summary-item i {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .reservation-summary-box {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .reservation-summary-box::before {
        height: 5px;
    }

    .reservation-summary-box .row {
        padding: 1.5rem;
        padding-top: 2rem;
    }

    .reservation-summary-box .row.g-3 {
        --bs-gutter-y: 0.875rem;
        --bs-gutter-x: 0.875rem;
    }

    .summary-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .summary-item i {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        border-radius: 8px;
    }

    .summary-item strong {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .summary-item span:not(strong) {
        font-size: 1rem;
    }

    #summary-notes {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    /* Empiler les colonnes sur mobile */
    .reservation-summary-box .col-md-6 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .reservation-summary-box {
        margin-bottom: 1.25rem;
        border-radius: 10px;
    }

    .reservation-summary-box::before {
        height: 4px;
    }

    .reservation-summary-box .row {
        padding: 1.25rem;
        padding-top: 1.75rem;
    }

    .reservation-summary-box .row.g-3 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }

    .summary-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .summary-item i {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .summary-item strong {
        font-size: 0.7rem;
    }

    .summary-item span:not(strong) {
        font-size: 0.95rem;
    }

    #summary-notes {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

@media (max-width: 400px) {
    .reservation-summary-box {
        margin-bottom: 1rem;
    }

    .reservation-summary-box .row {
        padding: 1rem;
        padding-top: 1.5rem;
    }

    .summary-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .summary-item i {
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

.summary-item {
    animation: fadeInUp 0.4s ease backwards;
}

.summary-item:nth-child(1) {
    animation-delay: 0.05s;
}
.summary-item:nth-child(2) {
    animation-delay: 0.1s;
}
.summary-item:nth-child(3) {
    animation-delay: 0.15s;
}
.summary-item:nth-child(4) {
    animation-delay: 0.2s;
}
.summary-item:nth-child(5) {
    animation-delay: 0.25s;
}
.summary-item:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Désactiver les animations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .summary-item {
        animation: none;
    }

    .summary-item:hover {
        transform: none;
    }
}

/* ============================================
   MODE IMPRESSION
   ============================================ */

@media print {
    .reservation-summary-box {
        box-shadow: none;
        border: 2px solid #000;
        page-break-inside: avoid;
    }

    .summary-item {
        border-color: #000;
        box-shadow: none;
    }

    .summary-item::before {
        display: none;
    }
}
