*,
*::after,
*::before {
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    background-color: #F3EDE1;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    scrollbar-width: none;
}

h1 {
    color: #B82424;
    margin-bottom: 20px;
    font-size: 3rem;
    text-align: center; 
}

nav {
    background-color: #B82424; 
    padding: 10px 20px; 
    position: relative; 
}

nav ul {
    list-style-type: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    justify-content: flex-end; 
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
}

nav a:hover {
    cursor: pointer;
    color: #F3EDE1;
}

main {
    margin-bottom: 20px; 
}

h2 {
    color: #B82424; 
}

footer {
    text-align: center; 
    margin-top: 20px;
    color: #B82424; 
}

form.login, form.inscription {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px; 
    margin-left: 430px;
    max-width: 90%; 
    text-align: center;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #B82424; 
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #B82424; 
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #F3EDE1; 
    color:#B82424;
}


p {
    margin-top: 20px;
}

a {
    color: #B82424; 
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.archives-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.index-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.billet {
    width: 80%; 
    max-width: 400px; 
    background-color: #B82424;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.billet h3, 
.billet p, 
.billet small, 
.billet a {
    text-align: center;
    color: white;
}


.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: transparent;
    border: 2px solid #F3EDE1;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color : #F3EDE1;
    color: #B82424;
}

.billet-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 30px;
    background-color: #B82424;
    color: #F3EDE1;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.billet-button:hover {
    background-color: transparent;
    border: 2px solid #B82424;
    color: #B82424;
    text-decoration: none;
}

.comments {
 margin-top: 20px;   
}

.comment {
border: 2px solid #F3EDE1;
padding: 10px;
margin-bottom: 10px;
background-color: transparent;
text-align: left;
border-radius: 15px;
}

.comment-section {

padding: 10px;
margin-bottom: 10px;
margin-top: 10px;
background-color: transparent;
}

.comment-section form {
display: flex;
flex-direction: column;
gap: 10px;
}

.comment-section textarea {
width: 100%;
height: 80px;
padding: 10px;
border: 1px solid #B82424;
}

.comment-section button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #F3EDE1;
    color: #B82424;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;  
}


.user-table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 20px;
    margin: 0 auto;
}

.user-table th,
.user-table td {
    padding: 10px;
    border: 1px solid #000000;
    text-align: center;
    vertical-align: middle;
}

.annule-button {
    position: fixed;
    bottom: 20px;
    left: 250px;
    padding: 15px 30px;
    background-color: #B82424;
    color: #F3EDE1;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.save-button {
    position: fixed;
    bottom: 20px;
    left: 90px;
    padding: 15px 30px;
    background-color: #B82424;
    color: #F3EDE1;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer; 
}

.save-button:hover {
    background-color: transparent;
    border: 2px solid #B82424;
    color: #B82424;
    text-decoration: none;
}


.index-button {
    position: fixed;
    bottom: 20px;
    left: 250px;
    padding: 15px 30px;
    background-color: #B82424;
    color: #F3EDE1;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.change-billet-btn {
    position: fixed;
    bottom: 20px;
    left: 90px;
    padding: 15px 30px;
    background-color: #B82424;
    color: #F3EDE1;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer; 
}

.change-billet-btn:hover {
    background-color: transparent;
    border: 2px solid #B82424;
    color: #B82424;
    text-decoration: none;
}



.delete-comment-btn {
    color: #ffffff;
    background-color: #e74c3c; 
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

}