:root {
    --header-height: 80px;
    --footer-height: 40px;
    --box-width: 150px;
    --box-height: 150px;
    --box-spacing: 10px;
    --box-radius: 8px;
    --text-color: #fff;
    --text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.841);
    --hover-scale: 1.05;
    --hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --background-color: #f4f4f4;
    --header-footer-color: #152e3f;
    --active-indicator-color: #007BFF;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

/* Header fixe en haut de l'écran */
header {
    height: var(--header-height);
    background-color: var(--header-footer-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Fixe le header en haut */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header img {
    max-height: 30px;
    object-fit: contain;
}


/* Menu de navigation */
nav.category-menu {
    background-color: var(--background-color);
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    position: fixed;
    top: var(--header-height); /* Le menu est placé juste en dessous du header */
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.menu-item {
    display: inline-block;
    text-align: center;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
}

.menu-item img {
    width: 50px;
    height: 50px;
    
}

.menu-item p {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 5px;
    color: #565454;
}

/* Style pour l'élément de téléchargement */
.menu-item.download p a {
    color: #333;
    text-decoration: none;
}

.menu-item.download:hover p a {
    text-decoration: underline;
}

/* Indicateur actif dans le menu */
.menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 5px;
    background-color: var(--header-footer-color);
    border-radius: 2px;
}

/* Style des vignettes de couleurs */
.color-container {
    margin-top: 180px; /* Pour compenser la hauteur du menu fixe */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.color-box {
    width: var(--box-width);
    height: var(--box-height);
    margin: var(--box-spacing);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
      /*font-weight: bold;*/
      font-size: 12px;
    border-radius: var(--box-radius);
    text-shadow: var(--text-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-box:hover {
    transform: scale(var(--hover-scale));
    box-shadow: var(--hover-shadow);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    text-align: center;
}

.lightbox-color {
    width: 600px;
    height: 600px;
    margin-bottom: 20px;
}

.lightbox-info {
    display: flex;
    justify-content: space-between;
}

.lightbox-teinte {
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.lightbox-base {
    color: #666;
    font-size: 12px;
    align-self: flex-end;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #ddd;
}

/* Footer Styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--header-footer-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 10px;
    padding: 0 20px;
    z-index: 1000;
}

footer p {
    margin: 0;
}

/* Responsivité pour petits écrans */
@media (max-width: 480px) {
    .menu-container {
        justify-content: flex-start;
    }

    .menu-item {
        margin: 0 5px;
    }

    .lightbox-color {
        width: 320px;
        height: 320px;
    }

    .lightbox-teinte {
        font-size: 18px;
    }

    .lightbox-base {
        font-size: 10px;
    }
}
/* Styles pour l'effet d'intro */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #152e3f; /* Fond bleu theodore par défaut */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Transition d'opacité */
}

.intro-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ajuste l'image pour couvrir toute la div */
}