/* Page de réservation — charte du site WordPress (kit Elementor) */

:root {
    --resa-primaire: #040835;
    --resa-secondaire: #fe7900;
    --resa-texte: #000000;
    --resa-texte-doux: #55576b;
    --resa-fond: #ffffff;
    --resa-fond-doux: #f2f2f6;
    --resa-bordure: #c9cad6;
    --resa-separateur: #eeeef2;
    --resa-erreur: #a70a39;
    --resa-police: "Inter", Arial, sans-serif;
    --resa-police-bouton: "Poppins", "Inter", Arial, sans-serif;
    --resa-police-titre: "Montserrat", "Inter", Arial, sans-serif;
    --resa-rayon: 50px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.resa-page {
    margin: 0;
    background: var(--resa-fond);
    color: var(--resa-texte);
    font-family: var(--resa-police);
    font-size: 16px;
    line-height: 1.5;
}

.resa-page a {
    color: var(--resa-primaire);
}

.resa-page a:hover,
.resa-page a:focus {
    color: var(--resa-secondaire);
}

.resa-page :focus-visible {
    outline: 3px solid var(--resa-secondaire);
    outline-offset: 2px;
}

/* En-tête */
.resa-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e6e6ec;
}

.resa-logo img {
    display: block;
    width: 126px;
    height: auto;
}

/* Colonne principale */
.resa {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

/* Étapes : cercles numérotés reliés par une ligne */
.resa-steps {
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resa-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--resa-texte-doux);
    font-size: 15px;
    font-weight: 500;
}

/* trait vers l'étape suivante */
.resa-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--resa-bordure);
}

.resa-step--fait:not(:last-child)::after {
    background: var(--resa-primaire);
}

.resa-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--resa-bordure);
    background: #ffffff;
    color: var(--resa-texte-doux);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* étape terminée : coche */
.resa-step--fait {
    color: var(--resa-primaire);
}

.resa-step--fait .resa-step-num {
    border-color: var(--resa-primaire);
    color: transparent;
    position: relative;
}

.resa-step--fait .resa-step-num::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 13px;
    margin-top: -3px;
    border-right: 2.5px solid var(--resa-primaire);
    border-bottom: 2.5px solid var(--resa-primaire);
    transform: rotate(45deg);
}

/* étape en cours */
.resa-step--encours {
    color: var(--resa-primaire);
    font-weight: 700;
}

.resa-step--encours .resa-step-num {
    border-color: var(--resa-primaire);
    background: var(--resa-primaire);
    color: #ffffff;
}

/* Film */
.resa-film {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.resa-film-visuel {
    width: 180px;
    flex-shrink: 0;
    border-radius: 12px;
}

.resa-film-visuel--vide {
    height: 266px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--resa-fond-doux);
    color: var(--resa-texte-doux);
    font-size: 48px;
}

.resa-film-titre {
    margin: 0 0 14px;
    font-family: var(--resa-police-titre);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--resa-primaire);
}

.resa-film-texte {
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.resa-film-texte > :first-child {
    margin-top: 0;
}

/* Blocs */
.resa-bloc {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--resa-separateur);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resa-titre {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--resa-primaire);
}

.resa-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.resa-champ {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resa-champ > label:not(.resa-titre) {
    font-weight: 500;
}

.resa-alerte {
    margin: 0;
    color: var(--resa-erreur);
    font-weight: 600;
}

/* Listes déroulantes */
.resa-select {
    position: relative;
}

.resa-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--resa-primaire);
    border-bottom: 2px solid var(--resa-primaire);
    transform: rotate(45deg);
    pointer-events: none;
}

.resa-select select {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 22px;
    border: 1.5px solid var(--resa-primaire);
    border-radius: var(--resa-rayon);
    background: #ffffff;
    color: var(--resa-texte);
    font: inherit;
    appearance: none;
    cursor: pointer;
}

.resa-select select:disabled {
    border-color: var(--resa-bordure);
    background: var(--resa-fond-doux);
    color: var(--resa-texte-doux);
    cursor: not-allowed;
}

/* Champs texte */
.resa-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid var(--resa-bordure);
    border-radius: 12px;
    font: inherit;
    color: var(--resa-texte);
}

textarea.resa-input {
    resize: vertical;
}

.resa-input--court {
    max-width: 430px;
}

.resa-input--erreur {
    border: 2px solid var(--resa-erreur);
}

/* Nombre de places + prix */
.resa-quantite {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quantity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1.5px solid var(--resa-primaire);
    border-radius: var(--resa-rayon);
}

.quantity input {
    width: 52px;
    height: 44px;
    border: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.quantity-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--resa-rayon);
    background: var(--resa-fond-doux);
    color: var(--resa-primaire);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.quantity-up {
    background: var(--resa-primaire);
    color: #ffffff;
}

.resa-prix {
    font-size: 26px;
    font-weight: 700;
    color: var(--resa-primaire);
}

.resa-prix--vide {
    font-size: 15px;
    font-weight: 500;
    color: var(--resa-erreur);
}

/* Don */
.resa-don {
    align-self: flex-start;
    max-width: 520px;
    padding: 18px 24px;
    border: 1.5px solid var(--resa-primaire);
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* Validation */
.resa-validation {
    align-items: center;
    gap: 16px;
}

.resa-case {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.resa-case input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--resa-primaire);
}

#conteneur-btn {
    margin-top: 12px;
    text-align: center;
}

.resa-btn {
    padding: 20px 48px;
    border: 0;
    border-radius: var(--resa-rayon);
    background: var(--resa-secondaire);
    color: var(--resa-primaire);
    font-family: var(--resa-police-bouton);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.resa-btn:hover {
    background: #ff8c1f;
}

.resa-btn--inactif,
.resa-btn--inactif:hover {
    background: #e3e3ea;
    color: var(--resa-texte-doux);
    font-weight: 500;
    cursor: not-allowed;
}

.resa-btn[hidden] {
    display: none;
}

/* Pied de page */
.resa-footer {
    padding: 28px 20px;
    background: var(--resa-primaire);
    color: #c7c9da;
    font-size: 13px;
    text-align: center;
}

.resa-footer a {
    color: #ffffff;
}

.resa-footer a:hover,
.resa-footer a:focus {
    color: var(--resa-secondaire);
}

/* Mobile */
@media (max-width: 700px) {
    .resa {
        padding: 20px 20px 40px;
    }

    .resa-steps {
        margin-bottom: 28px;
    }

    .resa-step {
        font-size: 13px;
    }

    .resa-step-num {
        width: 34px;
        height: 34px;
    }

    .resa-step:not(:last-child)::after {
        top: 16px;
        left: calc(50% + 24px);
        right: calc(-50% + 24px);
    }

    .resa-film {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .resa-film-titre {
        font-size: 26px;
    }

    .resa-film-texte {
        text-align: left;
    }

    .resa-grille {
        grid-template-columns: 1fr;
    }

    .resa-bloc {
        margin-top: 28px;
        padding-top: 24px;
    }

    .resa-titre {
        font-size: 20px;
    }

    .resa-quantite {
        justify-content: space-between;
    }

    .resa-validation {
        align-items: stretch;
    }

    .resa-btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 17px;
    }
}
