/* Style spécifique pour la page séance */
body.seance-page {
background: url("/static/backgrounds.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;     
}

/* Overlay sombre pour améliorer la lisibilité */
body.seance-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Assure que le contenu reste au-dessus du fond assombri */
.seance-page .booking-container {
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 767px) {
    /* Cache complètement le logo original */
    .seance-page .logo img {
        display: none !important;
    }

    /* Nouveau logo pour la page séances */
    .seance-page .logo {
        position: relative;
        width: 80px;
        height: 80px;
    }

    .seance-page .logo::after {
        content: '';
        display: block;
        position: fixed;
        top: -136px;
        left: -19px;
        width: 250px;
        height: 370px;
        background: url('../static/logoo.png') no-repeat center center;
        background-size: contain;
        z-index: 1003;
    }

    /* Navigation fixe */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background:transparent;
        padding: 10px;
        
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -140px;
        width: 140px;
        height: auto;          /* Changed from 24vh to auto */
        min-height: 200px;     /* Added minimum height */
        background: rgba(210, 214, 208, 0.98);
        flex-direction: column;
        padding: 60px 5px 20px;
        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 li {
        width: 100%;
        list-style: none;
        margin-bottom: 5px;    /* Added margin */
    }

    .nav-links a {
        color: #333;
        font-size: 1em;
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
        width: 80%;
        margin: 0 0 0 auto;
        text-align: right;
        display: block;         /* Added display block */
        text-decoration: none;  /* Added text decoration */
    }
    .menu-toggle {
        display: flex;
        width: 25px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        left: 350px;
        top: 15px;
        z-index: 1002;
        cursor: pointer;
    }

    .menu-toggle span {
        height: 2px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .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);
    }


    /* Menu toggle */
    .menu-toggle {
        display: flex;
        width: 25px;
        height: 20px;
        position: fixed;
        right: 15px;
        top: 15px;
        z-index: 1002;
        flex-direction: column;
        justify-content: space-between;
    }    /* Container principal */
    .booking-container {
        width: 96%;
        margin-top: 100px; /* Augmenté pour éviter le chevauchement avec le logo */
        padding: 15px 12px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }    /* Titre */
    .booking-container header h1 {
        font-size: 1.1em;
        color: #ffffff;
        text-align: center;
        margin-bottom: 15px;
        font-weight: 600;
        letter-spacing: 0.3px;
        position: relative;
        padding-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .booking-container header h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(to right, #50a3a2, #78cbc9);
        border-radius: 2px;
    }

    /* Liste des séances */
    .seances-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }    /* Style de chaque séance */
    .seance-item {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        padding: 8px 12px;
        margin-bottom: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Conteneur d'informations de séance */
    .seance-info-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    /* Horaires */
    .seance-info {
        font-size: 0.95em;
        color: #2c3e50;
        font-weight: 500;
        display: flex;
        align-items: center;
    }

    .seance-info::before {
        content: '🕒';
        margin-right: 6px;
        font-size: 0.9em;
    }

    /* Wrapper pour la liste des séances avec scroll */
    .seances-wrapper {
        position: relative;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0 5px;
        margin: 0 -5px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Style de la barre de défilement */
    .seances-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .seances-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .seances-wrapper::-webkit-scrollbar-thumb {
        background: rgba(80, 163, 162, 0.5);
        border-radius: 3px;
    }

    /* Indicateur de défilement */
    .scroll-indicator {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        pointer-events: none;
        opacity: 0.8;
        animation: fadeInOut 2s infinite;
    }

    .scroll-dot {
        width: 6px;
        height: 6px;
        background-color: #50a3a2;
        border-radius: 50%;
        animation: scrollDown 1.5s infinite;
    }

    @keyframes scrollDown {
        0% { transform: translateY(0); opacity: 1; }
        50% { transform: translateY(20px); opacity: 0.2; }
        100% { transform: translateY(0); opacity: 1; }
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 0.3; }
    }

    /* Style du bouton réserver */
    .seance-button {
        padding: 6px 15px;
        background-color: #50a3a2;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 0.85em;
        font-weight: 500;
        cursor: pointer;
        min-width: 80px;
        transition: background-color 0.2s;
    }

    .seance-button:active {
        background-color: #40867e;
    }

    /* Modal styles */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .modal-content form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .modal-content label {
        font-size: 0.9em;
        color: #333;
        margin-bottom: -4px;
    }

    .modal-content input {
        padding: 8px 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        background: white;
        appearance: none;
        -webkit-appearance: none;
    }

    .modal-content button {
        margin-top: 10px;
        padding: 10px;
         margin-left: 37px;
    }

    .modal-content .close {
        position: absolute;
        right: 12px;
        top: 8px;
        font-size: 20px;
        color: #666;
        cursor: pointer;
    }

    /* Message complet */
    .seance-full {
        color: #e74c3c;
        padding: 4px 8px;
        border-radius: 4px;
        background-color: rgba(231, 76, 60, 0.1);
        font-size: 0.85em;
        min-width: 80px;
        text-align: center;
    }

    /* Style du container principal */
    /* .booking-container {
        margin-top: 90px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        border: 1px solid rgba(255, 255, 255, 0.18);
    } */
    /* Style du titre */
    .booking-container header h1 {
        font-size: 1.4em;
        margin-bottom: 25px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Style du lien retour */
    .back-link {
        display: block;
        text-align: center;
        color: white;
        text-decoration: none;
        margin-top: 20px;
        padding: 10px;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        transition: opacity 0.2s;
    }

    .back-link:active {
        opacity: 0.8;
    }
} /* Fermeture de la media query */