body {
    background-color: var(--background);
    font-family: "Segoe UI", Tahoma, sans-serif;
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
}

.container {
    background-color: var(--blanc);
    padding: 20px;
    border-radius: 20px;
    width: 100%;
}

h1 {
    color: var(--majeur);
    font-size: 24px;
    text-align: center;
}

.img-placeholder {
    max-width: 80%;
    height: 300px;
    background-color: var(--background);
    border-radius: 15px;
    margin: 20px auto;
}

.subtitle {
    font-style: italic;
    color: var(--majeur);
    margin-bottom: 10px;
}

.type {
    font-weight: bold;
    margin-bottom: 20px;
}

p{
    color: var(--paraph);
}

.centrer{
    text-align: center;
}

span{
    color: var(--paraph);
}

.infos p {
    margin-left: 5px;
    font-size: medium;
    color: var(--paraph);
}

.equipements {
    background-color: var(--champs);
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 14px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    background-color: var(--champs);
    padding: 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.prix {
    font-size: 20px;
    font-weight: bold;
    color: var(--majeur);
    margin-bottom: 20px;
}

.reserver {
    background-color: var(--bouton);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reserver:hover {
    background-color: var(--majeur);
    color: white;
}

.dispo {
    margin: 20px 0;
    font-size: 14px;
}

.non-dispo {
    color: var(--gris);
    font-style: italic;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    color: var(--majeur);
    padding: 10px 20px;
    border: 2px solid var(--majeur);
    border-radius: 25px;
    transition: all 0.2s ease-in-out;
}

.back-button:hover {
    background-color: var(--majeur);
    color: white;
}

.calendar-container {
    margin: 20px auto;
    text-align: center;
}

.calendar-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--majeur);
}

.calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    position: relative;
}

.calendar-day {
    padding: 8px 10px;
    background-color: var(--background);
    border-radius: 8px;
    font-size: 12px;
    color: var(--paraph);
    min-width: 60px;
    text-align: center;
    box-shadow: 1px 1px 3px var(--ombres);
}

.calendar-day.available {
    background-color: var(--champs);
}

.calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--over);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
}

.mini-back {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--champs);
    color: var(--majeur);
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 2px 2px 6px var(--ombres);
    transition: background-color 0.2s ease;
}

.mini-back:hover {
    background-color: var(--majeur);
    color: white;
}

.calendar-box {
    margin: 30px auto;
    text-align: center;
    max-width: 350px;
    background-color: var(--blanc);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--ombres);
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--majeur);
    gap: 20px;
}

.calendar-arrow {
    text-decoration: none;
    background-color: var(--champs);
    color: var(--majeur);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.2s;
}

.calendar-arrow:hover {
    background-color: var(--majeur);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    font-size: 14px;
}

.calendar-day {
    padding: 10px;
    border-radius: 10px;
    background-color: var(--champs);
    color: var(--paraph);
}

.calendar-day.available {
    background-color: var(--champs);
    color: var(--paraph);
    cursor: pointer;
}

.calendar-day.available:hover {
    background-color: var(--champs);
    transform: scale(1.05);
}

.calendar-day.unavailable {
    background-color: var(--background);
    color: var(--gris);
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.empty {
    background-color: transparent;
    visibility: hidden;
}

.calendar-day.selected {
    background-color: var(--majeur);
    color: white;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--majeur);
    position: relative;
}

.calendar-day.selected::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.calendar-day.in-range {
    background-color: var(--champs);
    color: var(--paraph);
    position: relative;
}

.calendar-day.in-range:not(.selected)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--majeur);
    border-radius: 50%;
}

.price-preview {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--champs);
    border-radius: 15px;
    font-size: 16px;
}

#selected-period {
    font-weight: bold;
    color: var(--majeur);
}

#total-price {
    font-weight: bold;
    color: var(--paraph);
}

a.reserver, a.reserver:hover, a.reserver:focus {
    text-decoration: none !important;
}


.reserver {
    background-color: var(--bouton);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--blanc);
    display: inline-block;
}

.reserver:hover {
    background-color: var(--majeur);
    color: var(--blanc);
}

.reserver.disabled {
    background-color: var(--gris);
    color: var(--gris);
    cursor: not-allowed;
}

.login-required {
    color: var(--majeur);
    text-align: center;
    margin-top: 15px;
}

.middle{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
