/* =============== COMPONENTS STYLES RESTAURÉS =============== */
.post {
    background: rgba(255, 255, 255, 0.14); /* Fond translucide plus clair */
    border: 2px solid #344b92; /* Bordure plus claire */
    margin: 20px auto;
    border-radius: 15px;
    width: 50%; /* Adapté pour tenir dans la zone de contenu */
    max-width: 800px;
    padding: 25px;
    transition: all 0.3s ease;
    text-align: center;
}

.post:hover {
    border-color: var(--accent-color); /* Feedback visuel au survol */
    background: rgba(255, 255, 255, 0.15);
}

.post h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--accent-color); /* Titre violet */
}

.post p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contacter */

/* =============== COMPONENTS STYLES RESTAURÉS =============== */
.contact {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid #344b92;
    margin: 20px auto;
    border-radius: 15px;
    width: 50%; /* Adapté pour tenir dans la zone de contenu */
    max-width: 800px;
    padding: 25px;
    transition: all 0.3s ease;
    text-align: center;
}

.contact:hover {
    border-color: var(--accent-color); /* Feedback visuel au survol */
    background: rgba(255, 255, 255, 0.15);
}

.contact h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--accent-color); /* Titre violet */
}

.contact p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Like */

.Like-Comment {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.like-checkbox {
    display: none;
}

.like-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #344b92;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
    user-select: none;
}

.like-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0);
}

.heart {
    font-size: 15px;
    line-height: 1;
    color: #d1d5db;
    transform-origin: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.like-checkbox:checked + .like-button {
    border-color: #ec4899;
}

.like-checkbox:checked + .like-button .heart {
    color: #e11d48;
    animation: pop 0.4s ease;
    transform: scale(1.15);
}

.like-checkbox:checked + .like-button .like-text {
    color: #be185d;
}

.like-checkbox:checked + .like-button::after,
.like-checkbox:checked + .like-button::before {
    content: "❤";
    position: absolute;
    color: rgba(225, 29, 72, 0.35);
    font-size: 18px;
    pointer-events: none;
    animation: burst 0.7s ease forwards;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.15); }
}

@keyframes burst {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(1.2) translate(var(--x, -20px), var(--y, -20px));
        opacity: 0;
    }
}

.like-button::before { --x: -30px; --y: -10px; }
.like-button::after { --x: 30px; --y: -15px; }

.like-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Dislike */
.dislike-checkbox {
    display: none;
}
.dislike-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #344b92;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
    user-select: none;
}
.dislike-button:hover {
    transform: translateY(-2px);
}
.dislike-checkbox:checked + .dislike-button {
    border-color: #6366f1;
}
.dislike-button span {
    font-size: 15px;
    line-height: 1;
    color: #d1d5db;
    transform-origin: center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.dislike-checkbox:checked + .dislike-button span {
    color: #6366f1;
    animation: pop 0.4s ease;
    transform: scale(1.15);
}

/* =============== PROFILE SETTINGS RESTAURATION =============== */

.container {
    width: 100%;
    max-width: 600px; /* Plus compact pour l'esthétique du profil */
    margin: 0 auto;
}

/* Card du formulaire profil */
.profile-card {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

.profile-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.profile-card h1 {
    font-size: 26px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.profile-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

/* Avatar dans le profil */
.profile-avatar-section {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px auto;
}

.profile-preview-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.profile-status {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #10b981; /* Vert connecté standard */
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #161c37;
}

/* Formulaire interne */
.profile-form {
    text-align: left;
}

.profile-group {
    margin-bottom: 20px;
}

.profile-group label {
    display: block;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.profile-group input {
    width: 100%;
    height: 40px; /* Légèrement plus haut pour le confort moderne */
    padding: 10px 12px;
    background: rgba(16, 21, 47, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.profile-group input:focus {
    border-color: var(--accent-color);
}

/* Boutons d'actions alignés */
.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.profile-actions button, 
.profile-actions .btn-secondary {
    flex: 1;
    height: 42px;
    font-size: 13px;
}

.btn-secondary {
    background: rgba(225, 29, 72, 0.2);
    border: 2px solid #e11d48;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e11d48;
}


/* =============== SECTION COMMENTAIRES DESIGN =============== */

.comments-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.comments-section h3 {
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Formulaire d'envoi */
.comment-form {
    margin-bottom: 20px;
    width: 100%;
}

.comment-input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.comment-input-group input {
    flex: 1;
    height: 38px;
    padding: 0 15px;
    background: rgba(16, 21, 47, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-input-group input:focus {
    border-color: var(--accent-color);
}

.comment-submit-btn {
    height: 38px;
    padding: 0 15px !important;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Liste et items des commentaires */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(52, 75, 146, 0.3);
}

.comment-header {
    margin-bottom: 4px;
}

.comment-author {
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-color);
}

.comment-text {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.no-comments, .comment-auth-notice {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin: 5px 0;
}

.comment-auth-notice a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.comment-auth-notice a:hover {
    text-decoration: underline;
}