/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Navbar */
/* .navbar {
    display: flex;
    justify-content: flex-start; /* Alignement à gauche pour maximiser l'espace
    background-color: #000000;
    padding: 0.75rem 0.5rem; /* Réduction du padding global 
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow: hidden; /* Empêche tout défilement 
} */
 
/* MARGE AU DESSUS DU MENU */
.navbar {
    display: flex;
    justify-content: flex-start;
    background-color: #000000;
    padding: 1.5rem 0.5rem; /* Augmente le padding vertical (1.5rem au lieu de 0.3rem) */
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow: hidden;
} 


/* Boutons du menu */
.nav-item {
    text-decoration: none;
    color: #000000;
    padding: 0.3rem 0.5rem; /* Padding réduit */
    background-color: white;
    border-radius: 20px;
    border: 1.5px solid #000000;
    white-space: nowrap;
    flex: 1 1 0%; /* Permet une répartition flexible de l'espace */
    min-width: 0; /* Permet aux boutons de rétrécir en dessous de leur contenu */
    text-align: center;
    font-size: 0.9rem; /* Taille de police réduite par défaut */
    font-weight: bold;
    transition: all 0.2s ease;
    margin: 0 0.1rem; /* Marges latérales réduites */
}

.nav-item-preorder {
    text-decoration: none;
    color: #ffffff;
    padding: 0.3rem 0.5rem; /* Padding réduit */
    background-color: #7705fa;
    border-radius: 20px;
    border: 1.5px solid #000000;
    white-space: nowrap;
    flex: 1 1 0%; /* Permet une répartition flexible de l'espace */
    min-width: 0; /* Permet aux boutons de rétrécir en dessous de leur contenu */
    text-align: center;
    font-size: 0.9rem; /* Taille de police réduite par défaut */
    font-weight: bold;
    transition: all 0.2s ease;
    margin: 0 0.1rem; /* Marges latérales réduites */
}

/* Effet au survol */
.nav-item:hover {
    background-color: #748ff9;
    color:white;
}

.nav-item-preorder:hover {
    background-color: rgb(0, 225, 255);
    color:black;
    /* color: rgb(255, 255, 255); */
}
/* Hero image */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0rem;
}

#brand-compatibility-text {
    margin-top: 1rem;
    text-align: left;
    font-style: normal;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    max-width: 500px;
    margin: 1rem auto;
    line-height: 1.6;
}

/* Titles */

.title {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
/* Sections */
.section {
    padding: 1rem;
    text-align: justify;
    background-color: white;
    margin-bottom: 0.5rem;
}

/* Menu déroulant des marques de synthé */
.synth-dropdown {
    text-align: center;
    margin: 1rem auto;
    padding: 0.5rem;
    background-color: #e6f2ff;
    border-radius: 4px;
    max-width: 500px;
}

.synth-dropdown select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #4a90e2;
    width: 100%;
    font-family: Arial, sans-serif;
}

/* Mosaïque d'images */
.mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.mosaic-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s;
}

.mosaic-img:hover {
    transform: scale(1.03);
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* SECTION DEVICES PIXELS */
/* Réduction agressive pour les petits écrans */
@media (max-width: 768px) {
    .nav-item {
        padding: 0.2rem 0.3rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-item {
        padding: 0.1rem 0.2rem;
        font-size: 0.7rem;
    }
}