/* ================================================================
   MODALE DE RESERVATION / COMMANDE
   ================================================================ */


.CR-service-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.CR-service-modal.active {
    opacity: 1;
    visibility: visible;
}

.CR-service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.CR-service-dialog {
    position: relative;
    width: 95%;
    max-width: 1180px;
    height: 660px;
    max-height: 90vh;
    background: #1a1a18;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.CR-service-modal.active .CR-service-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.CR-service-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    padding: 0;
    backdrop-filter: blur(4px);
    font-size: 18px;
}

.CR-service-close:hover {
    background: rgba(255, 214, 0, 0.2);
    color: #FFD600;
    transform: rotate(90deg) scale(1.1);
}

.CR-service-header {
    width: 100%;
    min-height: 70px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(28, 27, 25, 0.95);
}

.CR-service-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.CR-service-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #FFD600;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.CR-service-header-titles {
    display: flex;
    flex-direction: column;
}

.CR-service-header h3 {
    color: #EFEEE4;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CR-service-header-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    margin: 2px 0 0 0;
}

.CR-service-header-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 0;
    margin: 8px 0 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.CR-service-header-tabs::-webkit-scrollbar {
    height: 0;
    display: none;
}

.CR-service-header-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #B5B5B5;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    font-family: inherit;
}

.CR-service-header-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #EFEEE4;
}

.CR-service-header-tab.active {
    background: #FFD600;
    color: #111;
    border-color: #FFD600;
    font-weight: 700;
}

.CR-service-header-tab .tab-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.CR-service-header-tab .tab-count {
    background: rgba(0, 0, 0, 0.2);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0 3px;
}

.CR-service-header-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.35);
}

.CR-service-header-tab-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.CR-service-header-tab-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 214, 0, 0.2);
    color: #FFD600;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    z-index: 1;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.CR-service-header-tab-remove:hover {
    background: #FFD600;
    color: #111;
}

.CR-service-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    background: #1c1b19;
}

.CR-service-body::-webkit-scrollbar {
    width: 4px;
}

.CR-service-body::-webkit-scrollbar-track {
    background: transparent;
}

.CR-service-body::-webkit-scrollbar-thumb {
    background: #3a3833;
    border-radius: 4px;
}

.CR-service-step-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.CR-service-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(28, 27, 25, 0.95);
}

.CR-service-step-header h4 {
    color: #EFEEE4;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.CR-service-step-header .step-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 214, 0, 0.12);
    color: #FFD600;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.CR-service-back-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #B5B5B5;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.CR-service-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #EFEEE4;
}

.CR-service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
}

.CR-service-grid-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    height: 220px;
    max-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.CR-service-grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.CR-service-grid-item:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.CR-service-grid-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(255, 214, 0, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.CR-service-grid-item.selected {
    border-color: #FFD600;
    box-shadow: 0 0 30px rgba(255, 214, 0, 0.15);
}

.CR-service-grid-item.selected::before {
    background: linear-gradient(to bottom, rgba(255, 214, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.CR-service-grid-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 12px;
    z-index: 2;
    color: #fff;
}

.CR-service-grid-item-info h5 {
    color: #EFEEE4;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.CR-service-grid-item-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.CR-service-grid-item-price {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FFD600;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 2;
    border: 1px solid rgba(255, 214, 0, 0.2);
}

.CR-service-grid-item-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.CR-service-grid-item.selected .CR-service-grid-item-check {
    background: #FFD600;
    border-color: #FFD600;
}

.CR-service-grid-item.selected .CR-service-grid-item-check::after {
    content: '✓';
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

.CR-service-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
}

.CR-menu-category {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    height: 180px;
    max-height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.CR-menu-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.CR-menu-category:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.CR-menu-category:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 214, 0, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.CR-menu-category-image {
    display: none;
}

.CR-menu-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 12px;
    text-align: left;
    z-index: 2;
    color: #fff;
}

.CR-menu-category-info h5 {
    color: #EFEEE4;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.CR-menu-category-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.CR-menu-category-count {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    background: rgba(255, 214, 0, 0.2);
    color: #FFD600;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.CR-menu-category-arrow {
    position: absolute;
    right: 10px;
    top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
}

.CR-menu-category:hover .CR-menu-category-arrow {
    color: #FFD600;
    transform: translateX(4px);
}

/* ================================================================
   BLOC CRENEAUX / RECAPITULATIF
   ================================================================ */

.CR-newcal {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 14px 20px 6px;
    gap: 10px;
}

.CR-newcal-dates-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.CR-newcal-nav {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #B5B5B5;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    padding: 0;
}

.CR-newcal-nav:hover:not(:disabled) {
    background: rgba(255, 214, 0, 0.12);
    color: #FFD600;
    border-color: rgba(255, 214, 0, 0.3);
}

.CR-newcal-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.CR-newcal-dates-scroll {
    display: flex;
    gap: 8px;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.CR-newcal-dates-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}

.CR-newcal-date-pill {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    overflow: hidden;
}

.CR-newcal-date-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 214, 0, 0.25);
}

.CR-newcal-date-pill.today {
    border-color: rgba(255, 214, 0, 0.35);
}

.CR-newcal-date-pill.selected {
    background: #FFD600;
    border-color: #FFD600;
}

.CR-newcal-date-pill[disabled],
.CR-newcal-date-pill.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.CR-newcal-date-day {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.CR-newcal-date-pill.today .CR-newcal-date-day {
    color: #FFD600;
}

.CR-newcal-date-pill.selected .CR-newcal-date-day {
    color: #111;
}

.CR-newcal-date-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: #EFEEE4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.CR-newcal-date-pill.selected .CR-newcal-date-num {
    color: #111;
}

.CR-newcal-date-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD600;
}

.CR-newcal-date-pill.selected .CR-newcal-date-badge {
    background: #111;
}

.CR-newcal-legend {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    padding-left: 2px;
    flex-wrap: wrap;
}

.CR-newcal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.CR-newcal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.CR-newcal-dot.available {
    background: #00c853;
}

.CR-newcal-dot.reserved {
    background: #e74c3c;
}

.CR-newcal-dot.past {
    background: #444;
}

.CR-newcal-dot.indisponible {
    background: #888888;
}

.CR-newcal-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    width: 100%;
    gap: 18px;
}

.CR-newcal-main {
    flex: 1 1 55%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.CR-newcal-recap {
    flex: 1 1 45%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    overflow-y: auto;
    padding: 0 2px 0 4px;
    box-sizing: border-box;
}

.CR-newcal-recap::-webkit-scrollbar {
    width: 4px;
}

.CR-newcal-recap::-webkit-scrollbar-track {
    background: transparent;
}

.CR-newcal-recap::-webkit-scrollbar-thumb {
    background: #3a3833;
    border-radius: 4px;
}

.CR-newcal-layout[data-mobile-step] .CR-newcal-main,
.CR-newcal-layout[data-mobile-step] .CR-newcal-recap {
    display: flex !important;
}

.CR-newcal-recap-title {
    color: #FFD600;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.CR-newcal-recap-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.CR-newcal-recap-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    background: rgba(255, 214, 0, 0.12);
    color: #FFD600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.CR-newcal-recap-card-info {
    min-width: 0;
}

.CR-newcal-recap-card-info strong {
    color: #EFEEE4;
    font-size: 0.78rem;
    font-weight: 700;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.CR-newcal-recap-card-info span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.CR-newcal-recap-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.CR-newcal-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.CR-newcal-recap-row:last-of-type {
    border-bottom: none;
}

.CR-newcal-recap-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.64rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 1px;
}

.CR-newcal-recap-label i {
    color: #FFD600;
    font-size: 12px;
}

.CR-newcal-recap-value {
    color: #EFEEE4;
    font-weight: 700;
    font-size: 0.68rem;
    text-align: right;
}

.CR-newcal-recap-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.66rem;
    text-align: center;
    flex: 1;
    padding: 20px 6px;
    line-height: 1.5;
}

.CR-newcal-recap-empty i {
    font-size: 22px;
    opacity: 0.4;
}

.CR-newcal-recap-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: auto;
    border-top: 2px solid rgba(255, 214, 0, 0.25);
}

.CR-newcal-recap-total span {
    color: #B5B5B5;
    font-size: 0.75rem;
}

.CR-newcal-recap-total strong {
    color: #FFD600;
    font-size: 1.05rem;
}

.CR-recap-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .CR-recap-actions-row {
        justify-content: center;
    }

    .CR-mobile-recap-back-btn {
        display: none !important;
    }

    .CR-recap-validate-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 30px;
        border-radius: 10px;
        border: 2px solid #FFD600;
        background: transparent;
        color: #FFD600;
        font-weight: 700;
        font-size: 0.78rem;
        letter-spacing: 0.3px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.25s ease;
    }

    .CR-recap-validate-btn:hover:not(:disabled) {
        background: rgba(255, 214, 0, 0.12);
        transform: translateY(-2px);
    }

    .CR-recap-validate-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
}

@media (max-width: 768px) {
    .CR-recap-actions-row {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        gap: 8px;
    }

    .CR-mobile-recap-back-btn {
        display: inline-flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px 6px;
        border-radius: 9px;
        border: 1px solid rgba(255, 214, 0, 0.3);
        background: rgba(255, 214, 0, 0.08);
        color: #FFD600;
        font-size: 0.6rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        white-space: nowrap;
        text-align: center;
    }

    .CR-recap-validate-btn {
        display: inline-flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px 6px;
        border-radius: 9px;
        border: none;
        background: #FFD600;
        color: #111;
        font-size: 0.64rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        box-shadow: 0 6px 18px rgba(255, 214, 0, 0.25);
        white-space: nowrap;
        text-align: center;
    }

    .CR-recap-validate-btn:hover {
        background: #e6c200;
    }

    .CR-recap-validate-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

.CR-newcal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.CR-newcal-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    min-width: 0;
}

.CR-newcal-footer-item:last-child {
    border-right: none;
}

.CR-newcal-footer-item i {
    color: #FFD600;
    font-size: 15px;
    flex-shrink: 0;
}

.CR-newcal-footer-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.CR-newcal-footer-item-text strong {
    font-size: 0.6rem;
    color: #EFEEE4;
    font-weight: 700;
    white-space: nowrap;
}

.CR-newcal-footer-item-text span {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.CR-newcal-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 12px 20px 0;
    background: rgba(255, 214, 0, 0.06);
    border: 1px solid rgba(255, 214, 0, 0.15);
    border-radius: 10px;
}

.CR-newcal-hint i {
    color: #FFD600;
    font-size: 18px;
    flex-shrink: 0;
}

.CR-newcal-hint div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.CR-newcal-hint strong {
    color: #EFEEE4;
    font-size: 0.75rem;
    font-weight: 700;
}

.CR-newcal-hint span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
}

.CR-newcal-slots-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.CR-newcal-slots-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #B5B5B5;
    gap: 8px;
    text-align: center;
}

.CR-newcal-slots-empty svg {
    opacity: 0.3;
    width: 26px;
    height: 26px;
    stroke: #B5B5B5;
}

.CR-newcal-slots-empty p {
    font-size: 0.72rem;
    font-weight: 600;
    color: #B5B5B5;
    margin: 0;
}

.CR-newcal-slots-empty span {
    font-size: 0.6rem;
    color: #B5B5B5;
}

.CR-newcal-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1;
    align-content: start;
}

.CR-newcal-slots-grid::-webkit-scrollbar {
    width: 4px;
}

.CR-newcal-slots-grid::-webkit-scrollbar-track {
    background: transparent;
}

.CR-newcal-slots-grid::-webkit-scrollbar-thumb {
    background: #3a3833;
    border-radius: 4px;
}

.CR-newcal-slots-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #B5B5B5;
    font-size: 0.7rem;
    gap: 8px;
}

.CR-newcal-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #EFEEE4;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.CR-newcal-slot:hover:not(.past):not(.reserved):not(.indisponible):not(.disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 214, 0, 0.3);
}

.CR-newcal-slot.selected {
    background: rgba(255, 214, 0, 0.12);
    border-color: #FFD600;
    color: #FFD600;
}

.CR-newcal-slot.selected .CR-newcal-dot {
    background: #FFD600;
    box-shadow: 0 0 6px rgba(255, 214, 0, 0.6);
}

.CR-newcal-slot.reserved {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.35);
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-color: rgba(231, 76, 60, 0.6);
}

.CR-newcal-slot.reserved .CR-newcal-dot {
    background: #e74c3c;
    box-shadow: 0 0 4px rgba(231, 76, 60, 0.4);
}

.CR-newcal-slot.past,
.CR-newcal-slot.past-red {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.CR-newcal-slot.past-red .CR-newcal-dot {
    background: #e74c3c;
    opacity: 0.6;
}

.CR-newcal-slot.indisponible {
    background: rgba(136, 136, 136, 0.08);
    border-color: rgba(136, 136, 136, 0.3);
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    text-decoration-color: #888888;
    cursor: not-allowed;
}

.CR-newcal-slot.indisponible .CR-newcal-dot {
    background: #888888;
}

.CR-newcal-slot.disabled:not(.reserved):not(.indisponible):not(.past):not(.past-red) {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (min-width: 769px) {
    .CR-newcal-slots-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .CR-newcal {
        padding: 10px 12px 6px;
        gap: 8px;
    }

    .CR-newcal-layout {
        gap: 12px;
    }

    .CR-newcal-main {
        padding-right: 10px;
    }

    .CR-newcal-date-pill {
        min-width: 0;
        max-width: none;
        padding: 7px 3px;
    }

    .CR-newcal-slot {
        padding: 8px 8px;
        font-size: 0.62rem;
    }

    .CR-newcal-footer {
        gap: 8px 14px;
        padding: 8px 12px;
    }

    .CR-newcal-footer-item {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .CR-newcal {
        padding: 8px 10px 4px;
        gap: 6px;
    }

    .CR-newcal-layout {
        gap: 8px;
    }

    .CR-newcal-main {
        padding-right: 6px;
    }

    .CR-newcal-dates-row {
        gap: 4px;
    }

    .CR-newcal-nav {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 11px;
    }

    .CR-newcal-date-pill {
        padding: 6px 4px;
    }

    .CR-newcal-slot {
        padding: 6px 6px;
        font-size: 0.58rem;
    }

    .CR-newcal-recap-title {
        font-size: 0.6rem;
    }

    .CR-newcal-recap-row {
        padding: 5px 0;
    }

    .CR-newcal-recap-label {
        font-size: 0.55rem;
    }

    .CR-newcal-recap-value {
        font-size: 0.58rem;
    }

    .CR-mobile-recap-back-btn,
    .CR-recap-validate-btn {
        font-size: 0.56rem;
        padding: 9px 4px;
    }

    .CR-newcal-footer-item-text span {
        display: none;
    }
}

.CR-step-layout {
    display: flex;
    gap: 0;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.CR-submit-btn {
    width: auto;
    min-width: auto;
    padding: 8px 18px;
    background: #FFD600;
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    margin-top: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
    white-space: nowrap;
}

.CR-submit-btn:hover:not(:disabled) {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 214, 0, 0.2);
}

.CR-submit-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.CR-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #ccc;
    font-size: 0.75rem;
}

.CR-admin-row:last-child {
    border-bottom: none;
}

.CR-admin-row-label {
    color: rgba(255, 255, 255, 0.5);
}

.CR-admin-row-value {
    color: #FFD600;
    font-weight: 600;
}

.CR-service-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 214, 0, 0.06);
    border-top: 1px solid rgba(255, 214, 0, 0.12);
    gap: 10px;
    flex-shrink: 0;
}

.CR-service-cart-bar span {
    color: #EFEEE4;
    font-size: 0.68rem;
    font-weight: 600;
}

.CR-service-cart-items {
    flex: 1;
    overflow-y: auto;
}

.CR-service-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 10px 16px;
    background: rgba(255, 214, 0, 0.05);
    border: 1px solid rgba(255, 214, 0, 0.15);
    border-radius: 8px;
}

.CR-service-cart-total span {
    color: #B5B5B5;
    font-size: 0.8rem;
}

.CR-service-cart-total strong {
    color: #FFD600;
    font-size: 1rem;
}

.CR-service-form {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.CR-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
}

.CR-form-group label {
    color: #FFFFFF !important;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.CR-form-group label i {
    color: #FFD600;
    font-size: 11px;
}

.CR-form-group input,
.CR-form-group textarea,
.CR-form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px;
    color: #FFFFFF !important;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
    max-width: 100%;
}

.CR-form-group input::placeholder,
.CR-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.CR-form-group input:focus,
.CR-form-group textarea:focus,
.CR-form-group select:focus {
    border-color: #FFD600 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.CR-form-group textarea {
    resize: vertical;
    min-height: 45px;
}

.CR-form-row {
    display: flex;
    gap: 8px;
}

.CR-form-row .CR-form-group {
    flex: 1;
}

.CR-reservation-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.CR-reservation-form-card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(160deg, #201f1c 0%, #1a1917 100%);
    border: 1px solid rgba(255, 214, 0, 0.15);
    border-radius: 20px;
    padding: 28px 30px 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    animation: crFormCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.CR-reservation-form-card:hover {
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.6);
}

@keyframes crFormCardIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.CR-reservation-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.CR-reservation-form-header i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(255, 214, 0, 0.12);
    color: #FFD600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.CR-reservation-form-header h4 {
    margin: 0;
    color: #EFEEE4;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.CR-reservation-form-header p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
}

.CR-reservation-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.CR-reservation-form-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.CR-reservation-form-submit {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.78rem;
    margin-top: 0;
}

.CR-reservation-form-back {
    align-self: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.CR-reservation-form-back:hover {
    color: #FFD600;
}

.CR-service-reservation-detail {
    flex: 1;
    overflow-y: auto;
}

.CR-step-image-with-image {
    display: flex;
    height: 100%;
    min-height: 0;
}

.CR-service-step-with-image {
    display: flex;
    height: 100%;
    min-height: 0;
}

.CR-step-image-container {
    flex: 0 0 35%;
    position: relative;
    overflow: hidden;
    background: #141413;
}

.CR-step-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease;
}

.CR-step-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.CR-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #1c1b19;
}

@media (max-width: 768px) {
    .CR-service-step-with-image {
        flex-direction: column;
    }

    .CR-step-image-container,
    .CR-step-image-container.CR-step-image-container-lg {
        flex: 0 0 130px;
        min-height: 130px;
        max-height: 130px;
        height: 130px;
    }

    .CR-step-image::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    }
}

@media (max-width: 480px) {

    .CR-step-image-container,
    .CR-step-image-container.CR-step-image-container-lg {
        flex: 0 0 100px;
        min-height: 100px;
        max-height: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .CR-reservation-form-image {
        display: none !important;
    }
}

.CR-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 8px;
}

.CR-header-action-btn {
    border-radius: 8px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 16px;
}

.CR-header-action-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.CR-header-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}

@media (max-width: 900px) {
    .CR-service-dialog {
        height: auto;
        max-height: 95vh;
        border-radius: 16px;
    }

    .CR-header-actions {
        position: fixed;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 18px;
        flex-direction: column;
        gap: 10px;
        margin-right: 0;
        z-index: 60;
    }

    .CR-header-actions .CR-header-action-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    .CR-service-plats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .CR-service-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .CR-menu-category {
        min-height: 150px;
        height: 150px;
        max-height: 150px;
    }

    .CR-service-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .CR-service-grid-item {
        min-height: 150px;
        height: 150px;
        max-height: 150px;
    }
}

@media (max-width: 600px) {
    .RES-container {
        max-width: 100%;
        border-radius: 16px;
        margin: 10px;
    }

    .RES-header {
        padding: 16px 18px 10px;
    }

    .RES-header h2 {
        font-size: 1.1rem;
    }

    .RES-body {
        padding: 16px 18px 20px;
    }

    .RES-event-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .RES-event-info img {
        width: 100%;
        height: 150px;
    }

    .RES-actions {
        flex-direction: column;
    }

    .RES-actions button {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .CR-service-dialog {
        width: 100%;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        max-width: 100%;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
    }

    .CR-service-plats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }

    .CR-service-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }

    .CR-service-grid-item {
        min-height: 130px;
        height: 130px;
        max-height: 130px;
    }

    .CR-service-category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 8px;
    }

    .CR-menu-category {
        min-height: 130px;
        height: 130px;
        max-height: 130px;
    }

    .CR-menu-category-info h5 {
        font-size: 0.7rem;
    }

    .CR-menu-category-info p {
        font-size: 0.5rem;
    }

    .CR-reservation-form-wrap {
        padding: 14px;
        align-items: flex-start;
    }

    .CR-reservation-form-card {
        padding: 20px 18px 18px;
        border-radius: 16px;
    }
}

/* ================================================================
   MODALE OPTIONS (formules / tarifs)
   ================================================================ */

.CR-option-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.CR-option-modal.active {
    opacity: 1;
    visibility: visible;
}

.CR-option-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    background-image: url('/static/images/sportcollectif.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.CR-option-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.CR-option-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    width: 92%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: #FFD600 rgba(255, 255, 255, 0.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.CR-option-dialog::-webkit-scrollbar {
    width: 8px;
}

.CR-option-dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.CR-option-dialog::-webkit-scrollbar-thumb {
    background: #FFD600;
    border-radius: 10px;
}

.CR-option-dialog::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

.CR-option-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFD600;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: 300;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-color: rgba(255, 214, 0, 0.2);
}

.CR-option-close:hover {
    background: rgba(255, 214, 0, 0.2);
    border-color: rgba(255, 214, 0, 0.4);
    color: #FFD600;
    transform: rotate(90deg) scale(1.05);
}

.CR-option-header {
    padding: 28px 32px 18px 32px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px 20px 0 0;
}

.CR-option-header h3 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: #EFEEE4;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.CR-option-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.CR-option-body {
    padding: 24px 28px 28px 28px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: #FFD600 rgba(255, 255, 255, 0.05);
}

.CR-option-body::-webkit-scrollbar {
    width: 8px;
}

.CR-option-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.CR-option-body::-webkit-scrollbar-thumb {
    background: #FFD600;
    border-radius: 10px;
}

.CR-option-body::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

.CR-option-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.CR-option-card {
    flex: 0 1 calc(25% - 13.5px);
    max-width: calc(25% - 13.5px);
    min-width: 220px;
    position: relative;
    background: rgba(181, 181, 181, 0.15);
    border-radius: 16px;
    padding: 24px 20px 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    min-height: 360px;
    max-height: 440px;
    text-align: center;
    opacity: 0;
    animation: cardAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.CR-option-card:nth-child(1) {
    animation-delay: 0.05s;
}

.CR-option-card:nth-child(2) {
    animation-delay: 0.10s;
}

.CR-option-card:nth-child(3) {
    animation-delay: 0.15s;
}

.CR-option-card:nth-child(4) {
    animation-delay: 0.20s;
}

.CR-option-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #FFD600;
    background: rgba(181, 181, 181, 0.25);
}

.CR-option-card.selected {
    border: 2px solid #FFD600;
    box-shadow: 0 8px 40px rgba(255, 214, 0, 0.2);
    transform: translateY(-4px) scale(1.01);
    background: rgba(181, 181, 181, 0.3);
}

.CR-option-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD600 0%, #e6c200 100%);
    color: black;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 214, 0, 0.3);
    text-transform: uppercase;
}

.CR-option-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFD600;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.CR-option-card-subtitle {
    font-size: 12px;
    color: #FFFFFF;
    margin: 0 0 14px 0;
    line-height: 1.4;
    flex-shrink: 0;
}

.CR-option-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 10px 0 6px 0;
    flex-shrink: 0;
}

.CR-option-card-amount {
    font-size: 32px;
    font-weight: 800;
    color: #FFD600;
    line-height: 1;
}

.CR-option-card-currency {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.CR-option-card-old-price {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-right: 6px;
}

.CR-option-card-saving {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #FFD600;
    background: rgba(255, 214, 0, 0.15);
    padding: 2px 10px;
    border-radius: 12px;
}

.CR-option-card-features {
    margin: 12px 0 0 0;
    text-align: left;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.CR-option-card-features::-webkit-scrollbar {
    width: 3px;
}

.CR-option-card-features::-webkit-scrollbar-track {
    background: transparent;
}

.CR-option-card-features::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.CR-option-card-features::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.CR-option-card-feature {
    font-size: 12px;
    color: #FFFFFF;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.CR-option-card-feature:last-child {
    border-bottom: none;
}

.CR-option-card-feature::before {
    content: '✓';
    color: #FFD600;
    font-weight: 700;
    font-size: 12px;
    background: rgba(255, 214, 0, 0.15);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.CR-option-card-feature.highlight {
    color: #FFFFFF;
    font-weight: 500;
}

.CR-option-card-select {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    margin-top: auto;
    flex-shrink: 0;
}

.CR-option-card-select-btn {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFD600;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #FFD600;
    outline: none;
    font-family: inherit;
}

.CR-option-card:hover .CR-option-card-select-btn,
.CR-option-card.selected .CR-option-card-select-btn {
    background: #FFD600;
    color: #1a1a1a;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 214, 0, 0.2);
}

.CR-option-footer {
    padding: 16px 28px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 20px 20px;
}

.CR-option-cancel,
.CR-option-confirm {
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
    color: #FFD600;
    border: 1px solid #FFD600;
}

.CR-option-cancel {
    background: rgba(255, 255, 255, 0.1);
}

.CR-option-cancel:hover {
    background: rgba(255, 214, 0, 0.15);
}

.CR-option-confirm {
    background: #FFD600;
    color: #1a1a1a;
}

.CR-option-confirm:hover:not(:disabled) {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 214, 0, 0.2);
}

.CR-option-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.CR-option-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.CR-option-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.CR-option-tab i {
    font-size: 14px;
}

.CR-option-tab:hover {
    background: rgba(255, 214, 0, 0.12);
    border-color: rgba(255, 214, 0, 0.3);
    color: #EFEEE4;
}

.CR-option-tab.active {
    background: #FFD600;
    border-color: #FFD600;
    color: #111;
    box-shadow: 0 6px 18px rgba(255, 214, 0, 0.3);
}

.CR-option-tab-content {
    animation: fadeIn 0.3s ease;
}

@media (max-width: 1024px) {
    .CR-option-header {
        padding: 20px 16px 14px 16px;
        border-radius: 16px 16px 0 0;
    }

    .CR-option-header h3 {
        font-size: 20px;
    }

    .CR-option-header p {
        font-size: 12px;
    }

    .CR-option-body {
        padding: 16px 14px 20px 14px;
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 768px) {
    .CR-option-dialog {
        max-height: 95vh;
        width: 95%;
    }

    .CR-option-card {
        padding: 18px 16px 16px;
        min-height: auto;
    }

    .CR-option-card-amount {
        font-size: 28px;
    }

    .CR-option-footer {
        padding: 14px 16px 18px 16px;
        flex-direction: column;
        gap: 8px;
        border-radius: 0 0 16px 16px;
    }

    .CR-option-cancel,
    .CR-option-confirm {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        padding: 11px;
        font-size: 13px;
    }

    .CR-option-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .CR-option-tabs {
        gap: 6px;
    }

    .CR-option-tab {
        padding: 7px 12px;
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .CR-option-dialog {
        width: 98%;
    }

    .CR-option-header h3 {
        font-size: 17px;
    }

    .CR-option-card-title {
        font-size: 16px;
    }

    .CR-option-card-amount {
        font-size: 24px;
    }

    .CR-option-card-feature {
        font-size: 11px;
    }
}

@media (max-width: 1200px) {
    .CR-option-card {
        flex: 0 1 calc(33.333% - 12px);
        max-width: calc(33.333% - 12px);
    }
}

@media (max-width: 900px) {
    .CR-option-card {
        flex: 0 1 calc(50% - 9px);
        max-width: calc(50% - 9px);
        min-width: 200px;
    }
}

@media (max-width: 560px) {
    .CR-option-card {
        flex: 0 1 100%;
        max-width: 420px;
        min-width: 0;
        width: 100%;
    }
}

/* ================================================================
   HEADER MINIMAL
   ================================================================ */
.CR-service-header,
#serviceModal .CR-service-header {
    min-height: 0;
    padding: 10px 14px;
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 30;
    width: auto;
    flex-direction: row;
}

.CR-service-header-minimal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.CR-header-close-slot {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

#serviceModal>.CR-service-close,
.CR-header-close-slot .CR-service-close {
    position: static;
    top: auto;
    right: auto;
    inset: auto;
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
}

#serviceModal>.CR-service-close:hover,
.CR-header-close-slot .CR-service-close:hover {
    background: rgba(255, 214, 0, 0.2);
    border-color: rgba(255, 214, 0, 0.35);
    color: #FFD600;
}

@media (max-width: 900px) {
    .CR-header-close-slot {
        position: relative;
        z-index: 65;
    }

    .CR-header-close-slot .CR-service-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    #serviceModal>.CR-service-close,
    .CR-header-close-slot .CR-service-close {
        width: 34px;
        height: 34px;
    }
}

/* ================================================================
   TITRE / DESCRIPTION / BADGE EN OVERLAY SUR L'IMAGE
   ================================================================ */
.CR-step-image-container {
    position: relative;
}

.CR-step-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.CR-step-image-overlay-content {
    text-align: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.CR-step-image-overlay-title {
    color: #EFEEE4;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.CR-step-image-overlay-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    margin: 0;
    max-width: 380px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.CR-step-image-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #FFD600;
    backdrop-filter: blur(6px);
    font-size: 0.68rem;
    font-weight: 700;
    color: #EFEEE4;
}

.CR-step-image-overlay-count {
    color: #111;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 8px;
    border-radius: 10px;
    background: #FFD600;
}

@media (max-width: 640px) {
    .CR-step-image-overlay-title {
        font-size: 1.05rem;
    }

    .CR-step-image-overlay-desc {
        font-size: 0.68rem;
    }

    .CR-step-image-overlay-badge {
        font-size: 0.62rem;
        padding: 5px 12px;
    }
}

/* ================================================================
   PREMIER ÉCRAN — image pilotee par categorie + switch + footer
   ================================================================ */

.CR-hero-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.CR-hero-v2-image {
    position: relative;
    flex: 1;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.3s ease;
    overflow: hidden;
}

.CR-hero-v2-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.75) 100%);
}

.CR-hero-v2-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    max-width: 520px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.CR-hero-v2-eyebrow {
    color: #FFD600;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.CR-hero-v2-title {
    color: #EFEEE4;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.CR-hero-v2-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.CR-hero-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #FFD600;
    color: #EFEEE4;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.CR-hero-v2-tags-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
    position: relative;
}

.CR-hero-tags-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 214, 0, 0.9);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    user-select: none;
    z-index: 2;
}

.CR-hero-tags-nav:hover:not(:disabled) {
    background: #FFD600;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
}

.CR-hero-tags-nav:active:not(:disabled) {
    transform: scale(0.9);
}

.CR-hero-tags-nav:disabled {
    opacity: 0.4;
    cursor: default;
    background: #e0e0e0;
    box-shadow: none;
}

/* Ancien conteneur générique de tags (texte libre / boutons) — conservé
   pour compatibilité mais n'est plus utilisé par les pilules de tags
   (voir .crb-hero-v2-tags plus bas, qui est le conteneur actif). */
.CR-hero-v2-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 12px 10px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.CR-hero-v2-tags.CR-centered {
    justify-content: center;
}

.CR-hero-v2-tags::-webkit-scrollbar {
    display: none;
    height: 0;
}

.CR-hero-v2-tags span,
.CR-hero-v2-tags button {
    border-radius: 14px;
    font-size: 0.64rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.CR-hero-v2-tags span:hover,
.CR-hero-v2-tags button:hover {
    border-color: #FFD600;
    color: #FFD600;
    transform: translateY(-2px);
}

.CR-hero-v2-tags span:active,
.CR-hero-v2-tags button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 214, 0, 0.15);
}

.CR-hero-v2-tags .CR-hero-tag-count {
    background: rgba(255, 255, 255, 0.15);
    color: #EFEEE4;
    font-size: 0.55rem;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 2px;
    font-weight: 600;
}

.CR-hero-v2-tags .CR-hero-tag-btn:hover .CR-hero-tag-count {
    background: #FFD600;
    color: #111;
}

.CR-hero-v2-switch {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    background: #141413;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.CR-hero-v2-switch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #B5B5B5;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.CR-hero-v2-switch-btn:hover {
    background: initial;
    color: initial;
}

@media (hover: hover) and (pointer: fine) {
    .CR-hero-v2-switch-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #EFEEE4;
    }

    .CR-hero-v2-switch-btn.active:hover {
        background: #FFD600;
        color: #111;
    }
}

.CR-hero-v2-switch-btn.active {
    background: #FFD600;
    border-color: #FFD600;
    color: #111;
}

.CR-hero-v2-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.CR-hero-v2-footer-track,
.CR-hero-v2-footer-set:not([aria-hidden="true"]) {
    display: contents;
}

.CR-hero-v2-footer-set[aria-hidden="true"] {
    display: none;
}

.CR-hero-v2-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.CR-hero-v2-footer-item i {
    color: #FFD600;
    font-size: 16px;
    flex-shrink: 0;
}

.CR-hero-v2-footer-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.CR-hero-v2-footer-item-text strong {
    font-size: 0.65rem;
    color: #EFEEE4;
    font-weight: 700;
    white-space: nowrap;
}

.CR-hero-v2-footer-item-text span {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.CR-hero-v2-footer-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.CR-hero-v2-footer-cta span {
    font-family: 'Segoe Script', 'Brush Script MT', cursive;
    color: #EFEEE4;
    font-size: 1rem;
}

.CR-hero-v2-footer-cta svg {
    width: 30px;
    height: 22px;
}

@media (max-width: 640px) {
    .CR-hero-v2-footer {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        padding: 12px 0;
        -webkit-mask-image: linear-gradient(90deg,
                transparent 0,
                #000 28px,
                #000 calc(100% - 28px),
                transparent 100%);
        mask-image: linear-gradient(90deg,
                transparent 0,
                #000 28px,
                #000 calc(100% - 28px),
                transparent 100%);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .CR-hero-v2-footer::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .CR-hero-v2-footer-track {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        width: max-content;
        animation: crFooterMarquee 22s linear infinite;
        will-change: transform;
    }

    .CR-hero-v2-footer-set,
    .CR-hero-v2-footer-set[aria-hidden="true"] {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        flex-shrink: 0;
        gap: 26px;
        padding-right: 26px;
    }

    .CR-hero-v2-footer-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .CR-hero-v2-footer-item i {
        font-size: 14px;
        flex-shrink: 0;
    }

    .CR-hero-v2-footer-item-text {
        display: inline-flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        white-space: nowrap;
    }

    .CR-hero-v2-footer-item-text strong {
        font-size: 0.62rem;
        white-space: nowrap;
    }

    .CR-hero-v2-footer-item-text span {
        display: inline;
        font-size: 0.56rem;
        white-space: nowrap;
    }

    .CR-hero-v2-footer-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        border-top: none;
        padding-top: 0;
        white-space: nowrap;
    }

    .CR-hero-v2-footer-cta svg {
        width: 26px;
        height: 20px;
        flex-shrink: 0;
    }
}

@keyframes crFooterMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    .CR-hero-v2-footer-track {
        animation: none;
    }
}

@media (max-width: 640px) {
    .CR-hero-v2-image {
        min-height: 176px;
    }

    .CR-hero-v2-title {
        font-size: 1.25rem;
    }

    .CR-hero-v2-desc {
        font-size: 0.7rem;
    }

    .CR-hero-v2-content {
        gap: 6px;
        padding: 12px;
    }

    .CR-hero-v2-switch {
        padding: 10px 12px;
        gap: 8px;
    }

    .CR-hero-v2-switch-btn {
        padding: 10px;
        font-size: 0.7rem;
    }
}

.CR-hero-v2-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    margin-bottom: 2px;
}

@media (max-width: 640px) {
    .CR-hero-v2-logo {
        height: 26px;
    }
}

#floatingTerrainBtn {
    position: fixed;
    bottom: calc(190px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    left: auto;
    z-index: 70;
}

@media (min-width: 769px) {
    #floatingTerrainBtn {
        display: none;
    }
}

/* ================================================================
   BARRE DE TABS DE CATÉGORIES (activites & menu)
   ================================================================ */
.CR-cat-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 10px;
    flex-shrink: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.CR-cat-tabs-nav {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #B5B5B5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.CR-cat-tabs-nav:hover {
    background: rgba(255, 214, 0, 0.12);
    color: #FFD600;
    border-color: rgba(255, 214, 0, 0.3);
}

.CR-cat-tabs-scroll {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
    justify-content: flex-start;
}

.CR-cat-tabs-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}

.CR-cat-tabs-scroll.CR-centered {
    justify-content: center;
}

.CR-cat-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #B5B5B5;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.CR-cat-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #EFEEE4;
}

.CR-cat-tab.active {
    background: #FFD600;
    border-color: #FFD600;
    color: #111;
    box-shadow: 0 4px 14px rgba(255, 214, 0, 0.3);
}

.CR-cat-tab-count {
    background: rgba(0, 0, 0, 0.2);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0 4px;
}

.CR-cat-tab.active .CR-cat-tab-count {
    background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    .CR-cat-tabs-bar {
        padding: 10px 12px 8px;
        gap: 6px;
    }

    .CR-cat-tab {
        padding: 7px 12px;
        font-size: 0.66rem;
    }
}

@media (max-width: 640px) {
    .CR-cat-tabs-bar {
        padding: 8px 10px 6px;
        gap: 6px;
    }

    .CR-cat-tabs-nav {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 11px;
        border-radius: 7px;
    }

    .CR-cat-tab {
        padding: 6px 12px;
        font-size: 0.64rem;
        gap: 5px;
        border-radius: 18px;
    }

    .CR-cat-tab-count {
        min-width: 14px;
        height: 14px;
        font-size: 0.5rem;
    }
}

@media (max-width: 380px) {
    .CR-cat-tabs-bar {
        padding: 6px 6px 5px;
        gap: 4px;
    }

    .CR-cat-tabs-nav {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 10px;
    }

    .CR-cat-tab {
        padding: 5px 10px;
        font-size: 0.6rem;
    }
}

/* ================================================================
   GRILLE D'ÉLÉMENTS PAR CATÉGORIE (activites, terrains, plats)
   ================================================================ */
.CR-cat-items-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding: 6px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.CR-cat-items-grid>.CR-service-grid-item,
.CR-cat-items-grid>.CR-menu-category {
    flex: 0 1 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
    width: calc(33.333% - 12px);
}

@media (max-width: 900px) {
    .CR-cat-items-grid {
        gap: 12px;
        padding: 4px 14px 16px;
    }

    .CR-cat-items-grid>.CR-service-grid-item,
    .CR-cat-items-grid>.CR-menu-category {
        flex: 0 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        width: calc(50% - 6px);
    }
}

@media (max-width: 640px) {
    .CR-cat-items-grid {
        gap: 10px;
        padding: 6px 10px 14px;
    }

    .CR-cat-items-grid>.CR-service-grid-item,
    .CR-cat-items-grid>.CR-menu-category {
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
        width: calc(50% - 5px);
        min-height: 155px;
        height: 155px;
        max-height: 155px;
    }

    .CR-service-grid-item-info h5 {
        font-size: 0.78rem;
    }

    .CR-service-grid-item-info p {
        font-size: 0.6rem;
    }

    .CR-service-grid-item-price {
        font-size: 0.65rem;
        padding: 3px 9px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .CR-cat-items-grid {
        gap: 8px;
        padding: 4px 10px 14px;
    }

    .CR-cat-items-grid>.CR-service-grid-item,
    .CR-cat-items-grid>.CR-menu-category {
        flex: 0 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
        width: calc(50% - 4px);
        min-height: 160px;
        height: 160px;
        max-height: 160px;
    }
}

@media (max-width: 380px) {
    .CR-cat-items-grid {
        gap: 8px;
        padding: 4px 8px 12px;
    }

    .CR-cat-items-grid>.CR-service-grid-item,
    .CR-cat-items-grid>.CR-menu-category {
        flex: 0 1 100%;
        max-width: 100%;
        width: 100%;
        min-height: 170px;
        height: 170px;
        max-height: 170px;
    }
}

/* ================================================================
   Point 1 : CARDS DES PLATS SUR MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .CR-category-section:has(.CR-plat-card) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .CR-cat-items-grid:has(.CR-plat-card) {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .CR-cat-items-grid>.CR-plat-card {
        flex: 0 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        aspect-ratio: auto !important;
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 480px) {
    .CR-cat-items-grid:has(.CR-plat-card) {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .CR-cat-items-grid>.CR-plat-card {
        height: 210px !important;
        min-height: 210px !important;
        max-height: 210px !important;
    }
}

.CR-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 60px 20px;
    color: #FFD600;
    grid-column: 1 / -1;
}

.CR-loading-center .CR-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 214, 0, 0.2);
    border-top-color: #FFD600;
    border-radius: 50%;
    animation: crSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.CR-loading-center span:last-child {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #FFD600;
    text-align: center;
}

@keyframes crSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .CR-loading-center {
        padding: 40px 16px;
        gap: 10px;
    }

    .CR-loading-center .CR-loading-spinner {
        width: 24px;
        height: 24px;
        border-width: 2.5px;
    }

    .CR-loading-center span:last-child {
        font-size: 0.66rem;
    }
}

/* ================================================================
   STEP HEADER RESPONSIVE (retour / titre / badge)
   ================================================================ */
@media (max-width: 480px) {
    .CR-service-step-header {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .CR-service-step-header h4 {
        font-size: 0.72rem;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .CR-service-back-btn {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .CR-service-step-header .step-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
}

/* ================================================================
   ÉLÉMENTS PROPRES AU FLUX "COMMANDE" (menu, plats, panier, livraison)
   ================================================================ */
.CR-select-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFD600;
    font-size: 2rem;
    z-index: 3;
    text-shadow: 0 0 20px rgba(255, 214, 0, 0.5);
    pointer-events: none;
    display: none;
}

.CR-service-grid-item.selected .CR-select-check {
    display: flex !important;
}

.CR-restaurant-intro {
    display: flex;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.CR-restaurant-intro-photo {
    flex: 0 0 260px;
    min-height: 180px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 214, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.CR-restaurant-intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.CR-restaurant-intro-text h5 {
    color: #FFD600;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.CR-restaurant-intro-text p {
    color: #EFEEE4;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .CR-restaurant-intro {
        flex-direction: column;
        padding: 0 12px;
        gap: 12px;
    }

    .CR-restaurant-intro-photo {
        flex: 0 0 160px;
        width: 100%;
    }
}

.CR-category-section {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.CR-category-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #EFEEE4;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding: 6px 0 8px 0;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid #FFD600;
    width: 100%;
}

@media (max-width: 768px) {
    .CR-category-section-title {
        font-size: 0.7rem;
        padding: 4px 0 6px 0;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
}

.CR-plat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.CR-plat-card:hover .CR-plat-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.45) 100%);
}

.CR-service-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.CR-footer-count {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #B5B5B5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.CR-footer-count i {
    color: #FFD600;
    font-size: 14px;
}

.CR-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    border: 2px solid #FFD600;
    color: #FFD600;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    flex-shrink: 0;
    white-space: nowrap;
}

.CR-footer-btn i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.CR-footer-btn:hover:not(:disabled) {
    background: #FFD600;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 214, 0, 0.3);
}

.CR-footer-btn:hover:not(:disabled) i {
    transform: translateX(3px);
}

.CR-footer-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .CR-service-step-footer {
        padding: 12px 14px;
        gap: 10px;
    }

    .CR-footer-count {
        font-size: 0.64rem;
    }

    .CR-footer-btn {
        padding: 9px 16px;
        font-size: 0.64rem;
    }
}

/* Etapes de livraison (delivery flow) */
.CR-delivery-progress {
    position: relative;
    padding: 20px 30px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.CR-delivery-progress-bar {
    height: 2px;
    background: #FFD600;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.CR-delivery-progress-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    top: -6px;
}

.CR-delivery-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.CR-delivery-progress-dot.active {
    background: #FFD600;
    border-color: #FFD600;
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.3);
}

.CR-delivery-steps {
    flex: 1;
    overflow-y: auto;
    padding: 10px 24px;
}

.CR-delivery-step {
    animation: fadeIn 0.4s ease;
}

.CR-delivery-step-header {
    margin-bottom: 20px;
}

.CR-delivery-step-header h3 {
    color: #FFD600;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.CR-delivery-step-header p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin: 0;
}

.CR-delivery-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.CR-delivery-option {
    flex: 1;
    min-width: 150px;
    padding: 18px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #EFEEE4;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.CR-delivery-option i {
    font-size: 28px;
    display: block;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.CR-delivery-option strong {
    display: block;
    font-size: 0.85rem;
}

.CR-delivery-option span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.CR-delivery-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 214, 0, 0.2);
    transform: translateY(-2px);
}

.CR-delivery-option.active {
    border-color: #FFD600;
    background: rgba(255, 214, 0, 0.08);
}

.CR-delivery-option.active i {
    color: #FFD600;
}

.CR-delivery-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.CR-delivery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    gap: 12px;
    flex-shrink: 0;
}

.CR-delivery-nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #B5B5B5;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.CR-delivery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #EFEEE4;
}

.CR-delivery-next-btn {
    background: #FFD600;
    color: #111;
    border-color: #FFD600;
}

.CR-delivery-next-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 214, 0, 0.2);
}

@media (max-width: 768px) {
    .CR-delivery-progress {
        padding: 12px 16px 6px;
    }

    .CR-delivery-steps {
        padding: 8px 16px;
    }

    .CR-delivery-footer {
        padding: 10px 16px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .CR-delivery-option {
        padding: 14px;
        min-width: 120px;
    }

    .CR-delivery-option i {
        font-size: 22px;
    }

    .CR-delivery-options {
        flex-direction: column;
    }

    .CR-delivery-option {
        min-width: unset;
        width: 100%;
    }

    .CR-form-row {
        flex-direction: column;
        gap: 8px;
    }

    .CR-delivery-step-header h3 {
        font-size: 0.75rem;
    }

    .CR-delivery-step-header p {
        font-size: 0.65rem;
    }

    .CR-delivery-nav-btn {
        padding: 8px 16px;
        font-size: 0.65rem;
    }

    .CR-submit-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}

/* --- Support du safe area sur mobile --- */
@supports (padding: max(0px)) {
    .CR-service-dialog {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    #floatingTerrainBtn {
        bottom: max(150px, calc(150px + env(safe-area-inset-bottom)));
    }
}

/* ================================================================
   ADDENDUM 3 — Footer "créneaux" : défilement horizontal infini
   sur mobile
   ================================================================ */

.CR-newcal-footer-track,
.CR-newcal-footer-set:not([aria-hidden="true"]) {
    display: contents;
}

.CR-newcal-footer-set[aria-hidden="true"] {
    display: none;
}

@media (max-width: 768px) {
    .CR-newcal-footer {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        padding: 10px 0;
        -webkit-mask-image: linear-gradient(90deg,
                transparent 0,
                #000 24px,
                #000 calc(100% - 24px),
                transparent 100%);
        mask-image: linear-gradient(90deg,
                transparent 0,
                #000 24px,
                #000 calc(100% - 24px),
                transparent 100%);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .CR-newcal-footer::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .CR-newcal-footer-track {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        width: max-content;
        animation: crNewcalFooterMarquee 20s linear infinite;
        will-change: transform;
    }

    .CR-newcal-footer-set,
    .CR-newcal-footer-set[aria-hidden="true"] {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        flex-shrink: 0;
        gap: 20px;
        padding-right: 20px;
    }

    .CR-newcal-footer-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0;
    }

    .CR-newcal-footer-item-text {
        display: inline-flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        white-space: nowrap;
    }

    .CR-newcal-footer-item-text strong {
        font-size: 0.58rem;
        white-space: nowrap;
    }

    .CR-newcal-footer-item-text span {
        display: inline;
        font-size: 0.5rem;
        white-space: nowrap;
    }
}

@keyframes crNewcalFooterMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .CR-newcal-footer-track {
        animation: none;
    }
}

/* ================================================================
   ADDENDUM 4 — VUE "CATÉGORIES RESTAURANT"
   ================================================================ */

.CR-restaurant-cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding: 6px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.CR-restaurant-cat-card {
    position: relative;
    flex: 0 1 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
    width: calc(33.333% - 12px);
    min-height: 190px;
    height: 190px;
    max-height: 190px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.CR-restaurant-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.CR-restaurant-cat-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 214, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.CR-restaurant-cat-card:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.CR-restaurant-cat-card.active {
    border-color: #FFD600;
    box-shadow: 0 0 26px rgba(255, 214, 0, 0.25);
}

.CR-restaurant-cat-card.active::before {
    background: linear-gradient(to bottom, rgba(255, 214, 0, 0.12) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.CR-restaurant-cat-card-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 214, 0, 0.25);
    color: #FFD600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.CR-restaurant-cat-card-count {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: rgba(255, 214, 0, 0.18);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: #FFD600;
    font-size: 0.62rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.CR-restaurant-cat-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 12px;
    z-index: 2;
}

.CR-restaurant-cat-card-info h5 {
    color: #EFEEE4;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.CR-restaurant-cat-card-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.66rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .CR-restaurant-cat-card {
        flex: 0 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        width: calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .CR-restaurant-cat-grid {
        gap: 10px;
        padding: 4px 10px 14px;
    }

    .CR-restaurant-cat-card {
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
        width: calc(50% - 5px);
        min-height: 150px;
        height: 150px;
        max-height: 150px;
    }

    .CR-restaurant-cat-card-info h5 {
        font-size: 0.76rem;
    }

    .CR-restaurant-cat-card-info p {
        font-size: 0.58rem;
    }

    .CR-restaurant-cat-card-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        top: 8px;
        left: 8px;
    }

    .CR-restaurant-cat-card-count {
        top: 8px;
        right: 8px;
        height: 18px;
        min-width: 18px;
        font-size: 0.56rem;
    }
}

.CR-btn-edit-options {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.CR-btn-edit-options:hover {
    background: #FFD600 !important;
    color: #111 !important;
    border-color: #FFD600 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.25) !important;
}

.CR-btn-edit-options:active {
    transform: translateY(0);
}

.CR-cart-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.CR-cart-item-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 214, 0, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.CR-option-label-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.CR-option-label-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 214, 0, 0.3) !important;
}

.CR-option-label-item input:checked+span {
    color: #FFD600 !important;
    font-weight: 600;
}

.CR-opts-scroll-container::-webkit-scrollbar {
    display: none;
}

.CR-opts-scroll-arrow-btn:hover {
    background: rgba(255, 214, 0, 0.2) !important;
    border-color: #FFD600 !important;
    transform: scale(1.1);
}

.CR-opts-scroll-arrow-btn:active {
    transform: scale(1);
}


/* ================================================================
   BARRE DE TAGS — PILULES (unique définition, aucun doublon)
   Conteneur : .crb-hero-v2-tags   Pilule : .crb-hero-tag-card
   Toujours scopées sous .CR-hero-v2-tags-bar pour la spécificité,
   avec !important sur les couleurs pour empêcher toute règle
   externe / résiduelle de repasser en jaune au survol.
   ================================================================ */

/* ================================================================
   BARRE DE TAGS — PILULES (avec marges gauche/droite sur mobile)
   ================================================================ */

/* Conteneur principal des tags (sur l'écran d'accueil) */
.CR-hero-v2-tags-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 10px;
    flex-shrink: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Le conteneur de défilement des tags */
.crb-hero-v2-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 20px;
}

.crb-hero-v2-tags::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* Centrage des tags quand ils ne défilent pas */
.crb-hero-v2-tags.CR-centered {
    justify-content: center;
}

.CR-hero-v2-tags-bar .crb-hero-tag-card {
    position: relative;
    flex-shrink: 0;
    height: auto;
    min-width: 0;
    width: auto;
    padding: 8px 20px;
    background-color: transparent !important;
    background-image: none !important;
    border: 2px solid #FFD600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, transform 0.2s ease;
}

.CR-hero-v2-tags-bar .crb-hero-tag-card-text {
    color: white !important;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    pointer-events: none;
}

/* Survol : le fond devient jaune */
.CR-hero-v2-tags-bar .crb-hero-tag-card:hover {
    background-color: #FFD600 !important;
    transform: translateY(-2px);
}

.CR-hero-v2-tags-bar .crb-hero-tag-card:hover .crb-hero-tag-card-text {
    color: #111111 !important;
}

/* Etat actif (sélectionné) : fond blanc + texte noir + halo jaune */
.CR-hero-v2-tags-bar .crb-hero-tag-card.active {
    background-color: #ffffff !important;
    border-color: #FFD600;
    box-shadow: 0 0 16px rgba(255, 214, 0, 0.55);
}

.CR-hero-v2-tags-bar .crb-hero-tag-card.active .crb-hero-tag-card-text {
    color: #111111 !important; /* Texte en noir lorsque le tag est actif */
}

.CR-hero-v2-tags-bar .crb-hero-tag-card.active:hover {
    background-color: #ffffff !important;
}

/* ================================================================
   RESPONSIVE MOBILE — Marges gauche/droite pour les tags
   ================================================================ */

@media (max-width: 768px) {
    .CR-hero-v2-tags-bar {
        padding: 10px 8px 8px;
        gap: 6px;
    }

    .crb-hero-v2-tags {
        padding: 6px 20px; /* Marges gauche/droite de 20px sur mobile */
        gap: 8px;
    }

    .CR-hero-v2-tags-bar .crb-hero-tag-card {
        padding: 10px 18px;
    }

    .CR-hero-v2-tags-bar .crb-hero-tag-card-text {
        font-size: 0.72rem;
    }
}

@media (max-width: 600px) {
    .CR-hero-v2-tags-bar {
        padding: 8px 6px 6px;
        gap: 4px;
    }

    .crb-hero-v2-tags {
        padding: 4px 16px; /* Marges gauche/droite de 16px */
        gap: 6px;
    }

    .CR-hero-v2-tags-bar .crb-hero-tag-card {
        padding: 8px 14px;
    }

    .CR-hero-v2-tags-bar .crb-hero-tag-card-text {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .CR-hero-v2-tags-bar {
        padding: 6px 4px 4px;
        gap: 4px;
    }

    .crb-hero-v2-tags {
        padding: 4px 14px; /* Marges gauche/droite de 14px sur très petits écrans */
        gap: 4px;
    }

    .CR-hero-v2-tags-bar .crb-hero-tag-card {
        padding: 6px 12px;
    }

    .CR-hero-v2-tags-bar .crb-hero-tag-card-text {
        font-size: 0.62rem;
    }
}

/* ================================================================
   BARRE DE TABS DE CATÉGORIES (activités & menu) — Version mobile
   ================================================================ */

.CR-cat-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 10px;
    flex-shrink: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.CR-cat-tabs-scroll {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
    justify-content: flex-start;
}

.CR-cat-tabs-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}

.CR-cat-tabs-scroll.CR-centered {
    justify-content: center;
}

@media (max-width: 768px) {
    .CR-cat-tabs-bar {
        padding: 8px 8px 6px;
        gap: 6px;
    }

    .CR-cat-tabs-scroll {
        padding: 2px 12px; /* Marges pour les onglets de catégories sur mobile */
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .CR-cat-tabs-bar {
        padding: 6px 6px 4px;
        gap: 4px;
    }

    .CR-cat-tabs-scroll {
        padding: 2px 10px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .CR-cat-tabs-bar {
        padding: 4px 4px 4px;
        gap: 3px;
    }

    .CR-cat-tabs-scroll {
        padding: 2px 8px;
        gap: 3px;
    }
}

/* ================================================================
   BOUTONS DE NAVIGATION DES TAGS (flèches gauche/droite)
   ================================================================ */

.CR-hero-tags-nav,
.CR-cat-tabs-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 214, 0, 0.9);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    user-select: none;
    z-index: 2;
}

.CR-hero-tags-nav:hover:not(:disabled),
.CR-cat-tabs-nav:hover:not(:disabled) {
    background: #FFD600;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
}

.CR-hero-tags-nav:active:not(:disabled),
.CR-cat-tabs-nav:active:not(:disabled) {
    transform: scale(0.9);
}

.CR-hero-tags-nav:disabled,
.CR-cat-tabs-nav:disabled {
    opacity: 0.4;
    cursor: default;
    background: #e0e0e0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .CR-hero-tags-nav,
    .CR-cat-tabs-nav {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .CR-hero-tags-nav,
    .CR-cat-tabs-nav {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .CR-hero-tags-nav,
    .CR-cat-tabs-nav {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 11px;
    }
}

/* ================================================================
   MOBILE — Flèches toujours visibles + tags centrés
   ================================================================ */

@media (max-width: 768px) {
    /* On force l'affichage des flèches sur mobile, quel que soit le
       nombre de tags : le JS (renderHeroTags / attachChoiceEvents)
       fixe déjà display:flex dans ce cas, cette règle est un
       garde-fou supplémentaire pour ne jamais les perdre. */
    .CR-hero-tags-nav,
    .CR-cat-tabs-nav {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    .CR-hero-v2-tags-bar,
    .CR-cat-tabs-bar {
        gap: 6px;
    }

    /* Le conteneur de tags doit pouvoir rétrécir (min-width:0) pour
       ne jamais pousser les flèches hors de l'écran, et centrer son
       contenu dans l'espace restant entre les deux flèches. */
    .crb-hero-v2-tags,
    .CR-cat-tabs-scroll {
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .CR-hero-v2-tags-bar,
    .CR-cat-tabs-bar {
        gap: 4px;
    }
}


/* ================================================================
   CORRECTIF DÉFINITIF — Flèches toujours visibles (tous écrans)
   + conteneur de tags limité à 300px avec marges gauche/droite
   Ciblage par ID + !important pour ignorer tout conflit de cascade
   avec les définitions dupliquées plus haut dans le fichier.
   ================================================================ */
/* ================================================================
   CORRECTIF DÉFINITIF — Flèches toujours visibles (tous écrans)
   + conteneur de tags avec max-width responsive et marges
   + fix du premier élément coupé (justify-content + overflow)
   Ciblage par ID + !important pour ignorer tout conflit de cascade
   avec les définitions dupliquées plus haut dans le fichier.
   ================================================================ */

/* 1) Les barres ne doivent JAMAIS pouvoir s'élargir au-delà de leur
      conteneur : on bloque tout débordement horizontal. */
.CR-hero-v2-tags-bar,
.CR-cat-tabs-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2) Les boutons flèches ne rétrécissent JAMAIS et restent visibles */
#crHeroTagsPrev,
#crHeroTagsNext,
#crActCatPrev,
#crActCatNext,
#crMenuCatPrev,
#crMenuCatNext {
    display: flex !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* 3) Conteneur scrollable : rétrécit correctement, largeur max
      responsive, avec des marges gauche/droite. IMPORTANT :
      justify-content en flex-start par défaut pour ne jamais
      couper le premier élément quand le contenu déborde. Le
      centrage n'est appliqué que via la classe .CR-centered,
      ajoutée par le JS uniquement quand tout le contenu tient
      (scrollWidth <= clientWidth). */
#crHeroV2Tagsb,
#crActCatScroll,
#crMenuCatScroll {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 500px !important; /* Desktop par défaut */
    margin-left: 10px !important;
    margin-right: 10px !important;
    overflow-x: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

/* Centrage uniquement quand le contenu tient entièrement
   (classe ajoutée dynamiquement par crCenterTabsIfFit) */
#crHeroV2Tagsb.CR-centered,
#crActCatScroll.CR-centered,
#crMenuCatScroll.CR-centered {
    justify-content: center !important;
}

/* 4) Mobile : max-width réduit à 300px + gaps ajustés */
@media (max-width: 768px) {
    .CR-hero-v2-tags-bar,
    .CR-cat-tabs-bar {
        gap: 6px !important;
    }

    #crHeroV2Tagsb,
    #crActCatScroll,
    #crMenuCatScroll {
        max-width: 300px !important;
    }
}

@media (max-width: 480px) {
    .CR-hero-v2-tags-bar,
    .CR-cat-tabs-bar {
        gap: 4px !important;
    }

    #crHeroV2Tagsb,
    #crActCatScroll,
    #crMenuCatScroll {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }
}




@media (max-width: 768px) {
  .CR-option-modal {
    margin-top: 30px;
  }

  .CR-option-modal .CR-option-grid {
    padding-top: 15px;
  }
}