/*
Optimized and Combined CSS Stylesheet
Includes styles from menu-styles.css, page-styles.css, and responsive.css
All redundant properties have been removed, and comments added for better understanding
*/

/**************************
 * General Styles
 **************************/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    line-height: 1.5;
    background: #fff;
}

/**************************
 * Menu Styles
 **************************/
#menu {
    width: 15%;
    height: auto;
    background-color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    transition: width 0.5s;
    z-index: 1;
    scrollbar-color: #333333 #666666;
    scrollbar-width: thin;
}

#menu a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s;
    border-bottom: 1px solid transparent;
}

#menu a:hover {
    background-color: #555;
}

#menu::-webkit-scrollbar {
    width: 12px;
}

#menu::-webkit-scrollbar-thumb {
    background-color: #333333;
}

#menu::-webkit-scrollbar-track {
    background-color: #666666;
}

/**************************
 * Menu Toggle Button Styles
 **************************/
#menu-toggle {
    display: none;
    position: fixed;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    border-radius: 5px;
    top: 10px;
    right: 10px;
    transition: background-color 0.3s, color 0.3s;
}


#menu-toggle:hover {
    background-color: #555;
    color: #ff0;
}

/**************************
 * Content Styles
 **************************/
#content {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
    width: 100%;
}

/**************************
 * Image Container Styles
 **************************/
.image-container {
    position: relative;
    display: block;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
}

/**************************
 * Overlay Text Styles
 **************************/
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 10px 20px;
    font-size: 20px;
    text-align: start;
    margin: 10px;
    max-width: fit-content;
}

.overlay-text h1 {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.overlay-text p {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.separator {
    width: 2px;
    height: 100px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/**************************
 * Button Styles
 **************************/
.button {
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    width: 150px;
    margin: 10px 0;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #555;
}

.button img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.credit img {
    max-width: 20px;
}

/**************************
 * Table Styles
 **************************/
table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 10px;
    border: 1px solid #ccc;
}

/**************************
 * Responsive Styles
 **************************/
@media (max-width: 768px) {
    #menu {
        width: 0;
        z-index: 2;
    }

    #menu.show {
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 3;
    }

    #menu-toggle {
        display: block;
    }

    .overlay-text {
        max-height: fit-content;
        max-width: fit-content;
    }

    .overlay-text p {
        font-size: x-small;
        max-width: 50%;
    }

    .overlay-text h1 {
        font-size: small;
    }

    .separator {
        height: 50px;
    }

    td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .button {
        width: 100%;
    }
}

/**************************
 * Print Styles
 **************************/
@page {
    size: 8.5in 11in;
    margin: 1in;
}

/**************************
 * Miscellaneous Styles
 **************************/
.menu-item {
    font-size: large;
}

iframe {
  max-width: 100%;
  width: 100%; /* S'assure qu'il occupe toute la largeur disponible */
  height: auto; /* Maintient le ratio d'aspect en ajustant la hauteur automatiquement */
  border: none; /* Supprime les bordures par défaut */
}

/* Écran de chargement */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  border: 4px solid #ccc;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

p {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

