body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: url("/static/backgrounds.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo */
.logo img {
    height: 190px;
    margin-right: 50px;
    margin-left: -688px;
    margin-top: -42px;
}

/* Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
    margin-top: -93px;
    margin-left: -455px;

}

.nav-links a {
    text-decoration: none;
    color: #535151;
    font-weight: bold;
    font-size: 1em;

}

/* Conteneur principal */
.wrapper {
    width: 70%;
    max-width: 350px;
    margin: 60px auto 0 auto;
    margin-top: 120px;
    padding: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Titre et sous-titre */
.booking-title {
    font-size: 1.8em;
    margin-bottom: 0.2em;
    margin-top: 0.5em;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.booking-subtitle {
    font-size: 1em;
    margin-bottom: 1.5em;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Navigation du calendrier (Précédent / Mois / Suivant) */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 300px;
    margin: 0 auto 1em;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-nav span {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Grille du calendrier - Version Desktop */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
    margin: 2.5em auto 1em auto;
    padding: 15px;
    width: 95%;
    max-width: 400px;
    background: transparent;
    border-radius: 15px;
}

/* En-têtes des jours */
.day-name-header {
    font-weight: 600;
    font-size: 0.85em;
    text-align: center;
    text-transform: uppercase;
    color: #faf6f6;
    padding: 4px 0;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
}

/* Cellules de date */
.date-cell {    background: linear-gradient(145deg, rgba(236, 240, 243, 0.1), rgba(193, 206, 218, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    position: relative;
    box-shadow: none;
    text-decoration: none;
}

.date-cell:hover {
    background: linear-gradient(145deg, rgba(138, 157, 181, 0.2), rgba(157, 178, 203, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.date-cell .day-number {
    font-size: 0.95em;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.date-cell .day-name-abbr {
    display: none;
}

.date-cell.has-seances {
    background: linear-gradient(145deg, rgba(147, 197, 253, 0.15), rgba(96, 165, 250, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.date-cell.has-seances:hover {
    background: linear-gradient(145deg, rgba(147, 197, 253, 0.25), rgba(96, 165, 250, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.date-cell.other-month {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
}

/* Style pour les jours passés */
.date-cell.past-date {
    background: rgba(128, 128, 128, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.date-cell.past-date .day-number {
    color: rgba(255, 255, 255, 0.5);
}

/* Style pour les dimanches */
.date-cell.sunday {
    background: rgba(169, 169, 169, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-cell.sunday .day-number {
    color: #ffcccc;
}

.date-cell.sunday:hover {
    background: rgba(169, 169, 169, 0.4);
    cursor: not-allowed;
}

/* Media Query pour mobile */
@media screen and (max-width: 767px) {
    .wrapper {
        width: 100%;
        margin-top: 100px;
        padding: 10px;
        border-radius: 0;
        background-color: #ffffff;
    }

    .booking-title {
        font-size: 1.6em;
    }

    .booking-subtitle {
        font-size: 0.9em;
        margin-bottom: 1.2em;
    }

    /* Navigation mobile */
    .menu-toggle {
        display: flex;
        width: 25px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 1002;
        cursor: pointer;
    }

    .menu-toggle span {
        height: 2px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Logo mobile */
    .logo img {
        height: 240px;
        margin: 0;
        position:fixed;
        top: -88px;
        left: -23px;
        z-index: 1003;
    }    /* Container styles */
    .wrapper {
        width: 100%;
        margin-top: 80px;
        padding: 10px;
        border-radius: 0;
        background-color: #ffffff;
    }

    .booking-container {
        width: 100%;
        padding: 10px;
    }    /* Les styles mobile sont maintenant regroupés dans la media query en bas */
    /* Navigation links mobile - Alignement à droite */
   .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: auto; /* Changed from 24vh to auto */
    min-height: 200px; /* Added minimum height */
    background: rgba(210, 214, 208, 0.98);
    flex-direction: column;
    padding: 40px 0;
    gap: 8px;
    z-index: 1001;
    border-radius: 20px 0 0 20px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    margin: 0;
    transition: right 0.3s ease;
}


    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links {
   
    right: -200px;  /* Garde le menu qui sort de la droite */

}

.nav-links a {
    color: #333;
    font-size: 1em;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    width: 80%;
    margin: 0;
    text-align: center;
    margin-left: 20px; /* Reduced from 70px */
    display: block; /* Added to ensure proper block display */
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden; /* Prevents overflow */
    text-overflow: ellipsis; /* Adds ... if text is too long */
}
    /* Menu hamburger - Position ajustée */
    .menu-toggle {
        right: 20px;
        top: 15px;
    }


    /* Menu hamburger animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .calendar-grid {
        gap: 6px;
        padding: 12px;
        width: 92%;
        max-width: 340px;
        background: transparent;
        margin-top: 2em;
    }

    .date-cell {
        min-height: 38px;
        padding: 6px 4px;
    }

    .wrapper {
        width: 95%;
        background: transparent;
    }

    .date-cell a {
    text-decoration: none !important;
}


}



