@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

.contact-container {
    margin-top: 20px;
}

.slider-container {
    display: flex;
    overflow-x: hidden;
    margin: 20px 0;
    gap: 5px;
    height: auto !important;
}

.slider-item {
    position: relative;
    flex: 1;
    height: 220px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item:hover,
.slider-item.active {
    flex: 1.5;
}

.slider-item.active .slider-caption {
    opacity: 1;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-item:hover .slider-caption {
    opacity: 1;
}

.slider-caption h3 {
    margin-bottom: 5px;
    font-size: 22px;
}

.slider-caption p {
    font-size: 14px;
}

.booking-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Styles pour le calendrier */
.calendar-section {
    width: 45%;
    font-family: 'Arial', sans-serif;
}

.calendar-container {
    background: #fff;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.calendar-container header {
    display: flex;
    align-items: center;
    padding: 25px 30px 10px;
    justify-content: space-between;
}

header .calendar-navigation {
    display: flex;
}

#now {
    cursor: pointer;
}

header .calendar-navigation span {
    height: 38px;
    width: 38px;
    margin: 0 1px;
    cursor: pointer;
    text-align: center;
    line-height: 38px;
    user-select: none;
    color: #aeabab;
    font-size: 1.9rem;
    border-radius: 50%;
}

.calendar-navigation span:last-child {
    margin-right: -10px;
}

header .calendar-navigation span:hover {
    background: #f2f2f2;
}

header .calendar-current-date {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 1.45rem;
}

.calendar-body {
    padding: 20px;
}

.calendar-body ul {
    list-style: none;
    flex-wrap: wrap;
    display: flex;
    text-align: center;
}

.calendar-body .calendar-dates {
    margin-bottom: 20px;
}

.calendar-body li {
    width: calc(100% / 7);
    font-size: 1.07rem;
    color: #414141;
}

.calendar-body .calendar-weekdays li {
    cursor: default;
    font-weight: 500;
}

.calendar-body .calendar-dates li {
    margin-top: 30px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.calendar-dates li.inactive {
    color: #aaa;
    text-decoration: line-through;
}

.calendar-dates li.unavailable {
    color: #dd7777;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-dates li.unavailable::before {
    background: rgba(221, 119, 119, 0.3);
}

.calendar-dates li.active {
    color: #fff;
}

.calendar-dates li.start-date,
.calendar-dates li.end-date {
    color: #fff;
}

.calendar-dates li.in-range {
    color: #6BA9C7;
}

.calendar-dates li::before {
    position: absolute;
    content: "";
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.calendar-dates li.active::before {
    background: #6BA9C7;
}

.calendar-dates li.start-date::before,
.calendar-dates li.end-date::before {
    background: #6BA9C7;
}

.calendar-dates li.in-range::before {
    background: rgba(107, 169, 199, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.calendar-dates li:not(.active):not(.unavailable):not(.inactive):hover::before {
    background: #e4e1e1;
}

.calendar-dates li.checkin-unavailable {
    position: relative;
    color: #777;
    cursor: pointer;
}

.calendar-dates li.checkin-unavailable::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, transparent 50%, rgba(221, 119, 119, 0.3) 50%);
    z-index: -1;
    border-radius: 50%;
}

.calendar-dates li.checkin-unavailable.end-date::before {
    background: linear-gradient(135deg, #6BA9C7 50%, rgba(221, 119, 119, 0.3) 50%);
}

.calendar-dates li.checkout-unavailable.start-date::before {
    background: linear-gradient(315deg, #6BA9C7 50%, rgba(221, 119, 119, 0.3) 50%);
}

.calendar-dates li.checkin-unavailable.end-date,
.calendar-dates li.checkout-unavailable.start-date {
    color: #fff;
}

.calendar-dates li.checkout-unavailable {
    position: relative;
    color: #777;
    cursor: pointer;
}

.calendar-dates li.checkout-unavailable::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background: linear-gradient(315deg, transparent 50%, rgba(221, 119, 119, 0.2) 50%);
    z-index: -1;
    border-radius: 50%;
}

.calendar-legend {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend-available {
    background-color: #fff;
    border: 1px solid #ccc;
}

.legend-selected {
    background-color: #6BA9C7;
}

.legend-unavailable {
    background-color: #dd7777;
}

.legend-in-range {
    background-color: rgba(107, 169, 199, 0.3);
}

.legend-checkin-unavailable {
    background: linear-gradient(to left, #dd7777 50%, #fff 50%);
    border: 1px solid #ccc;
    border-radius: 10px;
}

.legend-checkout-unavailable {
    background: linear-gradient(to right, #dd7777 50%, #fff 50%);
    border: 1px solid #ccc;
    border-radius: 10px;
}

.disable {
    pointer-events: none;
}

.selection-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

/* Styles pour le formulaire */
.booking-form {
    width: 55%;
    padding: 20px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.booking-form h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 26px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: 'Arial', serif;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #6BA9C7;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #5a96b3;
}

.reservation-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f7fa;
    border-left: 4px solid #6BA9C7;
}

.reservation-info p {
    margin: 5px 0;
    font-size: 14px;
}

.highlight {
    color: #6BA9C7;
    font-weight: bold;
}



/* Media queries pour l'affichage mobile */
@media screen and (max-width: 767px) {
    /* Réorganisation générale */
    .booking-container {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Adaptation du slider */
    .slider-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
        padding-bottom: 10px;
    }
    
    .slider-item {
        min-width: 250px;
        flex: 0 0 80%;
        scroll-snap-align: center;
        transition: none;
    }
    
    .slider-item:first-child {
        scroll-snap-align: start;
    }
    
    .slider-item:last-child {
        scroll-snap-align: end;
    }
    
    .slider-item:not(:first-child):not(:last-child) {
        scroll-snap-align: center;
    }
    
    .slider-item,
    .slider-item.active,
    .slider-item:hover {
        min-width: 250px;
        flex: 0 0 80% !important;
        transition: none !important;
    }
    
    .slider-caption {
        opacity: 1;
        padding: 8px;
        transition: none;
    }
    
    .slider-caption h3 {
        font-size: 18px;
    }
    
    /* Adaptation du calendrier */
    .calendar-section {
        width: 100%;
    }
    
    .calendar-container {
        max-width: 100%;
    }
    
    .calendar-body li {
        font-size: 0.9rem;
    }
    
    .calendar-dates li::before {
        width: 35px;
        height: 35px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .legend-item {
        font-size: 10px;
        margin-right: 5px;
        flex: 0 0 45%;
    }
    
    /* Adaptation du formulaire */
    .booking-form {
        width: 100%;
        padding: 15px;
    }
    
    .booking-form h2 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px;
        font-size: 14px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 10px;
    }

    .slider-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 12px 0 8px 0;
    }

    .slider-dot {
        width: 9px;
        height: 9px;
        background: #ccc;
        border-radius: 50%;
        display: inline-block;
        opacity: 0.5;
        transition: background 0.3s, opacity 0.3s, transform 0.3s;
        cursor: pointer;
    }

    .slider-dot.active {
        background: #6BA9C7;
        opacity: 1;
        transform: scale(1.15);
    }

    .slider-item:hover,
    .slider-item.active {
        flex: 0 0 80%;
    }
}

/* Ajustements supplémentaires pour les très petits écrans */
@media screen and (max-width: 480px) {
    .slider-item {
        min-width: 200px;
        flex: 0 0 90%;
    }
    
    .calendar-body li {
        font-size: 0.8rem;
    }
    
    .calendar-dates li::before {
        width: 30px;
        height: 30px;
    }

    .calendar-dates li.in-range::before {
        width: 30px;
        height: 30px;
    }

    .calendar-dates li.checkout-unavailable::after {
        width: 30px;
        height: 30px;
    }

    .calendar-dates li.checkin-unavailable::after {
        width: 30px;
        height: 30px;
    }

    .calendar-body .calendar-dates li {
        margin-top: 20px;
    }
    
    .legend-item {
        flex: 0 0 100%;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-navigation {
        margin-top: 10px;
    }
}