* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: antiquewhite;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
}

/* Header */
.top {
    width: 100%;
    height: 10vh;
    border-bottom: 2px solid black;
    background-color: antiquewhite;
    display: flex;
    position: fixed;
    align-items: center;
}

.logo{ height: 100%;
    width: clamp(100px, 20vw, 200px);
    margin-right: auto;
    border-right: solid 2px black; }

/* Conteneur principal : nav + main */
.container {
    display: flex;
    flex: 1; /* prend tout l'espace entre header et footer */
}

/* Nav à gauche */
nav {
    width: clamp(100px, 20vw, 200px);
    height: 100vh;
    border-right: 2px solid black;
    position: fixed;
    display: block;
}

nav ul {
    position: sticky;
    top: 10vw;
    list-style: none;
    padding: 0;
    margin-top: 100px;
    width: max-content;
    left: 40%;
    transform: translateX(-20%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 10px;
    font-weight: 800;
    display: inline-block;
    position: relative;
}

nav a::after{
    content: '';
    position: absolute;
    width: 80%;
    transform: scaleX(0);
    height: 2px;
    bottom: 8px;
    left: 10%;
    background-color: black;
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

nav a:hover::after{
    transform: scaleX(1);
}

.popup_overlay {
    display: none;
    position: absolute;
    border: solid 2px black;
    background-color: antiquewhite;
    width: 300px;
    padding: 20px;
    left : 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

/* Contenu principal */
main {
    flex: 1;
    padding: 2vw;
    margin-left:  clamp(100px, 20vw, 200px);
    margin-top: 10vh;
    margin-bottom: 15vh;
}

main:has(.signup_login) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup_login {
    width: 500px;
    color: black;
    padding: 10px;
    height: 400px;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.billet_titre{
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 2rem;
}

.publications {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 20px;
}

.preview_billet {
    width: 300px;
    background-color: antiquewhite;
    color: black;
    text-decoration: none;
    padding: 10px;
    height: 400px;
    border: 2px solid black;
    margin: 10px;
    transition: all 0.3s ease;
}

.preview_billet:hover {
    background-color: antiquewhite;
    color: black;
    box-shadow: 0 0 0 5px black;
}

.preview_title {
    display: flex;
    background-color: black;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    color: antiquewhite;
    padding: 7px;
}

.preview_date {
    font-size: 0.8rem;
}

/* billet */
.sommaire {
    margin: 20px;
}

.separation {
    height: 2px;
    width: 100%;
    background-color: black;
}

/* commentaires */

.section_commentaires {
    display: none;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.commentaire {
    border: solid 2px black;
    width: 90%;
    padding: 10px;
}

.add_com_container {
    width: 600px;
    color: black;
    padding: 10px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    border: 2px solid black;
    align-items: center;
    text-align: center;
}

.add_com_container form{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.add_com_container form input{
    flex: 2;
}

.add_commentaire {
    /* position: absolute !important; */
    display: block !important;
    /* margin-top: auto !important;
    margin-left: auto !important; */
    bottom: 0 !important;
}


/* Bouton “Voir plus” */
.btn_wrap{
    text-align: right;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 7px 10px;
    color: black;
    border: 2px solid black;
    background-color: antiquewhite;
    font-size: 0.9rem;
    margin-left: auto;
    margin-top: 40px;
    margin-bottom: auto;
    transition: all 0.3s ease;
    font-weight: 800;
    text-transform: uppercase;
}

.btn_delete {
    background-color: black;
    color: antiquewhite;
    margin: 10px;
}

.btn:hover {
    background-color: black;
    color: antiquewhite;
}

.btn_profil:hover{
    box-shadow: 0 0 0 2px black;
    background-color: antiquewhite;
    color: black;
}

.btn_delete:hover{
    background-color: antiquewhite;
    color: black;
}

/* Footer */
footer {
    width: 100%;
    height: 15vh;
    border-top: 2px solid black;
    background-color: antiquewhite;
    padding: 20px;
    text-align: center;
    align-items: center;
    position: fixed;
    bottom: 0;
}

footer a {
    text-decoration: none;
    color: black;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.link::after {
    content: '';
    position: absolute;
    width: 80%;
    transform: scaleX(0);
    height: 2px;
    bottom: 8px;
    left: 10%;
    background-color: black;
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

footer .link::after{
    bottom: 0;
    width: 100%;
    left: 0;
}

.link:hover::after{
    transform: scaleX(1);
}