/* Style de base */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Style pour la barre de navigation */
nav {
    background-color: #4CAF50; /* Vert */
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 18px;
    display: inline-block;
    margin: 0 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #45a049;
}

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

/* Formulaire de saisie */
form {
    display: flex;
    flex-direction: column;
    width: 300px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form label {
    font-size: 16px;
    margin-bottom: 8px;
}

form input {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
}

form input[type="file"] {
    padding: 5px;
}

form button {
    background-color: #4CAF50; /* Vert */
    color: white;
    padding: 10px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #45a049;
}

form a {
    display: block;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    color: #4CAF50;
}

form a:hover {
    color: #45a049;
}

/* Conteneur pour la liste des mots */
#mots-affiches {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mot {
    background-color: white;
    padding: 20px;
    margin: 15px;
    width: 200px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mot img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

.mot h3 {
    font-size: 18px;
    color: #333;
}

.mot p {
    font-size: 14px;
    color: #777;
}

/* Style pour la page de mot de passe */
form#motdepasse {
    display: flex;
    flex-direction: column;
    width: 300px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form#motdepasse input {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
}

form#motdepasse button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form#motdepasse button:hover {
    background-color: #45a049;
}

form#motdepasse p {
    color: red;
    text-align: center;
}

/* Style pour la pop-up modale */
/* Style pour la pop-up modale */
.modal {
    display: none; /* Cacher la modale par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fond noir avec opacité */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    text-align: center;
    position: relative; /* Nécessaire pour positionner le bouton dans cette section */
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* Positionnement absolu à l'intérieur de la modal-content */
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Style pour le bouton de suppression */
.delete-button {
    background-color: red; /* Fond rouge */
    color: black; /* Icône noire */
    border: none; /* Pas de bordure */
    border-radius: 25%; /* Bouton rond */
    width: 40px; /* Taille du bouton */
    height: 40px; /* Taille du bouton */
    display: flex; /* Centrer l'icône */
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Curseur en main */
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Espacement entre l'image et le bouton */
}

.delete-button i {
    font-size: 18px; /* Taille de l'icône */
}

/* Effet au survol */
.delete-button:hover {
    background-color: darkred; /* Fond rouge foncé */
    color: white; /* Icône blanche */
}

form {
    background: transparent; /* Assurez-vous que le formulaire a un fond transparent */
    border: none; /* Supprimer toute bordure */
    padding: 0; /* Enlever tout padding si nécessaire */
}

/* style.css */
a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1.2em;
}

a:hover {
    text-decoration: underline;
}

/* Style pour le contenu d'introduction */
section {
    background-color: white;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;  /* Limite la largeur de la section */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Ombre discrète */
}

section h1 {
    font-family: 'Georgia', serif;  /* Police plus élégante pour le titre */
    color: #2c3e50; /* Couleur sombre pour le titre */
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 2.5em;
}

section p {
    font-size: 1.15em;  /* Augmenter légèrement la taille du texte pour plus de confort */
    color: #555;
    text-align: justify;
    margin: 30px 15px;
    padding: 0 10px;
    text-indent: 1.5em;  /* Ajout d'une petite indentation pour les paragraphes */
    line-height: 1.8;
}

strong {
    color: #007bff;
    font-weight: bold;
}

em {
    font-style: italic;
    color: #555;
}
