body {
    font-family: "Georgia", serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 95vw;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    color: #333;
}
ul {
        list-style-type: none;
        padding-left: 0;  /* Enlève l'indentation gauche */
}
/* Styles globaux */
 
.delete-button {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.9em;
    color: white;
    background-color: #dc3545; /* Rouge pour indiquer suppression */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #c82333;
}


/* Conteneur principal */
#loginPage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Carte centrale */
.card {
    background: #ffffff;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Titres et textes */
.card h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

/* Boutons */
button.login {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

button.login:hover {
    transform: scale(1.05);
}

.btn-eleve {
    background: #007BFF; /* Bleu pour les élèves */
}

.btn-eleve:hover {
    background: #0056b3;
}

.btn-prof {
    background: #28a745; /* Vert pour les professeurs */
}

.btn-prof:hover {
    background: #1e7e34;
}

.btn-submit {
    background: #6c757d; /* Gris pour valider */
}

.btn-submit:hover {
    background: #5a6268;
}

/* Champ de saisie */
.input-field {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #007BFF;
    outline: none;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}



/* Barre des tâches (menu latéral) avec fond opaque */
.sidebar {
    width: 220px;
    padding: 15px;
    position: fixed;
    top: 0;
    bottom: 0; /* Assure que la barre latérale occupe toute la hauteur de la fenêtre */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacement entre les éléments */
    align-items: flex-start;
    background-color: #333; /* Fond opaque noir */
    color: white; /* Texte blanc */
    border-radius: 8px;
    overflow-y: auto; /* Active le défilement vertical */
    scrollbar-width: thin; /* Améliore l'apparence de la barre sur Firefox */
    scrollbar-color: #007acc #333; /* Couleurs pour Firefox */
}

.sidebar::-webkit-scrollbar {
    width: 8px; /* Largeur de la scrollbar */
}

.sidebar::-webkit-scrollbar-thumb {
    background: #007acc; /* Couleur de la barre */
    border-radius: 8px; /* Coins arrondis */
}

.sidebar::-webkit-scrollbar-track {
    background: #333; /* Couleur du fond de la scrollbar */
}

#search {
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fff;
    color: #333;
    transition: background-color 0.7s ease;
}

#search:focus {
    background-color: #f0f0f0;
}

/* Liste des poèmes dans la barre latérale */
.poem-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Boutons dans la barre latérale */
.poem-button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: left;
    transition: background-color 0.3s ease;
    width: 100%;
}

.poem-button:hover {
    background-color: #007acc;
}

/* Contenu principal */
main {
    margin-left: 250px; /* Ajuste l'espace pour la barre latérale réduite */
    width: calc(100% - 250px);
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
    font-style: italic;
}

/* Style pour chaque poème */
.poem {
    background-color: #ffffff;
    margin: 20px 0;
    padding: 20px;
    border-left: 6px solid #333;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poem:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.281);
}

.poem h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.poem p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6em;
}

.poem p:last-child {
    font-size: 1em;
    font-style: italic;
    text-align: right;
    color: #666;
    margin-top: 10px;
}

/* Défilement fluide */
html {
    scroll-behavior: smooth;
}
/* Bouton "Exporter" */
button.export-button {
    background-color: #007BFF;  /* Bleu clair pour attirer l'attention */
    color: white;
    border: none;
    padding: 12px 25px;  /* Plus grand pour améliorer l'impact visuel */
    border-radius: 50px;  /* Bords totalement arrondis */
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);  /* Ombre subtile pour un effet de profondeur */
}

button.export-button:hover {
    background-color: #0056b3;  /* Couleur sombre au survol */
}

button.export-button:active {
    transform: scale(0.98);  /* Légère réduction au clic */
}

/* Bouton "Archiver" */
button.archive-button {
    background-color: #6c757d;  /* Gris clair, pour un ton plus doux */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;  /* Même style arrondi pour l'harmonie */
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);  /* Ombre subtile */
}

button.archive-button:hover {
    background-color: #5a6268;  /* Gris plus foncé au survol */
}

button.archive-button:active {
    transform: scale(0.98);  /* Réduction au clic */
}

/* Boutons "Exporter" et "Archiver" alignés horizontalement */
.reactions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;  /* Aligne les boutons à droite */
    align-items: center;
}

/* Ajout de l'animation et du style de transition pour plus de fluidité */
button.export-button, button.archive-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.export-button:hover, button.archive-button:hover {
    transform: scale(1.05);  /* Agrandissement léger au survol */
}

button.export-button:active, button.archive-button:active {
    transform: scale(0.98);  /* Réduction au clic */
}
/* Style amélioré pour le bouton "Exporter" */
button.export-button {
    background-color: #007BFF;  /* Bleu clair pour attirer l'attention */
    color: white;
    border: none;
    padding: 12px 25px;  /* Plus grand pour améliorer l'impact visuel */
    border-radius: 50px;  /* Bords totalement arrondis */
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);  /* Ombre subtile pour un effet de profondeur */
}

button.export-button:hover {
    background-color: #0056b3;  /* Couleur sombre au survol */
}

button.export-button:active {
    transform: scale(0.98);  /* Légère réduction au clic */
}

/* Bouton "Like" positionné en bas à droite du poème */
.poem {
    position: relative;  /* Nécessaire pour positionner le bouton à l'intérieur du poème */
}

.like-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #28a745;  /* Vert clair */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;  /* Arrondir le bouton pour plus de fluidité */
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.like-button:hover {
    background-color: #218838;  /* Vert plus foncé au survol */
}

.like-button.liked {
    background-color: #155724;  /* Vert foncé quand "liké" */
}

/* Ajout d'un léger effet de transition */
.poem .like-button,
button.export-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poem .like-button:hover,
button.export-button:hover {
    transform: scale(1.05);  /* Agrandissement léger lors du survol */
}

.poem .like-button:active,
button.export-button:active {
    transform: scale(0.98);  /* Réduction au clic */
}

/* Alignement des boutons */
.reactions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
}
/* Style pour le bouton Paramètres */
.settings-button {
    background-color: #007BFF;
    color: white;
    font-size: 1.1em;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    transition: background-color 0.3s ease;
}

.settings-button:hover {
    background-color: #0056b3;
}

/* Menu des paramètres */
.settings-menu {
    position: absolute;
    top: 60px;
    left: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.1);
    width: 200px;
    font-size: 1em;
}

.settings-menu h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.settings-menu label {
    display: block;
    margin-bottom: 10px;
}

.settings-menu input {
    margin-left: 10px;
}

/* Bouton Like */
.like-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.like-button:hover {
    background-color: #218838;
}

/* Réactions (likes) */


.poem span {
    font-size: 1em;
    color: #555;
}


