/* Style global */
body {
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ddd;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 85%;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}

.champs {
    max-width: 50%;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}



h1, h2 {
    text-align: center;
    color: #fff;
}

/* Navigation */
nav {
    background: rgba(20, 20, 20, 0.9);
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#menu {
    display: flex;
    gap: 20px;
}

#menu a {
    color: #ddd;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
    border-radius: 5px;
}

#menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* Barre de recherche */
.search-bar {
    display: flex;
    align-items: center;
    margin-left: 4%;
}

.search-bar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    padding: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1em;
}

.search-bar button {
    padding: 8px 12px;
    background: #444;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #666;
}

/* Liste des armes */
#liste-arme {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.arme {
    background: rgba(50, 50, 50, 0.9);
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    
    opacity: 0;
    animation: fadeInUp 0.5s ease-in-out forwards;
}

#liste-arme :hover{
    transform: scale(1.02);
}

.arme:nth-child(odd) {
    animation-delay: 0.2s;
}

.arme:nth-child(even) {
    animation-delay: 0.4s;
}

.illustration {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.titre {
    font-size: 1.5em;
    color: #fff;
    margin: 10px 0;
}

.type {
    font-size: 1em;
    color: #bbb;
    margin: 5px 0;
}

.marque {
    font-size: 1em;
    color: #bbb;
    margin: 5px 0;
}

.origine {
    font-size: 0.9em;
    color: #888;
    display: block;
    margin-top: 10px;
}
/* Contenu */
#contenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.8em;
    margin: 50px auto;
    max-width: 80%;
    padding: 20px;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

#contenu .arme {
    max-width: 600px;
    width: 100%;
}

#contenu img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#contenu h3, #contenu p, #contenu span, #contenu h4 {
    color: #fff;
    margin: 10px 0;
}
/* Bouton */
.bouton {
    display: inline-block;
    background: #444;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    margin-top: 12px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.bouton:hover {
    background: #666;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: rgba(20, 20, 20, 0.9);
    color: #bbb;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 1em;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.6);
}

footer #signature  {
    color: #ddd;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}
footer #signature:hover {
    color: #fff;
} 

.social a   {
    color: #ddd;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}
.social a:hover {
    color: #fff;
} 



/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS page contact */

.contenuContact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 600px;
}


form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.input-contact {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-contact label {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
    width: 100%;
}


.input-contact input, .input-contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Formulaire membre */
/* Conteneur général */
.containerm {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
}

/* Titre du formulaire */
.containerm h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

/* Formulaire */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chaque entrée */
.form > div {
    display: flex;
    flex-direction: column;
}

/* Labels */
label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffff;
}

/* Inputs & select */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border 0.3s ease;
}

input:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

/* Bouton submit */
input[type="submit"] {
    background: #007bff;
    color: white;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="submit"]:hover {
    background: #0056b3;
}
