 body {
           margin: 0;
           padding: 0;
           font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
           background-color: #313338;
           color: #f2f3f5;
       }
	   
	   

	   #emoji-results span, #emoji-results img {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
#emoji-results span:hover, #emoji-results img:hover {
    transform: scale(1.4) rotate(5deg);
}
#emoji-results img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.preview-box {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    border: 1px solid #444;
}
.preview-box .message {
    background-color: rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    max-width: 80%;
    font-size: 14px;
    font-family: sans-serif;
}
.preview-box .message-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    color: #aaa;
}
.preview-box .message-time {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

	   /* Conteneur principal */
  .formatting-menu {
    width: 95%;
    min-height: 60px;
	height:auto;
    background: rgba(0, 0, 0, 0.0);
    display: flex;
	 justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 4px;
    user-select: none;
	transition:0.3s;
  }
 
 .formglob {
	background:rgba(32, 34, 37, 0.8); 
	width:100%;
	height:auto; 
    justify-content: center;
    align-items: center;
  bottom:5px;
  border-radius:35px;
  position:sticky;
}
.formglob:hover .formatting-menu {
    transition:0.4s;

}

.formatting-menu:hover {
    transition:0.4s;

}

.formglob:active .formatting-menu {
    transition: transform 0.1s ease;

}

.message-content:focus + .formatting-menu {
    transition:0.4s;

}

.formglob:focus .formatting-menu {
    transform: scale(1.2);
    transition:0.4s;
	opacity: 1;

}

.formglob:hover .formatting-button {
    transform: scale(1.3);
    transition: transform 0.1s ease;
}.formglob:active .formatting-button {
    transform: scale(1.3);
    transition: transform 0.1s ease;
}

.message-content:focus + .formatting-button {
    transform: scale(1.3);
    transition: transform 0.1s ease;
	opacity: 1;
}

.formglob:focus .formatting-button {
    transform: scale(1.2);
    transition: transform 0.1s ease;
	opacity: 1;
}


.message-editor .formatting-button {
display:none;
}

.message .formatting-button {
display:none;
}






  /* Boutons existants */
  .formatting-button {
    width: 40px;
    height: 40px;
    border-radius: 60px;
    border: none;
    background-color: rgba(0, 0, 0, 0.0);
	object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition:0.1s ;
	transform: scale(0.8);
	opacity: 1;
  }
  
    .formatting-button img {
    width: 100%;
    height: 100%;
	object-fit: cover;
  }
  
  .formatting-button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 1);
	
	transform: scale(1.4);
  }
  .formatting-button:disabled {
    cursor: default;
  }
  
  .formatting-buttonfleche {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
	gap: 5px;
  }
  .formatting-buttonfleche:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.0);
	gap: 3px;
  }
  .formatting-buttonfleche:disabled {
    cursor: default;
    opacity: 0.3;
	    background: rgba(0, 0, 0, 0.0);
	color: rgba(0, 0, 0, 0.0);
  }
  /* Scroll */
  .scroll-container {
    overflow: hidden;
    flex: 1;
    margin: 0 0;
  }
  .buttons-wrapper {
    display: flex;
    gap: 1px;
    transition: transform 0.3s ease;
  }
  @media (max-width: 400px) {
    .formatting-button {
      width: 40px;
      height: 40px;
    }
	
	 .formglob {

position:fixed;
}
  }
  
  .pcr-button {
	  z-index:0; opacity:0; display: none;
  }
  

.formatting-slider {
  width: 50px;
  vertical-align: middle;
  margin: 0 6px;
}
.two-col-container .two-col-col:focus {
  outline: 2px solid #007bff;
}
	   
	    .a1b2c3d4e5f6g7h8 {
      position: relative;
      width: 90%;
	  height:auto;
	  min-height:30px;
      max-width: 900px;
      margin: 0 0;
      overflow: hidden;
      user-select: none;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
      padding: 2px 6px;
      display: flex;
      align-items: center;
    }
    .i9j0k1l2m3n4o5p6 {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: #e2e8f0;
      color: #334155;
      font-size: 20px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      display: flex;
      justify-content: center;
      align-items: center;
      user-select: none;
      z-index: 10;
    }
    .i9j0k1l2m3n4o5p6:hover {
      background: #cbd5e1;
    }
    .i9j0k1l2m3n4o5p6:active {
      background: #94a3b8;
      color: white;
    }
    .q7r8s9t0u1v2w3x4 {
      left: 10px;
    }
    .y5z6a7b8c9d0e1f2 {
      right: 10px;
    }
    .g3h4i5j6k7l8m9n0 {
      overflow: hidden;
      flex: 1;
    }
    .o1p2q3r4s5t6u7v8 {
      display: flex;
      gap: 16px;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;

      justify-content: center;
    }
    .w9x0y1z2a3b4c5d6 {
      flex-shrink: 0;
      background: #e2e8f0;
      border-radius: 9999px;
      border: none;
      cursor: pointer;
      color: #334155;
      font-weight: 600;
      transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      user-select: none;
      white-space: nowrap;
      padding: 5px 5px;
      font-size: 14px;
      box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
    }
    .w9x0y1z2a3b4c5d6:hover {
      background: #cbd5e1;
      color: #1e293b;
    }
    .w9x0y1z2a3b4c5d6.e7f8g9h0i1j2k3l4 {
      background: #3b82f6;
      color: white;
      font-size: 18px;
      padding: 5px 5px;
      box-shadow: 0 6px 12px rgb(59 130 246 / 0.5);
      z-index: 5;
    }
    .m5n6o7p8q9r0s1t2 {
      position: absolute;
      top: -32px;
      left: 50%;
      transform: translateX(-50%);
      background: #3b82f6;
      color: white;
      padding: 4px 4px;
      border-radius: 12px;
      font-size: 12px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
      user-select: none;
      z-index: 10;
    }
    .m5n6o7p8q9r0s1t2.u3v4w5x6y7z8a9b0 {
      opacity: 1;
    }
	
	
	
       /* Discord-like layout */
       .chatbox {
           display: flex;
           height: 100vh;
		   width:100%;
		   
           max-width: 100%;
           margin: 0 auto;
           border-radius: 0;
           background-color: #2b2d31;
           box-shadow: none;
		   
		   
		       background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center;
       }
      /* ► Sidebar de base, transition lisse sur width et transform */
.sidebar {
    background-color: #2f3136;
    color: #8e9297;
    padding: 10px;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    overflow: hidden;
}

/* ——— Modes généraux ——— */
.sidebar.open {
    transform: translateX(0);
}
.sidebar.minimal {
    /* Affiche icônes seulement, largeur réduite */
    width: 0px !important;
    transform: translateX(0);
	background: rgba(0,0,0,0);
	color: rgba(0,0,0,0);
}
.sidebar.closed {
    /* Hors écran */
    transform: translateX(-100%);
}

/* ——— Breakpoints pour largeur “open” ——— */
/* PC moyen (1024–1439px) */
@media (min-width: 1024px) {
    .sidebar {
        width: 400px;
    }
}
/* Très grand écran (≥1440px) */
@media (min-width: 1440px) {
    .sidebar {
        width: 600px;
		
    }
}

/* ► Mobile / tablette (≤768px) */
/* On traite mobile comme “closed” par défaut */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0; height: 100%;
        width: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    #sidebarToggle { display: block; }
}
/* Cacher le bouton sur PC */
@media (min-width: 769px) {
    #sidebarToggle { display: block; /* on garde le bouton pour basculer */ }
}

/* Bouton de toggle */
#sidebarToggle {
    position: fixed; top: 15px; left: 15px;
    background-color: #5865f2; color: #fff;
    border: none; padding: 10px; border-radius: 4px;
    cursor: pointer; z-index: 1100;
}


.channel {
	   display: flex;
    justify-content: space-between;
    align-items: center;
	width:100%;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
	
 font-family: Verdana, Geneva, sans-serif; 
letter-spacing: -1.6px;
word-spacing: 0.2px;
color: #FFFFFF;
text-shadow: 0 0 1px #FFF, 0 0 2px #FFF, 0 0 3px #FFF;

text-decoration: none;
font-style: normal;

text-transform: none;
}

.channel-actions {
    display: flex;
    gap: 5px;
}


.channel:hover {
    background-color: #40444b;
    color: #ffffff;
}

#create-channel {
    color: #43b581;
    font-weight: bold;
}

#channel-form {
    margin-top: 10px;
}

#channel-form input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #202225;
    background-color: #202225;
    color: #ffffff;
}

#save-channel {
    background-color: #43b581;
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    width: 100%;
}

#save-channel:hover {
    background-color: #3a9c6e;
}
       /* Main Chat Area */
       .chat-content {
           flex-grow: 1;
           display: flex;
           flex-direction: column;
           padding: 2px;
		   justify-content:center;
           overflow-y: auto;
		   width:auto;
		   overflow-x; none;
       }
       .message {
		       background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center;
           background-color: rgba(44,44,50,0.90);
           border-radius: 8px;
           padding: 12px 16px;
           margin-bottom: 6px;
           border-left: 4px solid #5865f2;
           transition: transform 0.3s ease;
		   width:auto;
		    outline: none;
     /* gère à la fois les retours auto et manuels */
  word-break: break-all; 
		   		       overflow-x: none; 
					   view-timeline: --subjectReveal block;
  animation-timeline: --subjectReveal;

  animation-name: appear;
  animation-range: entry 1% contain 1%;
  animation-fill-mode: both;
  animation-duration: 1ms; /* Firefox requires this to apply the animation */
       }
	   @keyframes appear {
  from {
    opacity: 0.8;
    transform: scaleX(0.5);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
       .message:hover {
           background-color: #40444b;
       }
       .message strong {
           color: #ffffff;
       }

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
	white-space: normal;
}

.message blockquote { 
    border-left: 3px solid #5865f2;
    padding-left: 10px;
    margin-left: 10px;
    color: #b9bbbe;
}

.message-time {
    color: #72767d;
    font-size: 0.8em;
    margin-left: 10px;
}
       /* Formulaire */
       .form {
           display: flex;
           flex-direction: column;
           gap: 0px;
           background-color: rgba(0,0,0,0.0);
           border-top: 0px solid rgba(0,0,0,0.0);
       }
       input[type="text"],
       input[type="file"] {
           background-color: #202225;
           color: #dcddde;
           border: 1px solid #2f3136;
           border-radius: 5px;
           padding: 10px;
       }
       input[type="text"]::placeholder {
           color: #72767d;
       }
       button {
           background-color: #00B6EE;
           color: white;
           border: none;
           padding: 10px;
           border-radius: 5px;
           transition: background 0.3s ease;
           font-weight: bold;
       }
       button:hover {
           background-color: #4752c4;
           cursor: pointer;
       }
       /* Media */
       .media {
           border-radius: 15px;
           width: 90%;
		   max-width:400px;
           margin-top: 10px;
       }
       /* PDF Controls */
       .pdf-controls {
           display: flex;
           justify-content: center;
           gap: 10px;
           margin-top: 10px;
       }
       /* Code viewer */
       .code-box-container {
           background-color: #1e1f22;
           border-radius: 8px;
           margin-top: 10px;
           overflow: hidden;
           border: 1px solid #2f3136;
       }
       .code-box-controls {
           display: flex;
           justify-content: flex-end;
           gap: 10px;
           padding: 10px;
           background-color: #2f3136;
       }
       .code-box-controls button {
           background-color: #4f545c;
           color: white;
           border: none;
           padding: 6px 12px;
           border-radius: 4px;
           font-size: 12px;
		   transition: background 0.3s ease;
       }
       .code-box-controls button:hover {
           background-color: #5d6269;
       }
       .code-box {
           display: flex;
           background-color: #1e1f22;
           font-family: Courier, monospace;
           font-size: 14px;
           color: #f2f3f5;
           padding: 10px;
           overflow-x: auto;
       }
       .code-line-numbers {
           background-color: #2c2f33;
           color: #72767d;
           padding-right: 10px;
           text-align: right;
           user-select: none;
       }
       .code-content {
           padding-left: 10px;
           white-space: pre-wrap;
           flex-grow: 1;
       }
       /* Text viewer (pour .txt, .log) */
       .text-viewer {
           background-color: #1e1f22;
           color: #f2f3f5;
           padding: 15px;
           border-radius: 8px;
           font-family: Courier, monospace;
           margin-top: 10px;
           white-space: pre-wrap;
       }
       /* Responsive fix */
       @media (max-width: 768px) {
           .chatbox {
               flex-direction: column;
           }
           .sidebar {
               width: 100%;
               flex-direction: row;
               overflow-x: auto;
               padding: 10px;
           }
           .channel {
               flex-shrink: 0;
               white-space: nowrap;
           }
       }
	   
	   .pptx-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pptx-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.pptx-popup iframe {
    border-radius: 10px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
	transition: background 0.3s ease;
}

.close-popup:hover {
    background-color: darkred;
}

/* Styles dynamiques des tableaux */
.table-style-style1 td, .table-style-style1 th {
    background-color: #2f3136;
    color: #fff;
    border: 1px solid #40444b;
	padding: 8px;
	margin:15px;
	
}

.table-style-style2 td, .table-style-style2 th {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
	padding: 8px;
}

.table-style-style3 td, .table-style-style3 th {
    background-color: #e0f0ff;
    color: #003366;
    border: 1px solid #66a3ff;
	padding: 8px;
}

.table-style-style4 td, .table-style-style4 th {
    background-color: #ffe5e5;
    color: #660000;
    border: 1px solid #ff6666;
	padding: 8px;
}

.table-style-style5 tr:nth-child(even) td {
    background-color: #444;
}
.table-style-style5 td, .table-style-style5 th {
    background-color: #333;
    color: #fff;
    border: 1px solid #666;
	padding: 8px;
}

.table-style-style6 td, .table-style-style6 th {
    border: 2px solid #fff;
	padding: 8px;
}

.table-style-style7 td, .table-style-style7 th {
    border-radius: 10px;
    background-color: #202225;
    color: white;
	padding: 8px;
}

.table-style-style8 {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.table-style-style9 {
    background: linear-gradient(45deg, #2b2d31, #40444b);
    color: white;
}

.table-style-style10 td, .table-style-style10 th {
    border: 1px dashed #888;
    background-color: transparent;
    color: #ccc;
}


.table-style-style31 td, .table-style-style31 th {
    background-color: #151515;
    color: #00eaff;
    border: 1px solid #00eaff;
}

.table-style-style32 td, .table-style-style32 th {
    background: linear-gradient(to right, #1f4037, #99f2c8);
    color: #000;
    border: 1px solid #33cabb;
}

.table-style-style33 td, .table-style-style33 th {
    background-color: #333344;
    color: #ffffff;
    border: 1px dashed #8888ff;
}

.table-style-style34 td, .table-style-style34 th {
    background-color: #252525;
    color: #ffdf00;
    font-style: italic;
    border: 1px double #ffdf00;
}

.table-style-style35 td, .table-style-style35 th {
    background-color: #292929;
    color: #ff6600;
    font-family: 'Consolas', monospace;
    border: 1px solid #ff6600;
}

.table-style-style36 td, .table-style-style36 th {
    background-color: #1a1a1a;
    color: #cfcfcf;
    border-bottom: 2px solid #2a9df4;
}

.table-style-style37 td, .table-style-style37 th {
    background-color: #111;
    color: #77ff77;
    border: 2px groove #00aa00;
}

.table-style-style38 td, .table-style-style38 th {
    background-color: #222831;
    color: #eeeeee;
    border: 1px inset #00adb5;
}

.table-style-style39 td, .table-style-style39 th {
    background-color: #121b22;
    color: #34eb5b;
    border: 2px dotted #34eb5b;
}

.table-style-style40 td, .table-style-style40 th {
    background: linear-gradient(to left, #3a1c71, #d76d77, #ffaf7b);
    color: #000;
    border: 1px solid #3a1c71;
}

.table-style-style41 td, .table-style-style41 th {
    background-color: #2e2e2e;
    color: #ff6699;
    border-radius: 8px;
    border: 1px solid #ff99cc;
}

.table-style-style42 td, .table-style-style42 th {
    background: linear-gradient(to right, #000046, #1cb5e0);
    color: #ffffff;
    border: 1px solid #1cb5e0;
}

.table-style-style43 td, .table-style-style43 th {
    background-color: #202020;
    color: #ffcc00;
    font-weight: bold;
    border: 2px solid #ffaa00;
}

.table-style-style44 td, .table-style-style44 th {
    background: #f5f5f5;
    color: #111;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
}

.table-style-style45 td, .table-style-style45 th {
    background-color: #1e1e1e;
    color: #ff69b4;
    border: 2px dashed #ff69b4;
}

.table-style-style46 td, .table-style-style46 th {
    background-color: #1a1a2e;
    color: #e94560;
    border: 1px solid #0f3460;
}

.table-style-style47 td, .table-style-style47 th {
    background-color: #000000;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    font-family: 'Fira Code', monospace;
}

.table-style-style48 td, .table-style-style48 th {
    background-color: #161616;
    color: #ffffff;
    border: 1px solid #999;
    font-family: 'JetBrains Mono', monospace;
}

.table-style-style49 td, .table-style-style49 th {
    background-color: #111;
    color: #ccc;
    border-left: 4px solid #f00;
}

.table-style-style50 td, .table-style-style50 th {
    background-color: #242424;
    color: #fff;
    text-transform: uppercase;
    border: 1px solid #444;
}

.table-style-style51 td, .table-style-style51 th {
    background-color: #000a12;
    color: #80deea;
    border: 2px groove #00acc1;
}

.table-style-style52 td, .table-style-style52 th {
    background: linear-gradient(90deg, #c31432, #240b36);
    color: #fff;
    border: 1px solid #a10e24;
}

.table-style-style53 td, .table-style-style53 th {
    background-color: #191919;
    color: #d9f99d;
    border: 2px solid #4ade80;
}

.table-style-style54 td, .table-style-style54 th {
    background-color: #262626;
    color: #7fffd4;
    font-family: monospace;
    border: 1px dashed #40e0d0;
}

.table-style-style55 td, .table-style-style55 th {
    background: repeating-linear-gradient(
        45deg,
        #111,
        #111 10px,
        #222 10px,
        #222 20px
    );
    color: #fff;
    border: 1px solid #444;
}

.table-style-style56 td, .table-style-style56 th {
    background-color: #181818;
    color: #f0f0f0;
    border-bottom: 2px dotted #888;
}

.table-style-style57 td, .table-style-style57 th {
    background-color: #0d0d0d;
    color: #33ff33;
    font-style: italic;
    border: 1px solid #33ff33;
}

.table-style-style58 td, .table-style-style58 th {
    background-color: #2a2a72;
    color: #ffffff;
    border: 2px solid #009ffd;
}

.table-style-style59 td, .table-style-style59 th {
    background-color: #242424;
    color: #eeeeee;
    border: 1px solid #555555;
}

.table-style-style60 td, .table-style-style60 th {
    background: linear-gradient(to bottom, #000428, #004e92);
    color: #fff;
    border: 1px solid #004e92;
}

.table-style-style61 td, .table-style-style61 th {
    background-color: #292b2c;
    color: #dcdcdc;
    border: 1px solid #636363;
}

.table-style-style62 td, .table-style-style62 th {
    background-color: #1b1b1b;
    color: #cfcfcf;
    border: 2px dashed #888;
}

.table-style-style63 td, .table-style-style63 th {
    background-color: #333333;
    color: #f1f1f1;
    font-weight: bold;
    border: 1px solid #4a4a4a;
}

.table-style-style64 td, .table-style-style64 th {
    background-color: #191a1d;
    color: #9fa8da;
    border: 1px solid #7986cb;
}

.table-style-style65 td, .table-style-style65 th {
    background-color: #0f0f0f;
    color: #00ffff;
    border: 2px groove #00bcd4;
}

.table-style-style66 td, .table-style-style66 th {
    background-color: #292929;
    color: #efefef;
    border-radius: 6px;
    border: 1px solid #444;
}

.table-style-style67 td, .table-style-style67 th {
    background-color: #121212;
    color: #ff4081;
    border: 1px dashed #ff4081;
}

.table-style-style68 td, .table-style-style68 th {
    background-color: #1e1e2e;
    color: #f38ba8;
    border: 1px solid #cba6f7;
}

.table-style-style69 td, .table-style-style69 th {
    background-color: #1f1f1f;
    color: #4dd0e1;
    font-family: 'Roboto Mono', monospace;
    border: 2px solid #26c6da;
}

.table-style-style70 td, .table-style-style70 th {
    background-color: #212121;
    color: #fbc02d;
    border: 2px inset #fbc02d;
}

.table-style-style71 td, .table-style-style71 th {
    background: linear-gradient(to top, #0f2027, #203a43, #2c5364);
    color: white;
    border: 1px solid #2c5364;
}

.table-style-style72 td, .table-style-style72 th {
    background-color: #1e1e1e;
    color: #76ff03;
    border: 1px solid #64dd17;
}

.table-style-style73 td, .table-style-style73 th {
    background-color: #101010;
    color: #f48fb1;
    border-bottom: 3px double #ec407a;
}

.table-style-style74 td, .table-style-style74 th {
    background-color: #121212;
    color: #29b6f6;
    font-family: monospace;
    border: 2px dashed #81d4fa;
}

.table-style-style75 td, .table-style-style75 th {
    background-color: #111;
    color: #fff;
    border: 3px groove #fff;
}


/* Styles dynamiques des tableaux : style11 à style85 */
.table-style-style11 td, .table-style-style11 th {
    background-color: #222;
    color: #fff;
    border: 1px solid #333;
}

.table-style-style12 td, .table-style-style12 th {
    background-color: #1e1e2f;
    color: #aaf;
    border: 1px dashed #88f;
}

.table-style-style13 td, .table-style-style13 th {
    background: linear-gradient(to right, #333, #111);
    color: #fff;
    border: 1px solid #222;
}

.table-style-style14 td, .table-style-style14 th {
    background-color: #202020;
    color: #ccc;
    font-family: 'Courier New', monospace;
    border: 2px double #666;
}

.table-style-style15 td, .table-style-style15 th {
    background-color: #2a2a2a;
    color: #0f0;
    border: 1px solid #0f0;
}

.table-style-style16 td, .table-style-style16 th {
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.table-style-style17 td, .table-style-style17 th {
    background-color: #2c001e;
    color: #ff99cc;
    border: 1px solid #660033;
}

.table-style-style18 td, .table-style-style18 th {
    background-color: #111;
    color: #ff6600;
    border: 1px dotted #ff6600;
}

.table-style-style19 td, .table-style-style19 th {
    background: radial-gradient(circle, #2c2f33, #1a1b1e);
    color: white;
    border: 1px solid #444;
}

.table-style-style20 td, .table-style-style20 th {
    background-color: #161b22;
    color: #58a6ff;
    border: 1px solid #30363d;
}

/* zébré clair */
.table-style-style21 tr:nth-child(even) td,
.table-style-style21 tr:nth-child(even) th {
    background-color: #2a2d2e;
}
.table-style-style21 td, .table-style-style21 th {
    background-color: #1f2123;
    color: #fff;
    border: 1px solid #555;
}

/* zébré bleu */
.table-style-style22 tr:nth-child(odd) td,
.table-style-style22 tr:nth-child(odd) th {
    background-color: #001f3f;
}
.table-style-style22 tr:nth-child(even) td,
.table-style-style22 tr:nth-child(even) th {
    background-color: #003366;
}
.table-style-style22 td, .table-style-style22 th {
    color: #ffffff;
    border: 1px solid #0066cc;
}

.table-style-style23 td, .table-style-style23 th {
    background-color: #282828;
    color: #ffd700;
    border: 2px groove #ffd700;
}

.table-style-style24 td, .table-style-style24 th {
    background: linear-gradient(135deg, #ff0066, #6600ff);
    color: #fff;
    border: 1px solid #fff;
}

.table-style-style25 td, .table-style-style25 th {
    background-color: #101010;
    color: #39ff14;
    font-family: 'Lucida Console', monospace;
    border: 1px dashed #39ff14;
}

.table-style-style26 td, .table-style-style26 th {
    background-color: #2f3136;
    color: #ffc0cb;
    border: 2px dashed pink;
    font-family: 'Comic Sans MS', cursive;
}

.table-style-style27 td, .table-style-style27 th {
    background-color: #112233;
    color: #66ccff;
    border: 1px solid #66ccff;
}

.table-style-style28 td, .table-style-style28 th {
    background-color: #333;
    color: #fefefe;
    border-bottom: 3px solid #ffcc00;
}

.table-style-style29 td, .table-style-style29 th {
    background-color: #000;
    color: #ff3c3c;
    font-family: 'Courier', monospace;
    border: 1px solid #ff3c3c;
}

.table-style-style30 td, .table-style-style30 th {
    background-color: #121212;
    color: #c4e538;
    border: 2px solid #c4e538;
}










/* Styles pour l'éditeur de tableau */
.table-editor-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.table-editor-content {
    background-color: #36393f;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    display: flex;
    gap: 20px;
}

.table-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.table-preview {
    flex: 2;
    overflow: auto;
    max-height: 500px;
}

.table-controls input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #202225;
    background-color: #2f3136;
    color: #fff;
}

.table-controls label {
    display: block;
    margin-bottom: 5px;
    color: #b9bbbe;
}

#generated-table {

}

#generated-table th {

    padding: 8px;
    min-width: 100px;
    height: 30px;


}

#generated-table td {

    padding: 8px;
    min-width: 50px;
    height: 30px;


}

#generated-table td:focus {
    outline: 2px solid;

}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.table-toolbar button {
    padding: 8px 12px;
    font-size: 14px;
}

#insert-table-btn {
    background: none;
    border: none;
    color: #b9bbbe;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    margin-bottom: 5px;
}

#insert-table-btn:hover {
    color: #fff;
    background-color: #40444b;
    border-radius: 4px;
}

#chat-messages { overflow-y: auto; overflow-x: none; width:100%; }

   .form-row {
  display: flex;
  align-items: center;
  gap: 0px;
  width:auto;
  min-width:100%;
  max-width:100%;
  right:1;
}

.form-row input[type="text"] {
  flex: 1;
  height: 40px;
  width: 40px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  background-color: #202225;
  color: white;
  outline: none;
  transition: background 0.3s ease;
  position: relative;
    align-items: center;
	  display: flex;
  justify-content: center;
}
.form-row input[type="text"]:focus {
  background-color: #2f3136;
}

#sendButton {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: RGBA(0,0,0,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}

#sendButton .send-icon {
  pointer-events: none;
}

#sendButton:hover {
  background-color: #4752c4;
}

.file-upload-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: RGBA(0,0,0,0.0);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
    display: flex;
  align-items: center;
  justify-content: center;
  
}

.file-upload-wrapper:hover {
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}




.file-upload-wrapper::before {
  content: "📎";
  font-size: 24px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}



.color-picker {
    position: absolute;
    background: #2b2d31;
    border-radius: 8px;
    z-index: 100;
    display: none;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option:hover {
    border-color: white;
}

.font-selector {
    position: absolute;
    background: #2b2d31;
	max-height:300px;
	height:auto;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
	overflow-y:auto;
    flex-direction: column;
    gap: 5px;
}

.font-option {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
	transition: background 0.3s ease;
}

.font-option:hover {
    background-color: #40444b;
}

.message-editor {
    flex: 1;
    height: auto;
    font-size: 16px;
    border-radius: 20px;
    padding: 5px;
    border: none;
    background-color: #202225;
    color: white;
    outline: none;
    transition: background 0.3s ease;
    overflow-y: auto;
    max-height: 300px;
    line-height: 1.5;
	width:100%;
}

.message-editor:focus {
    background-color: #202225;
}

.message-editor[placeholder]:empty:before {
    content: attr(placeholder);
    color: #72767d;
}

.message-editor h1, .message-editor h2, .message-editor h3, 
.message-editor h4, .message-editor h5 {
    margin: 5px 0;
    font-weight: bold;
}

.message-editor h1 { font-size: 50px; }
.message-editor h2 { font-size: 40px; }
.message-editor h3 { font-size: 30px; }
.message-editor h4 { font-size: 20px; }
.message-editor h5 { font-size: 14px; }
.message-editor mark { color:white; background-color:black; }

 h1 { font-size: 50px; }
 h2 { font-size: 40px; }
 h3 { font-size: 30px; }
 h4 { font-size: 20px; }
 h5 { font-size: 14px; }
 mark { color:white; background-color:black; }

.message-editor b, .message-editor strong { font-weight: bold; }
.message-editor i, .message-editor em { font-style: italic; }
.message-editor u { text-decoration: underline; }
.message-editor s, .message-editor strike { text-decoration: line-through; }
.message-editor blockquote { 
    border-left: 3px solid #5865f2;
    padding-left: 10px;
    margin-left: 10px;
    color: #b9bbbe;
}

.sidebar-section {
    margin-bottom: 15px;
}

.sidebar-toggle {
    cursor: pointer;
    margin: 0;
    padding: 8px 0;
    user-select: none;
}

.channels-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}

.channels-container.open {
    max-height: 300px;
    overflow-y: auto;
}

/* Style de la scrollbar */
.channels-container::-webkit-scrollbar {
    width: 6px;
}

.channels-container::-webkit-scrollbar-track {
    background: #2b2d31;
}

.channels-container::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border-radius: 3px;
	transition: background 0.3s ease;
}

.channels-container::-webkit-scrollbar-thumb:hover {
    background: #0e0f11;
}

.groupes-toggle {
    cursor: pointer;
    margin: 0;
    padding: 8px 0;
    user-select: none;
}

.groupes-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}

.groupes-container.open {
    max-height: 300px;
    overflow-y: auto;
}

/* Style de la scrollbar */
.groupes-container::-webkit-scrollbar {
    width: 6px;
}

.groupes-container::-webkit-scrollbar-track {
    background: #2b2d31;
}

.groupes-container::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border-radius: 3px;
	transition: background 0.3s ease;
}

.groupes-container::-webkit-scrollbar-thumb:hover {
    background: #0e0f11;
}


.conversation-toggle {
    cursor: pointer;
    margin: 0;
    padding: 8px 0;
    user-select: none;
}

.conversation-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}

.conversation-container.open {
    max-height: 350px;
    overflow-y: auto;
}

/* Style de la scrollbar */
.conversation-container::-webkit-scrollbar {
    width: 6px;
}

.conversation-container::-webkit-scrollbar-track {
    background: #2b2d31;
}

.conversation-container::-webkit-scrollbar-thumb {
    background: #1a1b1e;
	transition: background 0.3s ease;
    border-radius: 3px;
}

.conversation-container::-webkit-scrollbar-thumb:hover {
    background: #0e0f11;
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #36393f;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    color: white;
}

.popup-content button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#copy-invite {
    background-color: #5865f2;
    color: white;
}

#close-popup {
    background-color: #f04747;
    color: white;
}

.admin-bar {
    background-color: #2b2d31;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-left: 4px solid #5865f2;
}

.admin-btn {
    padding: 8px 12px;
    background-color: #4f545c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-btn:hover {
    background-color: #5d6269;
}

.system-message {
    border-left-color: #f04747;
    background-color: #2b2d31;
}

.system-header {
    color: #f04747;
    font-weight: bold;
    font-size: 0.8em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sondage {
  background: #000001;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  transition: transform 0.5s, box-shadow 0.5s;
}
.sondage:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.vote-option {
  display: inline-block;
  background: #000001;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 14px;
  margin: 6px 4px;
  cursor: pointer;
  transition: background 0.5s, transform 0.5s;
}
.vote-option:hover {
  background: #eaeaea;
  transform: scale(1.04);
}
.sondage-result {
  margin-top: 10px;
  font-size: 0.95em;
}
.bar-container {
  width: 100%;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 12px 0;
}
.bar {
  width: 0;
  height: 16px;
  background: #4caf50;
  transition: width 0.5s;
}

.navbar::-webkit-scrollbar {
    height: 6px;
}

.navbar::-webkit-scrollbar-thumb {
    background-color: #8e9297;
    border-radius: 4px;
}

.navbar::-webkit-scrollbar-track {
    background: transparent;
}

/* Navbar - Horizontal et Vertical */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2f3136;
    color: #8e9297;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Navbar Horizontal */
.navbar-horizontal {
    display: flex;
    gap: 20px;
}

.navbar-horizontal a {
    text-decoration: none;
    color: #b9bbbe;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-horizontal a:hover {
    color: #ffffff;
}

/* Navbar Vertical (Sidebar) */
.navbar-vertical {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 340px;
    background-color: #2f3136;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navbar-vertical a {
    text-decoration: none;
    color: #8e9297;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-vertical a:hover {
    background-color: #40444b;
    color: #ffffff;
}

/* Style des barres de défilement horizontales et verticales */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #202225;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #5865f2;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #4752c4;
}

/* Appliquer un style discret pour les overscroll */
body, .chatbox, .sidebar, .chat-content, .table-preview, .message, .code-box, .form-row input[type="text"], .file-upload-wrapper {
    overscroll-behavior: contain;
}

body {
    margin: 0;
    padding: 0;
	width:100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #313338;
    color: #f2f3f5;
    overflow: hidden; /* Désactive le défilement horizontal global */
}

/* Subtle hover effect on navbar for better accessibility */
.navbar a:hover {
    background-color: #2f3136;
    border-radius: 4px;
    padding: 5px 10px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.navbar {
    box-shadow: none; /* Keep it minimal */
}

/* Navbar Fixed (for sticky top bar) */
.navbar.fixed {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #2f3136;
}

/* Ensuring overflow scroll inside the chat and other containers */
.chat-content, .sidebar, .message, .code-box {
    overflow: auto; /* allow scrolling */
}

/* For smooth scrolling inside the containers */
html {
    scroll-behavior: smooth;
}

/* Scrollbar Styling for overflow content */
.chat-content::-webkit-scrollbar, .sidebar::-webkit-scrollbar, .message::-webkit-scrollbar {
        display:none;

}

.chat-content::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb, .message::-webkit-scrollbar-thumb {
    display:none;

}

.chat-content::-webkit-scrollbar-thumb:hover, .sidebar::-webkit-scrollbar-thumb:hover, .message::-webkit-scrollbar-thumb:hover {
    display:none;
}

.notification-badge {
    position: absolute;
    right: 10px;
    background-color: #f04747;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.channel {
    position: relative;
    padding-right: 30px !important;
}

.group-channels .channel {
    padding-left: 15px;
}

.group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.group:hover {
    background-color: #40444b;
}

.group-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid orange;
    flex-shrink: 0;
}

.group-name {
    flex-grow: 1;
 font-family: Verdana, Geneva, sans-serif; 
letter-spacing: -1.6px;
word-spacing: 0.2px;
color: #FFFFFF;

text-shadow: 0 0 1px #FFF, 0 0 2px #FFF;
text-decoration: none;
font-style: normal;
text-transform: none;
}

.show-invite, .leave-group {
    background: none;
    border: none;
    color: #b9bbbe;
    cursor: pointer;
    padding: 5px;
	transition: background 0.3s ease;
}

.show-invite:hover, .leave-group:hover {
    color: white;
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  background-color: #f04747;
  color: white;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  display: none;
  transition: all 0.3s ease;
}
.channel {
  position: relative;
  padding-right: 35px !important;
}

.link-preview-box {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3a3b3f;
    background-color: #2f3136;
    transition: transform 0.3s;
    width: 100%;
    max-width: 600px;
}

.link-preview-box:hover {
    transform: scale(1.01);
    background-color: #3a3c42;
}

.link-preview-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.link-preview-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-site-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: #444;
}

.link-title-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.link-description {
    font-size: 14px;
    color: #b9bbbe;
    max-height: 3.6em;
    line-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.link-url {
    font-size: 12px;
    color: #888;
}

@font-face {
  font-family: 'slndr';
  src: url('slndr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face { font-family: 'a'; src: url('fonts/a.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'b'; src: url('fonts/b.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'c'; src: url('fonts/c.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'd'; src: url('fonts/d.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'e'; src: url('fonts/e.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'f'; src: url('fonts/6.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'g'; src: url('fonts/7.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'h'; src: url('fonts/8.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'i'; src: url('fonts/9.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'j'; src: url('fonts/10.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'k'; src: url('fonts/11.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'l'; src: url('fonts/12.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'm'; src: url('fonts/13.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'n'; src: url('fonts/14.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'o'; src: url('fonts/15.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'p'; src: url('fonts/16.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'q'; src: url('fonts/17.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'r'; src: url('fonts/18.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 's'; src: url('fonts/19.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 't'; src: url('fonts/20.otf') format('opentype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'u'; src: url('fonts/21.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'v'; src: url('fonts/22.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'w'; src: url('fonts/23.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'x'; src: url('fonts/24.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'y'; src: url('fonts/25.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'z'; src: url('fonts/26.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'aa'; src: url('fonts/27.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'bb'; src: url('fonts/28.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'cc'; src: url('fonts/29.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'dd'; src: url('fonts/30.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'ee'; src: url('fonts/31.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'ff'; src: url('fonts/32.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'gg'; src: url('fonts/33.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'hh'; src: url('fonts/34.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'ii'; src: url('fonts/35.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'jj'; src: url('fonts/37.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'kk'; src: url('fonts/38.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'll'; src: url('fonts/39.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'mm'; src: url('fonts/40.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'nn'; src: url('fonts/41.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'oo'; src: url('fonts/42.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'pp'; src: url('fonts/43.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'qq'; src: url('fonts/44.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'rr'; src: url('fonts/45.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'ss'; src: url('fonts/46.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'tt'; src: url('fonts/47.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'uu'; src: url('fonts/48.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'vv'; src: url('fonts/49.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'ww'; src: url('fonts/50.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'xx'; src: url('fonts/51.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }
@font-face { font-family: 'yy'; src: url('fonts/52.ttf') format('truetype'); font-weight: normal;
  font-style: normal; }

.channel-member button {
    margin-left: 5px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
	transition: background 0.3s ease;
}
.channel-member button:hover {
    color: #fff;
    transform: scale(1.2);
}



   .table-style-0 { background: #fff; color: #000; border: 1px solid #ccc; }
    .table-style-1 { background: #2f3136; color: #fff; border: 1px solid #40444b; }
    .table-style-2 { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }
    .table-style-3 { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
    .table-style-4 { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
    .table-style-5 { background: #eceff1; color: #263238; border: 1px solid #b0bec5; }
    .table-style-6 { background: #f3e5f5; color: #4a148c; border: 1px solid #ce93d8; }
    .table-style-7 { background: #212121; color: #ffeb3b; border: 1px solid #616161; }
    .table-style-8 { background: #121212; color: #d0d0d0; border: 1px solid #2a2a2a; }
    .table-style-9 { background: #0f0f0f; color: #39ff14; border: 1px solid #4caf50; }

    .custom-table {
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0;
    }

    .custom-table td,
    .custom-table th {
        padding: 8px;
        border: inherit;
    }

    .custom-table th {
        font-weight: bold;
    }
	
	        select {
            padding: 10px;
            font-size: 16px;
            border: 1px solid #b0c4de; /* Couleur bordure subtile */
            border-radius: 5px;
            background-color: #f0f8ff; /* Bleu léger */
            color: #333;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        /* Hover pour le select */
        select:hover {
            background-color: #e0f7ff; /* Couleur plus claire au survol */
            border-color: #87cefa; /* Bordure plus marquée au survol */
        }

        /* Style des options */
        option {
            padding: 8px;
            background-color: #f0f8ff; /* Bleu léger */
            color: #333;
            border: none;
            transition: background-color 0.3s ease;
        }

        /* Hover pour les options */
        option:hover {
            background-color: #e0f7ff; /* Couleur plus claire au survol */
        }
		.profil-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid violet;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.profil-img:hover {
    transform: scale(1.1);
}

#profil-popup {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #2f2f2f;
    color: white;
    border-radius: 16px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 0 20px #000a;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    width: 400px;
}
#profil-popup .top {
    display: flex;
    align-items: center;
    gap: 15px;
}
#profil-popup .top img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid violet;
}
#profil-popup .top .name {
    font-size: 20px;
    font-weight: bold;
}
#profil-popup button {
    margin-top: 20px;
    background: #44bd32;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
	transition: background 0.3s ease;
    cursor: pointer;
}
#profil-popup button:hover {
    background: #4cd137;
}
#user-profile-view {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}
#user-profile-view .banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
#user-profile-view .banner img {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 3px solid violet;
    width: 100px;
    height: 100px;
}
#user-profile-view .infos {
    background: rgba(0,0,0,0.8);
    margin-top: 60px;
    text-align: center;
    padding: 20px;
    color: white;
    border-radius: 0 0 16px 16px;
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

  .invite-popup {
    position: fixed; top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    display: none; justify-content: center; align-items: center;
    z-index: 10000;
  }
  .invite-popup-content {
    background: #fff; border-radius: 10px;
    padding: 20px; max-width: 90%; width: 400px;
    text-align: center; position: relative;
  }
  .invite-popup-content h4 {
    margin-top: 0; color: #333;
  }
  .invite-popup-content .invite-options button {
    margin: 10px; padding: 8px 16px;
    border:none; border-radius:5px;
    cursor:pointer;
  }
  .close-popup {
    position:absolute; top:10px; right:10px;
    background:red; color:#fff; border:none;
    border-radius:50%; width:24px; height:24px;
    font-size:16px; line-height:20px; cursor:pointer;
  }
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

  .invite-card-container {
    max-width: 24rem;
    width: 100%;
    background: rgba(0,67,70,0.81);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -2px rgba(0,0,0,0.05);
    overflow: hidden;
    font-family: 'Playfair Display', serif;
  }

  .invite-banner {
    width: 100%;
    height: 6rem; /* réduit pour tenir dans 250px total */
    object-fit: cover;
    display: block;
	top:1px;
  }

  .invite-content {
    padding: 3px; /* un peu plus compact */
  }

  .invite-header {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
	top:1px;
  }

  .invite-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 3px solid rgba(0,157,164,0.9);
    display: block;
  }

  .invite-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
  }

  .invite-subtitle {
    font-size: 0.8rem;
    color: #fff;
  }

  .invite-info p {
    color: #fff;
    font-size: 0.9rem;
  }

  .invite-info span {
    color: #fff;
    font-size: 0.9rem;
  }

  .invite-btn {
    width: 250px;
    padding: 10px 40px;
    background-color: #2563eb;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
	height:50px;
  }

  .invite-btn:hover {
    background-color: #1e4bb8;
  }



   
.channel, .group {
  position: relative;
}

.channel .text-wrapper,
.group .text-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  width: calc(100% - 35px - 8px);
  margin-left: 8px;
}

.text-wrapper span {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--shift))); }
}

.marquee {
  animation: marquee var(--duration) linear infinite;
}

.unread-badge {
  background-color: #43B581; /* vert clair Discord-like */
  color: #FFF;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 8px;
  display: inline-block;
  min-width: 16px;
  text-align: center;
}


.sidebar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: purple;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: green;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: red;
}
