/* ==========================================================
   Style minimal - Arial + monospace pour les accents
   Couleur d'accent : #FFFE7F
   ========================================================== */

:root {
    --accent: #FFFE7F;
    --texte: #222;
    --bordure: #ccc;
    --fond-clair: #fafafa;
} 
.retour-discus { border-bottom:1px solid transparent; padding-bottom:.1rem;display:inline-block; }
.retour-discuss:hover { border-bottom:1px solid gray;  margin-left:-.5rem; margin-right:.5rem }
.message a { background:#fffceb; border-bottom:1px dashed black;}
.message a:hover { background:var(--accent);border-color:black;}
 
 


.colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.colonnes > div {
  padding: 1rem;
}


.meta, .horodatage, .badge, .compteur, code {
    font-family: "lores-12", monospace;
}

/* Barre de filtre par projet */
.barre-filtre {
    margin-top: .35rem;
    padding:  0px;  padding-bottom:.5rem;
    background: var(--fond-clair);
    border: 1px solid var(--bordure);
    background:white;border:none; 
    margin-right:auto;width:60%; 
    margin-left:-4px; padding-left:1rem;
    display: none;
}
.barre-filtre.visible {
    display: block;
}

.barre-filtre select, .barre-filtre a.bouton {
    font-family: Arial, sans-serif;
}
 
/* Bannière des dernières pièces jointes */
.banniere-fichiers {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 2rem;
    background: #fffceb;
    border-left: 4px solid var(--accent);
    flex-wrap: wrap;
}

.banniere-fichiers .titre-banniere {
    font-weight: bold;
    margin-right: 8px;
}

.fichier-icone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 4px;
    text-decoration: none;
    color: var(--texte);
    font-family: "lores-12", monospace;
    font-size: 0.85em;
}

.lien-evenement {
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #fffceb;
    border-left: 6px solid var(--accent);
    border-radius: 4px;
    font-size: 0.9em;
}

.lien-evenement:has(a:hover) {
  transform: translateX(-.5rem);
}
.lien-evenement > a:hover { background:var(--accent); }

.fichier-icone:hover {
    border-color: #ddd;
    background: var(--accent);
}

/* Liste des discussions racines */
.discussion-racine {
    padding: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--bordure);
    border-left:6px solid #e7e7e7;
    border-radius: 4px;
    text-decoration: none;
    color: var(--texte);
    display: block;
}

.discussion-racine:hover {
    /* border-color: var(--accent); 
    box-shadow: 0 0 0 2px var(--accent) inset; */
    background:#fffef2;
    transform: translateX(-.5rem);
}

.discussion-racine .sujet {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 6px;
}

.tag-projet {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 7px;
    font-family: "lores-12", monospace;
    font-size: 0.7em;
    font-weight: normal;
   /* color: #555;
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: 3px; */
    vertical-align: middle;
     background: black;color: white;
     font-family: 'lores-12';text-transform:uppercase;
    border:1px solid white;  
}

.tag-notif { margin-left:-.5rem;
    display: inline-block; 
    padding: 2px 7px;
    font-family: "lores-12", monospace;
    font-size: 0.6em;
    font-weight: normal; 
    vertical-align: middle;
     background: gray;color: white;
     font-family: 'lores-12';text-transform:uppercase;
    border:1px solid white;   border-radius: 6px;
}

.tag-evenement {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-family: "lores-12", monospace;
    font-size: 0.7em;
    font-weight: normal;
    color: #333;
    background: var(--accent);
    border: 1px solid #d8d76a;
    border-radius: 3px;
    vertical-align: middle;
}

.discussion-racine .extrait {
    color: #555;
    margin-top: 5px;
    margin-bottom: 15px;
}

.discussion-racine .infos {
    font-size: 0.85em;
    color: #666;
}

.discussion-racine .compteur {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent);
    border-radius: 3px;
    margin-right: 8px;
}

.derniere-reponse {
    margin: 8px 0 0 10px;
    padding: 6px 10px;
    border-left: 6px solid var(--accent);
    background: #fffef2;
    font-size: 0.85em;
    color: #555;
    display:inline-block;
}

/* Fil de discussion */
.message {
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--bordure);
    border-left: 6px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;
}
div.message:not(.racine) {
    
    margin-left:1rem;
}

div.message:not(.racine):hover {
    
    margin-left:.5rem;
    margin-right:.5rem;
}

.message.racine {
    border-left:6px solid var(--accent);}

.message .auteur {
    font-weight: bold;
}

.message .horodatage {
    color: #777;
    font-size: 0.85em;
    margin-left: 10px;
}

.message .texte {
    margin: 13px 0; 
    white-space: pre-wrap;
}

.message-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.message-infos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.lien-modifier {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    text-decoration: underline;
    padding: 0;
    white-space: nowrap;
}

.lien-modifier:hover {
    color: #000;
} 
.message-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lien-archiver {
    background: none;
    border: none;
    color: #b33;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    text-decoration: underline;
    padding: 0;
    white-space: nowrap;
}

.lien-archiver:hover {
    color: #800;
}

.tag-modifie {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: #eee;
    color: #666;
    font-family: "lores-12", monospace;
    font-size: 0.75em;
    border-radius: 3px;
    vertical-align: middle;
}

.formulaire-edition-message {
    margin-top: 8px;
}

.formulaire-edition-message textarea {
    min-height: 90px;
}

.liste-message {
    margin: 6px 0 6px 20px;
    padding: 0;
    list-style-type: disc !important;
}

.liste-message li {
    margin-bottom: 3px; 
}

.barre-outils-texte {
    display: flex;
    align-items: center;
    gap: 6px; margin-top:2px; margin-left:4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.barre-outils-texte button {
    padding: 4px 5px !important; 
    border: 1px solid var(--bordure) !important;
    background: #ddd !important;
    border-radius: 4px !important;
    cursor: pointer; font-weight: normal !important;
    font-family: Arial, sans-serif !important;
    font-size: 0.85em !important;
}

.barre-outils-texte button:hover {
    background: var(--accent) !important;
}

.astuce-texte {
    font-size: 0.7em; display: inline-block;
    color: #888; text-transform: uppercase; padding-top:7px;
    font-family: "lores-12", monospace;
    margin-left: 6px;
}

.piece-jointe-lien {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: var(--fond-clair);
    border: 1px solid var(--bordure) !important;
    border-radius: 4px;
    font-family: "lores-12", monospace;
    font-size: 0.85em;
    text-decoration: none;
    color: var(--texte);
}

/* Sondage */
.sondage {
    margin-top: 10px;
    padding: 10px;
    background: #fffceb;
    border: 1px solid var(--accent);
    border-radius: 4px;
}

.sondage .question { font-weight: bold; margin-bottom: 8px; }

.sondage-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sondage-barre {
    flex: 1;
    background: #eee;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
}

.sondage-barre-remplie {
    height: 100%;
    background: var(--accent);
}

.sondage .total-votes {
    font-family: "lores-12", monospace;
    text-decoration: uppercase; 
    font-size: 0.8em;
    color: #666;
    margin-top: 6px;
}

/* Formulaires */
form.formulaire {
    padding: 14px;
    border: 1px solid var(--bordure);
    border-radius: 4px;
    background: var(--fond-clair);
    margin-top: 16px;
}

form.formulaire label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 4px;
}



 
  
.ajoutOpt, input[type=file]::file-selector-button { 
    border: 1px solid var(--bordure) !important; background: #ddd !important; 
    border-radius: 4px !important;}
.ajoutOpt:hover, input[type=file]::file-selector-button:hover { background: gray !important; color:white !important;  border: 1px solid gray !important;}
input,textarea { text-transform: none !important; }
input[type=checkbox]:before { 
    border: 1px solid #bbb !important; background:white !important; transform: scale(1.05)}

form.formulaire input[type=text],
form.formulaire textarea,
form.formulaire select {
    width: 100%;
    padding: 6px;
    border: 1px solid var(--bordure);
    font-family: Arial, sans-serif;
}

form.formulaire textarea { min-height: 90px; }

form.formulaire button, .bouton {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--accent);
    border: 1px solid #d8d76a;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

form.formulaire button:hover, .bouton:hover {
    background: #fdfc60;
}

.erreur {
    padding: 10px;
    background: #fdd;
    border: 1px solid #c00;
    border-radius: 4px;
    margin-bottom: 14px;
}

.option-sondage-form {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.option-sondage-form input { flex: 1; }

/* Administration */
.admin-info {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.admin-ok {
    background: #eaffea;
    border: 1px solid #4a4;
}

.table-admin {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    font-size: 0.9em; 
}

.table-admin th, .table-admin td {
    border: 1px solid var(--bordure);
    padding: 6px 10px;
    text-align: left;
}

.table-admin thead th {
    background: var(--accent);
    font-weight: bold;
}

#table-utilisateurs {
    table-layout: fixed;
    width: 1080px;
}
.col-nom {
    width: 255px;
    font-size: 1.1em;
    font-weight: bold;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 5;
}

.col-nom .cellule-editable {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

#table-utilisateurs thead .col-nom {
    background: var(--accent);
}

#table-utilisateurs tbody tr:hover, #table-utilisateurs tbody tr:hover .col-nom, #table-matrice tbody tr:hover, #table-matrice tbody tr:hover .col-utilisateur {
    background: #fffceb;
}

#table-projets tbody tr:hover {
    background: #fffceb; cursor: pointer;
}

#table-utilisateurs tbody tr.ligne-doublon .col-nom {
    background: #ffe3e3;
}
.col-structure, .col-email {
    width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-nb {
    width: 25px;
    text-align: center;
}

.col-projets {
    width: 70px;
    text-align: center;
}
.col-actif, .col-admin {
    width: 60px;
    text-align: center;
}

.col-supprimer {
    width: 90px;
    text-align: center;
}

.cellule-editable {
    cursor: pointer;
    border-bottom: 1px dashed #999;
}

.cellule-editable:hover {
    background: #fffceb;
}

.form-edition-nom {
    display: none;
    gap: 4px;
    align-items: center;
}

.form-edition-nom input[type="text"] {
    padding: 3px 6px;
    border: 1px solid var(--bordure);
    font-family: Arial, sans-serif;
    font-size: 0.85em;
    font-weight: normal;
}

.form-edition-nom button {
    padding: 2px 8px;
    border: 1px solid var(--bordure);
    background: var(--accent);
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.form-edition-nom button[type="button"] {
    background: #eee;
}

.table-matrice {
    table-layout: fixed;
}

.table-matrice th, .table-matrice td {
    text-align: center;
    padding: 6px;
    white-space: nowrap;
}

.table-matrice .col-utilisateur {
    text-align: left;
    background: var(--fond-clair);
    position: sticky;
    left: 0;
    width: 170px;
    z-index: 5;
}

.table-matrice thead .col-utilisateur {
    background: var(--accent);
    z-index: 6;
}

.table-matrice tbody tr:hover .col-utilisateur {
    z-index: 15;
}

.titre-projet-tronque {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.nom-utilisateur-tronque {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.badge-etat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid var(--bordure);
    font-family: "lores-12", monospace;
    font-size: 0.85em;
    cursor: pointer;
}

.badge-projet {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid var(--bordure);
     color:black; border-color:black 
    font-family: "lores-12", monospace;
    font-size: 0.85em;
    cursor: pointer; 
    background:#ddd;
}
.badge-projet:hover {
    background: black; color:white;border-color:black } 
 
.badge-oui {
    background: var(--accent);
    border-color: #d8d76a;
}

.badge-non {
    background: #eee;
    color: #777;
}

/* Onglets d'administration */
.tabs {
    display: flex;
    gap: 4px;
    margin: 16px 0 0;
    border-bottom: 2px solid var(--bordure);
    margin-top:.5rem;padding-top:0;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--bordure); 
    background: #fffef2;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    position: relative;
    top: 2px;
}
.tab-btn:hover { background:#ddd }

.tab-btn-actif {
    background: white !important;
    border-color: var(--bordure);
    border-bottom: none;
}

.tab-panel {
    padding-top: 16px;
}

.bouton-danger {
    padding: 3x 10px; padding-top:4px;
    background: #fff;
    border: 1px solid #c00;
    color: #c00;
    border-radius: 6px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.75em;
}

.bouton-danger:hover {
    background: #fdd;
    color:black;
    border-color:black;
}

.th-triable {
    cursor: pointer;
    user-select: none;
}

.th-triable:hover {
    text-decoration: underline;
}

.fleche-tri {
    font-family: "lores-12", monospace;
    font-size: 0.8em;
}

.ligne-doublon {
    background: #ffe3e3 !important;
}

.ligne-doublon:hover {
    background: #ffd0d0 !important;
}

.utilisateur-inactif .col-nom,
.utilisateur-inactif .col-structure,
.utilisateur-inactif .col-email {
    color: #aaa;
}

.utilisateur-inactif .col-nom .cellule-editable {
    color: inherit;
}

.case-doublon-nom {
    background: #ffe3e3 !important;
 }

.tag-doublon {
    display: inline-block;
    padding: 1px 6px;
    background: #c00;
    color: #fff;
    font-family: "lores-12", monospace;
    font-size: 0.7em;
    border-radius: 3px;
    vertical-align: middle;
}

/* Info-bulle CSS sobre (remplace les title= natifs du navigateur) */
.infobulle-conteneur {
    position: relative;
    cursor: help;
}

.infobulle-conteneur.infobulle-soulignee {
    border-bottom: 1px dotted #999;
}

.infobulle-conteneur:hover .infobulle-texte {
    display: block;
}

.infobulle-texte {
   display: none;    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
    font-weight: normal;
    white-space: nowrap;
    z-index: 20;
    transition: opacity 0.12s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.infobulle-texte::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #333;
}

.infobulle-conteneur:hover .infobulle-texte {
    visibility: visible;
    opacity: 1;
}

.infobulle-bas .infobulle-texte {
    bottom: auto;
    top: 130%;
}

.infobulle-bas .infobulle-texte::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #333;
}

.infobulle-gauche .infobulle-texte {
    left: 0;
    transform: none;
}

.infobulle-gauche .infobulle-texte::after {
    left: 14px;
    margin-left: 0;
}

/* Petites icônes indicatrices (pièce jointe / sondage) */
.icone-indicateur {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.95em;
}

/* Popup "Membres du projet" */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-contenu {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    width: 90%;
    max-width: 420px;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bordure);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal-entete h2 {
    margin: 0;
    font-size: 1.1em;
}

.modal-fermer {
    background: none;
    border: none;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.modal-fermer:hover {
    color: #000;
}

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

.liste-membres li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.liste-membres li:last-child {
    border-bottom: none;
}


.transp { opacity: 0.5} 
.transp:hover { opacity: 1 !important}


ul > li::before { display: none !important }