/* General Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
}


main {
    padding: 25px;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    margin-inline: auto;
}

.title-blog {
    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0;
}

.description {
    margin-bottom: 30px;
    font-style: italic;
}


.subtitle {
    font-size: 2rem;
}



/*BARRE DE NAVIGATION*/

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-grow: 1;
}

.navbar .nav-links,
.auth-links ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar .nav-links li a,
.auth-links ul li a {
    text-decoration: none;
    font-size: 16px;
    color: black;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: bold;
}

.navbar .nav-links li a:hover,
.auth-links ul li a:hover {
    color: #660033;
}

.auth-links ul {
    margin-left: auto;
}


.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #eaeaea;
    height: 80px;
}

.profile-picture {
    margin-right: 20px;
}

.profile-picture img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #660033;
    object-fit: cover;
}

.actif {
    text-decoration: underline;
}

/*POST*/

.title_post a {
    color: #660033;
}


.title_post {
    color: #660033;
    text-transform: uppercase;
    text-decoration: underline;
}


.post {
    margin-top: 30px;
    background-color: #ffe0ff;
    padding: 10px;
}


.date {
    font-style: italic;
    font-weight: bold;
}

.delete-button {
    background-color: rgb(255, 248, 154);
    padding: 8px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: black;
    display: flex;
    margin-top: 30px;
    max-width: 75px;
}


.delete-button:hover {
    background-color: rgb(163, 250, 238);
}


/* SECTION COMMENTAIRES*/

.scomments {
    margin-top: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.scomments h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #660033;
    margin-top: 0;
}


form {
    margin-bottom: 20px;
}

form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
}

form button {
    background-color: #660033;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #90004d;
}


#btn-comment {
    background-color: #660033;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

#btn-comment:hover {
    background-color: #90004d;
}


.comments-section {
    margin-top: 15px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.comment img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.comment p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.comment p:first-of-type {
    font-weight: bold;
    color: #000;
}

.comment p:last-of-type {
    font-style: italic;
    font-size: 0.85rem;
    color: #999;
}

.comment a {
    margin-left: auto;
    color: #ff0000;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.comment a:hover {
    text-decoration: underline;
}



/*LIEN RETOUR*/

.back-link {
    display: inline-block;
    color: black;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
}

.back-link:hover {
    color: #660033;
}



/*PROFIL*/

.title-profile {
    text-transform: uppercase;
    text-align: center;
}

.container-profile {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-top: 30px;
}


.img-pp img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #660033;
    object-fit: cover;
}

.photo-update-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    border: black dotted;
}

.txt-profile {
    padding: 15px;
    border: black solid;
    border-top: solid 10px black;
    height: 300px;
}

.file-input-img {
    margin-bottom: 10px;
}

.logout-link {
    background-color: grey;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-link:hover {
    background-color: rgb(233, 229, 229);
    color: black;
}

.createPost {
    display: flex;
    flex-direction: column;
}


.btn-post {
    margin-top: 20px;
}




/*CONNEXION ET INSCRIPTION*/

.login-form {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
    text-align: center;
    font-size: 24px;
    color: black;
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: black;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: black;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #660033;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form input[type="submit"]:hover {
    background-color: #90004d;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.signup-link {
    margin-top: 15px;
    text-align: center;
}

.signup-link a {
    color: #660033;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.pdp-text-form {
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 35px;
}

.pdp-text-form span {
    color: #90004d;
    text-transform: uppercase;
}

.login-link {
    margin-top: 15px;
    text-align: center;
}



/* FOOTER */

footer {
    background-color: black;
    height: 50px;
    padding: 20px;
}

footer p {
    margin: 0;
    color: white;
    text-align: center;
}


footer a {
    color: white;
}