/* Global */
html {
    font-size: 15px;
 
    scroll-behavior: smooth;
}

body {
    font-family: "Lexend", Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}
a, a:link, a:visited {
    color: #449c45;
    text-decoration: none;
}
a:hover, a:active, a:focus {
    text-decoration: underline;
}
/* les liens fantomes */
a.ghost, a.ghost:link, a.ghost:visited {
    color: #333;
    text-decoration: none;
}
a.ghost:hover, a.ghost:active, a.ghost:focus {
    text-decoration: none;
    font-weight: 500;
}
/* Bannière */
.banner {
    background-color: #4CAF50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.banner h1 {
    margin: 0;
    font-size: 2.5em;
}

/* Menu */
.menu {
    background-color: #333;
    overflow: hidden;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}

.menu ul li {
    display: inline;
    margin: 0;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
}

.menu ul li a:hover, .menu ul li a.on {
    background-color: #4CAF50;
}

/* Contenu principal */
.content {
    font-size: 1.17rem;
    padding: 20px;
    padding-left: 35px;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.content-large{
    width: 80%;
    max-width: 1200px;
}
article {
    margin-bottom: 90px;
}
.poem h2 {
    font-size: 1.8em;
    color: #4CAF50;
}

.poem p {
    font-size: 1.2em;
    line-height: 1.6;
}


.container {
    display: flex;
}

.carte-poeme {
    width: 120px;
    padding: 10px;
    background: white;
    position: fixed;
    top: 130px; /* Ajustez selon votre menu */
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: hidden; /* Supprime l'ascenseur */
    height: calc(100vh - 220px);
    padding-top: 50px;
}

/* Supprimer le soulignement des liens dans la carte */
.carte-poeme .strophe-link {
    text-decoration: none;
}

/* Ajuster l'ancre pour qu'elle ne perturbe pas l'affichage */
.strophe-link {
    display: block;
    position: relative;
    top: -50px; /* Ajustez selon vos besoins pour compenser le header */
}
/* Style des liens de strophes */
.strophe-link {
    text-decoration: none;
}

/* Conteneur pour chaque strophe de la carte*/
.strophe-poeme {
    width:111px;
    margin-bottom: 2px;
    padding: 2px;
    background: e3ffcf; /* Vert clair par défaut */
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* Survol */
.strophe-link:hover .strophe-poeme {
    background: green;
}

/* Texte miniature */
.strophe-poeme span {
    font-size: 2pt;
    display: block;
    overflow: hidden;
   
    text-overflow: ellipsis;
} 

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}
.btn-suite {
    margin-top: 2rem;
    margin-bottom: 1.4rem;
    text-align: right;  
    float: right;
    width: 99%;
}

.btn-publicform {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.bigasterisque {
    font-size: 2.3rem;
    padding-right: 1rem;
}
.notice_poeme {
    opacity: 0;
    transform: translateY(20px); /* Déplacement initial */
    transition: opacity 1s ease, transform 1s ease; /* Animation */
}
.commentaires {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;  
    line-height: 1.05rem;
    width: 60%;
    float: right;
    opacity: 1;
}
.notice_poeme.visible {
    opacity: 1; /* Rendu visible */
    transform: translateY(0); /* Position normale */
}
.poete-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.poete-grid, .recueil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

.poete-card, .recueil-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 10px;
}
ul.poeme-list {
    list-style: none;
    padding-left:0px;
}

ul.poeme-list li.poeme-inrecueil {
    margin-bottom: 15px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ccc;
}


.poete-card:hover {
    transform: translateY(-5px);
}
.recueil-notice {
    overflow: auto;
    width: 100%;
    height: 200px;
    text-align: left;
    font-size: 85%;
}
.poete-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0; /* Couleur de fond si l'image est vide */
}

.poete-details {
    padding: 15px;
}

.poete-details h3 {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #4CAF50;
}

.poete-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 15px;
}

.poete-details a {
    color: #4CAF50;
    font-weight: bold;
    text-decoration: none;
}

.poete-details a:hover {
    text-decoration: underline;
}


.poete-info {
    flex: 2;
    margin-right: 20px;
}

.poete-details {
    flex: 1;
    background: #fff;
    padding: 15px;
    margin-top:20px; 
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poete-photo {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.poete-notule, .poete-bibliographie {
    margin-top: 10px;
    font-size: 1rem;
    text-align:justify;
    line-height: 1.6;
}


.citation {
    border-left: 1px solid #AAA;
    margin: 10px;
    padding-left: 25px;
    padding-top:10px;
    padding-bottom:15px;
}

@media screen and (max-width: 800px) {
    .poete-container {
        flex-direction: column;
    }

    .poete-info, .poete-details {
        margin-right: 0;
        width: 100%;
    }
}


/* Cacher la carte du poème sur les petits écrans */
@media screen and (max-width: 800px) {
    .carte-poeme {
        width: 5px; /* Réduit à une fine bande */
        opacity: 0.3;
        transition: opacity 0.3s ease, width 0.3s ease;
    }

    /* Afficher la carte lorsqu'on passe la souris */
    .carte-poeme:hover {
        width: 120px; /* Largeur normale */
        opacity: 1;
    }
}
