:root {
    --green: #0f4a3f;
    --green-dark: #083b32;
    --beige: #e6d2c4;
    --cream: #fbf7f2;
    --cream-soft: #f7efe8;
    --brown: #3b1c12;
    --white: #ffffff;
    --line: #d8c7ba;
    --accent: #b8784f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--green);
    color: var(--brown);
}

.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 44px 36px;
    background: var(--cream);
    min-height: 100vh;
}

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 42px;
}

.intro h1,
.price-title {
    margin: 0 0 8px;
    color: var(--green);
    text-align: center;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.intro-text {
    font-size: 19px;
    line-height: 1.5;
    margin: 0;
}

.section-label {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.calendar-container {
    width: 100%;
    margin-bottom: 48px;
    background: var(--cream-soft);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

iframe {
    width: 100%;
    height: 620px;
    border: none;
    display: block;
    background: var(--white);
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 18px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.table-wrap th,
.table-wrap td {
    padding: 15px 14px;
    text-align: center;
    border: 1px solid var(--line);
    font-size: 17px;
}

.table-wrap th {
    background: var(--green);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
}

.table-wrap td:first-child {
    font-weight: 700;
}

.basse,
.moyenne,
.haute {
    background: rgba(255, 255, 255, 0.42);
}

.note,
.note + p {
    max-width: 860px;
    margin-left: 28px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--brown);
}

.note {
    margin-top: 18px;
}

/* Bloc informations pratiques */
.info-box,
.practical-info {
    margin-top: 40px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px 36px;
}

.info-box h3,
.practical-info h3 {
    margin: 0 0 22px;
    color: var(--green);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.info-box h4,
.practical-info h4 {
    margin: 30px 0 12px;
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.info-box p,
.practical-info p,
.info-box li,
.practical-info li {
    font-size: 17px;
    line-height: 1.45;
}

.info-box ul,
.practical-info ul {
    margin: 20px 0 0;
    padding-left: 22px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 18px;
    align-items: end;
    margin-top: 28px;
    text-align: center;
}

.equipment-item {
    font-size: 16px;
    line-height: 1.15;
}

.equipment-icon {
    display: block;
    font-size: 34px;
    margin-bottom: 8px;
}

.rules {
    margin-top: 28px;
    font-size: 18px;
    line-height: 2;
}

.reservation-section {
    margin-top: 28px;
    background: #f4e7dd;
    padding: 26px 30px 30px;
}

.reservation-section .price-title {
    margin-bottom: 4px;
}

.reservation-section::before {
    content: "";
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 16px;
    transform: translateY(48px);
}

.reservation-form {
    background: transparent;
    padding: 0;
    border: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--brown);
    font: inherit;
}

.form-textarea {
    min-height: 88px;
    resize: vertical;
}

.submit-btn {
    background: var(--green);
    color: var(--white);
    padding: 16px 28px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

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

.form-status {
    margin-top: 15px;
    font-size: 16px;
    min-height: 24px;
}

.actions {
    margin-top: 36px;
}

.home-btn {
    display: inline-block;
    background-color: var(--green);
    color: var(--white);
    text-decoration: none;
    padding: 16px 28px;
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

@media (max-width: 980px) {
    .page {
        max-width: 100%;
        padding: 28px 18px 42px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    iframe {
        height: 500px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 560px) {
    .info-box,
    .practical-info,
    .reservation-section {
        padding: 24px 18px;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Image complÃ¨te des services : centrÃ©e et contenue dans la partie beige */
.services-image {
    width: 100%;
    max-width: 100%;
    margin: 30px auto 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-image img {
    display: block;
    width: 100% !important;
    max-width: 680px !important;
    height: auto !important;
    object-fit: contain !important;
}


/* =========================================================
   CALENDRIER + TABLEAU RESPONSIVES
   Adaptation automatique selon la taille de l'Ã©cran
========================================================= */

/* Calendrier */
#availabilityCalendar {
    width: 100%;
    background: #ffffff;
    padding: clamp(6px, 2vw, 18px);
    border-radius: 8px;
    min-height: auto;
}

.fc {
    font-family: Arial, Helvetica, sans-serif;
    color: #3b1c12;
    font-size: clamp(10px, 1.15vw, 16px);
}

.fc .fc-toolbar {
    flex-wrap: wrap;
    gap: 10px;
}

.fc .fc-toolbar-title {
    color: #0f4a3f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(18px, 2.2vw, 32px);
}

.fc .fc-button {
    font-size: clamp(10px, 1vw, 14px);
    padding: 0.4em 0.8em;
}

.fc .fc-button-primary {
    background-color: #0f4a3f;
    border-color: #0f4a3f;
}

.fc .fc-button-primary:hover {
    background-color: #083b32;
    border-color: #083b32;
}

/* Hauteur des cases du calendrier */
.fc-daygrid-day-frame {
    min-height: clamp(52px, 8vw, 110px) !important;
}

/* Ã‰vÃ©nements du calendrier */
.fc-daygrid-event,
.fc-h-event {
    min-height: clamp(22px, 3vw, 42px) !important;
    height: auto !important;
    font-size: clamp(9px, 1vw, 15px) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Tableau des prix */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
}

.table-wrap table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: clamp(7px, 1.1vw, 15px);
    font-size: clamp(11px, 1.05vw, 17px);
}

/* Mobile */
@media (max-width: 700px) {
    .page {
        padding: 24px 12px 36px;
    }

    .calendar-container {
        padding: 6px;
    }

    #availabilityCalendar {
        padding: 6px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .fc .fc-toolbar-title {
        font-size: 20px;
        text-align: center;
    }

    .fc .fc-button {
        font-size: 12px;
        padding: 5px 8px;
    }

    .fc-daygrid-day-frame {
        min-height: 56px !important;
    }

    .fc-daygrid-event,
    .fc-h-event {
        min-height: 22px !important;
        font-size: 10px !important;
        padding: 2px 4px !important;
    }

    .table-wrap table {
        min-width: 620px;
    }
}

/* =========================================================
   CORRECTION DÉBORDEMENT FULLCALENDAR MOBILE
========================================================= */

.calendar-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#availabilityCalendar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fc {
    width: 100% !important;
    max-width: 100% !important;
}

.fc-view-harness,
.fc-view-harness-active,
.fc-scrollgrid,
.fc-scrollgrid table,
.fc-daygrid-body,
.fc-daygrid-body table {
    width: 100% !important;
    max-width: 100% !important;
}

.fc table {
    table-layout: fixed !important;
}

@media (max-width: 700px) {

    .fc {
        font-size: 10px !important;
    }

    .fc-toolbar {
        flex-direction: column !important;
        align-items: center !important;
    }

    .fc-toolbar-chunk {
        max-width: 100%;
    }

    .fc-daygrid-day-number {
        font-size: 10px;
        padding: 2px;
    }

    .fc-daygrid-event,
    .fc-h-event {
        font-size: 8px !important;
        min-height: 18px !important;
        padding: 1px 2px !important;
    }
}



/* =========================================================
   FIX FINAL MOBILE : FullCalendar ne doit jamais dépasser
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.page {
    width: 100%;
    max-width: 980px;
}

.calendar-container,
#availabilityCalendar,
.fc,
.fc-view-harness,
.fc-view-harness-active,
.fc-scrollgrid,
.fc-scrollgrid table,
.fc-col-header,
.fc-col-header table,
.fc-daygrid-body,
.fc-daygrid-body table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.fc table {
    table-layout: fixed !important;
    min-width: 0 !important;
    border-collapse: collapse;
}

.fc th,
.fc td {
    padding: 0 !important;
    border: 1px solid #d8c7ba;
}

.fc .fc-daygrid-day-frame {
    min-width: 0 !important;
}

@media (max-width: 700px) {
    .page {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .calendar-container {
        padding: 6px !important;
        overflow: hidden !important;
    }

    #availabilityCalendar {
        padding: 4px !important;
        overflow: hidden !important;
    }

    .fc {
        font-size: 9px !important;
    }

    .fc .fc-toolbar {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 18px !important;
        text-align: center !important;
    }

    .fc .fc-button {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 10px !important;
        padding: 4px 1px !important;
    }

    .fc .fc-daygrid-day-number {
        font-size: 10px !important;
        padding: 2px !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 48px !important;
    }

    .fc .fc-daygrid-event,
    .fc .fc-h-event {
        min-height: 16px !important;
        font-size: 7px !important;
        line-height: 1.1 !important;
        padding: 1px 2px !important;
        border-radius: 3px !important;
        white-space: normal !important;
    }

    .table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 620px !important;
    }
}
