/*  
          SIDE PANEL DARK MODE
  */

#side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px; /* largeur du panneau */
    height: 100vh;

    background: #111; 
    color: #eee;      
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.55);

    transform: translateX(-100%); /* caché à gauche */
    transition: transform 0.35s ease;

    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;

    border-right: 1px solid #222; /* contour léger */
}

#side-panel.open {
    transform: translateX(0);
}

#side-panel.close {
    transform: translateX(-100%);
}

/*  
            CLOSE BUTTON
  */

.button-close {
    position: absolute;
    top: 10px;
    right: 10px;

    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;

    color: #bbb; /* bouton gris */
}
.button-close:hover {
    color: #fff;
}

/*  
               CONTENT
  */

figure {
    text-align: center;
}

img {
    border-radius: 15px;
}

/* Titres */
h2 {
    margin-top: 38px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    color: #f0f0f0;
}

h3 {
    background: #1a1a1a; 
    padding: 8px 14px;
    border-left: 4px solid #4d7cf7; 
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;

    color: #ddd;
}

h3 .material-icons {
    font-size: 15px;
    color: #aac3ff;
}

/*  
              FLYING BUTTON
  */

.bouton-volant {
    text-decoration: none;
    display: inline-block;
    position: fixed;
    top: 8.5%;
    right: 20px;
    z-index: 9999;

    background: #0050b8; 
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
    font-size: 16px;

    transition: background 0.2s ease;
}

.bouton-volant:hover {
    background: #0062dd;
}

/*  ==
             RESPONSIVE
 == */

@media (max-width: 768px) {
    #side-panel {
        width: 85vw;
        max-width: 400px;
        padding: 15px;
    }

    .bouton-volant {
        top: 11%;
        right: 10px;
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 700px) {
    #side-panel {
        width: 92vw;
        max-width: none;
    }

    .bouton-volant {
        top: 16%;
        font-size: 13px;
        padding: 7px 12px;
    }
}
