/* Couleurs variables pour les thèmes */
:root {
    --background-color: #121212;
    --text-color: #e8e8e8;
    --sidebar-color: #2b2b2b;
    --gallery-item-bg: #222;
    --gallery-item-text: #e8e8e8;
    --accent-primary: #e8aa00;
    --accent-secondary: #014586;
}

/* Thème clair (light) */
body.light-theme {
    --background-color: #f1f1f1;
    --text-color: #121212;
    --sidebar-color: #e8e8e8;
    --gallery-item-bg: #ffffff;
    --gallery-item-text: #121212;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
   transition: background-color 0.1s, color 0.1s;
    visibility: hidden;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-color);
    padding: 15px 20px;
    display: block;
    font-size: 18px;
    border-left: 5px solid transparent;
}

.sidebar a:hover {
    border-left: 5px solid var(--accent-primary);
    background-color: var(--background-color);
}

.sidebar .active{
        border-left: 5px solid var(--accent-primary);
    background-color: var(--background-color);
}

.content {
    margin-left: 250px;
    padding: 20px;
}

.theme-button {
    background-color: var(--accent-primary);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 75%;
    margin: 0 auto;
}

.theme-button:hover {
    background-color: var(--accent-secondary);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    background-color: var(--gallery-item-bg);
    border-radius: 10px;
    overflow: hidden;
    width: calc(25% - 20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.1s, color 0.1s;
}

.gallery-item:hover {
    box-shadow: 0 2px 20px rgba(232, 170, 0, 0.5);
    transition: box-shadow 0.1s, color 0.1s;
}

.gallery-item a{
    text-decoration: none;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    object-fit: fill;
}

.gallery-item h3 {
    color: var(--gallery-item-text);
    padding: 15px;
    margin: 0;
    background-color: var(--sidebar-color);
}

.gallery-item p {
    padding: 15px;
    margin: 0;
    background-color: var(--gallery-item-bg);
    color: var(--gallery-item-text);
}

.logo img{
    width: 100%;
    height: auto;
}

.note-info{
    font-size:16px;
    color: #acacac;
    margin: 15px 0;
    padding: 5px 15px 15px 15px;
    width: calc(100% - 20px - 30px);
    background-color: var(--accent-secondary);
    border-radius: 5px;
}

.horaire{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    
}
.horaire th, .horaire td {
    padding: 10px;
    text-align: left;
    border: 0;
}
.horaire td.date {
    text-align: right;
}

.horaire tr:nth-child(even) {
    background-color: rgba(128, 128, 128, 0.5); /* Gris à 50 % */
}

.list-style-none{
    padding: 0; 
    margin:0;
}
.note{
    font-size: 14px;
    list-style: none;
    line-height: 2em;
    padding: 0; margin: 0
    
}

.nav-calendrier{
    height: 30px;
    margin: 0 auto;
    width: auto;
    font-size: 20px;
}

.nav-calendrier a{
    text-decoration: none;
    padding: 5px 10px;
    background-color: var(--accent-primary);
    border-radius: 5px;
    color: rgb(125,125,125);
    
}
.nav-calendrier a:hover{
    background-color: var(--accent-secondary);
}



.ghost-container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ghost {
    position: absolute;
    background-image: url(../images/i91g_6che_210803.svg);
    background-repeat: no-repeat;
    width: 400px;
    height: 500px;
    opacity: 0.7;
   animation: move 10s linear infinite, fadeOut 1s forwards; /* Continuous movement and fade-out */
}

.horaire a{
    color: var(--text-color);
    text-decoration: none;
}

.horaire a:hover{
    color: var(--text-color);
    text-decoration: underline;
}

.info-message_alert {
    background-color: #FFFACD; /* Jaune pâle */
    border: 2px solid #FFD700; /* Jaune vibrant */
    color: #333; /* Couleur du texte */
    padding: 15px; /* Espace intérieur */
    border-radius: 5px; /* Coins arrondis */
    margin: 20px 0; /* Marge au-dessus et en-dessous */
    font-family: Arial, sans-serif; /* Police de caractères */
    font-size: 16px; /* Taille de la police */
}


.liste-fichiers {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.liste-fichiers, .liste-fichiers th, .liste-fichiers td {
    border: 1px solid #ddd;
}
.liste-fichiers th, .liste-fichiers td {
    padding: 12px;
    text-align: left;
}
.liste-fichiers th {
    background-color: rgba(025, 025, 025, 0.5); /* Gris à 50 % */
    color: white;
}
.liste-fichiers tr:nth-child(odd) {
     background-color: rgba(128, 128, 128, 0.5); /* Gris à 50 % */
}

.liste-fichiers a {
    color: var(--text-color);
    text-decoration: none;
}
.liste-fichiers a:hover {
    text-decoration: underline;
}

.file-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

@keyframes move {
    0% {
        transform: translate(0, 0); /* Start from the top-left corner */
    }
    100% {
        transform: translate(calc(100vw - 50px), calc(100vh - 50px)); /* Move to the bottom-right corner */
    }
}

@keyframes fadeOut {
    0% {
        opacity: 0.7; /* Start visible */
    }
    99% {
        opacity: 0.7; /* Keep visible until just before disappearing */
    }
    100% {
        opacity: 0; /* Fade out completely */
    }
}



@media (max-width: 1500px) {
    .gallery-item {
        width: calc(33.333% - 20px);
    }
    .content {
        margin-left: 200px;
    }

    .sidebar {
        width: 200px;
    }
}

@media (max-width: 1300px) {
    .gallery-item {
        width: calc(50% - 20px);
    }
    .content {
        margin-left: 200px;
    }

    .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(100% - 20px);
    }

    .content {
        margin-left: 150px;
    }

    .sidebar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
    }

    .content {
        margin-left: 0;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar a {
        text-align: center;
    }
}
