:root {
    font-family: Arial, sans-serif;

    --green: #285f3c;
    --light-green: #dff2e4;
    --yellow: #fff0ba;
    --red: #ffd6d1;
    --blue: #d9e9ff;
    --gray: #e4e7e5;
    --border: #dce5de;

    --navy-950: #041d38;
    --white: #ffffff;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

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

body {
    background: #f4f6f2;
    color: #17231b;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* HEADER */

.reservation-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 22px rgb(24 51 32 / 7%);
    backdrop-filter: blur(12px);
}

.reservation-header-inner {
    width: min(1300px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.reservation-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #17231b;
    text-decoration: none;
    min-width: 0;
}

.reservation-header-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
}

.reservation-header-brand span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.reservation-header-brand strong {
    font-size: 1rem;
    line-height: 1.2;
}

.reservation-header-brand small {
    color: #607066;
    font-size: 0.82rem;
}

.reservation-header-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.reservation-header-nav a {
    padding: 10px 13px;
    color: var(--green);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.reservation-header-nav a:hover {
    background: #eef5ef;
}

.reservation-header-nav a[aria-current="page"] {
    color: white;
    background: var(--green);
}

/* LAYOUT */

.reservation-app {
    width: min(1250px, calc(100% - 30px));
    margin: 35px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.calendar-panel,
.form-panel {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgb(0 0 0 / 8%);
    min-width: 0;
}

.calendar-panel {
    width: 100%;
}

.form-panel {
    width: min(900px, 100%);
    justify-self: center;
}

.eyebrow {
    color: var(--green);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

.intro {
    color: #607066;
}

/* CALENDRIER */

.legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 14px;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 45px;
    align-items: center;
    gap: 10px;
}

.calendar-toolbar h2 {
    text-align: center;
    text-transform: capitalize;
    min-width: 0;
}

.calendar-toolbar button,
.secondary-button {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.weekday-grid,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
}

.weekday-grid {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.weekday-grid > *,
.calendar-grid > * {
    min-width: 0;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    min-height: unset;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--light-green);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}

.calendar-day.pending {
    background: var(--yellow);
    cursor: not-allowed;
}

.calendar-day.reserved {
    background: var(--red);
    cursor: not-allowed;
}

.calendar-day.club {
    background: var(--blue);
    cursor: default;
}

.calendar-day.blocked,
.calendar-day.past {
    background: var(--gray);
    cursor: not-allowed;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.selected {
    outline: 3px solid rgb(40 95 60 / 30%);
}

.day-number {
    display: block;
    font-weight: bold;
}

.day-status {
    display: block;
    margin-top: 5px;
    font-size: 0.72rem;
    line-height: 1.15;
    overflow: hidden;
}

.calendar-day-link {
    display: block;
    color: #17231b;
    text-decoration: none;
    overflow: hidden;
}

.calendar-day-link:hover {
    border-color: var(--green);
    box-shadow: 0 7px 18px rgb(40 95 60 / 16%);
    transform: translateY(-2px);
}

.calendar-day-link .day-status {
    color: #174571;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.facebook-event-label {
    display: block;
    margin-top: 6px;
    color: var(--green);
    font-size: 0.66rem;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* FORMULAIRE */

form {
    display: grid;
    gap: 15px;
}

label,
fieldset {
    display: grid;
    gap: 6px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
}

.form-panel fieldset {
    padding: 16px 18px;
}

.radio-line,
.check-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    font-weight: normal;
}

.radio-line input,
.check-line input {
    width: auto;
}

.form-panel .radio-line {
    min-height: 38px;
    padding: 6px 0;
}

.form-panel .check-line {
    padding: 15px;
    background: #fff9e8;
    border: 1px solid #eadba6;
    border-radius: 12px;
    align-items: start;
}

.form-panel .check-line.legal-acceptance {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
}

.form-panel .check-line.legal-acceptance input {
    margin-top: 3px;
}

.field-help,
.form-note,
.price-detail-note {
    display: block;
    color: #647168;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.45;
}

.form-note,
.price-detail-note {
    margin: 8px 0 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* DATE SÉLECTIONNÉE */

.selected-date-box {
    display: grid;
    gap: 6px;
}

.selected-date-box label {
    font-weight: 800;
}

#eventDateDisplay {
    cursor: default;
    color: #647168;
    background: #f8fafc;
    border: 1px dashed #b9c8bd;
    font-weight: 700;
}

#eventDateDisplay.has-date {
    color: #17231b;
    background: #edf7ef;
    border: 1px solid #bcd9c3;
}

/* PRIX */

.price-box {
    background: #eef5ef;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.price-box strong {
    color: var(--green);
    font-size: 22px;
    white-space: nowrap;
}

.price-details,
.alcool-box {
    padding: 18px 20px;
    background: #f7faf7;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.price-details h3,
.payment-notice h3,
.rental-conditions h3 {
    margin: 0 0 15px;
    color: var(--green);
    font-size: 1.05rem;
}

.price-detail-group {
    display: grid;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.price-detail-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #445249;
    font-weight: 400;
}

.price-detail-line strong {
    color: #17231b;
    white-space: nowrap;
}

/* CONDITIONS */

.rental-conditions {
    padding: 18px 20px;
    background: #f3f7f4;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.rental-conditions h3 {
    margin-bottom: 12px;
}

.rental-conditions ul {
    margin: 0;
    padding-left: 21px;
}

.rental-conditions li {
    margin-bottom: 9px;
    color: #445249;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
}

.rental-conditions li:last-child {
    margin-bottom: 0;
}

.accessibility-notice {
    margin: 20px 0;
    padding: 17px 19px;
    color: #633b08;
    background: #fff3d5;
    border: 1px solid #e4c477;
    border-left: 5px solid #b57813;
    border-radius: 13px;
}

.accessibility-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.accessibility-notice p {
    margin: 0;
    line-height: 1.5;
}

.payment-notice {
    padding: 18px 20px;
    color: #24402d;
    background: #edf7ef;
    border: 1px solid #bcd9c3;
    border-radius: 14px;
}

.payment-notice p {
    margin: 0 0 10px;
    font-weight: 400;
    line-height: 1.5;
}

.payment-notice p:last-child {
    margin-bottom: 0;
}

.payment-notice ul {
    margin: 8px 0 12px;
    padding-left: 22px;
}

.payment-notice li {
    margin-bottom: 6px;
    font-weight: 400;
}

.payment-notice a {
    color: var(--green);
    font-weight: 800;
}

.privacy-note {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* BOUTONS / MESSAGES */

.submit-button {
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 11px;
    padding: 14px;
    font-weight: bold;
    cursor: pointer;
}

.form-message {
    display: none;
    padding: 12px;
    border-radius: 10px;
}

.form-message.success {
    display: block;
    background: var(--light-green);
}

.form-message.error {
    display: block;
    background: var(--red);
}

/* FOOTER */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.site-footer {
    padding-block: 28px;
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: var(--navy-950);
    color: var(--white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-brand div {
    display: grid;
    gap: 2px;
}

.footer-brand strong {
    font-size: 0.92rem;
}

.footer-brand span,
.site-footer p {
    color: rgb(255 255 255 / 62%);
    font-size: 0.82rem;
}

.site-footer p {
    margin: 0;
}

.footer-vdgf,
.footer-vdgf:visited {
    color: rgb(255 255 255 / 25%);
    font-size: 0.7rem;
    text-decoration: none;
}

.footer-vdgf:hover,
.footer-vdgf:focus-visible {
    color: rgb(255 255 255 / 75%);
}

.reservation-copied-footer {
    width: 100%;
    margin-top: 70px;
}

.reservation-copied-footer img {
    max-width: 100%;
}

/* MOBILE */

@media (max-width: 760px) {
    .reservation-header-inner {
        min-height: auto;
        padding: 10px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .reservation-header-brand img {
        width: 48px;
        height: 48px;
    }

    .reservation-header-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .reservation-header-nav::-webkit-scrollbar {
        display: none;
    }

    .reservation-header-nav a {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 620px) {
    .reservation-app {
        width: calc(100% - 14px);
        margin: 10px auto;
        gap: 16px;
    }

    .calendar-panel,
    .form-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .legend {
        gap: 9px;
        font-size: 12px;
    }

    .weekday-grid,
    .calendar-grid {
        gap: 5px;
    }

    .weekday-grid {
        font-size: 0.82rem;
    }

    .calendar-day {
        padding: 4px;
        border-radius: 10px;
    }

    .day-number {
        font-size: 0.88rem;
    }

	.day-status {
		display: -webkit-box;
		margin-top: 5px;
		font-size: 0.72rem;
		line-height: 1.15;
		overflow: hidden;
		white-space: normal;
		text-overflow: unset;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

    .facebook-event-label {
        display: none;
    }
}

    .rental-conditions,
    .accessibility-notice,
    .price-details,
    .payment-notice,
    .alcool-box,
    .privacy-note {
        padding: 15px;
    }

    .rental-conditions li {
        font-size: 0.86rem;
    }

    .price-detail-line {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .reservation-header-brand strong {
        font-size: 0.9rem;
    }

    .reservation-header-brand small {
        font-size: 0.75rem;
    }

    .reservation-header-nav a {
        font-size: 0.76rem;
    }

    .calendar-toolbar {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .calendar-toolbar h2 {
        font-size: 1.15rem;
    }

    .weekday-grid,
    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        padding: 4px;
        border-radius: 9px;
    }

    .day-status {
        font-size: 0.56rem;
    }

    .facebook-event-label {
        font-size: 0.5rem;
    }

    .price-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .calendar-panel {
        padding: 10px;
    }

    .weekday-grid {
        font-size: 0.72rem;
    }

    .calendar-day {
        padding: 3px;
        border-radius: 8px;
    }

    .day-number {
        font-size: 0.78rem;
    }

    .day-status {
        font-size: 0.5rem;
    }

    .facebook-event-label {
        display: none;
    }
}