/* Général */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Titre et sous-titres */
h1,
h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.profil {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #783f80;
    vertical-align: middle; 
    margin-left: 10px;
}

.admin{
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

/* Connexion/Inscription */
.connexion {
    text-align: center;
    margin-top: 20px;
}

.connexion a {
    color: #854791ac;
    text-decoration: none;
    margin: 0 10px;
}

.connexion a:hover {
    text-decoration: underline;
}

/* Conteneur des billets */
.billets-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

/* Style des billets */
.billet {
    flex: 1 1 calc(33.333% - 20px);
    max-width: 30%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.billet a {
    color: #854791ac;
    font-size: 18px;
    
}
/* Archives */
.archives h2 {
    text-align: center;
    margin-top: 30px;
}

.archives a {
    color: #854791ac;
    font-size: 18px;
}

.archives a:hover {
    text-decoration: underline;
}

/* Conteneur des images */
.img-accueil {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    margin: 20px auto;
}

/* Style des conteneurs d'image */
.image-container {
    position: relative;
    max-width: 300px;
    margin-bottom: 20px;
    text-align: center;
}

/* Style des images */
.image-container img {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Style des légendes */
.image-container .caption {
    position: absolute;
    bottom: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Conteneur principal */
.billet-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Titre du billet */
.billet-titre {
    font-size: 2rem;
    color: #854791;
    text-align: center;
}

/* Commentaires */
.commentaires-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.comment-form {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.commentaire {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.commentaire-contenu {
    margin-bottom: 5px;
    color: #555;
}

.commentaire-details {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

 /* Masquer les commentaires par défaut */
 .comments {
    display: none;
    margin-top: 1em;
}

/* Afficher les commentaires quand la case est cochée */
.toggle-comments:checked + .toggle-label + .comments {
    display: block;
}

/* Masquer la checkbox */
.toggle-comments {
    display: none;
}

/* Style du label contenant la flèche */
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #783f80;
    font-weight: bold;
    margin-top: 1em;
}

.toggle-label:hover {
    color: #854791ac;
}

/* Style de la flèche */
.arrow {
    display: inline-block;
    margin-right: 0.5em;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #854791ac;
    transition: transform 0.3s ease;
}

/* Rotation de la flèche quand la case est cochée */
.toggle-comments:checked + .toggle-label .arrow {
    transform: rotate(-90deg);
}

/* Lien de retour */
.back-link a {
    color: #854791ac;
    font-size: 18px;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.comment-login-prompt a {
    color: #854791ac;
    text-decoration: none;
    font-weight: bold;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}


/* Connexion  au blog */
.login {
    text-align: center;
    font-size: 18px;
    color: #854791ac;
    margin-top: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

.login button{
    background-color: #854791ac;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.login button:hover{
    background-color: #783f80;
}

.login input{
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
/*Ajouter un nouveau billet bouton + page */
.ajout-billet {
    margin-top: 20px;
}

.ajout-billet a {
    background-color: #854791ac;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none ;
    cursor: pointer;
}

.ajout-billet a:hover {
    background-color: #783f80;
}


/* Ajouter un commentaire */
.add-comment {
    margin-top: 20px;
}

.add-comment button {
    background-color: #854791ac;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.add-comment button:hover {
    background-color: #783f80;
}
.add-comment{
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    padding: 10px;
}

/* Pages des archives */
.archives-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.archives-container ul {
    list-style-type: none;
    padding: 0;
}

.archives-container ul li {
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.archives-container ul li a {
    color: #854791;
    text-decoration: none;
    font-size: 1.2rem;
}

.archives-container ul li a:hover {
    color: #783f80;
    text-decoration: underline;
}

.archives-container ul li small {
    font-size: 0.85rem;
    color: #777;
    display: block;
    margin-top: 5px;
}

.archives-container p.back-link {
    text-align: center;
    margin-top: 20px;
}
.billet-extrait {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    line-height: 1.5;
}

/* Champ de modification (titre) */
.input-modify {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* Champ de modification (contenu) */
.textarea-modify {
    width: 100%;
    height: 150px;
    padding: 12px;
    margin: 5px 0;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}


/* Formulaire d'inscription */
.register {
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style des labels */
.register label {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Style des champs de saisie */
.register input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* Style du bouton d'inscription */
.register button {
    background-color: #854791ac;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s ease;
}

.register button:hover {
    background-color: #783f80;
}

/* Style du formulaire au survol */
.register input:focus,
.register button:focus {
    outline: none;
    border: 1px solid #854791ac;
}

/* Ajout d'un espace entre les champs du formulaire */
.register input, .register button {
    margin-bottom: 15px;
}
