/* ==========================================
    PAGE RÉSERVATION - STRUCTURE PRINCIPALE
========================================== */
.tabb-reservation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin: 3em 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 40px rgba(var(--color4_rgb), 0.12);
}

/* ==========================================
    CELLULES - STRUCTURE DE BASE
========================================== */
.tabb-reservation .cell {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cellule gauche avec overlay */
.tabb-reservation .cell.cellg {
    background-image: url(../images/photo-res.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Cellule droite (calendrier) */
.tabb-reservation .cell.celld {
    background: var(--color0);
    border-left: 1px solid rgba(var(--color4_rgb), 0.06);
}

/* ==========================================
    OVERLAY GAUCHE AVEC CONTENU
========================================== */
.tabb-reservation .reser {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3em 2.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    transition: all 0.4s ease;
}

.tabb-reservation .reser:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Barre dorée animée */
.tabb-reservation .reser::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--color1), var(--color2));
    transition: height 0.5s ease;
}

.tabb-reservation .reser:hover::before {
    height: 80%;
}

/* ==========================================
    CONTENU TEXTUEL
========================================== */
.tabb-reservation .contt {
    width: 100%;
    max-width: 600px;
    color: var(--color0);
}

.tabb-reservation .contt h2 {
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 2.8);
    color: var(--color2);
    text-align: center;
    margin-bottom: 1.2em;
    padding-bottom: 0.5em;
    position: relative;
}

.tabb-reservation .contt h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color2), transparent);
}

.tabb-reservation .contt p {
    display: block;
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1);
    line-height: 1.8;
    color: var(--color0);
    margin-bottom: 1.2em;
    text-align: left;
    opacity: 0.95;
}

/* Téléphone dans la page réservation */
.tabb-reservation .callTracker {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0.5em;
    margin: 1.5em 0;
    padding: 1em;
    background: rgba(var(--color2_rgb), 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.tabb-reservation .callTracker span {
    color: var(--color0);
}

/* Table des horaires dans réservation */
.tabb-reservation .horaires {
    margin: 1.5em 0;
    width: 100%;
}

.tabb-reservation .horaire-mention {
    background: rgba(var(--color1_rgb), 0.15);
    backdrop-filter: blur(5px);
}

.tabb-reservation .horaire-table {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1em;
}

.tabb-reservation .horaire-table tr {
    border-bottom-color: rgba(var(--color0_rgb), 0.1);
}

.tabb-reservation .horaire-table tr:hover {
    background: rgba(var(--color2_rgb), 0.15);
}

.tabb-reservation .horaire-table tr[style*="font-weight:bold"] {
    background: rgba(var(--color2_rgb), 0.2);
}

.tabb-reservation .horaire-table td {
    color: var(--color0);
    vertical-align: baseline;
}

.tabb-reservation .horaire-table td:first-child {
    color: var(--color2);
}

/* Liste ordonnée des étapes */
.tabb-reservation .contt ol {
    list-style: none;
    counter-reset: step-counter;
    margin: 1.5em 0;
    padding: 0;
}

.tabb-reservation .contt ol li {
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.05);
    color: var(--color0);
    margin-bottom: 1em;
    padding-left: 3em;
    position: relative;
    counter-increment: step-counter;
    line-height: 1.6;
}

.tabb-reservation .contt ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    background: var(--color2);
    color: var(--color3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--taille_font);
    box-shadow: 0 2px 8px rgba(var(--color2_rgb), 0.3);
}

/* ==========================================
    CALENDRIER - PARTIE DROITE
========================================== */
.tabb-reservation .corps {
    width: 100%;
    padding: 3em 2.5em;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
    DATEPICKER - STYLES PERSONNALISÉS
========================================== */
.tabb-reservation .ui-datepicker {
    width: 100%;
    max-width: 500px;
    background: transparent;
    border: none;
    font-family: var(--font_family_3);
}

.tabb-reservation .ui-datepicker-header {
    background: transparent;
    border: none;
    padding: 1em 0 2.5em;
    position: relative;
}

.tabb-reservation .ui-datepicker-title {
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.8);
    color: var(--color3);
}

/* Boutons navigation */
.tabb-reservation .ui-datepicker-prev,
.tabb-reservation .ui-datepicker-next {
    position: absolute;
    top: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    background: var(--color1);
    border: 3px solid var(--color0);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(var(--color4_rgb), 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tabb-reservation .ui-datepicker-prev {
    left: 0;
}

.tabb-reservation .ui-datepicker-next {
    right: 0;
}

.tabb-reservation .ui-datepicker-prev:hover,
.tabb-reservation .ui-datepicker-next:hover {
    background: var(--color0);
    border: 1px solid var(--color1);
    box-shadow: 0 6px 20px rgba(var(--color1_rgb), 0.25);
    transform: translateY(-2px);
}

/* Icônes Font Awesome */
.tabb-reservation .ui-datepicker-prev .ui-icon,
.tabb-reservation .ui-datepicker-next .ui-icon {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: none;
    text-indent: 0;
    overflow: visible;
    position: relative;
    font-size: 0;
    line-height: 0;
}

.tabb-reservation .ui-datepicker-prev .ui-icon::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: calc(var(--taille_font) * 1);
    color: var(--color0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.3s ease;
}

.tabb-reservation .ui-datepicker-next .ui-icon::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: calc(var(--taille_font) * 1);
    color: var(--color0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.3s ease;
}

.tabb-reservation .ui-datepicker-prev:hover .ui-icon::before,
.tabb-reservation .ui-datepicker-next:hover .ui-icon::before {
    color: var(--color1);
}

/* État désactivé */
.tabb-reservation .ui-datepicker-prev.ui-state-disabled,
.tabb-reservation .ui-datepicker-next.ui-state-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.tabb-reservation .ui-datepicker-prev.ui-state-disabled:hover,
.tabb-reservation .ui-datepicker-next.ui-state-disabled:hover {
    background: var(--color1);
    border: 3px solid var(--color0);
    transform: none;
}

/* Table du calendrier */
.tabb-reservation .ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
}

.tabb-reservation .ui-datepicker th {
    font-family: var(--font_family_2);
    font-weight: 600;
    font-size: 1em;
    color: var(--color2);
    text-transform: uppercase;
    padding: 1em 0;
    letter-spacing: 0.05em;
}

.tabb-reservation .ui-datepicker td {
    padding: 0.4em;
}

/* Cellules de dates */
.tabb-reservation .ui-state-default {
    display: block;
    width: 100%;
    padding: 1em 0;
    text-align: center;
    font-family: var(--font_family_3);
    font-size: 1em;
    font-weight: 400;
    color: var(--color4);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.tabb-reservation .ui-state-default:hover {
    background: rgba(var(--color2_rgb), 0.1);
    border-color: rgba(var(--color2_rgb), 0.3);
    color: var(--color1);
}

/* Date du jour */
.tabb-reservation .ui-state-highlight {
    background: var(--color2);
    color: var(--color0);
    font-weight: 600;
    border-color: var(--color2);
}

.tabb-reservation .ui-state-highlight:hover {
    color: var(--color0);
    background: var(--color1);
    border-color: var(--color1);
}

/* Date sélectionnée */
.tabb-reservation .ui-state-active {
    background: rgba(var(--color1_rgb), 0.15);
    border-color: var(--color1);
    color: var(--color1);
    font-weight: 600;
}

/* Dates non disponibles */
.tabb-reservation .ui-datepicker-unselectable {
    opacity: 0.3;
}

.tabb-reservation .ui-datepicker-unselectable .ui-state-default {
    cursor: not-allowed;
}

.tabb-reservation .ui-datepicker-unselectable .ui-state-default:hover {
    background: transparent;
    border-color: transparent;
    color: var(--color4);
}

/* ==========================================
    RESPONSIVE
========================================== */
@media (max-width: 1200px) {
    .tabb-reservation .reser {
        padding: 2.5em 2em;
    }
    
    .tabb-reservation .corps {
        padding: 2.5em 2em;
    }
}

@media (max-width: 992px) {
    .tabb-reservation {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .tabb-reservation .cell {
        min-height: 500px;
    }
    
    .tabb-reservation .cell.celld {
        border-left: none;
        border-top: 1px solid rgba(var(--color4_rgb), 0.06);
    }
    
    .tabb-reservation .contt h2 {
        font-size: calc(var(--taille_font) * 2.4);
    }
    
    .tabb-reservation .ui-datepicker-title {
        font-size: calc(var(--taille_font) * 1.5);
    }
}

@media (max-width: 768px) {
    .tabb-reservation .cell {
        min-height: 450px;
    }
    
    .tabb-reservation .reser {
        padding: 2em 1.5em;
    }
    
    .tabb-reservation .corps {
        padding: 2em 1.5em;
        min-height: auto;
    }
    
    .tabb-reservation .contt h2 {
        font-size: calc(var(--taille_font) * 2);
    }
    
    .tabb-reservation .contt p {
        font-size: calc(var(--taille_font) * 0.95);
    }
    
    .tabb-reservation .contt ol li {
        font-size: calc(var(--taille_font) * 1);
        padding-left: 2.5em;
    }
    
    .tabb-reservation .contt ol li::before {
        width: 1.8em;
        height: 1.8em;
        font-size: 1em;
    }
    
    .tabb-reservation .ui-datepicker-title {
        font-size: calc(var(--taille_font) * 1.3);
    }
    
    .tabb-reservation .ui-datepicker th {
        font-size: 0.9em;
        padding: 0.8em 0;
    }
    
    .tabb-reservation .ui-state-default {
        padding: 0.8em 0;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .tabb-reservation .cell {
        min-height: 400px;
    }
    
    .tabb-reservation .reser {
        padding: 1.5em 1em;
    }
    
    .tabb-reservation .corps {
        padding: 1.5em 1em;
    }
    
    .tabb-reservation .contt h2 {
        font-size: calc(var(--taille_font) * 1.8);
    }
    
    .tabb-reservation .horaire-table {
        font-size: 0.9em;
    }
    
    .tabb-reservation .ui-datepicker th {
        font-size: 0.8em;
    }
    
    .tabb-reservation .ui-state-default {
        padding: 0.7em 0;
        font-size: 0.9em;
    }
}