body {
    margin: 0;
    overflow: hidden;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #533707;
    z-index: 1000;
    padding: 2px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;    
}

#header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Abril Fatface', cursive;
}

#logo {
    height: 50px;
    width: auto;
}

#header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.leaflet-top {
    top: 50px;
}

@media (max-width: 768px) {
    .leaflet-control-zoom {
        display: none;
    }
}

#map {
    height: 100vh;
}

#timeline {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

#date-affichee {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
    min-width: 100px;
}

#date-affichee span:first-child {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    min-width: 30px;
}

#date-affichee span:last-child {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
}

#prev-day, #next-day {
    cursor: pointer;
    font-size: 20px;
    color: #2196F3;
    user-select: none;
}

#prev-day:hover, #next-day:hover {
    color: #1565C0;
}


#volet {  
    top: 50px; /* hauteur du header */
    height: calc(100vh - 50px); 
    position: fixed;
    right: -400px;
    width: 350px;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    padding: 0;
    z-index: 1000;
    overflow-y: auto;
}

#volet.ouvert {
    right: 0;
}

#volet-header {
    background-color: #2196F3;
    padding: 20px;
}

#volet-header h2 {
    margin: 0;
    color: white;
}

#volet-body {
    padding: 20px;
}

#volet-close {
    cursor: pointer;
    float: right;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

@media (max-width: 768px) {
    #volet {
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        transition: bottom 0.3s ease;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
        box-sizing: border-box;
    }

    #volet.ouvert {
        bottom: 0;
        right: 0;
    }
}
