/* =========================================================
   PAGE RESERVATION
========================================================= */

#contenu {
    margin-top: 0 !important;
    padding-top: 108px !important;
}

/* =========================================================
   HERO
========================================================= */

.booking-hero {
    padding: 74px 0 68px;
    background: #10151a;
    color: #fff;
}

.booking-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    align-items: end;
    gap: 56px;
}

.booking-hero h1 {
    margin: 10px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    line-height: .92;
}

.booking-hero__inner > p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    line-height: 1.8;
}

/* =========================================================
   PAGE
========================================================= */

.booking-page {
    padding: 72px 0 94px;
    background: #f3efe6;
    color: #10151a;
}

.booking-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, .55fr);
    align-items: start;
    gap: 26px;
}

.booking-main {
    padding: 42px;
    border: 1px solid rgba(16, 21, 26, .1);
    border-radius: 18px;
    background: #fff;
}

.booking-heading {
    max-width: 770px;
    margin-bottom: 34px;
}

.booking-heading h2 {
    margin: 8px 0 15px;
    color: #10151a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: .98;
}

.booking-heading > p:not(.section-kicker) {
    margin: 0;
    color: #60666a;
    line-height: 1.7;
}

/* =========================================================
   MESSAGES
========================================================= */

.booking-message {
    display: grid;
    gap: 7px;
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: 12px;
}

.booking-message strong {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.booking-message span {
    line-height: 1.65;
}

.booking-message--closed {
    border: 2px solid #a91522;
    background: #c92231;
    color: #fff;
    animation:
        booking-alert-pulse
        1.4s ease-in-out infinite;
}

.booking-message--success {
    border: 1px solid #91b898;
    background: #e5f2e7;
    color: #244c2d;
}

.booking-message--info {
    border: 1px solid #d1a437;
    background: #fff8e7;
    color: #5f4814;
}

.booking-error {
    margin-bottom: 24px;
    padding: 15px 17px;
    border: 1px solid #d39197;
    border-radius: 9px;
    background: #fae7e9;
    color: #8a1824;
    font-weight: 700;
    line-height: 1.55;
}

@keyframes booking-alert-pulse {
    0%,
    100% {
        background: #c92231;
        box-shadow: 0 0 0 rgba(201, 34, 49, 0);
    }

    50% {
        background: #a91522;
        box-shadow: 0 0 20px rgba(201, 34, 49, .28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-message--closed {
        animation: none;
    }
}

/* =========================================================
   FORMULAIRE
========================================================= */

.booking-form {
    display: grid;
    gap: 30px;
}

.booking-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 26px;
    border: 1px solid rgba(16, 21, 26, .1);
    border-radius: 14px;
    background: #faf8f3;
}

.booking-form legend {
    padding: 0 9px;
    color: #10151a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.booking-form legend small {
    color: #777d81;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 400;
}

.booking-grid {
    display: grid;
    gap: 18px;
}

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

.booking-field {
    min-width: 0;
}

.booking-field label,
.equipment-card > label {
    display: block;
    margin-bottom: 8px;
    color: #333b40;
    font-size: .78rem;
    font-weight: 800;
}

.booking-field input,
.booking-field select,
.booking-field textarea,
.equipment-card select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    box-sizing: border-box;
    border: 1px solid #c9c8c3;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #10151a;
    font: inherit;
}

.booking-field textarea {
    resize: vertical;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus,
.equipment-card select:focus {
    border-color: #b98920;
    box-shadow: 0 0 0 3px rgba(185, 137, 32, .14);
}

.booking-help {
    margin: 0 0 18px;
    color: #696f73;
    font-size: .92rem;
    line-height: 1.65;
}

.booking-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   CALENDRIER DES CRÉNEAUX
========================================================= */

.booking-calendar-fieldset {
    overflow: hidden;
}

.booking-calendar {
    display: grid;
    gap: 14px;
}

.booking-calendar-day {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ddd8cd;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 21, 26, .035);
}

.booking-calendar-day__date {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 132px;
    padding: 16px 12px;
    background: #10151a;
    color: #fff;
    text-align: center;
}

.booking-calendar-day__weekday {
    margin-bottom: 2px;
    color: #d1a437;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.booking-calendar-day__number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.65rem;
    line-height: .95;
}

.booking-calendar-day__month {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.booking-calendar-day__slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
    min-width: 0;
    padding: 16px;
}

.booking-slot-choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.booking-slot-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.booking-slot-choice__content {
    display: grid;
    min-height: 88px;
    align-content: center;
    padding: 12px 13px;
    box-sizing: border-box;
    border: 1px solid #d8d4ca;
    border-radius: 11px;
    background: #faf9f6;
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.booking-slot-choice:hover .booking-slot-choice__content {
    transform: translateY(-1px);
    border-color: #c6a554;
    background: #fffdf7;
}

.booking-slot-choice input:checked
+ .booking-slot-choice__content {
    border-color: #b98920;
    background: #fff5d9;
    box-shadow:
        inset 0 0 0 1px #b98920,
        0 6px 16px rgba(185, 137, 32, .12);
}

.booking-slot-choice__content > strong {
    color: #10151a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1;
}

.booking-slot-choice__content > small {
    display: block;
    margin-top: 5px;
    color: #686f74;
    font-size: .72rem;
}

.booking-slot-choice__places {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #edf2e8;
    color: #466236;
    font-size: .66rem;
    font-weight: 900;
}

.booking-slot-choice input:checked
+ .booking-slot-choice__content
.booking-slot-choice__places {
    background: #10151a;
    color: #d1a437;
}

.booking-participants {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: end;
    gap: 22px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e0dbcf;
    border-radius: 12px;
    background: #f0ece3;
}

.booking-participants > div:first-child {
    align-self: center;
}

.booking-participants > div:first-child strong {
    display: block;
    margin-bottom: 4px;
    color: #10151a;
}

.booking-participants > div:first-child span {
    color: #697075;
    font-size: .82rem;
    line-height: 1.45;
}

/* =========================================================
   MATERIEL
========================================================= */

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.equipment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 22px;
    min-height: 116px;
    padding: 20px 22px;
    box-sizing: border-box;
    border: 1px solid rgba(16, 21, 26, .1);
    border-radius: 12px;
    background: #fff;
}

.equipment-card__info {
    min-width: 0;
}

.equipment-card__info strong {
    display: block;
    color: #10151a;
    line-height: 1.35;
}

.equipment-card__info span {
    display: block;
    margin-top: 6px;
    color: #a0781f;
    font-size: .8rem;
    font-weight: 900;
}

.equipment-card__info small {
    display: block;
    margin-top: 7px;
    color: #7a7f83;
    font-size: .68rem;
}

.equipment-card__quantity {
    min-width: 0;
}

.equipment-card__quantity label {
    display: block;
    margin-bottom: 7px;
    color: #333b40;
    font-size: .78rem;
    font-weight: 800;
}

.equipment-card__quantity select {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    box-sizing: border-box;
    border: 1px solid #c9c8c3;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #10151a;
    font: inherit;
}

.equipment-card__quantity select:focus {
    border-color: #b98920;
    box-shadow: 0 0 0 3px rgba(185, 137, 32, .14);
}

/* =========================================================
   MUNITIONS
========================================================= */

.ammo-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ammo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(16, 21, 26, .11);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}

.ammo-card input {
    width: 18px;
    height: 18px;
    accent-color: #b98920;
}

.ammo-card span {
    display: grid;
    gap: 2px;
}

.ammo-card strong {
    color: #10151a;
}

.ammo-card small {
    color: #73797d;
}

/* =========================================================
   VALIDATION
========================================================= */

.booking-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 2px;
}

.booking-submit p {
    max-width: 460px;
    margin: 0;
    color: #676d71;
    font-size: .88rem;
    line-height: 1.55;
}

.booking-submit button {
    border: 0;
    cursor: pointer;
}

/* =========================================================
   DESACTIVE / VIDE
========================================================= */

.booking-disabled,
.booking-empty {
    padding: 34px;
    border-radius: 14px;
    background: #f3efe6;
}

.booking-disabled__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #10151a;
    color: #d1a437;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.booking-disabled h3 {
    margin: 0 0 12px;
    color: #10151a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.booking-disabled p,
.booking-empty p {
    margin: 0;
    color: #60666a;
    line-height: 1.7;
}

.booking-empty strong {
    display: block;
    margin-bottom: 9px;
    font-size: 1.3rem;
}

/* =========================================================
   COLONNE DROITE
========================================================= */

.booking-aside {
    display: grid;
    gap: 18px;
}

.booking-aside__block {
    padding: 30px;
    border-radius: 16px;
    background: #10151a;
    color: #fff;
}

.booking-aside__block:nth-child(2) {
    background: #d1a437;
    color: #10151a;
}

.booking-aside__block h2 {
    margin: 8px 0 24px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.02;
}

.booking-aside__block ol {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking-aside__block li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    gap: 12px;
    color: rgba(255, 255, 255, .74);
    line-height: 1.55;
}

.booking-aside__block li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(209, 164, 55, .55);
    border-radius: 50%;
    color: #d1a437;
    font-size: .75rem;
    font-weight: 900;
}

.booking-big-number {
    display: block;
    margin: -4px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.5rem;
    line-height: .9;
}

.booking-aside__block p:not(.section-kicker) {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
}

.booking-aside__block:nth-child(2)
p:not(.section-kicker) {
    color: rgba(16, 21, 26, .72);
}

.booking-aside__block .text-link {
    display: inline-flex;
    margin-top: 18px;
    color: #d1a437;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {
    .booking-hero__inner,
    .booking-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .booking-grid--2,
    .equipment-grid,
    .ammo-grid {
        grid-template-columns: 1fr;
    }

    .booking-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-submit .button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .booking-hero {
        padding: 52px 0;
    }

    .booking-page {
        padding: 48px 0 64px;
    }

    .booking-main,
    .booking-aside__block {
        padding: 27px 22px;
    }

    .booking-form fieldset {
        padding: 21px 16px;
    }

    .equipment-card {
        grid-template-columns:
            minmax(0, 1fr)
            78px;
    }
}


@media (max-width: 760px) {
    #contenu {
        padding-top: 82px !important;
    }
}


@media (max-width: 1100px) {
    .booking-calendar-day__slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .booking-calendar-day {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .booking-calendar-day__number {
        font-size: 2.15rem;
    }

    .booking-calendar-day__slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .booking-participants {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .booking-calendar-day {
        grid-template-columns: 1fr;
    }

    .booking-calendar-day__date {
        grid-template-columns: auto auto auto;
        justify-content: start;
        align-items: center;
        gap: 8px;
        min-height: 0;
        padding: 12px 15px;
        text-align: left;
    }

    .booking-calendar-day__weekday,
    .booking-calendar-day__number,
    .booking-calendar-day__month {
        margin: 0;
    }

    .booking-calendar-day__number {
        font-size: 1.8rem;
    }

    .booking-calendar-day__slots {
        grid-template-columns: 1fr;
    }

    .equipment-card {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 14px;
        padding: 18px;
    }
}


/* =========================================================
   RÉSERVATION STRICTEMENT PERSONNELLE
========================================================= */

.booking-personal-notice {
    display: grid;
    gap: 5px;
    margin-bottom: 4px;
    padding: 16px 18px;
    border: 1px solid rgba(209, 164, 55, .48);
    border-radius: 12px;
    background: #fff7df;
    color: #4f421f;
}

.booking-personal-notice strong {
    color: #111820;
    font-size: .86rem;
    font-weight: 900;
}

.booking-personal-notice span {
    font-size: .8rem;
    line-height: 1.55;
}


/* =========================================================
   V5 — PARCOURS CLIENT PLUS SIMPLE
   Calendrier à gauche, informations à droite sur ordinateur
========================================================= */

.booking-layout {
    grid-template-columns: 1fr;
}

.booking-main {
    width: 100%;
    box-sizing: border-box;
}

.booking-form {
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(360px, .75fr);
    align-items: start;
    gap: 24px;
}

.booking-personal-notice {
    grid-column: 1 / -1;
}

.booking-calendar-fieldset {
    grid-column: 1;
    grid-row: 2;
}

.booking-form-side {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 116px);
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8b27c transparent;
}

.booking-form-side > fieldset {
    padding: 20px;
    background: #fffdf8;
}

.booking-form-side .booking-grid--2 {
    grid-template-columns: 1fr;
    gap: 13px;
}

.booking-form-side .equipment-grid,
.booking-form-side .ammo-grid {
    grid-template-columns: 1fr;
}

.booking-form-side .equipment-card {
    grid-template-columns: minmax(0, 1fr) 88px;
}

.booking-form-side .booking-submit {
    display: grid;
    gap: 13px;
    align-items: stretch;
    padding: 18px 20px;
    border: 1px solid rgba(209, 164, 55, .38);
    border-radius: 13px;
    background: #fff7df;
}

.booking-form-side .booking-submit p {
    margin: 0;
}

.booking-form-side .booking-submit .button {
    width: 100%;
}

.booking-selected-slot {
    display: grid;
    gap: 4px;
    padding: 17px 18px;
    border: 1px solid rgba(209, 164, 55, .5);
    border-radius: 13px;
    background: #10151a;
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 21, 26, .1);
}

.booking-selected-slot > span {
    color: #d1a437;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.booking-selected-slot > strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.3;
}

.booking-selected-slot > small {
    min-height: 1.2em;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 700;
}

.booking-selected-slot.is-selected {
    border-color: #d1a437;
}

.booking-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.booking-aside__block {
    height: 100%;
    box-sizing: border-box;
}

/* Sur écran intermédiaire, le formulaire repasse sous le calendrier.
   Le clic sur un créneau amène automatiquement le client à ses coordonnées. */
@media (max-width: 1050px) {
    .booking-form {
        grid-template-columns: 1fr;
    }

    .booking-personal-notice,
    .booking-calendar-fieldset,
    .booking-form-side {
        grid-column: 1;
        grid-row: auto;
    }

    .booking-form-side {
        position: static;
        max-height: none;
        padding-right: 0;
        overflow: visible;
        scroll-margin-top: 96px;
    }

    .booking-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .booking-main {
        padding: 24px 15px;
    }

    .booking-form {
        gap: 18px;
    }

    .booking-form-side {
        gap: 13px;
    }

    .booking-form-side > fieldset {
        padding: 18px 14px;
    }

    .booking-selected-slot {
        padding: 15px;
    }
}
