@font-face {
    font-family: 'Kurale';
    src: url('../Kurale-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;

}

:root {
    --small-space: 0.7rem;
    --medium-space: 1.8rem;
    --large-space: 3.5rem;
    --primary-rgb: rgb(73, 175, 205);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kurale', serif;
}

body {
    background: white;
}

body>header {
    text-align: center;
}

body>header>h1 {
    font-size: 2.5rem;
}

body>header>h2 {
    font-size: 2.3rem;
}

body>header>h3 {
    font-size: 2.1rem;
}

body>header>h4 {
    font-size: 1.9rem;
}


iframe {
    width: 100vw;
}

p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

main>section {
    margin-bottom: var(--large-space);
}

main>section>h2 {
    font-size: var(--large-space);
    margin-bottom: var(--medium-space);
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.price::after {
    content: ' €';
}

#station #map {
    height: 35rem;
    background-image: url('../images/map.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}





#reservation {
    padding: 0 var(--small-space);
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--small-space)
}

#reservation .price {
    white-space: nowrap;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
}


#reservation main {
    display: none;
}

#reservation main.show {
    display: block;
}

#reservation main.show a {
    display: flex;
    gap: var(--small-space);
    margin-bottom: var(--small-space);
}

#reservation .month-item span+span {
    display: none;
}

#reservation .month-item {
    padding: 1rem 0 2rem 0;
    font-size: 2rem;
}

@media screen and (min-width:42rem) {

    #reservation .month-item {
        display: flex;
        justify-content: space-between;
    }

    #reservation .month-item span+span {
        display: inline;
    }
}



#reservation .summer,
#reservation .winter {
    position: relative;
    overflow: hidden;
}


#reservation .winter {
    box-shadow: 0 4px 20px rgba(100, 150, 255, 0.4);
    border: 2px solid #e0f7ff;
    background: linear-gradient(135deg, #92caff, #d9f1ff);
}

#reservation .summer {
    box-shadow: 0 4px 20px rgba(255, 200, 100, 0.5);
    border: 2px solid #ffeb99;
    background: linear-gradient(135deg, #f8b500, #fceabb);
}

#reservation .week-item.booked,
#reservation .week-item.booked .book-button {
    background: linear-gradient(135deg, #cccccc, #f0f0f0);
}

#reservation dl>* {
    margin: var(--small-space) 0;
}



@media (min-width: 500px) {
    .week {
        grid-column: 1;
    }

    .price {
        grid-column: 2;
        text-align: center;
    }
}


#pricing h3 {
    text-align: center;
    margin: var(--medium-space);
    font-size: var(--medium-space);
}

#pricing .seasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

#pricing .seasons article {
    border: 1px solid #e2e8f0;
    border-radius: var(--small-space);
    overflow: hidden;
}

#pricing .seasons article>*:first-child {
    background-color: var(--primary-rgb);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
}

#pricing .seasons article>*:last-child {
    background-color: #fbd38d;
    padding: 0.75rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}


.floor-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

@media screen and (min-width: 768px) {
    .floor-plans {
        padding: 0 1rem;
    }
}

.floor-plans .floor-plan img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.loader {
    width: 80px;
    height: 40px;
    border-radius: 100px 100px 0 0;
    position: relative;
    overflow: hidden;
}

.loader:before {
    content: "";
    position: absolute;
    inset: 0 0 -100%;
    background:
        radial-gradient(farthest-side, #ffd738 80%, #0000) left 70% top 20%/15px 15px,
        radial-gradient(farthest-side, #020308 92%, #0000) left 65% bottom 19%/12px 12px,
        radial-gradient(farthest-side, #ecfefe 92%, #0000) left 70% bottom 20%/15px 15px,
        linear-gradient(#9eddfe 50%, #020308 0);
    background-repeat: no-repeat;
    animation: l5 2s infinite;
}

@keyframes l5 {

    0%,
    20% {
        transform: rotate(0)
    }

    40%,
    60% {
        transform: rotate(.5turn)
    }

    80%,
    100% {
        transform: rotate(1turn)
    }
}





/*=======================================================*/
/* Menu Burger mobile */
/*====================================================*/
/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1090;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Réactive les événements quand visible */
}

/* Menu mobile */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(73, 175, 205, 0.8);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;

}

.burger-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}



.burger-menu {
    display: block;
}

.burger-menu:hover {
    transform: translateY(-2px);
    background: rgba(73, 175, 205, 0.9);
    box-shadow: 0 6px 20px rgba(73, 175, 205, 0.2);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.nav-buttons {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1095;
    list-style: none;
}

.nav-buttons.show {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

.nav-buttons li {
    opacity: 0;
    width: 100%;
    transform: translateX(30px);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(0.1s * var(--i));
}

.nav-buttons.show li {
    opacity: 1;
    max-width: 20rem;
    transform: translateX(0);
}

.nav-button {
    font-size: 2.5em;
    padding: 1rem 3rem;
    width: 100%;
    min-width: 150px;
    border-radius: 1rem;
    background: rgba(73, 175, 205, 0.9);
    border: 2px solid transparent;
    color: white;
    text-align: center;
    transition: transform 0.3s ease-out, background 0.3s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out;
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(73, 175, 205, 1);
    border-color: rgba(73, 175, 205, 1);
    box-shadow: 0 10px 20px rgba(73, 175, 205, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease-out;
}

.nav-button:hover::before {
    left: 150%;
}

#activites {
    background-color: #f9f9f9;
    padding: var(--medium-space);
}

.flex-scroll {
    overflow-x: scroll;
    padding: var(--small-space);
    display: flex;
    gap: var(--small-space);
}

.review-card {
    background: white;
    min-width: 18rem;
    border-radius: 15px;
    padding: var(--small-space);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}


.week-item {
    display: flex;
    flex-direction: column;
    gap: var(--medium-space);
    border: 2px solid #e0e0e0;
    border-radius: var(--small-space);
    padding: 1.5rem;
    transition: all 0.3s ease;
}



.week-item .when {
    font-size: var(--medium-space);
    flex: 2;
}

.week-item .how {
    justify-content: space-between;
    color: #000;
    font-size: var(--medium-space);
    text-align: right;
}

/* Switch to row layout on larger screens */
@media screen and (min-width: 768px) {
    .week-item {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
    }

    .when {
        text-align: left;
    }



    .book-button {
        text-align: right;
    }
}

.week-item.available {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.week-item.booked {
    border-color: #ff5722;
    background: linear-gradient(135deg, #fff5f5, #f0f0f0);
    opacity: 0.7;
}


.week-date {
    font-weight: bold;
    font-size: 1.1em;
}

.week-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-rgb);
    text-align: center;
    white-space: nowrap;

}


.book-button {
    padding: 0.8rem;
    background: var(--primary-rgb);
    color: white;
    border: none;
    border-radius: var(--small-space);
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.winter .book-button {
    background-color: #f8b500;
    color: black;
}

.summer .book-button {
    background-color: #92caff;
    color: black;
}

.book-button:hover {
    background: #3a9bc1;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.booking-form h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.selected-price {
    margin-bottom: 2rem;
    font-size: 1.1em;
    color: var(--primary-rgb);
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-rgb);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-booking {
    flex: 1;
    padding: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
}

.submit-booking:hover {
    background: #45a049;
}

.cancel-booking {
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.cancel-booking:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

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






/* Add to your existing CSS */
.error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2em;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-booking:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading.hidden {
    display: none;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


.reservation-info {
    padding: 1.5rem;
    background: rgba(73, 175, 205, 0.1);
}

p.reservation-info {
    text-align: center;
}

.reservation-info h3 {
    color: rgba(73, 175, 205, 1);
    margin-bottom: 1rem;
}

.reservation-info ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--medium-space) 0;
}

.reservation-info li {
    padding: 0.5rem 0;
    color: #444;
}

.reservation-info li::before {
    content: "•";
    color: rgba(73, 175, 205, 1);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}



/* Month headers styling */
#reservation .month-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
    height: 6rem;
}

#reservation .month-item:hover {
    background: #e9ecef;
    color: var(--primary-rgb);
}

#reservation .month-item::after {
    content: '▼';
    font-size: 0.9rem;
    color: var(--primary-rgb);
    transition: transform 0.3s ease;
    font-weight: normal;
}

#reservation .month-item.active::after {
    transform: rotate(180deg);
}

/* Month containers */
#reservation article {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Week containers (collapsed by default) */
#reservation article main {
    display: none;
    padding: 1rem;
    background: white;
    animation: slideDown 0.3s ease;
}

#reservation article main.show {
    display: block;
}

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

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

/* Week count styling */
#reservation .month-item span:last-child {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    padding: 0.3rem 0.8rem;
    background: rgba(73, 175, 205, 0.1);
    border-radius: 15px;
    margin-left: 1rem;
}

/* Seasonal indicators for months */
#reservation article:has(.winter) .month-item {
    border-left: 4px solid #92caff;
}

#reservation article:has(.summer) .month-item {
    border-left: 4px solid #f8b500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #reservation .month-item {
        padding: 1rem;
        font-size: 1.2rem;
    }

    #reservation .month-item span:last-child {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}