@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,600;1,300&display=swap');
@font-face {
    font-family: 'nagomi';
    src:
    url('../font/Nagomi_Regular/Nagomi_Regular.ttf') format('truetype')
}
@font-face {
    font-family: 'nova';
    src:
            url('../font/Demo_Fonts/Fontspring-DEMO-proximanova-medium.otf') format('opentype');
    font-style: normal;
}
body{
    background: #F3F3F3;
    margin: 0;
    display: grid;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    background-image: url("../img/fond_reserv.png");
}
.titleStep2 button{
    margin: 0 !important;
}
#submitBook {
    margin: 10px auto !important;
    display: flex;
    padding-inline:60px !important;
    padding-block: 12px !important ;

}
.info-form{
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border: 1px solid #989797;
    border-radius: 35px;
    opacity: 1;
    padding-inline: 60px;
    display: grid;
    justify-items: center;
    gap: 30px;
    padding-block: 50px;
}
.info-form h3{
    font-size: 20px;
    color: black;
    font-weight: 500;
}
form#step1{
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 100px;
}
form#step1 select, form#step1 input, form#step1 button, form#step1 textarea, form#step2 select, form#step2 input, form#step2 button, form#step2{
    margin: 10px;
    padding-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 600;
    background: white;

}
.imgFond{
    top: 220px;
    width: 100%;
    position: absolute;
    right: 0;
    display: block;
    height: auto;
    max-width: 100% !important;
}
form#step1 select, form#step1 input{
    border-bottom: solid 1.6px #d3d2d2;
    border-top: none;
    border-left: none;
    border-right: none;
    margin: 0;
}
form#step2 label {
    font-size: 14px;
    width: 100%;
    display: block;
    margin-left: 10px;
}
form#step1 input::placeholder{
    color: #adacac ;
    font-size: 12px;
}
.titleTo{
    font-family: 'nagomi', sans-serif;
    font-size: 80px;
}
form#step1 button, form#step2 button {
    cursor: pointer;
    background: black !important;
    color: white;
    border: solid 1px black !important;
    transition: 300ms;
    border-radius: 25px ;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
}
form#step1 button:hover, form#step2 button:hover {
    background-color: white !important;
    color: black !important;
}
.div_select{
    display: grid;
    grid-auto-rows: min-content;
    justify-items: center;
    gap: 50px; width: 50%;
    margin: 50px auto;
}
.info-text {
    font-size: 10px;
    color: #888;
}
.wp-block-post-title {
    text-align: center;
}
a.privacy_policy {
    color: blue;
}
/* Mettre des éléments en ligne */
.inline-label {
    display: grid;
    margin-right: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#date {
    text-align: center;
}
/* Input pour nom et prénom, email et téléphone */
.two-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px ;
    width: 100%;
}
.picker__footer {
    display: flex;
    flex-direction: column;
}
.picker__footer button {
    width: 100%;
}
.picker__button--clear {
    display: none;
}
@media (max-width: 600px) {
    .two-inputs, .inline-label {
        grid-template-columns: 1fr;
    }
}
.two-inputs input {
    width: auto;
    height: fit-content;
}

/* Textarea */
textarea#comment {
    box-sizing: border-box; /* Cela garantit que padding + border sont inclus dans la largeur totale */
    resize: none; /* Désactiver le redimensionnement manuel */
    border: solid 1.6px #d3d2d2;
    background: white;
    color: black;
    border-radius: 20px;
    width: 100%;
    padding: 10px;
}
textarea#comment::placeholder{
    color: #adacac;
    font-size: 12px;
}
/* Checkboxes */
.checkbox-label {
    display: block;
    margin-bottom: 10px;
}
.titleStep2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.titleStep2 p {
    margin: 0;
}
.titleStep2 span {
    font-weight: bold;
}

#step2 i.fa-calendar-alt {
    color: #fff;
}
.custom-radio {
    display: flex !important;
    align-items: center;
    gap: 20px;
}
/* Masquer le bouton radio lui-même */
.custom-radio input {
    display: none;
}

/* Style personnalisé pour la case à cocher */
.custom-radio .checkmark {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

/* Quand l'input est coché */
.custom-radio input:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}
.custom-checkbox {
    font-size: 14px;
}
/* Masquer la checkbox elle-même */
.custom-checkbox input {
    display: none;
}

/* Style personnalisé pour la case à cocher */
.custom-checkbox .checkmark-box {
    width: 10px;
    height: 10px;
    border: 2px solid #ccc;
    display: inline-block;
    position: relative;
}

/* Quand l'input est coché */
.custom-checkbox input:checked + .checkmark-box {
    background-color: #007bff;
    border-color: #007bff;
}

.check-icon {
    position: absolute;
    top: 40%;
    width: 2px;
    height: 10px;
    transform: translate(-36%, -44%);
    display: none;
    font-size: 10px;
    left: 10%;
}
.error {
    border: 1px solid red;
}

.error-message {
    color: red;
    font-size: 12px;
    position: absolute;
    margin-top: 0px;
    bottom: -22px;
}

.custom-dropdown {
    display: inline-block;
    position: relative;
    margin: auto;
}

.dropdown-toggle {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 1;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background-color: #e9ecef;
}
.reservation-details {
    display: flex !important;
    justify-content: center;
}
.reservation-details span {
    margin-right: 5px; /* ajoute un espace à droite de chaque détail de réservation */
}
h3, h5 {
    font-family: 'Poppins', sans-serif !important;
}
footer{
    display: flex !important;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    max-width: fit-content !important;
    gap: 1rem;
    margin-top: 50px;
}
footer span{
    font-size: 13px;
}

.modal {
    display: none;
    width: 100%;
    z-index: 10;
    position: fixed; /* Modal en position fixe pour couvrir la totalité de la page */
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24); /* Fond semi-transparent */
    backdrop-filter: blur(3px);
    overflow-y: auto;
}

.modal-content {
    padding: 20px;
    width: 70%;
    margin: auto;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 20px;
    overflow-y: auto;
    margin-top: 100px;
}
.restaurant-item img{
    border-radius: 20px;
    width: 100%;
    height: 50%;
}
#restaurantList{
    display: grid;
    justify-items: center;
    gap: 20px;
    margin-top: 20px;
    grid-template-columns: repeat(3,1fr);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


#stripeModal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.24); /* Fond semi-transparent */
    backdrop-filter: blur(3px);
}

/* Styles pour le formulaire Stripe */
#card-element {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}

#card-errors {
    color: #dc3545; /* Rouge pour les erreurs */
    margin-top: 10px;
}

/* Styles pour les boutons de la modal */
.modal-footer {
    text-align: right;
}

/* Styles pour le bouton "Payer" */
.btn-pay {
    background-color: #28a745; /* Vert pour le bouton "Payer" */
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-pay:hover {
    background-color: #218838; /* Vert foncé au survol */
}

/* Styles pour le bouton "Fermer" */
.btn-close {
    background-color: #6c757d; /* Gris pour le bouton "Fermer" */
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-close:hover {
    background-color: #5a6268; /* Gris foncé au survol */
}
.tel_div{
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    position: relative;
}
.email_div{
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 60px;
    position: relative;
}
footer{
    display: flex; justify-content: space-between
}
.div_first_part img {
    margin: 0 auto;
}

@media (max-width: 768px){

    form#step1 {
        display: grid;
        gap: 100px;
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }
    .div_select {
        display: grid;
        grid-auto-rows: min-content;
        justify-items: center;
        gap: 50px;
        width: 100%;
        margin-top: 50px;
        padding-inline: 0;
    }
    .info-form {
        justify-items: normal;
        width: 70%;
    }
    .empty-div{
        display: none;
    }

    .tel_div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 60px;
        width: 80%;
    }
    .email_div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .div_first_part{
        text-align: center;
    }
    .restaurant-item img {
        border-radius: 20px;
        width: 250px;
        height: 200px;
    }
    .imgFond {
        visibility: hidden;
        top: 740px;
    }
    #restaurantList {
        display: grid;
        justify-items: center;
        gap: 20px;
        margin-top: 20px;
        grid-template-columns: repeat(1,1fr);
    }
    .modal-content {
        margin-top: 100px;
        text-align: center;
        margin-bottom: 100px;
    }
    footer{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 30px;
        text-align: center;
    }
}




#payment-form form {
    width: 30vw;
    min-width: 500px;
    align-self: center;
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
    padding: 40px;
}

.hidden {
    display: none;
}

#payment-message {
    color: rgb(105, 115, 134);
    font-size: 16px;
    line-height: 20px;
    padding-top: 12px;
    text-align: center;
}

#payment-element {
    margin-bottom: 24px;
}

/* Buttons and links */
#payment-form button {
    background: #5469d4;
    font-family: Arial, sans-serif;
    color: #ffffff;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
    width: 100%;
}
#payment-form button:hover {
    filter: contrast(115%);
}
#payment-form button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
    border-radius: 50%;
}
.spinner {
    color: #ffffff;
    font-size: 22px;
    text-indent: -99999px;
    margin: 0px auto;
    position: relative;
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 0 2px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}
.spinner:before,
.spinner:after {
    position: absolute;
    content: "";
}
.spinner:before {
    width: 10.4px;
    height: 20.4px;
    background: #5469d4;
    border-radius: 20.4px 0 0 20.4px;
    top: -0.2px;
    left: -0.2px;
    -webkit-transform-origin: 10.4px 10.2px;
    transform-origin: 10.4px 10.2px;
    -webkit-animation: loading 2s infinite ease 1.5s;
    animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
    width: 10.4px;
    height: 10.2px;
    background: #5469d4;
    border-radius: 0 10.2px 10.2px 0;
    top: -0.1px;
    left: 10.2px;
    -webkit-transform-origin: 0px 10.2px;
    transform-origin: 0px 10.2px;
    -webkit-animation: loading 2s infinite ease;
    animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 600px) {
    #payment-form form {
        width: 80vw;
        min-width: initial;
    }
    .two-inputs {
        width: 50%;
    }
}
@media (max-width: 430px){
    textarea#comment {
        width: 93%;
    }
    .info-form {
        padding-inline: 14px;
        width: 95%;
    }
    .restaurant-item img {
        width: 200px;
        height: 150px;
    }
    .modal-content {
        margin-top: 50px;
    }
}
@media (max-width: 398px){
    top: 833px;
}@media (max-width: 860px){
    .titleTo {
        font-family: 'nagomi', sans-serif;
        font-size: 66px;
    }
}


