




#hero {
    position: relative;
    height: 80vh;
    background: url('../images/background3.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content h1 {
    font-size: 3em;
}

.hero-content p {
    font-size: 1.5em;
    margin: 10px 0;
}

.bouton {
    display: inline-block;
    background: #444;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    
}

.boutn {
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    background: #444;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}



.boutn:hover {
    background: #666;
}


.bouton:hover {
    background: #666;
}

#presentation, #armes-populaires {
    padding: 50px;
    text-align: center;
}

#presentation{
    background: rgba(50, 50, 50, 0.9);  
}

.armes-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.arme {
    background: rgba(50, 50, 50, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    max-width: 300px;
}

.arme img {
    max-width: 100%;
    border-radius: 5px;
}

footer {
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}


/* Conteneur du modal (caché par défaut) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Contenu du modal */
#contenus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.8em;
    margin: 50px auto;
    padding: 20px;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s ease-in-out forwards;
}
.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Bouton de fermeture */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 50px;
    cursor: pointer;
    color: #fff;
}

/* Animation d'affichage */
.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}


#recherche-nom{
    padding: 8px;
    margin: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
}
#recherche-marque{
    padding: 8px;
    margin: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
}
#recherche-type{
    padding: 8px;
    margin: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
}
#recherche-origine{
    padding: 8px;
    margin: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
}
#recherche-calibre{
    padding: 8px;
    margin: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
}
#submit{
    padding: 12px 16px;
    background: #444;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}
#submit:hover{
    background: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS Avatar */

.avatar-connexion {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}