@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --primary-color: #603AC4;
    --secondary-color: #613ac410;
    --background-color: #FFFCF4;
    --stroke-color: #613ac449;
    --text-color: #262626;
    --white: #ffffff;
    --shadow-soft: 0 4px 12px rgba(96, 58, 196, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

/* =========================================
   STRUCTURE GÉNÉRALE
   ========================================= */

#reservation-form {
    display: flex;
    gap: 5px;
    position: relative;
    padding: 30px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================
   HEADER (Harmonisé avec Index.css)
   ========================================= */

#reservation-form .header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#reservation-form .header .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Titre style Index (Bebas Neue) */
#reservation-form .header .title h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: 1px;
    font-style: normal; /* On enlève l'italic pour coller au style index */
    font-weight: 400;
}

/* Bouton Retour style "Pilule" */
#reservation-form .header .title .back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Texte "RETOUR" dans le bouton */
#reservation-form .header .title .back-btn p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 1; /* Force l'opacité à 1 */
}

/* SVG dans le bouton */
#reservation-form .header .title .back-btn svg {
    width: 20px;
    height: auto;
}

#reservation-form .header .title .back-btn svg path {
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

/* Effets Hover du bouton */
#reservation-form .header .title .back-btn:hover {
    background: var(--primary-color);
    transform: translateX(-3px);
}

#reservation-form .header .title .back-btn:hover p {
    color: var(--background-color);
}

#reservation-form .header .title .back-btn:hover svg path {
    fill: var(--background-color);
}

/* Description sous le titre */
#reservation-form .header p.description {
    font-size: clamp(0.75rem, 0.9vw + 0.5rem, 0.95rem);
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.5;
    max-width: 90%;
    margin-top: 0;
}

/* Adaptation Mobile pour le titre */
@media (max-width: 600px) {
    #reservation-form .header .title h1 {
        font-size: 2.2rem;
    }
}

#reservation-form .body-container {
    height: auto;
    max-height: clamp(450px, 70vh, 700px);
    width: 100%;
    margin: clamp(15px, 3vw, 30px) 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: clamp(6px, 1vw, 12px);
}

/* Scrollbar */
#reservation-form .body-container::-webkit-scrollbar {
    width: 8px;
}

#reservation-form .body-container::-webkit-scrollbar-track {
    background: transparent;
}

#reservation-form .body-container::-webkit-scrollbar-thumb {
    background-color: #613ac4;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

#reservation-form .body-container::-webkit-scrollbar-thumb:hover {
    background-color: #452b8a;
}

/* =========================================
   INTRODUCTION & DASHBOARD
   ========================================= */

#reservation-form .body-container .introduction-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#reservation-form .body-container .introduction-container > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#reservation-form .body-container .introduction-container > div h4 {
    color: var(--primary-color);
    font-weight: 500;
}

#reservation-form .body-container .introduction-container > div p {
    opacity: 0.7;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    line-height: 1.5;
}

.reservations-group.upcoming,
.reservations-group.past {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) transparent; /* Firefox */
}

/* Webkit (Chrome, Edge, Safari) */
.reservations-group.upcoming::-webkit-scrollbar,
.reservations-group.past::-webkit-scrollbar {
    width: 6px;
}

.reservations-group.upcoming::-webkit-scrollbar-track,
.reservations-group.past::-webkit-scrollbar-track {
    background: transparent;
}

.reservations-group.upcoming::-webkit-scrollbar-thumb,
.reservations-group.past::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.reservations-group.upcoming::-webkit-scrollbar-thumb:hover,
.reservations-group.past::-webkit-scrollbar-thumb:hover {
    background-color: #452b8a;
}

.no-reservations {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 5vw, 20px);
}

.icon-container {
    border-radius: 50%;
    width: clamp(60px, 10vw, 100px);
    height: clamp(60px, 10vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(15px, 3vw, 25px);
    border: 3px solid #e9ecef;
    color: #6c757d;
}

.icon-container img {
    width: 65%;
    height: 65%;
    object-fit: cover;
}

.no-reservations svg {
    height: clamp(30px, 5vw, 55px);
    stroke: var(--primary-color);
}

.no-reservations h3 {
    color: var(--primary-color);
    margin-bottom: clamp(8px, 2vw, 15px);
    font-size: clamp(18px, 2.5vw, 24px);
}

.no-reservations p {
    color: var(--text-color);
    margin-bottom: clamp(15px, 4vw, 25px);
    max-width: clamp(250px, 80%, 400px);
    line-height: 1.5;
    font-size: clamp(14px, 1.8vw, 18px);
}

/* =========================================
   SELECT-CONTAINER
   ========================================= */

.select-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    border-radius: 15px;
    padding: 15px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.select-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.select-container .select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-container .select-header .left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select-container .select-header .left .icon,
.checkbox-container .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(40px, 11vw, 60px);
    height: clamp(40px, 11vw, 60px);
    background-color: #613ac43d;
    flex-shrink: 0;
    border-radius: 50%;
}

.select-container .select-header .left .icon img,
.checkbox-container .icon img {
    width: 65%;
    height: 65%;
    object-fit: cover;
}

.select-container .select-header .left .name h2,
.select-inside-container h2 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(12px, 2vw, 14px);
}

.select-container .select-header .left .name h1,
.select-inside-container h1 {
    color: var(--primary-color);
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 3rem);
    font-weight: 900;
}

.select-container .select-header .left .name p,
.select-inside-container p {
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
}

.select-container .select-header svg {
    margin-right: clamp(10px, 2vw, 20px);
    width: clamp(20px, 3vw, 38px);
    height: clamp(10px, 1vw, 22px);
    transition: transform 0.3s ease;
}

.select-container.active .select-header svg {
    transform: rotate(180deg);
}

.select-container .select-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out, padding 0.3s ease-out;
    will-change: max-height, opacity;
}

.select-container.active .select-content {
    max-height: 800px;
    opacity: 1;
    padding: 20px 0 0 10px;
}

.select-container:not(.active) .select-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease 0s;
}

.select-container .select-content li {
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.5;
    color: var(--text-color);
    margin-left: 20px;
    list-style-type: disc;
}

.select-container .select-content button:not(.cancel-btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    align-self: flex-end;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 300;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: clamp(12px, 2vw, 18px);
    padding: 10px;
    border: 1px solid var(--primary-color);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.select-container .select-content button:not(.cancel-btn):hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.reservation-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.reservation-actions .cancel-btn {
    cursor: pointer;
    border-radius: 10px;
    font-weight: 300;
    font-size: clamp(12px, 2vw, 18px);
    width: 150px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--stroke-color);
    color: var(--stroke-color);
}

/* =========================================
   CHECKBOX-CONTAINER
   ========================================= */

.checkbox-container {
    cursor: pointer;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    border-radius: 15px;
    padding: 15px;
    gap: 15px;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: var(--primary-color);
}

.checkbox-container.active {
    background-color: var(--stroke-color);
    border-color: var(--primary-color);
    box-shadow: 4px 4px 15px 0 #26262623;
}

.checkbox-container .left-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.checkbox-container .text-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.checkbox-container .text-container h2 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(11px, 2vw, 14px);
}

.checkbox-container .text-container h1 {
    color: var(--primary-color);
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 3rem);
    font-weight: 900;
}

.checkbox-container .text-container p {
    opacity: 0.7;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
}

.checkbox-container .check {
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container .check svg {
    width: 20px;
    height: 20px;
}

.checkbox-container.active .check {
    opacity: 1;
}

/* =========================================
   SELECT-INSIDE
   ========================================= */

.select-inside-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-inside-container:hover {
    background-color: rgba(97, 58, 196, 0.05);
}

.select-inside-container .check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--stroke-color);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.select-inside-container .check svg {
    width: 20px;
    height: 20px;
}

.select-inside-container.active .check {
    background-color: var(--primary-color);
}

/* =========================================
   NAVIGATION (Footer)
   ========================================= */

#reservation-form .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

#reservation-form .footer .left {
    width: clamp(50%, 65%, 65%);
    padding: clamp(8px, 1.5vw, 12px) clamp(20px, 4vw, 40px);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    font-weight: 400;
    cursor: pointer;
    background-color: transparent;
    color: var(--primary-color);
    font-size: clamp(12px, 2vw, 18px);
    transition: background-color 0.2s, color 0.2s;
}

#reservation-form .footer .right,
.repeat-btn {
    width: 100%;
    padding: clamp(8px, 1.5vw, 10px) clamp(20px, 4vw, 40px);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    font-weight: 400;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: clamp(12px, 2vw, 18px);
    transition: background-color 0.2s, color 0.2s;
}

#reservation-form .footer .right.disabled {
    background-color: var(--stroke-color);
    border: 1px solid var(--stroke-color);
    cursor: not-allowed;
}

#reservation-form .footer .right.disabled:hover {
    background-color: var(--stroke-color);
    color: var(--background-color);
    border: 1px solid var(--stroke-color);
}

#reservation-form .footer .left:hover {
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

#reservation-form .footer .right:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* =========================================
   PROGRESS BAR
   ========================================= */

.step-view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: clamp(10px, 4vw, 20px);
    margin-bottom: clamp(15px, 5vw, 30px);
}

.step-view-container .circle {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
    transition: all 0.3s ease;
}

.step-view-container .circle span {
    position: absolute;
    left: 50%;
    bottom: -2em;
    transform: translateX(-50%);
    color: var(--text-color);
    font-weight: 300;
    font-size: clamp(8px, 1.5vw, 12px);
    white-space: nowrap;
}

.step-view-container .circle.active {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.step-view-container .line {
    width: clamp(20px, 3vw, 35px);
    height: clamp(1px, 0.3vw, 1px);
    background-color: var(--stroke-color);
}

/* =========================================
   STEP CONTAINERS
   ========================================= */

.step-1-container,
.step-2-container,
.step-3-container,
.step-4-container,
.step-5-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    max-height: 40vh;
    width: 100%;
}

.step-3-container .select-content {
    display: flex;
    flex-direction: column;
}

.calendar-container {
    display: flex;
    flex-direction: row; /* Desktop : Côte à côte */
    gap: 25px;
    width: 100%;
    min-height: 380px; 
    align-items: flex-start;
}

/* --- PARTIE GAUCHE : LE CALENDRIER --- */
.calendar {
    flex: 1.2;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--stroke-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

/* En-tête du calendrier */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.calendar-header span {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    text-transform: capitalize;
}

.calendar-header .arrow {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.calendar-header .arrow:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Grille des jours */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    flex-grow: 1;
    align-content: start;
}

/* Cellule de jour */
.calendar-days div {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    width: 100%;
    max-width: 45px;
    margin: 0 auto;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.calendar-days div.day-title {
    font-weight: 700;
    color: var(--primary-color);
    cursor: default;
    background: transparent !important;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.calendar-days .day:not(.day-title):not(.empty):hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.day.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(96, 58, 196, 0.4);
    transform: scale(1.05);
    font-weight: 700;
}

.day.full {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.day.next-month {
    color: #ccc;
    font-weight: 300;
}

/* --- PARTIE DROITE : LES CRÉNEAUX (Grille/Wrap) --- */
.slots-container {
    flex: 0.8;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--stroke-color);
    box-shadow: var(--shadow-soft);
    height: 100%;
    min-height: 380px;
    /* max-height retiré pour laisser le contenu déterminer la hauteur si besoin, ou scroll si trop grand */
    max-height: 380px; 
    overflow-y: auto;
    
    /* MODIFICATION DEMANDÉE : Affichage Flex en ligne (gauche vers droite) */
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; /* Retour à la ligne autorisé */
    align-content: flex-start; /* Les items se collent en haut */
    gap: 10px;
}

.slots-container::-webkit-scrollbar {
    width: 3px;
}
.slots-container::-webkit-scrollbar-thumb {
    background-color: var(--stroke-color);
    border-radius: 4px;
}
.slots-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

.slot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    border: 1px solid var(--stroke-color);
    border-radius: 50px; 
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* MODIFICATION : Largeur flexible mais contenue */
    white-space: nowrap;
    width: 100%;
    padding: 8px 15px; /* Plus compact */
    flex: 0 0 auto; /* Ne s'étire pas bizarrement */
}

/* Effet au survol */
.slot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 58, 196, 0.15);
}

/* État Actif */
.slot.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(96, 58, 196, 0.4);
    font-weight: 600;
    transform: translateY(-1px);
}

.slots-container p {
    text-align: center;
    color: #e74c3c;
    margin-top: 20px;
    width: 100%;
}

.slot-extra-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
}

.slot.has-extra {
    border-color: #fca5a5;
    background-color: #fff1f2;
}
.slot.has-extra:hover {
    background-color: #ffe4e6;
}
.slot.has-extra.active {
    background-color: #603AC4; 
    border-color: #603AC4;
    color: white;
}


.duration-display {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    margin: clamp(4px, 1vw, 8px) auto 0;
    padding: clamp(4px, 0.9vw, 8px) clamp(8px, 1.6vw, 16px);
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 500;
    font-size: clamp(8px, 1.6vw, 12px);
    line-height: 1;
    user-select: none;
}

.duration-display strong {
    font-weight: 700;
    color: var(--primary-color);
}

.duration-display .metric {
    font-size: clamp(10px, 1.4vw, 15px);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    white-space: nowrap;
}

.duration-display .metric svg {
    width: clamp(12px, 1.2vw, 14px);
    height: clamp(12px, 1.2vw, 14px);
    vertical-align: middle;
    flex: 0 0 auto;
    opacity: 0.95;
    fill: var(--primary-color);
}

.duration-display .dot {
    opacity: .35;
    color: var(--primary-color);
    font-size: clamp(10px, 1.2vw, 12px);
}

.duration-display .euro {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
    transform: translateY(-0.5px);
    font-size: clamp(12px, 1.4vw, 15px);
}

/* =========================================
   OVERLAYS & INFO
   ========================================= */

.step4-info-text {
    font-size: 0.8em;
    color: var(--text-color);
    opacity: 0.5;
    text-align: center;
    font-style: italic;
    margin-bottom: 10px;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(96, 58, 196, 0.3);
}

.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 4vw, 30px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 15px;
    overflow-y: auto;
}

.info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.info-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(15px, 3vw, 25px);
    gap: 15px;
}

.info-overlay-header h2 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(18px, 3vw, 24px);
    margin: 0;
}

.info-overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.info-overlay-close:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.info-overlay-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    transition: stroke 0.2s ease;
}

.info-overlay-close:hover svg {
    stroke: var(--background-color);
}

.info-overlay-content {
    color: var(--text-color);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 300;
}

.info-overlay-content p {
    margin-bottom: 12px;
}

.degrade-images-container {
    display: flex;
    flex-direction: column;
    gap: clamp(25px, 4vw, 35px);
    margin-top: clamp(15px, 3vw, 20px);
}

.degrade-section {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 15px);
}

.degrade-section h3 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 20px);
    margin: 0;
    padding-bottom: clamp(8px, 1.5vw, 10px);
    border-bottom: 1px solid var(--stroke-color);
}

.degrade-images p, .degrade-images ul li {
    color: var(--text-color);
    opacity: 0.85;
    font-weight: 300;
    font-size: clamp(10px, 1.8vw, 15px);
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.degrade-images ul {
    margin-left: 25px;
}

.degrade-image-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 30vw, 200px), 1fr));
    gap: clamp(10px, 2vw, 15px);
    width: 100%;
}

.degrade-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--stroke-color);
    background-color: var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.degrade-image-wrapper img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(96, 58, 196, 0.2);
}

/* =========================================
   ADMIN BANNER & LOADERS
   ========================================= */

.admin-reservation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    border-radius: 15px;
    padding: 8px 12px;
    margin-bottom: 12px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    gap: 10px;
}

.admin-reservation-banner > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-reservation-banner strong {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.cancel-admin-reservation {
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cancel-admin-reservation:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    border-radius: 15px;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loader-text {
    color: #666;
    font-size: 14px;
}

/* =========================================
   RESPONSIVE (CORRECTIF CALENDRIER)
   ========================================= */

@media all and (max-width: 950px) {
    .duration-display {
        padding: 5px 8px;
        gap: 6px;
    }
}

/* =========================================
   RESPONSIVE OPTIMISÉ (Mobile & Tablette)
   ========================================= */

@media all and (max-width: 768px) {
    /* Conteneur global : on réduit les gaps */
    .calendar-container {
        flex-direction: column;
        gap: 15px;
        height: auto;
        min-height: auto;
        margin-bottom: 0;
    }
    
    /* CALENDRIER PLUS PETIT (Compact) */
    .calendar {
        width: 100%;
        flex: none;
        min-height: auto;
        padding: 10px; /* Padding réduit */
    }

    .calendar-header {
        margin-bottom: 5px; /* Moins d'espace sous le titre */
        padding: 0;
    }

    .calendar-header span {
        font-size: 16px; /* Titre plus petit */
    }
    
    .calendar-header .arrow {
        height: 30px;
        width: 30px;
    }

    /* Grille des jours plus serrée */
    .calendar-days {
        gap: 2px; /* Espacement minimal */
    }

    .calendar-days div {
        max-width: none;
        font-size: 12px; /* Police plus petite */
        height: 32px; /* Hauteur de cellule réduite */
        border-radius: 6px;
        aspect-ratio: auto;
    }
    
    .calendar-days div.day-title {
        margin-bottom: 0px;
        font-size: 11px;
    }
    
    /* CRÉNEAUX (SLOTS) - Adaptation Mobile */
    .slots-container {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 0;
        /* On limite la hauteur pour ne pas envahir l'écran, avec scroll si besoin */
        max-height: 150px; 
        padding: 10px;
        
        /* Garder le flex row wrap mais centré ou ajusté */
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
    }

    .slots-container::-webkit-scrollbar {
        width: 100%;
        height: 4px;
    }

    .slots-container .slot {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 15px;
        width: 100px;
    }
}

@media all and (max-width: 575px) {
    .degrade-image-wrapper {
        display: flex;
    }
    
    .degrade-image-wrapper img {
        width: 50%;
    }
}   