
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
            --primary-color: #4a6fa5;
            --secondary-color: #6b8cbc;
            --success-color: #28a745;
            --error-color: #dc3545;
            --warning-color: #ffc107;
            --light-gray: #e8e8e8;
            --dark-gray: #343a40;
            --border-radius: 8px;
            --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

.status-message {
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.status-message.success {
    background-color: #28a745; /* Vert */
}

.status-message.error {
    background-color: #dc3545; /* Rouge */
}

#boutonPublier:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.supprimer-btn {
    cursor: pointer;
    border: 1px solid grey;
    background: lightblue;
    align-items: center;
    padding: 5px;
    max-width: fit-content;
    max-height: fit-content;
    border-radius: 15px;
    margin-left: 5px;
    margin-right: 5px;
}

.publier-btn {
    cursor: pointer;
    border: 1px solid grey;
    border-radius: 15px;
    background: lightsalmon;
    align-items: center;
    padding: 5px;
    max-width: fit-content;
    max-height: fit-content;
    margin-left: 5px;
    margin-right: 5px;
}

.modifier-btn {
    cursor: pointer;
    border: 1px solid grey;
    border-radius: 15px;
    background: lightgreen;
    align-items: center;
    padding: 5px;
    max-width: fit-content;
    max-height: fit-content;
    margin-left: 5px;
    margin-right: 5px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb .crumb {
    cursor: pointer;
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 25px 6px 15px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-right: 20px;
}

/* Création des flèches avec clip-path (plus moderne) */
.breadcrumb .crumb:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: -1px;
    width: 24px;
    height: 32px;
    background-color: #f7fafc;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: rotate(180deg);
    z-index: 2;
    transition: background-color 0.2s ease;
}

.breadcrumb .crumb::before {
    content: '';
    position: absolute;
    right: -13px;
    top: -1px;
    width: 26px;
    height: 32px;
    background-color: inherit;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: rotate(180deg);
    z-index: 1;
}

/* Dernier élément (page actuelle) */
.breadcrumb .crumb:last-child {
    background-color: #4299e1;
    color: white;
    border-color: #3182ce;
    margin-right: 0;
}

/* Hover effect */
.breadcrumb .crumb:hover {
    background-color: #4299e1;
    color: white;
}

.breadcrumb .crumb:hover::after {
    background-color: #4299e1;
}

/* Les séparateurs ">" */
.breadcrumb span:not(.crumb) {
    color: #a0aec0;
    margin: 0 8px 0 -12px;
    z-index: 3;
    position: relative;
}

body {
    margin: 0;
    padding: 10px;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

header {
    display: flex;
    align-items: center;
    background: white;
    padding: 2px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 5px;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 20%;
    padding-right: 10px;
    border-right: 1px solid #e0e0e0;
}

.logo {
    width: 100%;
    max-width: 350px;
}

.logo img {
    width: 80%;
    height: auto;
    display: block;
}

.gallerie-icones {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
}

.content-header {
    background: white;
    padding: 2px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* min-height: 500px; */
}

.icone-menu {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative; */
    max-width: 50px;
}

.icone-menu img {
    width: 50px;
}

.icone-orga img {
    width: 300px;
}

.icone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
    border-radius: 12px;
    /* transition: all 0.3s ease; */
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.icone-fixe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;    
}

.icone:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.icone img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.icone-fixe img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.icone span {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.icone-menu span {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.badge {
    position: absolute;
    top: 0px;
    right: 25px;
    background: #dc3545;
    color: white;
    border-radius: 4%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding-top: 4px;
}

.badge-prod {
    position: relative;
    top: 0px;
    right: 0px;
    background: #dc3545;
    color: white;
    border-radius: 4%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.badge-menu {
    position: relative;
    top: 38px;
    right: 0px;
    background: #dc3545;
    color: white;
    border-radius: 4%;
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Fil d'actu défilant */
.fil-actu-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
}

.fil-actu-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fil-actu-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.live-indicator {
    background: #dc3545;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.question-form-container {
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.question-form .form-group {
    margin-bottom: 20px;
}

.question-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Pour le timer du changement de mot de passe  */
.timer-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timer {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
    /* transition: all 0.3s ease; */
}

.time {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.timer-label {
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation de pulsation pour les dernières minutes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */


.input-email {
    width: 50%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.input-passwd {
    width: 50%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-passwd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.message {
    text-align: center;
}

.form-email {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.password-strength {
            margin-top: 5px;
            height: 10px;
            border-radius: 5px;
            background-color: #053668;
            overflow: hidden;
        }

.password-strength-bar {
    height: 100%;
    width: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-weak {
    background-color: var(--error-color);
    width: 33%;
}

.password-strength-medium {
    background-color: var(--warning-color);
    width: 66%;
}

.password-strength-strong {
    background-color: var(--success-color);
    width: 100%;
}

.question-form input[type="text"],
.question-form input[type="url"],
.question-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.question-form .char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.reponse-form-container {
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.reponse-form .form-group {
    margin-bottom: 20px;
}

.reponse-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.reponse-form input[type="text"],
.reponse-form input[type="url"],
.reponse-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.reponse-form .char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-save {
    background-color: #6c757d;
    color: white;
}

.btn-publish {
    background-color: #007bff;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.btn-cadre {
    padding: 4px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    margin-top: 5px; 
    background-color: #b30000;  
    text-align: center;
    color: ivory;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-cadre-question {
    padding: 4px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #b30000;  
    text-align: center;
    color: ivory;
    text-align: center;
}

.btn-cadre-statut {
    padding: 6px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #b30000;  
    text-align: center;
    color: ivory;
    text-align: center;
    text-transform: uppercase;
}

.btn-creation {
    font-size: 0.8em;
    padding: 4px 4px;
    border-radius: 12px;
    font-weight: 600;
    background-color: #4299e1;
    color: ivory; 
    width: 100px;
    text-align: center;   
    margin-top: 2px;
}

.actu-time {
    font-size: 0.8em;
    padding: 4px 4px;
    border-radius: 12px;
    margin-right: 5px;
    font-weight: 600;
    background-color: #0056b3;
    color: ivory;
}

.actu-statut-admission {
    background: #008ffc;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 5px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    align-content: center;
    height: fit-content;
}

.actu-statut-discussion {
    background: #fc7800;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 5px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    align-content: center;
    height: fit-content;
}

.actu-statut-voting {
    background: #00fc50;
    color: rgb(23, 21, 21);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 5px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    align-content: center;
    height: fit-content;    
}

.actu-statut-verification {
    background: #664392;
    color: rgb(251, 254, 254);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 5px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    align-content: center;
    height: fit-content;    
}

.actu-statut-finished_without_winner {
    background: #0d031a;
    color: rgb(251, 254, 254);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 5px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    align-content: center;
    height: fit-content;    
}

.actu-statut-finished_with_winner {
    background: #09cc06;
    color: rgb(255, 255, 255);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 5px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    align-content: center;
    height: fit-content;    
}

.vote-link {
    color: #1c1f1d !important;
    font-weight: 600 !important;
    border: 2px solid #4CAF50 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    cursor: pointer;

    background: rgb(111, 237, 79);
    align-items: center;
    padding: 5px;
    max-width: fit-content;
    max-height: fit-content;
    border-radius: 15px;
    margin-left: 5px;
    margin-right: 5px;
}

.vote-link:hover {
    background-color: #4CAF50 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3) !important;
}

#fil-actu-wrapper {
  position: relative;
  overflow-x: auto; /* permet le scroll manuel horizontal */
  white-space: nowrap; /* force les éléments sur une seule ligne */
  width: 100%;
  height: 50px;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

/* Style des items */
.fil-actu-content {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0 25px;
  animation: defilement 60s linear infinite;
}

.actu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 50px;
  white-space: nowrap;
  font-size: 1.1em;
  font-family: Arial, sans-serif;
}

.actu-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 50px;
  font-size: 1.1em;
  font-family: Arial, sans-serif;
}

.sujet-content {
    display: flex;
    flex-direction: column;
    padding: 5px;
    flex-wrap: wrap;
    border-bottom: 1px solid sandybrown;
}

.sujet-item {
    display: flex;
    justify-content: space-evenly;
    justify-items: center;
    flex-wrap: wrap;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 5px;
}

.sujet-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doc-item {
    display: flex;
    justify-items: center;
    flex-wrap: wrap;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 5px;
}

.sujet-titre {
    display: flex;
    justify-content: space-evenly;
    justify-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

}

.question-titre, .reponse-titre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.titre-content {
    background: #007bff;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-right: 15px;
    font-weight: 600;    
}

.sujet-info-left {
    flex-direction: row;

}

.domaine-titre{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.domaine-titre-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: -webkit-fill-available;
}

.domaine-stats-right{
    display: grid;
    gap: 5px;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);    
}

.question-titre-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: -webkit-fill-available;
}

.question-info-left, .reponse-info-left {
    flex: 1;
    flex-direction: column;
}

.question-info-left-owner {
    flex: 1;
    flex-direction: column;
    border: 5px groove #f39c12;
    border-radius: 15px;
}

.reponse-info-left-owner {
    flex: 1;
    flex-direction: column;
    border: 5px solid #f39c12;
    border-radius: 15px;
}

.sujet-stats-right, .question-stats-right, .reponse-stats-right {
    display: grid;
    gap: 5px;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #666;
    cursor: default;
    margin-left: 5px;
}

.stat-item[onclick] {
    cursor: pointer;
}

.actu-owner {
    display: inline;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px;
    color: #333;
}

.actu-evenement {
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
}

.actu-evenement-fil {
    font-size: 1em;
    color: #333;
}

.actu-titre-evenement {
    font-weight: bold;
    font-size: 1.2em;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    justify-items: center;
    /* background-color: #fc7800; */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    width: 98%;
    /* height: -webkit-fill-available; */
    border: 3px solid green;
}

.actu-titre-evenement:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid rgb(4, 213, 4);
}

.actu-espace {
    width: fit-content;
    align-items: center;
    border: 1px solid #ffa726;
    font-size: 1.2em;
    margin: 0 auto 20px auto;
    background: #fff3e0;
    color: #bf360c;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.2);
    padding: 14px 32px;
    font-weight: 500;
    text-align: center;
    position: relative;
}

.actu-espace::before,
.actu-espace::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff9800;
    font-size: 0.8em;
}

.actu-espace::before {
    left: 15px;
}

.actu-espace::after {
    right: 15px;
}

.actu-groupe {
    display: flex;
    justify-content: space-between;
    border-bottom: groove;
    background-color: beige;
}

.actu-btn {
    display: flex;
    justify-content: end;
}

.actu-member {
    display: flex;
    font-style: italic;
    margin-left: 5px;
    padding-left: 5px;
    padding-right: 10px;    
    margin-top: 5px;
}

.actu-fichier {
    display: flex;
    margin-left: 5px;
    padding-left: 5px;
    padding-right: 10px;    
    margin-top: 5px;
    align-items: center;
}

.actu-fichier-titre{
    text-align: center;
    font-weight: 600;
}

.actu-fichier-action{
    text-align: right;
    font-weight: 600;
}

/* Icônes de base */
.icon-doc, .icon-link, .icon-quest, .icon-member, 
.icon-rep, .icon-interest, .icon-subscribed, .icon-follow {
    font-style: normal;
    margin-left: 5px;
}

/* Animation du défilement automatique */
@keyframes defilement {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* défile sur la moitié (puis recommence) */
}

/* Contenu principal - PC: 30% sidebar / 70% contenu */
.main-content {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 5px;
}

/* .main-content {
    display: flex;
    gap: 5px;
} */

sidebar {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-main {
    background: white;
    padding: 5px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* min-height: 500px; */
}

/* Styles pour la section nouveautés */
.nouveautes-section {
    margin: 10px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    /* transition: all 0.3s ease; */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.titre-info {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    /* transition: all 0.3s ease; */
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px;
    text-align: justify;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.article-header {
    margin-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.article-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.article-date {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: 500;
}

.article-content {
    flex: 1;
    margin-bottom: 5px;
}

.article-content p {
    color: #5d6d7e;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
    /* display: -webkit-box; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-category {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.article-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
}

.article-btn:hover {
    background: #2980b9;
}

/* Responsive */

footer {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 25px;
}

/* Responsive */

/* Ajout pour profil */

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--secondary-color);
        margin: 0 auto 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
    }

.form-container {
        padding: 5px;
    }

.form-section {
        margin-bottom: 10px;
        border: 1px solid grey;
        border-radius: 8px;
        overflow: hidden;
    }

.section-header {
        padding: 5px 10px;
        border-bottom: 1px solid grey;
        font-weight: 600;
        color: var(--primary-color);
        display: flex;
        align-items: center;
    }

.section-header i {
        margin-right: 5px;
        font-size: 1.2rem;
    }

.form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 10px;
        padding: 10px;
    }

.form-group {
        margin-bottom: 5px;
    }

label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #555;
    }

.form-control {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #4a6fa5;
        border-radius: 6px;
        background-color: #f8f9fa;
        font-size: 1rem;
        transition: all 0.3s;
    }

.form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
        background-color: white;
    }

.status-badge {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
    }

.status-active {
        background-color: rgba(40, 167, 69, 0.1);
        color: var(--success-color);
    }

.status-inactive {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

.checkbox-group {
        display: flex;
        align-items: center;
    }

.checkbox-group input {
        margin-right: 5px;
    }

.form-actions {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #4a6fa5;
    }

.btn {
        padding: 6px 15px;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
    }

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

.btn-primary:hover {
        background-color: #3a5a8a;
    }

.btn-secondary {
        background-color: #6c757d;
        color: white;
    }

.btn-secondary:hover {
        background-color: #5a6268;
    }

.empty-field {
        color: #999;
        font-style: italic;
    }

/* Ajout pour le vote  */
    .reponse-item.dragging {
        opacity: 0.5;
    }

.reponse-item.drop-before {
        border-top: 2px solid #007bff;
        margin-top: 2px;
    }

.reponse-item.drop-after {
        border-bottom: 2px solid #007bff;
        margin-bottom: 2px;
    }

.drag-over {
        background-color: rgba(0, 123, 255, 0.1);
        border: 2px dashed #007bff;
    }

.vote-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        background: white;
        border: 2px solid #333;
        border-radius: 10px;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
    }

.vote-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #f5f5f5;
        border-bottom: 1px solid #ddd;
    }

.close-vote-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
    }

.vote-content {
        display: flex;
        flex: 1;
        padding: 20px;
        gap: 20px;
    }

.reponses-list {
        flex: 1;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
    }

.reponses-list h3 {
        margin-top: 0;
    }

.reponses-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 200px;
    }

.vote-areas {
        flex: 2;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

.vote-positive, .vote-negative {
        flex: 1;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
    }

.vote-positive {
        border-color: #4CAF50;
    }

.vote-negative {
        border-color: #f44336;
    }

.vote-container-area {
        min-height: 150px;
        border: 2px dashed #ccc;
        border-radius: 5px;
        padding: 10px;
        /* transition: all 0.3s ease; */
    }

.drag-over {
        border-color: #2196F3;
        background-color: #f0f8ff;
    }

.reponse-item {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background: white;
        cursor: move;
        /* transition: all 0.3s ease; */
    }

.reponse-item:hover {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.reponse-item.dragging {
        opacity: 0.5;
    }

.reponse-content {
        font-weight: bold;
        margin-bottom: 5px;
    }

.reponse-title {
        font-size: 0.9em;
        color: #666;
    }

.vote-actions {
        padding: 15px 20px;
        background: #f5f5f5;
        border-top: 1px solid #ddd;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

.validate-vote-btn, .cancel-vote-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
    }

.validate-vote-btn {
        background: #4CAF50;
        color: white;
    }

.cancel-vote-btn {
        background: #f44336;
        color: white;
    }

/* Ajout pour le menu admin  */
.admin-menu {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 300px;
    margin-left: 25%;
}

.admin-menu h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    padding: 12px 15px;
    margin: 5px 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    /* transition: all 0.3s ease; */
}

.menu-item:hover {
    background-color: #007bff;
    color: white;
    transform: translateX(5px);
}

.menu-item.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Ajout pour le menu admin SCENARIO */

.scenarios-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.scenario-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filters {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    font-size: 12px;
    color: #7f8c8d;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: white;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.scenario-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.scenario-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.scenario-id {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.scenario-type {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.scenario-type.troll { background: #e67e22; }
.scenario-type.illegal { background: #c0392b; }
.scenario-type.rumeur { background: #8e44ad; }

.scenario-status {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.scenario-status.confirme { background: #27ae60; }
.scenario-status.attente { background: #f39c12; }
.scenario-status.infirme { background: #e74c3c; }

.scenario-motif {
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
    font-size: 14px;
}

.punishments {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.punishment-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.punishment-level:last-child {
    border-bottom: none;
}

.punishment-name {
    font-weight: bold;
    color: #495057;
    font-size: 12px;
}

.punishment-days {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

.punishment-verrou { background: #dc3545; }
.punishment-readonly { background: #fd7e14; }

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
}

/***************************** Formulaire de recherche ***************************/
.form-recherche {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-fichier {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px groove gray;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-valider {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-valider:hover {
    background: #0056b3;
}

.btn-reset {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-reset:hover {
    background: #545b62;
}

.resultat-requete {
    background: #e9ecef;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.resultat-requete code {
    background: white;
    padding: 10px;
    border-radius: 4px;
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
}

/*********************** Gestion des signalements **********************/
.signalement-table {
    width: 50%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.signalement-table th {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.signalement-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.signalement-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.signalement-table tr:hover {
    background-color: #e8f4fc;
}

.badge {
    display: inline-block;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-troll {
    background-color: #d6ed23;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: rgb(233, 28, 28);
}

.badge-rumeur {
    background-color: #f39c12;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.badge-spam {
    background-color: #f236cc;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.badge-illegal {
    background-color: #c0392b;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.badge-attente {
    background-color: #f39c12;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.badge-confirme {
    background-color: #27ae60;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.badge-infirme {
    background-color: #7f8c8d;
    padding-top: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.explication {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explication:hover {
    white-space: normal;
    overflow: visible;
}

.menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background: linear-gradient(to right, #2c3e50, #4a6491);
    padding: 0 20px;
    border-bottom: 3px solid #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icone-menu {
    width: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.icone-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icone-menu img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: none;
}

.icone-menu span {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.icone-orga {
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.icone-orga img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Style spécifique pour le logout */
#logout {
    background: rgba(231, 76, 60, 0.2);
}

#logout:hover {
    background: rgba(231, 76, 60, 0.4);
}

/* Responsive pour les petits écrans */


/* Animation pour les icônes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.icone-menu:active {
    animation: pulse 0.2s ease;
}

/* Amélioration de l'accessibilité */
.icone-menu:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Séparateurs optionnels entre les icônes */
.icone-menu:not(:last-child) {
    margin-right: 5px;
}

.icone-orga {
    margin: 0 20px;
}

/**************************** Liste des abonnements aux sujet generateAbonnementSujet ********************/
.sujet-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Carte sujet */
.sujet-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    /* cursor: pointer; */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.sujet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* En-tête de la carte */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.sujet-path {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.theme-name {
    color: #6c757d;
    font-weight: 500;
}

.separator {
    color: #adb5bd;
    margin: 0 6px;
}

.sujet-name {
    color: #343a40;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

/* Statut abonnement */
.abonnement-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.abonnement-status.subscribed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.abonnement-status.not-subscribed {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.abonnement-status:hover {
    transform: scale(1.05);
}

/* Description */
.card-description {
    flex: 1;
    margin-bottom: 20px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    /* display: -webkit-box; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Statistiques */
.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.stat-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.stat-item[onclick]:hover {
    cursor: pointer;
    background: #e3f2fd;
    border-color: #007bff;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: white;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

/* Responsive */

/**************************** Liste des intérêts aux questions generateInteretQuestion ********************/
.questions-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Carte question */
.question-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    /* cursor: pointer; */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    position: relative;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* En-tête */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.question-meta {
    flex: 1;
}

.question-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.author-icon {
    font-size: 14px;
    margin-right: 6px;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.question-id {
    font-size: 12px;
    color: #6c757d;
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Statut */
.question-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 10px;
}

.status-0 {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

.status-1 {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

.status-2 {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

.status-3 {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-4 {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.status-5 {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
}

/* Contenu */
.question-content {
    flex: 1;
    margin-bottom: 20px;
}

.question-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.4;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-description {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions */
.question-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #495057;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
}

.btn-edit:hover {
    background: #007bff;
    color: white;
}

.btn-publish:hover {
    background: #28a745;
    color: white;
}

.btn-icon {
    font-size: 14px;
}

.btn-text {
    white-space: nowrap;
}

/* Statistiques */
.question-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: auto;
}

/* Styles communs avec les cartes sujet */
.stat-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Responsive */

/**************************** Liste des supports aux réponses generateSupporterReponse ********************/
/* Conteneur réponses */
.reponses-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Carte réponse */
.reponse-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.reponse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.error-card {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.error-card:hover {
    border-color: #dc3545;
}

/* En-tête */
.reponse-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.reponse-title-section {
    flex: 1;
}

.reponse-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.4;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.reponse-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reponse-id {
    font-size: 12px;
    color: #6c757d;
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}

.publication-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
}

.publication-status.published {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.publication-status.draft {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

/* Lien brouillon */
.draft-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-left: 10px;
}

.draft-link:hover {
    background: #e3f2fd;
    border-color: #007bff;
    transform: translateY(-2px);
}

.draft-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.draft-text {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

/* Contenu */
.reponse-content {
    flex: 1;
    margin-bottom: 15px;
}

.reponse-description {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dates */
.reponse-dates {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.date-label {
    color: #6c757d;
    font-weight: 600;
    min-width: 70px;
}

.date-value {
    color: #495057;
    font-family: monospace;
}

/* Signalements */
.reponse-signalements {
    margin-right: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.signalements-title {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signalements-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.signalement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 60px;
}

.signalement-item.active {
    background: #fff5f5;
    border: 1px solid #ff6b6b;
}

.signalement-item.inactive {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    opacity: 0.6;
}

.signalement-icon {
    font-size: 18px;
}

.signalement-item.active .signalement-icon {
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3));
}

.signalement-label {
    font-size: 10px;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.signalement-item.active .signalement-label {
    color: #dc3545;
}

/* IDs */
.reponse-ids {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.id-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.id-label {
    color: #6c757d;
    font-weight: 600;
}

.id-value {
    color: #495057;
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Statistiques (mêmes classes que précédemment) */
.reponse-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: auto;
}

/* Carte pas de données */
.no-data-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px dashed #dee2e6;
    text-align: center;
    grid-column: 1 / -1;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-data-title {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
}

.no-data-message {
    font-size: 14px;
    color: #adb5bd;
}

.error-message {
    color: #dc3545;
    font-style: italic;
}

/* Responsive */

/* Display Vote en cours */

.votes-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.statut-vote-todo{
    font-weight: 600;
    text-align: center;
    width: 80px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: rgb(247, 66, 66);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.statut-vote-done{
    font-weight: 600;
    text-align: center;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: rgb(37, 214, 10);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mes opinions*/
/* ========== OPINIONS - STYLES ========== */

/* Header */
.opinion-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.opinion-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.opinion-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Container */
.opinion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Opinion Card */
.opinion-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.opinion-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card Header */
.opinion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

/* Badges */
.opinion-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.opinion-badge-indispensable {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.opinion-badge-acceptable {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.opinion-badge-discutable {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.opinion-badge-inadmissible {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.opinion-status {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.opinion-fulfilled {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.opinion-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Card Body */
.opinion-card-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.opinion-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.opinion-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opinion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}

.opinion-item:last-child {
    border-bottom: none;
}

.opinion-item-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.opinion-item-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.opinion-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Footer */
.opinion-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Buttons */
.opinion-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.opinion-btn-edit {
    background: #6c757d;
    color: white;
}

.opinion-btn-edit:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.opinion-btn-details {
    background: #007bff;
    color: white;
}

.opinion-btn-details:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.opinion-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.opinion-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
}

/* Empty State */
.opinion-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.opinion-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.opinion-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.opinion-empty-text {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Summary & Filters */
.opinion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid #e9ecef;
    margin-top: 1rem;
}

.opinion-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

.opinion-filters {
    display: flex;
    gap: 0.5rem;
}

.opinion-filter-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.opinion-filter-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.opinion-filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #3300ff;
}

/* Responsive */


/* Animation pour l'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

to {
        opacity: 1;
        transform: translateY(0);
    }

}

.opinion-card {
    animation: fadeInUp 0.4s ease-out;
}

.main-content {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Sidebar par défaut */
sidebar {
    width: 250px; /* Largeur par défaut */
    min-width: 250px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

/* Quand la sidebar est réduite */
sidebar.sidebar-collapsed {
    width: 50px !important;
    min-width: 50px !important;
}

/* Contenu principal qui s'adapte */
#content-main {
    flex: 1; /* Prend tout l'espace restant */
    transition: all 0.3s ease;
    padding: 20px;
    overflow-x: hidden;
}

/* Quand sidebar est réduite, on peut agrandir le padding si besoin */
sidebar.sidebar-collapsed ~ #content-main {
    margin-left: 0;
}

/* Nouveau design pour Mes demandes */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eaeaea;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.questions-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.question-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    overflow: hidden;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.question-card-owner {
    border-left: 4px solid #3498db;
}

.question-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0.75rem;
    background: #f8f9fa;
}

.question-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    background: #e3f2fd;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 500;
    color: #2c3e50;
}

.question-uid {
    font-size: 0.75rem;
    color: #7f8c8d;
    background: #f1f3f4;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.question-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Classes de statut */
.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-draft .status-dot {
    background: #f59e0b;
}

.status-pending {
    background: #e0e7ff;
    color: #3730a3;
}

.status-pending .status-dot {
    background: #4f46e5;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-active .status-dot {
    background: #10b981;
}

.status-closed {
    background: #f3f4f6;
    color: #374151;
}

.status-closed .status-dot {
    background: #6b7280;
}

.status-archived {
    background: #fce7f3;
    color: #831843;
}

.status-archived .status-dot {
    background: #db2777;
}

.status-default {
    background: #f3f4f6;
    color: #374151;
}

.status-default .status-dot {
    background: #6b7280;
}

.question-card-body {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.question-card-body:hover {
    background-color: #fafbfc;
}

.question-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.question-description {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
}

.question-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eaeaea;
    background: #fafbfc;
}

/* .question-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
} */

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.stat-item:hover {
    background-color: #edf2f7;
}

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

.stat-count {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-danger {
    color: #dc2626;
    background: #fee2e2;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn-warning {
    color: #d97706;
    background: #fef3c7;
}

.btn-warning:hover {
    background: #fde68a;
}

.btn-success {
    color: #059669;
    background: #d1fae5;
}

.btn-success:hover {
    background: #a7f3d0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #2980b9;
}

/* Responsive */


/* Styles spécifiques aux suggestions */
.suggestion-type {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-proposition {
    background: #e0e7ff;
    color: #3730a3;
}

.type-demande {
    background: #fce7f3;
    color: #831843;
}

.type-generale {
    background: #f3f4f6;
    color: #374151;
}

.suggestion-refs {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.ref-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ref-label {
    font-weight: 500;
    color: #4b5563;
    font-size: 0.875rem;
}

.ref-value {
    font-weight: 600;
    color: #1f2937;
    background: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.suggestion-description {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.suggestion-description p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.suggestion-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Status spécifiques pour les suggestions */
.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-approved .status-dot {
    background: #10b981;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-rejected .status-dot {
    background: #ef4444;
}

/* Styles pour les infobulles auteurs */
.author-tooltip {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tooltip-content {
    min-width: 150px;
}

.tooltip-actions button {
    margin-top: 5px;
    background: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.tooltip-actions button:hover {
    background: #2980b9;
}

/* Styles pour la date dans le corps de la carte */
.question-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #718096;
}

.date-icon {
    font-size: 0.875rem;
}

.date-text {
    font-weight: 500;
}

/* Styles spécifiques pour les suggestions en fait c'est generatereponseContentview */
.suggestions-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.suggestion-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    overflow: hidden;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suggestion-card-owner {
    border-left: 4px solid #3498db;
}

.suggestion-published {
    border-top: 3px solid #10b981;
}

.suggestion-draft {
    border-top: 3px solid #f59e0b;
}

.suggestion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0.75rem;
    background: #f8f9fa;
}

.suggestion-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-uid {
    font-size: 0.75rem;
    color: #7f8c8d;
    background: #f1f3f4;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.status-published {
    background: #d1fae5;
    color: #065f46;
}

.status-published .status-dot {
    background: #10b981;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.suggestion-card-body {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-card-body:hover {
    background-color: #fafbfc;
}

.suggestion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.suggestion-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.suggestion-description {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #6366f1;
}

.suggestion-description p {
    margin: 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.suggestion-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.suggestion-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eaeaea;
    background: #fafbfc;
}

.suggestion-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */

/* styles-propositions.css */
/* Styles spécifiques pour les propositions */

.propositions-wrapper {
    width: 100%;
}

.propositions-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    margin-top: 1.5rem;
}

.proposition-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.proposition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.proposition-card-owner {
    border-left: 4px solid #3498db;
}

.proposition-published {
    border-top: 3px solid #10b981;
}

.proposition-draft {
    border-top: 3px solid #f59e0b;
}

.proposition-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.proposition-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proposition-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.proposition-author .author-avatar {
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.proposition-author .author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.proposition-uid {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    backdrop-filter: blur(10px);
}

.proposition-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
}

.status-published {
    color: #065f46;
}

.status-draft {
    color: #92400e;
}

.proposition-card-body {
    padding: 1.5rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-grow: 1;
}

.proposition-card-body:hover {
    background-color: #fafbfc;
}

.proposition-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.proposition-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.proposition-description {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f6f7f9 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.proposition-description p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.proposition-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.url-icon {
    font-size: 0.875rem;
    color: #6366f1;
}

.url-link {
    font-size: 0.875rem;
    color: #3182ce;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.url-link:hover {
    text-decoration: underline;
    color: #2c5282;
}

.proposition-card-footer {
    padding: 1.25rem;
    border-top: 1px solid #eaeaea;
    background: #fafbfc;
}

.proposition-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.proposition-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.proposition-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.proposition-stats .stat-item[style*="cursor: pointer"]:hover {
    background: #edf2f7;
}

.proposition-stats .stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.proposition-stats .stat-count {
    font-weight: 700;
    font-size: 1.125rem;
    color: #2d3748;
}

.proposition-stats .stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
}

.proposition-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.proposition-actions .btn-icon {
    padding: 0.625rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.proposition-actions .btn-icon:hover {
    transform: scale(1.1);
}

.question-date {
    font-size: 0.875rem;
    color: #718096;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

/* Responsive */

/* Animation pour les nouvelles propositions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.proposition-card {
    animation: slideIn 0.3s ease-out;
}

/* Style pour le texte supprimé */
.supprime {
            text-decoration: line-through;
            background-color: #ffeaea;
            color: #c62828;
            padding: 0 2px;
            border-radius: 2px;
        }

/* Style pour le texte modifié */
.ajoute {
    background-color: #fff3e0;
    color: #ef6c00;
    padding: 0 2px;
    border-radius: 2px;
    border-bottom: 2px dotted #ff9800;
}

/* Style pour les commentaires des sujets */
.theme-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.theme-tag {
    background: #f0f7ff;
    border: 1px solid #4a90e2;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.theme-detail {
    background: #f9f9f9;
    border-left: 4px solid #4a90e2;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.theme-detail h4 {
    margin-top: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight {
    background-color: #fffacd;
    padding: 2px 5px;
    font-weight: 600;
}

.theme-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.theme-tag {
    background: #fff0f0;
    border: 1px solid #c62828;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.theme-detail {
    background: #f9f9f9;
    border-left: 4px solid #c62828;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.highlight {
    background-color: #ffebee;
    padding: 2px 5px;
    font-weight: 600;
    border-left: 3px solid #c62828;
}

/* ===== MEDIA QUERIES CONSERVÉES (structure intacte) ===== */

@media (max-width: 768px) {
    .timer {
        font-size: 2em;
    }
    
    .timer-container {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .article-card {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    sidebar {
        order: 2;
    }
    
    .content-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .logo-container {
        flex: none;
        width: 100%;
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 3px solid #e0e0e0;
        margin-bottom: 20px;
    }
    
    .gallerie-icones {
        padding-left: 0;
        grid-template-columns: repeat(10, 1fr);
    }
    
    /* .icone {
        min-height: 90px;
        padding: 12px;
    } */
    
    .icone img {
        width: 35px;
        height: 35px;
    }
    
    .badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .gallerie-icones {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .fil-actu {
        height: 50px;
    }
    
    .actu-item {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
        .form-grid {
            grid-template-columns: 1fr;
        }
        
        .form-actions {
            flex-direction: column;
        }
        
        .btn {
            width: 100%;
        }
    }

@media (max-width: 768px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-bar {
        height: 80px;
        padding: 0 10px;
    }
    
    .icone-menu {
        width: 45px;
        padding: 8px 4px;
    }
    
    .icone-menu img {
        width: 28px;
        height: 28px;
    }
    
    .icone-menu span {
        font-size: 10px;
    }
    
    .icone-orga {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .sujet-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .sujet-card {
        padding: 16px;
    }
    
    .card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .abonnement-status {
        align-self: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .questions-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .question-card {
        padding: 16px;
    }
    
    .question-actions {
        gap: 6px;
    }
    
    .btn-action {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .question-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .question-status {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .question-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reponses-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .reponse-card {
        padding: 16px;
    }
    
    .reponse-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .draft-link {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .signalements-icons {
        justify-content: center;
    }
    
    .reponse-ids {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .reponse-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .reponse-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .opinion-card-body {
        grid-template-columns: 1fr;
    }
    
    .opinion-card-footer {
        flex-direction: column;
    }
    
    .opinion-btn {
        width: 100%;
        justify-content: center;
    }
    
    .opinion-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .opinion-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .questions-container {
        grid-template-columns: 1fr;
    }
    
    .question-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .suggestions-container {
        grid-template-columns: 1fr;
    }
    
    .suggestion-stats {
        justify-content: flex-start;
    }
    
    .stat-item {
        min-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .propositions-container {
        grid-template-columns: 1fr;
    }
    
    .proposition-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .proposition-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .proposition-status {
        align-self: flex-start;
    }
    
    .question-date {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.5rem;
        display: block;
    }
}

@media (max-width: 480px) {
    .proposition-stats {
        grid-template-columns: 1fr;
    }
    
    .proposition-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}