/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}


/* Header */
header {
    background-color: #EBEBF6;
    padding: 15px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */


nav a {
    text-decoration: none;
    color: inherit;
}


nav a:hover {
    background-color: #dcdcf0;
}

/*nav a.active {
    background-color: #0F1562;
    color: white;
}*/

/* NAV BASE */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Liens desktop */
.nav-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Hamburger caché sur desktop */
.nav-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 20px;
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        display: none;
        flex-direction: column;
        gap: 15px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }
}
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 400;
    color: #0F1562;
    font-size: 1rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-button.active {
    background: #0F1562;
    color: white;
}

.nav-button:hover {
    background: #dcdcf0;
}

.nav-button.active:hover {
    background: #0F1562; /* même couleur que l'état actif */
    color: white;
    cursor: pointer; /* optionnel : évite l'effet "clic" */
}

.nav-button svg {
    height: 22px;
    width: 22px;
    fill: #0F1562;
}

.nav-button.active svg {
    fill: white;
    
}

.nav-button.active:hover svg {
    fill: white;
}

.nav-button.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

.nav-button.home-icon svg {
    height: 22px;
    width: 22px;
    fill: #0F1562;
    transition: transform 0.2s ease;
}

.nav-button.home-icon:hover svg {
    transform: scale(1.15);
}



/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/*Titres comme h2, h3, etc. */

.section-title {
    margin-top: 25px; /* ajuste la valeur selon ton goût */
    margin-bottom: 20px;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}
/* --- Gros bouton moderne pour les mini-sites --- */
.big-button {
    display: inline-block;
    width: auto;
    margin: 20px 0;
    padding: 14px 24px;
    background-color: #0F1562;       /* fond navy */
    color: white;                    /* texte blanc */
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 999px;            /* effet pill */
    border: 2px solid transparent;   /* bordure invisible au départ */
    transition: all 0.2s ease;
}


.big-button:hover {
    background-color: #EBEBF6;       /* fond clair */
    color: #0F1562;                  /* texte navy */
    border: 2px solid #0F1562;       /* bordure navy */
    transform: scale(1.03);
}


.big-button:active {
    transform: scale(0.97);
}

/*Pour Styliser le menu en liste verticale*/

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* empile verticalement */
    gap: 2px; /* espace entre les boutons */
}

.menu-list li {
    width: 100%;
}

/* STYLE POUR LE TIMER DE JEU */

#historique-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
}
#historique-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F1562;                  /* navy plein */
    text-align: center;
    margin-bottom: 20px;
}




.timer-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0F1562;      /* navy plein */
    color: white;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 8px;             /* plus carré */
    border: 2px solid transparent;  /* bordure invisible au départ */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 2px;             /* espace entre les boutons */
    margin-bottom: 10%;

}
.timer-button:hover {
    background-color: #EBEBF6;      /* fond clair */
    color: #0F1562;                 /* texte navy */
    border: 2px solid #0F1562;      /* bordure navy */
    transform: scale(1.03);
}
.timer-button:active {
    transform: scale(0.97);
}

/* ---STYLE POUR LA TABLE DE LOGS--- */

#logTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #EBEBF6;            /* fond clair */
    border: 1px solid #7071A0;      /* contour */
    border-radius: 12px;
    overflow: hidden;               /* arrondis visibles */
    font-size: 1rem;
}

/* En-têtes */
#logTable th {
    background: #0F1562;            /* navy */
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 400;
}

/* Lignes */
#logTable td {
    padding: 12px;
    border-bottom: 1px solid #d0d0e5; /* ligne séparatrice douce */
    color: #0F1562;
}

/* Dernière ligne sans bordure */
#logTable tr:last-child td {
    border-bottom: none;
}

/* Alternance de couleurs */
#logTable tr:nth-child(even) td {
    background: #f4f4fb;
}

/* Bouton supprimer dans le tableau */
.delete-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.delete-icon {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.delete-button:hover .delete-icon {
    transform: scale(1.1);
    opacity: 0.9;
}




/* STYLE POUR LE GLOSSAIRE DES MOTS Magic */

#glossaire-section {
    background: #ffffff;              /* ton fond clair */
    border: 1px solid #7071A0;        /* contour bleu-gris */
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


.glossary-item {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    padding: 10px;
}

.glossary-title {
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
}

.glossary-definition {
    display: none;
    margin-top: 8px;
    padding-left: 10px;
    color: #333;
}


/* Barre de recherche */


#searchBar {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #aaa;
}

/* Catégories */
.category {
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f7f7f7;
    padding: 10px;
}

.category-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    
}


.category-content {
    padding: 10px;
    display: block; /* Toujours visible */
}

/* Items du glossaire */
.glossary-item {
    padding: 2px 0;
    border: none;
    background: none;
    margin: 0;
}
.glossary-title:hover {
    color: #4a6cf7; /* bleu moderne */
    transform: translateX(4px); /* petit déplacement subtil */
}
.glossary-title {
    font-weight: 400;
    cursor: pointer;
}

.glossary-definition {
    display: none;
    margin-top: 8px;
    padding-left: 10px;
    color: #333;
}

/* STYLE POUR LA PAGE MUSIQUE */

.track-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.track-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #0a1a2f;
}

.track-card audio {
    width: 100%;
    margin: 15px 0;
}

.track-card .description {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
}

.track-card details.lyrics {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
}

.track-card details.lyrics summary {
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.track-card details.lyrics p {
    margin-top: 10px;
    white-space: pre-line;
    line-height: 1.5;
}

/* STYLE POUR LA PAGE GALERIE D'IMAGES */

.card-img-top {
    border-radius: 8px;
}


.masonry-gallery {
    column-count: 1;
    column-gap: 16px;
}

.gallery-item {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    display: block;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
        z-index: 1;
    cursor: pointer;
}



/* Responsive */
@media (min-width: 576px) {
    .masonry-gallery {
        column-count: 2;
    }
}
@media (min-width: 768px) {
    .masonry-gallery {
        column-count: 2;
    }
}
@media (min-width: 992px) {
    .masonry-gallery {
        column-count: 3;
    }
}
/* Overlay fullscreen (ne touche pas la galerie) */
#fullscreenOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Image fullscreen uniquement */
#fullscreenImage {
    max-width: 90vw;
    max-height: 90vh;
    cursor: pointer;
}

/* Style pour le store*/
.store-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}
/* Carte premium */
.store-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Image produit */
.store-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Contenu */
.store-body {
    padding: 20px;
}

.store-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.store-desc {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 18px;
}


.store-banner {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-text {
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.product-intro {
    margin-bottom: 40px;
}

/* Rectangle produit */
.product-rect {
    display: flex;
    align-items: center;
    background: none; /* ou #fff si tu veux un fond clair */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    gap: 30px;
    margin-bottom: 40px;
}

/* Image produit bien visible */
.product-img {
    width: 260px;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Infos produit */
.product-info {
    flex: 1;
    padding-right: 20px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0F1562; /* ton bleu original */
    margin-bottom: 18px;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 20px;
}

/* Nouveau conteneur responsive (équivalent de ton ancien .product-container) */
.product-rect {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Empêche l’image de rapetisser */
.product-img-wrapper {
    flex-shrink: 0;
}

.product-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {

    .product-rect {
        flex-direction: column;
        align-items: center; /* ou flex-start si tu préfères */
    }

    .product-info {
        width: 100%;
        padding: 0 20px; /* même padding que ton ancien CSS */
    }

    .product-img-wrapper {
        width: 100%;
        max-width: 400px; /* comme ton ancien .product-image */
    }
}







/* Boutons */
.store-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background-color: #0F1562;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.store-btn:hover {
    background-color: #0c114f;
    transform: translateY(-2px);
}

.store-btn.secondary {
    background-color: transparent;
    color: #0F1562;
    border: 2px solid #0F1562;
}

.store-btn.secondary:hover {
    background-color: #0F1562;
    color: white;
}
button,
.store-btn {
    font-family: 'DM Sans', sans-serif !important;
}
