.django-ckeditor-widget{
    width: 100%;
  }

  .elegant-hr {
      border: 0;
      height: 2px;
      background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
  }
  .reply-btn-container {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-bottom: 10px; 
  }

/* Style général du bouton d'upvote */
.upvote-btn {
    text-decoration: none; 
    color: gray;  /* Couleur par défaut */
    transition: color 0.3s;  /* Animation douce lors du changement de couleur */
  }
  
  /* Lorsque l'utilisateur a voté */
  .upvote-btn.active-vote, 
  .upvote-btn.active-vote .fas, 
  .upvote-btn.active-vote .vote-count {
    color: blue;  /* Couleur lorsque l'utilisateur a voté */
  }
  
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-on-light-bg);
}

.icon-full-height {
    font-size: var(--icon-size);
    color: var(--primary-color);
    transition: opacity .3s ease; /* Ajouter une transition pour l'effet de survol */
}

.icon-full-height:hover {
    opacity: var(--icon-hover-opacity);
}

/* Regroupement des propriétés de la carte */
.card, .card:hover {
    border: none;
    border-radius: 0.25rem;
}

.basic-info {
    display: flex;        /* Active flexbox */
    flex-direction: column; /* Organise les éléments en colonne */
    align-items: center;    /* Centre les éléments horizontalement dans la boîte */
    justify-content: center; /* Centre les éléments verticalement dans la boîte */
    height: 100%; /* Assurez-vous que la hauteur est définie pour centrer verticalement */

}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .label {
        display: none;
    }
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
}

/* Utiliser des variables CSS pour définir les couleurs */
.card-title a,  a.theme-link {
    color: var(--primary-color);
}

.card-title a:hover,  a.theme-link:hover {
    text-decoration: underline;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em; /* Adjust the size of icons */
    color: var(--primary-color);
    width: 50px; /* ou toute autre dimension fixe que vous préférez */   
}

.post-count, .reply-count {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.last-activity {
    font-size: 0.8em;
    color: var(--muted-text-color);
}


/* Style zébré pour les cartes du forum */
.card:nth-of-type(odd) {
    background-color: #f8f9fa; /* Couleur pour les cartes impaires */
}

/* Effet de survol pour la carte */
.card:hover {
    background-color: #f5f5f5; /* Couleur de fond au survol */
    cursor: pointer; /* Indicateur de cliquabilité */
}

/* Effet au survol pour le titre du thème, en supprimant le surlignement */
.card-title a {
    color: inherit; /* Hérite de la couleur de .card-title */
    text-decoration: none; /* Pas de soulignement */
}

.card-title a:hover {
    color: #0056b3; /* Couleur au survol */
    text-decoration: underline; /* Soulignement au survol si désiré */
    transition: color 0.3s ease; /* Transition douce pour la couleur */
}

/* Style pour la colonne de dernière activité */
/* Style pour la colonne de dernière activité */
.last-activity-cell {
    color: #555; /* Couleur du texte pour la colonne */
}

.icon-activity {
    color: #6c757d; /* Couleur discrète de l'icône */
    margin-right: 5px; /* Espace entre l'icône et le texte */
}

.last-activity-date {
    font-weight: normal; /* P   olice normale plutôt qu'en gras */
    color: #6c757d; /* Couleur assortie à l'icône pour la cohérence */
}
/* Styles pour les icônes des sujets et réponses */
.icon-subject,
.icon-reply {
    color: #6c757d; /* Couleur discrète de l'icône */
    margin-right: 5px; /* Espace entre l'icône et le texte */
}


.stats {
    display: flex;
    flex-direction: column;
    flex-basis: 20%; /* Ajuster pour occuper jusqu'à 1/4 de la carte */
    align-items: flex-start; 
    min-width: 20%;
}

.subjects, .replies, .last-activity {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.icon-subject, .icon-reply, .icon-activity {
    margin-right: 0.5rem;
}
.content {
    flex-basis: 80%; /* Ajuster en conséquence */
}
.stat-item {
    display: flex;
    align-items: flex-start;  /* Pour aligner verticalement l'icône avec le texte */
}

/* Styles pour les breadcrumbs des pages forum */
.forum-breadcrumb {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.forum-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.forum-breadcrumb .breadcrumb-item {
    font-size: 1rem;
    font-weight: 500;
}

.forum-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.forum-breadcrumb .breadcrumb-item a:hover {
    color: var(--icon-hover-color);
}

.forum-breadcrumb .breadcrumb-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--icon-hover-color);
    transition: width 0.3s ease;
}

.forum-breadcrumb .breadcrumb-item a:hover::after {
    width: 100%;
}

.forum-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '\f054';  /* Utilisation d'une icône FontAwesome pour le séparateur */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

.forum-breadcrumb .breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .forum-breadcrumb {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }

    .forum-breadcrumb .breadcrumb-item {
        font-size: 0.85rem;
    }
}
.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.edit-profile-icon {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    color: #fff; /* ou toute autre couleur */
    background-color: rgba(0,0,0,0.5); /* pour le contraste */
    border-radius: 50%; /* cercle */
    padding: 5px; /* espace autour de l'icône */
}

.child-replies-container {
    margin-left: 20px;
    border-left: 2px solid #f0f0f0;
    padding-left: 10px;
    display: none; /* Caché par défaut */
}

.reply-count {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    cursor: pointer; /* Rend le texte cliquable */
}

.button-right {
    float: right;
    margin-top: 15px;
    margin-bottom: 10px;
}

.email-body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.email-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.email-header {
    color: #4CAF50;
    margin-bottom: 20px;
}

.email-greeting, .email-message, .email-signature {
    line-height: 1.6;
    margin-bottom: 20px;
}

.email-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.email-button:hover {
    background-color: #45a049;
}

.email-link a {
    color: #4CAF50;
    text-decoration: none;
}

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

/* Styles pour le nombre de réponses et le texte associé dans les cartes de forum */
.card-header .badge-secondary,
.card-footer .text-muted {
    color: var(--primary-color) !important; /* Utilisation de la couleur primaire */
    font-weight: bold; /* Rendre le texte en gras pour plus de visibilité */
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #e0e0e0;
}

.user-profile-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.user-profile-link:hover {
    color: var(--icon-hover-color);
}

.username {
    position: relative;
}

.username::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--icon-hover-color);
    transition: width 0.3s ease;
}

.user-profile-link:hover .username::after {
    width: 100%;
}

.login-page-container {
    min-height: 100vh;
}

.login-page-row {
    min-height: 100vh;
}

.login-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-page-form {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-page-signup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff; /* Couleur de fallback */
    color: white;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.login-page-signup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0,123,255,0.8) 20%,
        rgba(0,123,255,0.6) 40% 
        rgba(255,165,0,0.6) 50%,  /* Ajout d'orange */
        
    );
}
.login-page-signup-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.login-page-input {
    border-radius: 20px;
    padding: 0.75rem 1rem;
}

.login-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

.login-password-toggle:hover {
    color: #007bff;
}

.login-page-btn {
    border-radius: 20px;
    padding: 0.75rem 1rem;
}

.login-page-btn.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.login-page-signup-btn {
    background-color: transparent;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.login-page-signup-btn:hover {
    color: #007bff;
    background-color: white;
}

.login-page-title {
    font-weight: bold;
    color: #333;
}

.login-page-signup-container .login-page-title,
.login-page-signup-container .login-page-text {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.login-page-text {
    font-size: 1.1rem;
}

.login-page-forgot-password {
    color: #6c757d;
    text-decoration: none;
}

.login-page-forgot-password:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-page-signup-container {
        min-height: 300px;
    }
}

/* Séparateur "ou" */
/* Séparateur "ou" */
.login-page-oauth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.login-page-oauth-divider::before,
.login-page-oauth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--navbar-text-color);
}

.login-page-oauth-divider::before {
    left: 0;
}

.login-page-oauth-divider::after {
    right: 0;
}

.login-page-oauth-divider span {
    display: inline-block;
    padding: 0 10px;
      /* Utilise la couleur de fond de la page */
    position: relative;
    z-index: 1;
    color: var(--text-on-light-bg);
    font-size: 14px;
}
/* Bouton Google */
.login-page-oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    border: none;
}

.login-page-oauth-button:hover {
    background-color: var(--btn-bg-hover);
    color: white;  /* Assurez-vous que le texte est blanc au survol */
}

.login-page-oauth-button .google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    margin-right: 10px;
}

.login-page-oauth-button .google-icon {
    font-size: 18px;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 110deg 180deg, #34a853 180deg 300deg, #fbbc05 300deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .login-page-oauth-divider::before,
    .login-page-oauth-divider::after {
        width: 40%;
    }

    .login-page-oauth-button {
        font-size: 14px;
    }
}
/* Bouton Google spécifique */
.login-page-oauth-button.btn-outline-secondary {
    color: var(--text-on-light-bg);
    border-color: var(--navbar-text-color);
    background-color: var(--background-color);
}

.login-page-oauth-button.btn-outline-secondary:hover {
    color: var(--text-on-dark-bg);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .login-page-oauth-divider::before,
    .login-page-oauth-divider::after {
        width: 40%;
    }

    .login-page-oauth-button {
        font-size: 14px;
    }
}

/* Boutons OAuth */
.login-oauth-buttons {
    margin-top: 15px;
}

.login-oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-oauth-button i {
    margin-right: 10px;
    font-size: 18px;
}

/* Bouton Google spécifique */
.login-oauth-button.btn-outline-secondary {
    color: #757575;
    border-color: #d0d0d0;
    background-color: #fff;
}

.login-oauth-button.btn-outline-secondary:hover {
    color: #fff;
    background-color: #4285F4;
    border-color: #4285F4;
}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .login-oauth-divider::before,
    .login-oauth-divider::after {
        width: 40%;
    }

    .login-oauth-button {
        font-size: 14px;
    }
}
/* New password */
.vefa-reset-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vefa-reset-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.vefa-reset-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
}

.vefa-reset-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.vefa-reset-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.vefa-reset-btn {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vefa-reset-btn:hover {
    background-color: #2980b9;
}

.vefa-reset-message {
    text-align: center;
    margin-top: 20px;
    color: #34495e;
}

.vefa-reset-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.vefa-reset-link:hover {
    text-decoration: underline;
}

.vefa-reset-icon {
    text-align: center;
    margin-bottom: 20px;
}

.vefa-reset-icon i {
    font-size: 48px;
    color: #3498db;
}

.vefa-reset-info {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #34495e;
}

/* forum_theme_detail.css */
.ftd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.ftd-breadcrumb {
    margin-bottom: 1rem;
    background-color: var(--background-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.ftd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ftd-title {
    font-size: 2.5rem;
    color: var(--text-on-light-bg);
    font-weight: 700;
}

.ftd-new-post-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--btn-bg-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ftd-new-post-btn:hover {
    background-color: var(--btn-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ftd-new-post-btn i {
    margin-right: 0.5rem;
}

.ftd-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ftd-sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--navbar-text-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-on-light-bg);
    font-size: 1rem;
}

.ftd-view-toggle {
    display: flex;
}

.ftd-view-btn {
    background: none;
    border: 1px solid var(--navbar-text-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ftd-view-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.ftd-view-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.ftd-view-btn.active {
    background-color: var(--btn-bg-color);
    color: white;
}

.ftd-posts {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.ftd-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ftd-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ftd-post-main {
    display: flex;
    padding: 1.5rem;
}

.ftd-post-avatar {
    margin-right: 1rem;
}

.ftd-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ftd-post-content {
    flex: 1;
}

.ftd-post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.ftd-post-link {
    color: var(--text-on-light-bg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ftd-post-link:hover {
    color: var(--btn-bg-color);
}

.ftd-post-excerpt {
    color: var(--text-on-light-bg);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ftd-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--navbar-text-color);
}

.ftd-post-meta span {
    display: flex;
    align-items: center;
}

.ftd-post-meta i {
    margin-right: 0.25rem;
}

.ftd-post-activity {
    background-color: var(--background-color);
    padding: 1rem;
    border-top: 1px solid var(--navbar-text-color);
}

.ftd-last-reply {
    display: flex;
    align-items: center;
}

.ftd-user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.ftd-last-reply-info {
    font-size: 0.85rem;
}

.ftd-last-reply-author {
    font-weight: 600;
    color: var(--text-on-light-bg);
}

.ftd-last-reply-date {
    color: var(--navbar-text-color);
}

.ftd-no-replies {
    color: var(--navbar-text-color);
    font-style: italic;
}

.ftd-pagination {
    margin-top: 2rem;
    text-align: center;
}

.ftd-load-more-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--icon-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.ftd-load-more-btn:hover {
    background-color: var(--icon-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .ftd-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ftd-posts.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}


 /* Styles for the modern profile template v4 */
/* Styles for the enhanced profile template v5 */
/* Styles for the enhanced profile template v6 */

.profile-v6 {
    max-width: 1000px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-v6__header {
    position: relative;
    height: 250px;
    background-color: #f8f9fa;
}

.profile-v6__avatar-container {
    position: absolute;
    bottom: -75px;
    left: 50px;
}

.profile-v6__avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #fff;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.profile-v6__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-v6__avatar-edit {
    position: absolute;
    bottom: 15px;
    right: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 28px;  /* Augmenter la taille de l'icône */
}
.profile-v6__form-group {
    margin-bottom: 20px;
}

.profile-v6__form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-on-light-bg);
}

.profile-v6__form-group input[type="text"],
.profile-v6__form-group input[type="email"],
.profile-v6__form-group select,
.profile-v6__form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--navbar-text-color);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--background-color);
    color: var(--text-on-light-bg);
}

.profile-v6__form-group select {
    height: 40px;
}

.profile-v6__submit-btn,
.profile-v6__cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.profile-v6__submit-btn {
    background-color: var(--btn-bg-color);
    color: var(--text-on-dark-bg);
    margin-right: 10px;
}

.profile-v6__submit-btn:hover {
    background-color: var(--btn-bg-hover);
}

.profile-v6__cancel-btn {
    background-color: var(--navbar-text-color);
    color: var(--text-on-dark-bg);
}

.profile-v6__cancel-btn:hover {
    background-color: var(--icon-hover-color);
}

.avatar-buttons {
    margin-top: 10px;
    text-align: center;
}

.avatar-buttons button {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.profile-v6__spacer {
    height: 30px;
    width: 100%;
}
#cancelAvatarBtn {
    background-color: var(--navbar-text-color);
    color: var(--text-on-dark-bg);
}

#validateAvatarBtn {
    background-color: var(--btn-bg-color);
    color: var(--text-on-dark-bg);
}

#cancelAvatarBtn:hover {
    background-color: var(--icon-hover-color);
}

#validateAvatarBtn:hover {
    background-color: var(--btn-bg-hover);
}
.profile-v6__avatar-edit:hover {
    background-color: rgba(255, 255, 255, 1);
}

.profile-v6__content {
    padding: 100px 50px 50px;
    display: flex;
}

.profile-v6__info {
    flex: 0 0 300px;
    margin-right: 50px;
}

.profile-v6__name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.profile-v6__username {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.profile-v6__details {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.profile-v6__details li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.profile-v6__details i {
    margin-right: 10px;
    color: #007bff;
    width: 20px;
}

.profile-v6__edit-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-v6__edit-btn:hover {
    background-color: #0056b3;
}

.profile-v6__main {
    flex: 1;
}

.profile-v6__bio,
.profile-v6__stats,
.profile-v6__activity,
.profile-v6__programs {
    margin-bottom: 30px;
}

.profile-v6__bio h3,
.profile-v6__activity h3,
.profile-v6__programs h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.profile-v6__stats {
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.profile-v6__stat {
    text-align: center;
}

.profile-v6__stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    display: block;
}

.profile-v6__stat-label {
    font-size: 14px;
    color: #666;
}

.profile-v6__activity-list {
    list-style-type: none;
    padding: 0;
}

.profile-v6__activity-list li {
    display: flex;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.profile-v6__activity-list li:last-child {
    border-bottom: none;
}

.profile-v6__activity-list i {
    margin-right: 15px;
    color: #007bff;
    font-size: 20px;
}

.profile-v6__activity-time {
    font-size: 12px;
    color: #999;
}

.profile-v6__program-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.profile-v6__program-card {
    flex: 0 0 200px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.profile-v6__program-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.profile-v6__program-card h4 {
    font-size: 16px;
    margin: 10px;
}

.profile-v6__program-card p {
    font-size: 12px;
    color: #666;
    margin: 0 10px 10px;
}

@media (max-width: 768px) {
    .profile-v6__content {
        flex-direction: column;
        padding: 120px 30px 30px;
    }

    .profile-v6__info {
        flex: 1;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .profile-v6__avatar-container {
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-v6__stats {
        flex-wrap: wrap;
    }

    .profile-v6__stat {
        flex: 0 0 50%;
        margin-bottom: 15px;
    }
}

/* Styles pour la navbar de VefaConnect */
.navbar-custom {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 10px 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-weight: 600;
    color: var(--text-on-light-bg);
    font-size: 1.2rem;
}

.nav-link {
    color: var(--navbar-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--icon-hover-color);
}

.nav-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    color: var(--icon-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.connexion {
    padding: 8px 16px;
    font-weight: 500;
    background-color: var(--btn-bg-color);
    color: var(--text-on-dark-bg);
    border: none;
}

.connexion:hover {
    background-color: var(--btn-bg-hover);
}

.vefa-toggler {
    border: none;
    background: transparent;
}

.vefa-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navbar-text-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.vefa-toggler-icon::before,
.vefa-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--navbar-text-color);
    transition: transform 0.3s ease;
}

.vefa-toggler-icon::before {
    top: -6px;
}

.vefa-toggler-icon::after {
    bottom: -6px;
}

.navbar-toggler[aria-expanded="true"] .vefa-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .vefa-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .vefa-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.dropdown-menu {
    background-color: var(--background-color);
    border-color: var(--navbar-text-color);
}

.dropdown-item {
    color: var(--text-on-light-bg);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--icon-hover-color);
    color: var(--text-on-dark-bg);
}

/* Styles pour le template access_denied.html */
.access-denied-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--background-color);
}

.access-denied-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.access-denied-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.access-denied-title {
    color: var(--text-on-light-bg);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.access-denied-message {
    color: var(--text-on-light-bg);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.access-denied-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.access-denied-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.access-denied-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.access-denied-btn-primary:hover {
    background-color: var(--btn-bg-hover);
    transform: translateY(-2px);
    color: white;
}

.access-denied-footer {
    margin-top: 1.5rem;
}

.access-denied-back {
    color: var(--text-on-light-bg);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.access-denied-back:hover {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .access-denied-card {
        padding: 2rem 1rem;
    }

    .access-denied-title {
        font-size: 1.5rem;
    }

    .access-denied-message {
        font-size: 1rem;
    }

    .access-denied-btn {
        min-width: 180px;
    }
}


/* Styles pour le template post_detail.html */
.child-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.reply-reference {
    color: var(--primary-color);
    font-size: 0.9em;
    margin-left: 0.5rem;
    font-weight: 500;
}

.reply-time {
    color: #6c757d;
    font-size: 0.8em;
    margin-left: 0.5rem;
    display: block;
}

.btn-reply-to-child {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.child-replies-container {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #f0f0f0;
}

.reply-to-child-form-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .child-reply-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-reply-to-child {
        margin-left: 0;
    }
}


.sub-replies-wrapper {
    margin: 10px;
    padding: 10px;
    background-color:Var(--background-color);
    border-radius: 4px;
    
}

.sub-reply-toggle {
    font-size: 0.9em;
    padding: 4px 8px;
    color: #6c757d;
}

.sub-reply-toggle i {
    font-size: 0.8em;
    margin-right: 5px;
}

.sub-replies-accordion {
    border-left: 2px solid #dee2e6;
    padding-left: 10px;
}


.reply-toggle {
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    margin-top: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reply-toggle:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.reply-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reply-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    margin-left: 8px;
}

.reply-toggle[aria-expanded="true"] {
    background-color: #e9ecef;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.reply-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Style pour le conteneur des réponses */
.collapse-forum {
    border: 1px solid #e9ecef;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #fff;
}

.child-replies-wrapper {
    padding: 15px;
    background-color: #fff;
}

/* Badge pour le nombre de réponses */
.reply-count-badge {
    background-color: #e7f1ff;
    color: #0d6efd;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Styles pour le template general_forum.html */

@media (max-width: 768px) {
    .card-body {
        flex-direction: column;
    }

    .stats {
        margin-top: 1rem;
        display: flex;
        flex-direction: row !important; /* Force l'alignement horizontal */
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .subjects,
    .replies,
    .last-activity {
        display: flex;
        align-items: center;
        margin: 0 15px; /* Espacement horizontal uniforme */
    }

    /* Assure que le texte reste sur une ligne */
    .stats span {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .forum-header h1 {
        font-size: 2rem;
    }

    .stats {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .icon-container {
        font-size: 1.25rem;
    }
}

/* Hide brand text by default (mobile-first) */
.navbar-brand .brand-text {
    display: none;
}

@media (min-width: 992px) {
    /* Show brand text on larger screens */
    .navbar-brand .brand-text {
        display: inline; /* Or inline-block if needed */
    }
    
    /* Optional: Other desktop-specific navbar styles */
}


/* Styles pour le bouton Like dans le forum (importé de social_home.css) */
.social_home_activity_action.like-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    /* margin-top: 10px; REMOVED to fix alignment in social feed */
}

.social_home_activity_action.like-post-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}

.social_home_activity_action.like-post-btn i {
    font-size: 1.1rem;
}

/* Style pour le cœur aimé (rouge) */
.social_home_activity_action.like-post-btn.liked i.fas,
.social_home_activity_action.like-post-btn .fas.fa-heart {
    color: #e74c3c;
}

.social_home_activity_action.like-post-btn:hover .fas.fa-heart {
    color: #c0392b;
}

.like-count {
    margin-left: 4px;
    font-weight: 600;
}

/* ============================================================
   Avatar cliquable → profil (audit ergo). Défini ici car style.css est
   chargé GLOBALEMENT (base.html) → couvre forum, feed, photo, commentaires.
   Couleurs littérales (pas de var --forum-* qui n'est pas globale).
   ============================================================ */
.forum-avatar-link {
    display: inline-flex;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.forum-avatar-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.forum-avatar-link:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 50%;
}
