/* REAL TIME — Salon Foire aux questions, étape 1.
   Toutes les règles de disposition sont cantonnées à body.faq-room-mode.
   Le futur menu (étape 2) se placera dans .faq-workspace. */

#faq-landing { display: none; }
body.faq-room-mode #main-chat > #faq-landing {
    display: flex !important;
    position: relative !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: clamp(14px, 2vw, 32px) clamp(14px, 2vw, 38px) 205px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 8% 10%, rgba(0, 203, 255, .17), transparent 43%),
        radial-gradient(ellipse at 95% 8%, rgba(165, 65, 255, .18), transparent 45%),
        linear-gradient(155deg, #060e26 0%, #101735 49%, #070b21 100%) !important;
}
body.faq-room-mode #main-chat > :not(#faq-landing):not(#message-input-container) {
    display: none !important;
}
body.faq-room-mode #chat-container #main-chat {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    background: #060c21 !important;
}

/* Glissement séquentiel des volets : le script replie d'abord la droite,
   puis la gauche. Les réglages des autres salons ne sont pas modifiés. */
body.faq-room-mode #chat-container #left-sidebar,
body.faq-room-mode #chat-container #right-sidebar {
    transition: width .42s cubic-bezier(.25,.9,.25,1),
                min-width .42s cubic-bezier(.25,.9,.25,1),
                max-width .42s cubic-bezier(.25,.9,.25,1),
                flex-basis .42s cubic-bezier(.25,.9,.25,1),
                padding .42s ease, border-width .42s ease !important;
}
body.faq-room-mode.sidebar-left-collapsed #chat-container #left-sidebar,
body.faq-room-mode.sidebar-right-collapsed #chat-container #right-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0px !important;
    flex-basis: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}
body.faq-room-mode.sidebar-left-collapsed #chat-container #left-sidebar > *,
body.faq-room-mode.sidebar-right-collapsed #chat-container #right-sidebar > * {
    display: none !important;
}
/* Laisser l'onglet gauche : il est indispensable pour sortir du salon FAQ. */
body.faq-room-mode #right-sidebar-toggle { display: none !important; }
body.faq-room-mode #left-sidebar-toggle {
    z-index: 26001 !important;
    border-color: rgba(108, 239, 255, .85) !important;
}
body.faq-room-mode.sidebar-left-collapsed #left-sidebar-toggle { left: 0 !important; }

/* En-tête général (Confidentialité, Administration, Quitter…) conservé.
   L'en-tête interne du salon et les éléments MediaSoup ne sont pas affichés. */
body.faq-room-mode #main-chat #message-input-container {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px 12px 10px !important;
    box-sizing: border-box !important;
    z-index: 60 !important;
    gap: 5px !important;
    overflow: visible !important;
    border-top: 1px solid rgba(89, 200, 255, .56) !important;
    background: linear-gradient(180deg, rgba(14, 26, 61, .96), rgba(6, 12, 31, .99)) !important;
    box-shadow: 0 -9px 24px rgba(0, 0, 0, .28), 0 -1px 10px rgba(0, 200, 255, .18) !important;
}
body.faq-room-mode #message-input-container > :not(#formatting-tools):not(#send-button-container):not(#emoji-picker):not(#sticker-picker):not(#gif-picker):not(.faq-compatibility-note) {
    display: none !important;
}
body.faq-room-mode #message-input-container #formatting-tools {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px 6px !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}
body.faq-room-mode #formatting-tools #toggle-audio-button,
body.faq-room-mode #formatting-tools #mic-badge,
body.faq-room-mode #formatting-tools #mobile-camera-menu,
body.faq-room-mode #formatting-tools #youtube-button {
    display: none !important;
}
body.faq-room-mode #message-input-container #send-button-container {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
body.faq-room-mode #message-input-container #admin-send-button { display: none !important; }
body.faq-room-mode #message-input-container #message-input {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

/* Grand titre et navigation conçus pour la phase 2 (panneau gauche / forum droit). */
.faq-landing-header {
    flex: 0 0 auto;
    text-align: center;
    margin-bottom: clamp(17px, 2.8vh, 34px);
    position: relative;
    z-index: 2;
}
.faq-landing-header h2 {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: clamp(24px, 2.65vw, 48px);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: .025em;
    text-wrap: balance;
    color: #f5fbff;
    text-shadow: 0 3px 0 #114d82, 0 6px 0 rgba(0,0,0,.65),
                 0 0 16px rgba(56, 196, 255, .56), 0 0 38px rgba(130, 78, 255, .33);
}
.faq-heading-rule {
    display: block;
    width: min(460px, 72%);
    height: 4px;
    margin: 15px auto 0;
    border-radius: 100px;
    background: linear-gradient(90deg, transparent, #2cefff 27%, #f6c8ff 52%, #ffc95a 72%, transparent);
    box-shadow: 0 0 16px rgba(51, 231, 255, .64);
}
.faq-primary-nav {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(12px, 2vw, 28px);
    width: min(1260px, 100%);
    margin: 0 auto clamp(23px, 3.5vh, 44px);
}
.faq-section-button {
    --faq-border: #a8d8ff;
    --faq-glow: rgba(54, 174, 255, .62);
    --faq-top: #308afa;
    --faq-bottom: #1737b0;
    position: relative;
    min-height: clamp(98px, 10vw, 142px);
    padding: 15px 14px 20px;
    border: 2px solid var(--faq-border);
    border-radius: 22px;
    outline-offset: 6px;
    color: white;
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: clamp(15px, 1.35vw, 23px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .012em;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .72);
    background: linear-gradient(168deg, rgba(255,255,255,.38), transparent 35%),
                linear-gradient(180deg, var(--faq-top), var(--faq-bottom));
    box-shadow: 0 7px 0 rgba(0,0,0,.55), 0 10px 18px rgba(0,0,0,.45),
                0 0 20px var(--faq-glow), inset 0 2px 2px rgba(255,255,255,.65),
                inset 0 -6px 12px rgba(0,0,0,.25);
    cursor: pointer;
    transform-origin: center bottom;
    transform: translateY(0) rotate(0deg);
    transition: box-shadow .24s ease, filter .24s ease, transform .24s ease;
    isolation: isolate;
}
.faq-section-button::before {
    content: '';
    position: absolute;
    inset: 4px 7px auto;
    height: 40%;
    border-radius: 15px 15px 65% 65%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,.31), transparent);
    pointer-events: none;
}
.faq-section-button::after {
    content: '';
    position: absolute;
    left: 17%; right: 17%; bottom: -9px;
    height: 8px;
    border-radius: 100%;
    background: var(--faq-glow);
    filter: blur(8px);
    z-index: -2;
    pointer-events: none;
}
.faq-section-button:hover {
    animation: faq-gentle-sway 1.05s ease-in-out infinite alternate;
    filter: brightness(1.2) saturate(1.18);
    box-shadow: 0 9px 0 rgba(0,0,0,.52), 0 15px 24px rgba(0,0,0,.49),
                0 0 29px var(--faq-glow), 0 0 55px var(--faq-glow),
                inset 0 3px 5px rgba(255,255,255,.8), inset 0 -6px 14px rgba(0,0,0,.24);
}
.faq-section-button:active { animation: none; transform: translateY(5px) scale(.985); }
.faq-section-button[aria-pressed="true"] {
    outline: 3px solid rgba(255,255,255,.88);
    outline-offset: 4px;
    filter: brightness(1.16);
}
.faq-section-button .faq-btn-symbol {
    display: block;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
    margin-bottom: 9px;
    text-shadow: 0 4px 6px rgba(0,0,0,.45), 0 0 15px rgba(255,255,255,.5);
}
.faq-section-button.faq-button-chat {
    --faq-border: #98dcff; --faq-glow: rgba(33,169,255,.67);
    --faq-top: #328cff; --faq-bottom: #1640b8;
}
.faq-section-button.faq-button-team {
    --faq-border: #a0ffd4; --faq-glow: rgba(33,245,165,.52);
    --faq-top: #13cfa0; --faq-bottom: #08667b;
}
.faq-section-button.faq-button-members {
    --faq-border: #f9ccff; --faq-glow: rgba(238,83,250,.52);
    --faq-top: #d96bfa; --faq-bottom: #7929ae;
}
@keyframes faq-gentle-sway {
    0% { transform: translateY(-5px) rotate(-1.6deg) scale(1.012); }
    100% { transform: translateY(-9px) rotate(1.6deg) scale(1.027); }
}
.faq-workspace {
    position: relative;
    flex: 1 1 260px;
    min-height: 240px;
    width: min(1420px, 100%);
    margin: 0 auto;
    border: 2px solid rgba(107, 181, 255, .38);
    border-radius: 27px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 50% 45%, rgba(44, 143, 211, .10), transparent 65%),
      linear-gradient(150deg, rgba(18,31,70,.58), rgba(4,8,29,.62));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14),
                inset 0 0 30px rgba(38, 133, 236, .08),
                0 18px 44px rgba(0,0,0,.28), 0 0 18px rgba(31,130,224,.16);
}
.faq-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 25px;
    user-select: none;
    pointer-events: none;
    text-align: center;
}
.faq-watermark-question {
    font: 900 clamp(92px, 16vw, 260px)/.8 'Montserrat', sans-serif;
    color: rgba(130, 190, 255, .09);
    text-shadow: 0 0 50px rgba(108, 139, 255, .17);
}
.faq-watermark-title {
    display: block;
    max-width: 100%;
    font: 900 clamp(33px, 5.5vw, 96px)/1.18 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(174, 214, 255, .16);
    text-shadow: 0 3px 3px rgba(255,255,255,.05), 0 0 37px rgba(73,171,255,.22);
}
.faq-workspace::before,
.faq-workspace::after {
    content: '';
    position: absolute;
    width: min(200px, 22%);
    height: min(200px, 22%);
    border: 3px solid rgba(65, 202, 255, .16);
    pointer-events: none;
}
.faq-workspace::before { left: 15px; top: 15px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.faq-workspace::after { right: 15px; bottom: 15px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }

/* En portrait, les deux volets du chat se gèrent déjà en popups mobiles.
   On n'impose pas d'état collapsed (supprimé par le JS mobile existant). */
@media (max-width: 900px) {
    body.faq-room-mode #chat-container #left-sidebar,
    body.faq-room-mode #chat-container #right-sidebar { display: none !important; }
    body.faq-room-mode #chat-container #main-chat { width: 100% !important; flex: 1 1 100% !important; }
    body.faq-room-mode #left-sidebar-toggle,
    body.faq-room-mode #right-sidebar-toggle,
    body.faq-room-mode #mobile-connecte-btn,
    body.faq-room-mode #mobile-ami-btn { display: none !important; }
    body.faq-room-mode #main-chat > #faq-landing {
        padding: 15px 11px 165px !important;
    }
    .faq-primary-nav { gap: 10px; }
    .faq-section-button { padding: 12px 6px 14px; min-height: 90px; border-radius: 15px; }
    .faq-section-button .faq-btn-symbol { margin-bottom: 7px; }
    .faq-workspace { min-height: 160px; border-radius: 17px; }
    body.faq-room-mode #main-chat #message-input-container { padding: 4px 6px 6px !important; }
}
@media (max-width: 540px) {
    .faq-landing-header h2 { font-size: clamp(18px, 5.5vw, 29px); }
    .faq-heading-rule { margin-top: 9px; }
    .faq-primary-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .faq-section-button { min-height: 100px; padding: 11px 3px; font-size: clamp(10px, 2.7vw, 14px); border-radius: 13px; }
    .faq-section-button .faq-btn-symbol { font-size: 26px; }
    .faq-watermark-title { font-size: clamp(22px, 7vw, 39px); }
    .faq-watermark-question { font-size: clamp(80px, 24vw, 135px); }
    body.faq-room-mode #main-chat > #faq-landing { padding-bottom: 180px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-section-button:hover { animation: none; transform: translateY(-3px); }
    body.faq-room-mode #chat-container #left-sidebar,
    body.faq-room-mode #chat-container #right-sidebar { transition-duration: .01ms !important; }
}

/* =======================================================================
   ÉTAPE 2 SIMPLIFIÉE : 5 forums directs par grande rubrique.
   Inspirée des encadrements de la palette de dessin ; le panneau blanc/noir
   est réservé aux messages. Styles limités à la FAQ.
   ======================================================================= */
#faq-forum-shell, #faq-forum-shell * { box-sizing: border-box; }
#faq-workspace .faq-watermark[hidden],
#faq-workspace .faq-forum-shell[hidden] { display: none !important; }

/* L'accueil V1 reste strictement inchangé ; la réduction est appliquée
   seulement quand un des trois boutons principaux a été sélectionné. */
body.faq-room-mode.faq-forum-open #main-chat > #faq-landing {
    padding: 7px 12px calc(var(--faq-input-height, 125px) + 11px) !important;
    overflow: hidden !important;
}
body.faq-room-mode.faq-forum-open .faq-landing-header { margin-bottom: 7px; }
body.faq-room-mode.faq-forum-open .faq-landing-header h2 {
    font-size: clamp(18px, 1.65vw, 27px);
    line-height: 1.16;
    text-shadow: 0 2px 0 #114d82, 0 3px 4px #001027, 0 0 13px #31c8ff8c;
}
body.faq-room-mode.faq-forum-open .faq-heading-rule {
    margin-top: 5px; height: 3px; width: min(380px, 66%);
}
body.faq-room-mode.faq-forum-open .faq-primary-nav {
    width: min(1050px, 100%);
    gap: clamp(7px, 1.1vw, 16px);
    margin-bottom: 10px;
}
body.faq-room-mode.faq-forum-open .faq-section-button {
    min-height: 53px;
    padding: 5px 10px 7px;
    border-radius: 12px;
    font-size: clamp(12px, 1vw, 16px);
    box-shadow: 0 4px 0 #0009, 0 5px 10px #0007, 0 0 11px var(--faq-glow), inset 0 2px 2px #fffa;
}
body.faq-room-mode.faq-forum-open .faq-section-button::before {
    inset: 3px 6px auto; height: 45%; border-radius: 9px;
}
body.faq-room-mode.faq-forum-open .faq-btn-symbol {
    display: inline-block;
    font-size: clamp(18px, 1.65vw, 27px);
    line-height: 1;
    margin: 0 9px 0 0;
    vertical-align: middle;
}
body.faq-room-mode.faq-forum-open .faq-section-button > .faq-btn-symbol + span { vertical-align: middle; }
body.faq-room-mode.faq-forum-open .faq-workspace {
    flex: 1 1 0;
    min-height: 170px;
    width: 100%;
    border-color: #32bbff;
    border-radius: 23px;
    background: linear-gradient(150deg, #0a2452, #061532 50%, #0d2452);
    box-shadow: 0 0 0 2px #00264e, 0 0 16px #009dff,
                0 0 45px #007eff5e, inset 0 0 20px #0f5dc999;
}
.faq-forum-shell {
    --faq-accent: #20d3ff;
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    color: #f4fbff;
    font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(155deg, #0a2150, #07132f 53%, #092447);
}
.faq-forum-shell[data-faq-section="equipe"] { --faq-accent: #49f5ad; }
.faq-forum-shell[data-faq-section="membres"] { --faq-accent: #ec8eff; }
.faq-forum-titlebar {
    flex: 0 0 67px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    padding: 5px 128px;
    text-align: center;
    border-bottom: 2px solid var(--faq-accent);
    background: radial-gradient(ellipse at 48% 0%, #286dc6 0%, #091e46 76%);
    box-shadow: inset 0 -9px 22px #008cff4d, 0 3px 13px #00bfff80;
}
.faq-forum-titlebar::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 23%; right: 23%;
    height: 3px;
    border-radius: 100px;
    background: linear-gradient(90deg, transparent, var(--faq-wave-1, #9e50ff), var(--faq-wave-2, #14e9ff), var(--faq-wave-3, #ffb336), #fd4ed5, transparent);
    filter: blur(1px);
    pointer-events: none;
}
/* Le titre du forum sélectionné remplace le titre de la rubrique générale
   dans le bandeau du haut. On évite le deuxième cartouche qui prenait
   de la hauteur à la zone des messages. */
.faq-forum-titlebar .faq-titlebar-current-forum {
    width: 100%;
    max-width: 760px;
    min-height: 58px;
    padding: 2px 18px 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
}
.faq-forum-titlebar .faq-titlebar-current-forum h4 {
    font-size: clamp(24px, 1.95vw, 32px);
    margin: 0;
    color: var(--faq-title-color, #ffffff);
    text-shadow: 0 2px 4px rgba(0,0,0,.65), 0 0 16px rgba(69,214,255,.58), 0 0 32px rgba(214,93,255,.28);
}
.faq-forum-titlebar .faq-titlebar-current-forum p {
    font-size: clamp(13px, .95vw, 16px);
    margin: 3px 0 0;
    color: #eef9ff;
    text-shadow: 0 1px 3px rgba(0,0,0,.68), 0 0 10px rgba(80,205,255,.33);
}
.faq-return-home {
    position: absolute;
    right: 10px;
    top: 9px;
    min-width: 107px;
    min-height: 39px;
    border: 2px solid #8af1ff;
    border-radius: 12px;
    background: linear-gradient(#1b67a8, #082c66 56%, #061b40);
    box-shadow: inset 0 2px 3px #ffffff88, 0 3px 4px #000a, 0 0 10px #00bbff88;
    font-size: 16px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px #000;
    cursor: pointer;
}
.faq-return-home:hover { filter: brightness(1.2); }
.faq-forum-columns {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: clamp(215px, 22%, 300px) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    min-height: 0;
    min-width: 0;
}
.faq-forum-sidebar, .faq-forum-reading {
    min-width: 0;
    min-height: 0;
    border: 2px solid var(--faq-frame-color, #1fc7ff);
    border-radius: 20px;
    background: linear-gradient(165deg, #0e376f, #071831 48%, #092950);
    box-shadow: inset 0 0 15px #038cff70, 0 0 10px #098affb6, 0 0 2px #fff;
}
.faq-forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}
.faq-menu-heading {
    flex: 0 0 auto;
    min-height: 45px;
    text-align: center;
    font: italic bold clamp(20px, 1.55vw, 25px)/1.6 Georgia, serif;
    color: #fff;
    text-shadow: 0 2px 3px #000, 0 0 12px #1bcaff;
    border-bottom: 2px solid #2bd7ff;
    box-shadow: 0 4px 7px -6px #05caff;
    letter-spacing: .02em;
}
.faq-menu-heading span { margin: 0 5px; }
/* FAQ V26 : logo décoratif incliné au pied des cinq menus, sans débordement. */
#faq-forum-shell .faq-sidebar-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: clamp(96px, 18vh, 154px);
    margin-top: auto;
    padding: 1px 12px 5px;
    overflow: hidden;
    pointer-events: none;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
#faq-forum-shell .faq-sidebar-logo img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(0,0,0,.53));
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
@media (max-width: 740px) {
    #faq-forum-shell .faq-sidebar-logo {
        height: 78px;
        max-width: 210px;
        margin: 0 auto;
        padding: 1px 13px 4px;
    }
}

.faq-category-menu {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #26b8ff #07172c;
    padding: 5px 4px 8px;
}
.faq-category-link {
    --faq-link-accent: #39d3ff;
    flex: 0 0 auto;
    width: 100%;
    min-height: clamp(64px, 6.8vh, 82px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--faq-link-accent);
    border-radius: 15px;
    color: #fff;
    text-align: left;
    background: linear-gradient(170deg, #1f568c 0%, #082250 60%, #06132b);
    box-shadow: inset 0 2px 3px #ffffff72, 0 4px 5px #000a, 0 0 9px #009bff77;
    cursor: pointer;
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    transition: filter .17s ease, transform .17s ease, box-shadow .17s ease;
}
.faq-category-link:nth-child(2) { --faq-link-accent: #d28aff; background: linear-gradient(160deg, #70439d, #25184a 72%); }
.faq-category-link:nth-child(3) { --faq-link-accent: #ffb967; background: linear-gradient(160deg, #a16c23, #49213c 75%); }
.faq-category-link:nth-child(4) { --faq-link-accent: #53f5b8; background: linear-gradient(160deg, #167a83, #083852 75%); }
.faq-category-link:nth-child(5) { --faq-link-accent: #ff8bc2; background: linear-gradient(160deg, #a13c6a, #401844 75%); }
.faq-category-link:hover { filter: brightness(1.22); transform: translateX(3px); box-shadow: inset 0 2px 3px #fffa, 0 5px 6px #000b, 0 0 17px var(--faq-link-accent); }
.faq-category-link[aria-current="true"] {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--faq-link-accent), inset 0 3px 6px #ffffff90, 0 0 22px var(--faq-link-accent);
    filter: brightness(1.18);
}
.faq-category-emoji { flex: 0 0 33px; font-size: 28px; text-align: center; filter: drop-shadow(0 2px 2px #000); }
.faq-category-label { font-size: clamp(16px, 1.12vw, 20px); line-height: 1.16; font-weight: 900; text-shadow: 0 2px 2px #000b; }
.faq-forum-reading {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
}
.faq-reading-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 34px;
}
.faq-breadcrumb { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.faq-current-forum {
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 800;
    color: #e0f6ff;
    text-shadow: 0 1px 2px #000;
}
.faq-theme-control { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.faq-theme-label { font-size: 13px; font-weight: 800; color: #fff; margin-right: 3px; }
.faq-theme-control button {
    cursor: pointer;
    border: 1px solid #5abffa;
    border-radius: 8px;
    padding: 6px 11px;
    font: bold 14px 'Trebuchet MS', sans-serif;
    background: linear-gradient(#184979, #061a3c);
    color: #fff;
    box-shadow: 0 1px 5px #0008;
}
.faq-theme-control button[aria-pressed="true"] {
    background: linear-gradient(#14a9f5, #0351a4);
    border-color: #b5f5ff;
    box-shadow: inset 0 1px 2px #fff8, 0 0 11px #00bbff;
}
.faq-reading-heading {
    min-height: 61px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
    border-radius: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.faq-reading-heading h4 {
    font: italic 800 clamp(23px, 2vw, 32px)/1.2 Georgia, 'Trebuchet MS', serif;
    color: #fff;
    text-shadow: 0 3px 2px #00142a, 0 0 9px #26c6ff;
    margin: 0;
}
.faq-reading-heading p { font-size: clamp(14px, 1vw, 17px); font-weight: 750; color: #e5f6ff; margin: 4px 0 0; }
.faq-reading-sheet {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 2px solid var(--faq-reading-border, #4ed9ff);
    border-radius: 14px;
    box-shadow: inset 0 0 6px #1fbaff99, 0 0 14px #02bdff88;
    scrollbar-width: thin;
    scrollbar-color: #2b9bef #1d293f;
    transition: background-color .2s, color .2s;
}
.faq-reading-sheet[data-faq-theme="light"] { background: #fff; color: #181c29; }
.faq-reading-sheet[data-faq-theme="dark"] { background: #07080b; color: #f3f6ff; }
.faq-reading-content {
    min-height: 100%;
    padding: clamp(12px, 1.2vw, 18px);
    font-size: clamp(18px, 1.3vw, 21px);
    line-height: 1.52;
}
.faq-simple-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #3a9ad2;
    border-left: 5px solid #09c9fa;
    border-radius: 11px;
    padding: 6px 11px;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.35;
    margin-bottom: 9px;
}
.faq-simple-notice span:first-child { font-size: 22px; }
.faq-reading-sheet[data-faq-theme="light"] .faq-simple-notice { background: #edf8ff; color: #285273; }
.faq-reading-sheet[data-faq-theme="dark"] .faq-simple-notice { background: #0e2035; color: #cee7ff; }
.faq-simple-actionbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 5px 0 11px; }
.faq-simple-list-heading { font: italic 800 clamp(20px, 1.6vw, 27px)/1.3 Georgia,serif; margin: 0; }
.faq-reading-sheet[data-faq-theme="light"] .faq-simple-list-heading { color: #174e87; }
.faq-reading-sheet[data-faq-theme="dark"] .faq-simple-list-heading { color: #a1e6ff; }
.faq-action-button {
    flex: 0 0 auto;
    min-height: 44px;
    border: 2px solid #a5edff;
    border-radius: 12px;
    padding: 8px 17px;
    color: #fff;
    background: linear-gradient(160deg, #259fea, #0752a8 65%, #082d70);
    box-shadow: inset 0 2px 2px #ffffff89, 0 4px 5px #0009, 0 0 12px #0cbeff99;
    font: 800 clamp(15px, 1vw, 18px) 'Trebuchet MS',sans-serif;
    text-shadow: 0 2px 2px #0008;
    cursor: pointer;
    transition: filter .16s ease, transform .16s ease;
}
.faq-action-button:hover { filter: brightness(1.22); transform: translateY(-1px); }
.faq-post-collapsed { cursor: pointer; transition: transform .17s ease, box-shadow .17s ease, filter .17s ease; }
.faq-post-collapsed:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 0 0 1px #ffffff33, 0 8px 18px #0007, 0 0 18px #00b7ff66; }
.faq-post-collapsed:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.faq-simple-post-openhint {
    padding: 0 15px 13px;
    font-size: 13px;
    font-weight: 800;
    color: #89dfff;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.faq-reading-sheet[data-faq-theme="light"] .faq-simple-post-openhint { color: #1769a8; }
.faq-single-post-toolbar { margin-top: 6px; }
.faq-single-post-toolbar .faq-action-button { min-width: 210px; }
.faq-single-post-wrapper { display: block; margin-top: 4px; }
.faq-post-expanded { width: 100%; }
.faq-post-expanded .faq-simple-post-title { font-size: clamp(24px, 1.7vw, 31px); }
.faq-post-expanded .faq-simple-post-text { font-size: clamp(19px, 1.28vw, 22px); line-height: 1.62; }
.faq-simple-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.faq-simple-post {
    --faq-post-accent: #28c7ff;
    overflow: hidden;
    border: 2px solid var(--faq-post-accent);
    border-radius: 17px;
    box-shadow: 0 0 0 1px #0002, 0 4px 13px #0004, 0 0 13px #00b7ff4e;
}
.faq-simple-post-1 { --faq-post-accent: #d77af9; }
.faq-simple-post-2 { --faq-post-accent: #ffb665; }
.faq-simple-post-3 { --faq-post-accent: #5af1b5; }
.faq-simple-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 13px;
    background: linear-gradient(100deg, #1f6cb5, #173578 67%, #10245a);
    border-bottom: 2px solid var(--faq-post-accent);
    color: #fff;
}
.faq-simple-post-1 .faq-simple-post-header { background: linear-gradient(100deg, #87389f, #331f68 70%); }
.faq-simple-post-2 .faq-simple-post-header { background: linear-gradient(100deg, #a2691c, #5a2948 70%); }
.faq-simple-post-3 .faq-simple-post-header { background: linear-gradient(100deg, #138a78, #133e6a 70%); }
.faq-simple-post-byline { display: flex; align-items: center; gap: 11px; min-width: 0; }
.faq-simple-post-avatar { font-size: 30px; }
.faq-simple-post-identity { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.faq-simple-post-identity strong { font-size: clamp(16px, 1.1vw, 19px); }
.faq-simple-post-identity small { font-size: clamp(12px, .85vw, 14px); color: #e2f5ff; }
.faq-simple-post-badge { flex: 0 0 auto; font-size: 12px; font-weight: 900; color: #032d53; background: #c8f7ff; border: 1px solid #fff; border-radius: 15px; padding: 5px 10px; }
.faq-simple-post-title { margin: 0; padding: 10px 15px 3px; font: 800 clamp(19px, 1.25vw, 24px)/1.25 'Trebuchet MS',sans-serif; }
.faq-simple-post-text { padding: 0 15px 15px; margin: 7px 0 0; font-size: clamp(16px, 1.02vw, 18px); line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.faq-reading-sheet[data-faq-theme="light"] .faq-simple-post { background: #fff; color: #19273b; }
.faq-reading-sheet[data-faq-theme="dark"] .faq-simple-post { background: #0c0c0f; color: #f4f6ff; }
.faq-reading-sheet[data-faq-theme="light"] .faq-simple-post-title { color: #163e77; }
.faq-reading-sheet[data-faq-theme="dark"] .faq-simple-post-title { color: #dff2ff; }
.faq-preview-wrapper { margin-bottom: 21px; }
.faq-preview-label { display: block; padding: 0 0 9px 4px; color: #e9a445; font-size: 16px; }
.faq-reading-sheet[data-faq-theme="light"] .faq-preview-label { color: #9f5600; }
.faq-simple-composer { margin: 3px 0 22px; padding: 18px; border: 2px solid #46dfff; border-radius: 16px; }
.faq-reading-sheet[data-faq-theme="light"] .faq-simple-composer { background: #f3f9ff; }
.faq-reading-sheet[data-faq-theme="dark"] .faq-simple-composer { background: #121f2e; }
.faq-simple-composer h5 { font: italic 800 clamp(21px, 1.6vw, 26px) Georgia,serif; margin: 0 0 8px; }
.faq-composer-tip { margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
.faq-composer-label { display: flex; flex-direction: column; gap: 7px; font-weight: 800; font-size: 17px; margin: 12px 0; }
.faq-composer-field {
    display: block;
    width: 100%;
    min-width: 0;
    border: 2px solid #40a6d6;
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    color: #182b45;
    font: 18px/1.35 'Trebuchet MS',sans-serif;
}
.faq-composer-textarea { resize: vertical; min-height: 115px; }
.faq-composer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.faq-action-button.faq-action-secondary { background: linear-gradient(#5b6b84, #2b3d56); border-color: #bccadb; }
.faq-reading-footer {
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #bfe9ff;
}
.faq-stage-label { color: #ffd994; }
@media (max-width: 1080px) {
    .faq-forum-columns { grid-template-columns: clamp(195px, 26%, 253px) minmax(0,1fr); gap: 9px; padding: 9px; }
    .faq-forum-sidebar { padding: 9px; }
    .faq-category-menu { gap: 10px; }
    .faq-category-link { padding: 8px; }
    .faq-category-label { font-size: 18px; }
}
@media (max-width: 740px) {
    body.faq-room-mode.faq-forum-open #main-chat > #faq-landing { padding: 6px 7px calc(var(--faq-input-height, 135px) + 7px) !important; }
    body.faq-room-mode.faq-forum-open .faq-section-button { min-height: 50px; font-size: 11px; padding: 4px; }
    body.faq-room-mode.faq-forum-open .faq-btn-symbol { font-size: 18px; margin-right: 3px; }
    body.faq-room-mode.faq-forum-open .faq-workspace { border-radius: 13px; }
    .faq-forum-titlebar { flex-basis: 74px; padding: 7px 93px 7px 8px; gap: 5px; }
    .faq-forum-titlebar::before { width: calc(100% - 118px); height: 54px; top: 8px; }
    .faq-forum-titlebar .faq-titlebar-current-forum { min-height: 52px; padding: 3px 6px; }
    .faq-forum-titlebar .faq-titlebar-current-forum h4 { font-size: 21px; }
    .faq-forum-titlebar .faq-titlebar-current-forum p { font-size: 13px; }
    .faq-return-home { min-width: 81px; min-height: 34px; right: 7px; font-size: 13px; }
    .faq-forum-columns { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overflow-x: hidden; }
    .faq-forum-sidebar { flex: 0 0 auto; height: auto; overflow: visible; min-height: auto; }
    .faq-menu-heading { min-height: 33px; font-size: 21px; line-height: 1.4; }
    .faq-category-menu { flex: 0 0 auto; min-height: max-content; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; overflow: visible; }
    .faq-category-link { min-height: 53px; padding: 7px; gap: 5px; }
    .faq-category-emoji { flex-basis: 24px; font-size: 23px; }
    .faq-category-label { font-size: 16px; }
    .faq-forum-reading { flex: 0 0 auto; min-height: 390px; }
    .faq-reading-sheet { flex: 0 0 auto; min-height: 270px; max-height: 60vh; }
    .faq-reading-content { padding: 12px; }
    .faq-reading-toolbar { flex-wrap: wrap; }
    .faq-breadcrumb { flex-basis: 100%; }
    .faq-theme-control { justify-content: flex-start; }
    .faq-simple-posts { grid-template-columns: 1fr; }
    .faq-single-post-toolbar .faq-action-button { min-width: 0; width: 100%; }
    .faq-simple-post-text { font-size: 18px; }
}
@media (max-width: 440px) {
    body.faq-room-mode.faq-forum-open .faq-landing-header h2 { font-size: 14px; }
    body.faq-room-mode.faq-forum-open .faq-heading-rule { margin-top: 3px; }
    body.faq-room-mode.faq-forum-open .faq-primary-nav { gap: 4px; margin-bottom: 7px; }
    body.faq-room-mode.faq-forum-open .faq-section-button { font-size: 10px; min-height: 54px; padding: 3px; }
    body.faq-room-mode.faq-forum-open .faq-btn-symbol { display: block; margin: 0 0 3px; font-size: 19px; }
    .faq-forum-titlebar::before { width: calc(100% - 105px); height: 50px; top: 9px; }
    .faq-forum-titlebar .faq-titlebar-current-forum h4 { font-size: 18px; }
    .faq-forum-titlebar .faq-titlebar-current-forum p { font-size: 12px; }
    .faq-category-menu { gap: 7px; }
    .faq-category-label { font-size: 15px; }
    .faq-simple-post-header { padding: 10px; }
    .faq-simple-post-badge { font-size: 10px; padding: 5px; }
    .faq-simple-post-title { padding: 13px 13px 3px; font-size: 21px; }
    .faq-simple-post-text { padding: 0 13px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-category-link, .faq-action-button { transition: none; }
}

/* ===== FAQ V6 : aperçu fixe en deux lignes, contenu complet uniquement ouvert =====
   Les positions et dimensions générales de la V4/V5 sont inchangées. */
#faq-forum-shell .faq-simple-posts { align-items: stretch; }
#faq-forum-shell .faq-post-collapsed {
    height: 235px;
    min-height: 235px;
    max-height: 235px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#faq-forum-shell .faq-post-collapsed .faq-simple-post-header {
    flex: 0 0 77px;
    min-height: 77px;
    overflow: hidden;
}
#faq-forum-shell .faq-post-collapsed .faq-simple-post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    flex: 0 0 auto;
    overflow: hidden;
    max-height: 3.2em;
    text-overflow: ellipsis;
}
#faq-forum-shell .faq-post-collapsed .faq-simple-post-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
    flex: 0 0 auto;
}
#faq-forum-shell .faq-post-collapsed .faq-simple-post-openhint {
    margin-top: auto;
    flex: 0 0 auto;
}
#faq-forum-shell .faq-post-expanded .faq-simple-post-text {
    display: block;
    white-space: pre-wrap;
    max-height: none;
    overflow: visible;
}
#faq-forum-shell .faq-inline-actions { display:flex;align-items:center;flex-wrap:wrap;gap:9px; }
#faq-forum-shell .faq-single-post-toolbar {align-items:center;}
#faq-forum-shell .faq-single-post-toolbar .faq-action-button {min-width:0;}
#faq-forum-shell .faq-action-danger {background:linear-gradient(#9c3d60,#64122d);border-color:#ffa2bc;}
#faq-forum-shell .faq-edit-colors {display:flex;gap:13px;flex-wrap:wrap;margin:12px 0;}
#faq-forum-shell .faq-edit-color-label {display:flex;gap:9px;align-items:center;font-size:16px;font-weight:800;}
#faq-forum-shell .faq-edit-color-label input {width:52px;height:39px;cursor:pointer;border:1px solid #64d5ff;border-radius:7px;}
#faq-forum-shell .faq-form-status {margin:9px 0;padding:8px 12px;font-weight:800;border:1px solid #f1b46b;border-radius:9px;color:#ffa64b;}
#faq-forum-shell .faq-thread-replies {margin-top:21px;}
#faq-forum-shell .faq-thread-replies h5 {font:italic bold clamp(19px,1.5vw,25px) Georgia,serif;margin:8px 0 12px;}
#faq-forum-shell .faq-thread-reply {border:1px solid #3788b9;border-left:4px solid #30c8f5;border-radius:12px;margin:12px 0;padding:13px 16px;background:rgba(102,154,210,.1);}
#faq-forum-shell .faq-thread-reply-head {display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
#faq-forum-shell .faq-thread-reply-head strong {font-size:17px;}
#faq-forum-shell .faq-thread-reply-head small {font-size:13px;opacity:.8;}
#faq-forum-shell .faq-thread-reply p {white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;line-height:1.55;font-size:clamp(17px,1.15vw,20px);}
#faq-forum-shell .faq-reply-empty {font-size:16px;opacity:.82;}
#faq-forum-shell .faq-mini-edit {margin-left:auto;padding:5px 9px;border:1px solid #8cd7ff;border-radius:8px;background:#20678d;color:#fff;font-weight:700;cursor:pointer;}
#faq-forum-shell .faq-mini-delete {margin-left:0;padding:5px 9px;border:1px solid #ff9cb6;border-radius:8px;background:#873358;color:#fff;font-weight:700;cursor:pointer;}
@media(max-width:740px) {
    #faq-forum-shell .faq-post-collapsed {height:238px;min-height:238px;max-height:238px;}
    #faq-forum-shell .faq-post-collapsed .faq-simple-post-header {flex-basis:72px;min-height:72px;}
    #faq-forum-shell .faq-inline-actions {width:100%;}
    #faq-forum-shell .faq-single-post-toolbar .faq-action-button {min-width:0;flex:1 1 auto;}
}

/* V9 — ACCUEIL FAQ UNIQUEMENT : ajustement vertical à 100 %.
   La mention est dans le flux flex, juste SOUS le grand encadrement.
   Aucune règle des vues forums n'est modifiée. */
body.faq-room-mode:not(.faq-forum-open) #main-chat > #faq-landing {
    overflow: hidden !important;
    /* Réserver la hauteur de la mention AU-DESSUS de la barre réelle. */
    padding: clamp(6px, 1.3vh, 17px) clamp(9px, 1.6vw, 25px)
             calc(var(--faq-input-height, 110px) + var(--faq-note-height, 32px) + 9px) !important;
}
body.faq-room-mode:not(.faq-forum-open) .faq-landing-header {
    margin-bottom: clamp(7px, 1.4vh, 16px);
}
body.faq-room-mode:not(.faq-forum-open) .faq-landing-header h2 {
    font-size: clamp(18px, min(2.65vw, 4.2vh), 43px);
    line-height: 1.15;
}
body.faq-room-mode:not(.faq-forum-open) .faq-heading-rule {
    margin-top: clamp(4px, .7vh, 9px);
}
body.faq-room-mode:not(.faq-forum-open) .faq-primary-nav {
    margin-bottom: clamp(9px, 1.5vh, 18px);
    gap: clamp(6px, 1.6vw, 20px);
}
body.faq-room-mode:not(.faq-forum-open) .faq-section-button {
    min-height: clamp(64px, 13.5vh, 122px);
    padding: clamp(5px, 1vh, 12px) 8px;
    font-size: clamp(11px, min(1.35vw, 2.25vh), 21px);
}
body.faq-room-mode:not(.faq-forum-open) .faq-section-button .faq-btn-symbol {
    font-size: clamp(24px, 4vh, 40px);
    margin-bottom: clamp(3px, .6vh, 7px);
}
body.faq-room-mode:not(.faq-forum-open) .faq-workspace {
    flex: 1 1 0px;
    min-height: 0;
    height: auto;
    container-type: size;
}
/* Les lettres du filigrane dépendent de la hauteur réellement disponible
   dans leur propre cadre : impossible de dépasser la bordure basse. */
body.faq-room-mode:not(.faq-forum-open) .faq-watermark {
    padding: clamp(7px, 1.1vh, 20px);
    gap: clamp(2px, 1.1cqh, 12px);
}
body.faq-room-mode:not(.faq-forum-open) .faq-watermark-question {
    font-size: clamp(35px, min(18vw, 40cqh), 175px);
    line-height: .85;
}
body.faq-room-mode:not(.faq-forum-open) .faq-watermark-title {
    max-width: 100%;
    font-size: clamp(16px, min(5.1vw, 19cqh), 78px);
    line-height: 1.12;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}
/* V10 : la mention appartient physiquement à la BARRE D’ÉCRITURE,
   pas au panneau FAQ (qui la coupait dans la vraie interface).
   "bottom:100%" la place toujours juste AU-DESSUS de cette barre. */
body.faq-room-mode:not(.faq-forum-open) #main-chat #message-input-container > .faq-compatibility-note {
    display: block !important;
    position: absolute !important;
    inset: auto 0 calc(100% + 5px) 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 1px 8px !important;
    background: transparent !important;
    border: 0 !important;
    text-align: center !important;
    color: #c4e6f7 !important;
    font: 700 clamp(16px, 1.48vw, 20px)/1.36 'Trebuchet MS', Arial, sans-serif !important;
    text-shadow: 0 1px 2px #000b !important;
    pointer-events: none !important;
    z-index: 3 !important;
}
body.faq-room-mode.faq-forum-open #main-chat #message-input-container > .faq-compatibility-note,
body:not(.faq-room-mode) #main-chat #message-input-container > .faq-compatibility-note {
    display: none !important;
}
@media (max-width: 540px) {
    body.faq-room-mode:not(.faq-forum-open) .faq-primary-nav {
        gap: 6px;
        margin-bottom: clamp(7px, 1.5vh, 12px);
    }
    body.faq-room-mode:not(.faq-forum-open) .faq-section-button {
        min-height: clamp(61px, 12vh, 96px);
        padding: 5px 3px 7px;
        font-size: clamp(10px, 2.7vw, 13px);
        border-radius: 12px;
    }
    body.faq-room-mode:not(.faq-forum-open) .faq-section-button .faq-btn-symbol {
        font-size: clamp(20px, 3.8vh, 26px);
        margin-bottom: 3px;
    }
    body.faq-room-mode:not(.faq-forum-open) .faq-landing-header h2 {
        font-size: clamp(17px, 5.1vw, 25px);
        line-height: 1.13;
    }
    body.faq-room-mode:not(.faq-forum-open) .faq-workspace { border-radius: 16px; }
    body.faq-room-mode:not(.faq-forum-open) #main-chat #message-input-container > .faq-compatibility-note {
        font-size: clamp(15px, 3.85vw, 17px) !important;
        line-height: 1.36 !important;
        padding: 1px 4px !important;
    }
}
@media (max-height: 650px) {
    body.faq-room-mode:not(.faq-forum-open) .faq-landing-header { margin-bottom: 6px; }
    body.faq-room-mode:not(.faq-forum-open) .faq-primary-nav { margin-bottom: 7px; }
    body.faq-room-mode:not(.faq-forum-open) .faq-heading-rule { height: 2px; }
}

/* FAQ V12 : information de lecture seule (sans changement de disposition). */
#faq-forum-shell .faq-locked-status {
    margin: 6px 0 11px;
    padding: 8px 11px;
    border-left: 4px solid #ffc676;
    background: rgba(232, 165, 67, .10);
    color: #ffdb9c;
    font-size: clamp(15px, 1vw, 17px);
    font-weight: 800;
    line-height: 1.35;
}
#faq-reading-sheet[data-faq-theme="light"] .faq-locked-status { color: #865112; background: #fff7e9; }

/* FAQ V13 : volet Salons ouvert, volet Connectés rétracté ;
   aucune barre de saisie/chat à la base de la FAQ. */
body.faq-room-mode #chat-container #main-chat #message-input-container {
    display: none !important;
}
body.faq-room-mode #main-chat > #faq-landing {
    padding-bottom: 9px !important;
}
body.faq-room-mode:not(.faq-forum-open) #main-chat > #faq-landing {
    padding-bottom: calc(var(--faq-note-height, 45px) + 16px) !important;
}
body.faq-room-mode.faq-forum-open #main-chat > #faq-landing {
    padding-bottom: 9px !important;
}
/* La phrase garde son emplacement : sous l'encadrement, dans la FAQ,
   et n'est plus dépendante d'une barre d'écriture désormais masquée. */
body.faq-room-mode:not(.faq-forum-open) #main-chat > #faq-landing > .faq-compatibility-note {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 9px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
    color: #c4e6f7 !important;
    font: 700 clamp(16px, 1.48vw, 20px)/1.36 'Trebuchet MS', Arial, sans-serif !important;
    text-shadow: 0 1px 2px #000b !important;
    pointer-events: none !important;
    z-index: 3 !important;
}
body.faq-room-mode.faq-forum-open #faq-landing > .faq-compatibility-note,
body:not(.faq-room-mode) #faq-landing > .faq-compatibility-note {
    display: none !important;
}
/* La hauteur de la FAQ reste libre quand le volet gauche reste visible. */
body.faq-room-mode #chat-container #main-chat { min-width: 0 !important; }
#faq-forum-shell .faq-author-claim {
    display: flex; align-items: center; gap: 10px; padding: 11px;
    border: 1px solid #6cc9ff; border-radius: 11px; font-size: 16px;
    background: rgba(64, 144, 198, .14); cursor: pointer;
}
#faq-forum-shell .faq-author-claim input { width: 21px; height: 21px; flex: 0 0 auto; }
@media(max-width: 540px) {
    body.faq-room-mode:not(.faq-forum-open) #main-chat > #faq-landing > .faq-compatibility-note {
        font-size: clamp(15px, 3.85vw, 17px) !important;
        line-height: 1.36 !important;
        padding: 1px 4px !important;
    }
}

/* FAQ V14 – Décisions administratives sur SUJET OUVERT uniquement.
   Aucun changement de largeur, hauteur ni disposition des aperçus V4 validés. */
#faq-forum-shell .faq-decision-controls {
    display:flex;flex-wrap:wrap;align-items:center;gap:7px 9px;
    margin:6px 0 14px;padding:11px 12px;
    border:1px solid rgba(131,201,247,.65);border-radius:13px;
    background:linear-gradient(130deg,rgba(23,56,103,.75),rgba(10,18,47,.95));
    box-shadow:inset 0 1px 3px #ffffff19;
}
#faq-forum-shell .faq-decision-controls-label {
    margin-right:8px;color:#e6f8ff;font:bold 16px 'Trebuchet MS',Arial,sans-serif;
}
#faq-forum-shell .faq-decision-choice {
    min-height:37px;padding:7px 10px;border:1px solid #85c3f1;border-radius:9px;
    color:#f9fdff;background:linear-gradient(#305b85,#142c51);
    box-shadow:inset 0 1px 1px #ffffff55,0 2px 4px #0008;
    font:800 14px 'Trebuchet MS',Arial,sans-serif;cursor:pointer;
}
#faq-forum-shell .faq-decision-choice:hover {filter:brightness(1.22);}
#faq-forum-shell .faq-decision-choice:focus-visible {outline:3px solid white;outline-offset:2px;}
#faq-forum-shell .faq-decision-choice-rejected {border-color:#ff777b;background:linear-gradient(#a93140,#641627);}
#faq-forum-shell .faq-decision-choice-study,
#faq-forum-shell .faq-decision-choice-testing {border-color:#ffd46b;background:linear-gradient(#a56a22,#6d3718);}
#faq-forum-shell .faq-decision-choice-accepted {border-color:#8af2af;background:linear-gradient(#289866,#14664c);}
#faq-forum-shell .faq-decision-choice-implemented {border-color:#b8ff81;background:linear-gradient(120deg,#117651,#269b64,#70ab27);}
#faq-forum-shell .faq-decision-choice[aria-pressed="true"] {
    outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 18px #ffffff77,inset 0 2px 3px #ffffff66;
}
#faq-forum-shell .faq-post-expanded .faq-decision-banner {
    box-sizing:border-box;position:relative;isolation:isolate;width:100%;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    min-height:86px;gap:5px;margin:12px 0 15px;padding:15px 13px;
    color:white;text-align:center;border-block:3px solid rgba(255,255,255,.67);
    box-shadow:0 7px 12px #0007, inset 0 2px 9px #ffffff4a;
    text-shadow:0 2px 3px #0009,0 0 15px #0006;
    background:linear-gradient(102deg,#bb1e2a,#ff344c 45%,#980c29);
}
#faq-forum-shell .faq-decision-banner-title {
    display:block;font:900 clamp(23px,2.8vw,38px)/1.18 'Trebuchet MS','Segoe UI',Arial,sans-serif;
    letter-spacing:.055em;overflow-wrap:anywhere;
}
#faq-forum-shell .faq-decision-banner-note {
    display:block;color:#f9fff6;font:800 clamp(14px,1.25vw,19px)/1.3 'Trebuchet MS',Arial,sans-serif;
}
#faq-forum-shell .faq-post-expanded .faq-decision-banner.faq-decision-study,
#faq-forum-shell .faq-post-expanded .faq-decision-banner.faq-decision-testing {background:linear-gradient(105deg,#ae5414,#f8a821 42%,#cb6510);}
#faq-forum-shell .faq-post-expanded .faq-decision-banner.faq-decision-accepted {background:linear-gradient(105deg,#157948,#39b961 50%,#0d7746);}
#faq-forum-shell .faq-post-expanded .faq-decision-banner.faq-decision-implemented {
    border-color:#c8ff9d;
    background:linear-gradient(112deg,#08644a 0%,#20935c 28%,#63be4e 53%,#0c8259 78%,#a0be2a 100%);
    box-shadow:0 7px 12px #0007,0 0 17px #3fe89b8f,inset 0 2px 9px #ffffff75;
}
@media(max-width:740px){
    #faq-forum-shell .faq-decision-controls {gap:7px;padding:8px;}
    #faq-forum-shell .faq-decision-choice {font-size:13px;min-height:37px;flex:1 1 auto;}
    #faq-forum-shell .faq-decision-banner-title {font-size:clamp(19px,5.5vw,29px);letter-spacing:.02em;}
    #faq-forum-shell .faq-decision-banner-note {font-size:14px;}
}

/* FAQ V15 — Correction millimétrée de l'espacement sous le sous-titre.
   La hauteur des panneaux, la grille, les boutons et le défilement ne changent pas.
   Ce bandeau est commun à la liste des sujets et au sujet ouvert. */
body.faq-room-mode.faq-forum-open #faq-forum-shell .faq-forum-titlebar .faq-titlebar-current-forum {
    transform: translateY(-5px);
}
body.faq-room-mode.faq-forum-open #faq-forum-shell .faq-forum-titlebar .faq-titlebar-current-forum p {
    text-shadow: 0 1px 2px rgba(0,0,0,.68), 0 0 4px rgba(80,205,255,.28);
}

/* FAQ V16 — mention colorée au-dessus du point d'interrogation, ACCUEIL UNIQUEMENT.
   Superposition ABSOLUE dans le cadre existant : zéro impact sur sa hauteur,
   celle des boutons, du salon, du titre principal et sur le défilement. */
.faq-home-browser-notice { display: none; }
body.faq-room-mode:not(.faq-forum-open) #faq-workspace > .faq-home-browser-notice {
    display: flex;
    position: absolute;
    top: clamp(14px, 8cqh, 62px);
    left: 5%;
    right: 5%;
    z-index: 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    pointer-events: none;
    text-align: center;
    font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
}
body.faq-room-mode:not(.faq-forum-open) .faq-home-browser-notice > strong {
    display: block;
    max-width: 100%;
    margin: 0;
    font-size: clamp(18px, min(2.2vw, 6cqh), 35px);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: .005em;
    color: #75edff;
    background: linear-gradient(100deg, #65e8ff 8%, #a8e1ff 37%, #dcaaff 68%, #ffd584 94%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 8px rgba(56, 164, 255, .22));
}
body.faq-room-mode:not(.faq-forum-open) .faq-home-browser-notice > span {
    display: block;
    max-width: 100%;
    margin: 0;
    color: #e5f4ff;
    font-size: clamp(12px, min(1.3vw, 3cqh), 18px);
    font-weight: 750;
    line-height: 1.15;
    text-shadow: 0 1px 3px #000, 0 0 7px rgba(60, 177, 255, .26);
}
@media (max-width: 540px) {
    body.faq-room-mode:not(.faq-forum-open) #faq-workspace > .faq-home-browser-notice {
        top: clamp(12px, 5cqh, 25px);
        left: 5%;
        right: 5%;
        gap: 2px;
    }
    body.faq-room-mode:not(.faq-forum-open) .faq-home-browser-notice > strong {
        font-size: clamp(15px, min(4.25vw, 5.5cqh), 20px);
        line-height: 1.13;
    }
    body.faq-room-mode:not(.faq-forum-open) .faq-home-browser-notice > span {
        font-size: clamp(11px, min(3.15vw, 3.3cqh), 14px);
        line-height: 1.16;
    }
}

/* V17 – visibilité admin. Aucune dimension ou disposition interne modifiée.
   On ne garde aucun emplacement vide quand une grande rubrique est masquée. */
#faq-landing .faq-section-button[hidden] { display:none !important; }
body.faq-room-mode #faq-landing .faq-primary-nav[data-faq-visible="1"] {
    grid-template-columns: minmax(0,1fr);
    width: min(420px,100%);
}
body.faq-room-mode #faq-landing .faq-primary-nav[data-faq-visible="2"] {
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: min(840px,100%);
}
body.faq-room-mode.faq-forum-open #faq-landing .faq-primary-nav[data-faq-visible="1"] { width:min(350px,100%); }
body.faq-room-mode.faq-forum-open #faq-landing .faq-primary-nav[data-faq-visible="2"] { width:min(700px,100%); }
.faq-forums-empty {
    text-align:center;
    margin:30px auto;
    padding:18px 12px;
    color:inherit;
    font-size:clamp(18px,1.3vw,22px);
    font-weight:800;
}

/* Ne pas dévoiler une rubrique momentanément lors du chargement initial. */
#faq-landing .faq-primary-nav:not([data-faq-loaded="true"]) .faq-section-button { display:none !important; }

/* V18 — Charte d'entrée obligatoire : superposition indépendante de la FAQ.
   Ne modifie AUCUNE dimension ni aucun encadrement validés en V17. */
.faq-charter-overlay[hidden] { display:none !important; }
body.faq-charter-pending #faq-landing { visibility:hidden !important; }
.faq-charter-overlay {
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    background:rgba(1,7,23,.88);
    backdrop-filter:blur(7px);
    overflow:auto;
    box-sizing:border-box;
    font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif;
}
.faq-charter-dialog {
    width:min(760px,100%);
    max-height:calc(100dvh - 32px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:2px solid #63ddff;
    border-radius:22px;
    color:#f5faff;
    background:linear-gradient(155deg,#102752,#08152e 75%,#071027);
    box-shadow:0 0 30px #00b8ff88,0 24px 65px #000c,inset 0 0 22px #14549c66;
}
.faq-charter-heading {
    padding:18px 18px 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    background:linear-gradient(100deg,#12539f,#532b99,#174c95);
    border-bottom:2px solid #7be7ff;
    text-align:center;
}
.faq-charter-heading span {font-size:34px;}
.faq-charter-heading h2 {
    margin:0;
    color:#fff;
    font:bold clamp(21px,3vw,32px)/1.18 'Trebuchet MS',sans-serif;
    text-shadow:0 2px 3px #02102a,0 0 16px #59e3ff;
}
.faq-charter-content {
    min-height:0;
    overflow-y:auto;
    padding:14px 25px;
    font-size:clamp(16px,1.45vw,20px);
    line-height:1.48;
}
.faq-charter-content p {margin:9px 0 13px;}
.faq-charter-content strong {color:#b4eeff;}
.faq-charter-content .faq-charter-warning {
    color:#ffe0b4;
    background:rgba(148,76,19,.23);
    border-left:5px solid #ffc35f;
    border-radius:9px;
    padding:12px 15px;
}
.faq-charter-check {
    display:flex;
    align-items:center;
    gap:13px;
    margin:0 20px 4px;
    padding:13px;
    border-radius:11px;
    border:1px solid #3ed4ff;
    background:#0d3963;
    font-size:clamp(15px,1.3vw,19px);
    font-weight:bold;
    cursor:pointer;
}
.faq-charter-check input {width:23px;height:23px;flex:0 0 auto;accent-color:#36db9b;cursor:pointer;}
.faq-charter-status {min-height:18px;margin:6px 20px;color:#ffd48d;font-size:13px;text-align:center;}
.faq-charter-actions {display:flex;justify-content:space-between;gap:12px;padding:5px 20px 20px;}
.faq-charter-actions button {
    min-height:46px;
    padding:9px 15px;
    border:2px solid #91e5ff;
    border-radius:12px;
    color:white;
    font-size:clamp(14px,1.4vw,18px);
    font-weight:900;
    text-shadow:0 1px 2px #000;
    cursor:pointer;
    box-shadow:inset 0 2px 3px #fff8,0 0 13px #11baff88;
}
.faq-charter-confirm {background:linear-gradient(#23bb8d,#08745e);}
.faq-charter-decline {background:linear-gradient(#9a4d6b,#59203d);}
.faq-charter-actions button:disabled {cursor:not-allowed;opacity:.43;filter:grayscale(.4);box-shadow:none;}
@media(max-width:520px) {
  .faq-charter-overlay {padding:7px;}
  .faq-charter-dialog {max-height:calc(100dvh - 14px);border-radius:14px;}
  .faq-charter-heading {padding:12px;gap:7px;}
  .faq-charter-heading span {font-size:26px;}
  .faq-charter-content {padding:8px 13px;font-size:15px;line-height:1.35;}
  .faq-charter-content p {margin:6px 0 10px;}
  .faq-charter-check {margin:0 10px;padding:10px;font-size:14px;gap:8px;}
  .faq-charter-status {margin:4px 10px;font-size:12px;}
  .faq-charter-actions {padding:5px 10px 12px;gap:8px;}
  .faq-charter-actions button {font-size:13px;padding:7px;min-height:42px;flex:1;}
}


/* FAQ V20 — Illustration 3D dans le GRAND CADRE EXISTANT, accueil uniquement.
   Aucun changement des tailles, marges, bordures, flex ou hauteur de page.
   Large écran : image complète ajustée à toute la surface (sans bandes vides).
   Cadre portrait : proportions conservées et fond assorti dans les marges.
   Les anciens textes restent disponibles en secours si le fichier ne charge pas. */
#faq-workspace .faq-welcome-artwork { display: none; }
body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready .faq-watermark {
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
    background-color: #141a54;
}
body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready .faq-watermark::before {
    content: '';
    position: absolute;
    inset: -16px;
    z-index: 0;
    background: url('faq-accueil-3d.webp?v=20261121-faq20') center center / cover no-repeat;
    filter: blur(19px) brightness(.76) saturate(1.12);
    pointer-events: none;
}
body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready .faq-welcome-artwork {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
    pointer-events: none;
    user-select: none;
}
body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready .faq-watermark-question,
body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready .faq-watermark-title,
body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready > .faq-home-browser-notice {
    display: none !important;
}

/* L'affiche panoramique ne doit pas être étirée verticalement dans un cadre
   très étroit : on privilégie sa lisibilité entière en mode portrait. */
@container (max-aspect-ratio: 1/1) {
    body.faq-room-mode:not(.faq-forum-open) #faq-workspace.faq-artwork-ready .faq-welcome-artwork {
        object-fit: contain;
    }
}

/* V21 : compteur discret sur le salon, sans changer les dimensions des colonnes. */
/* Badge nouveau contenu : prioritaire sur le compteur de personnes et les thèmes.
   Position absolue, aucun changement dans la hauteur de la ligne de salon. */
#room-list li.faq-room-has-new {position:relative!important;}
#room-list li[data-room-name] > .faq-room-new-badge,
#mobile-room-list li[data-room-name] > .faq-room-new-badge {
    display:flex!important;align-items:center!important;justify-content:center!important;
    position:absolute!important;right:1px!important;top:-4px!important;
    z-index:100!important;pointer-events:none!important;
    width:auto!important;min-width:23px!important;height:23px!important;
    margin:0!important;padding:0 5px!important;flex:none!important;
    border:2px solid #fff!important;border-radius:999px!important;
    background:#e01e34!important;color:#fff!important;
    font:900 12px/1 Arial,sans-serif!important;letter-spacing:0!important;
    box-sizing:border-box!important;opacity:1!important;visibility:visible!important;
    text-align:center!important;box-shadow:0 1px 7px #52000099,0 0 10px #ff405e9c!important;
}
#mobile-room-list li[data-room-name] {position:relative;}
.faq-move-form {margin:9px 0 13px!important;}
.faq-move-form select.faq-composer-field {font-size:16px;max-width:100%;}

/* FAQ V22 — création de sujets sous les consignes, sans modifier la grille
   ni la hauteur fixe des vignettes explicatives. */
#faq-forum-shell .faq-new-topic-area {
    display:flex; align-items:center; flex-wrap:wrap; gap:12px;
    margin:18px 0 5px; padding:12px 14px;
    border:1px solid rgba(50,190,255,.48); border-radius:13px;
    background:linear-gradient(115deg,rgba(17,75,130,.33),rgba(32,25,83,.23));
}
#faq-forum-shell .faq-new-topic-hint { flex:1 1 240px; font-size:15px; line-height:1.4; }
#faq-forum-shell .faq-new-topic-guest { margin:15px 2px; font-size:14px; opacity:.85; }
#faq-reading-sheet[data-faq-theme="light"] .faq-new-topic-hint { color:#164a70; }
#faq-reading-sheet[data-faq-theme="dark"] .faq-new-topic-hint { color:#c2edff; }
@media (max-width:740px){
    #faq-forum-shell .faq-new-topic-area { padding:10px; gap:8px; }
    #faq-forum-shell .faq-new-topic-area .faq-action-button { width:100%; }
    #faq-forum-shell .faq-new-topic-hint { flex-basis:100%; font-size:14px; }
}

/* V23 : demandes et réponses visibles seulement dans la consigne ouverte.
   Aucun changement de taille du cadre principal ni des trois vignettes. */
#faq-forum-shell .faq-forum-discussions {margin:22px 0 8px;padding:15px;border:1px solid #35bcf4;border-radius:15px;background:rgba(35,116,177,.10);}
#faq-forum-shell .faq-forum-discussions-head {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:7px;}
#faq-forum-shell .faq-forum-discussions-head h5 {margin:0;font:italic 800 clamp(19px,1.5vw,26px)/1.25 Georgia,serif;}
#faq-forum-shell .faq-forum-discussions-tip {font-size:clamp(15px,1vw,18px);line-height:1.45;opacity:.9;margin:5px 0 16px;}
#faq-forum-shell .faq-forum-topic-link {display:block;width:100%;padding:13px 16px;margin:10px 0;border:1px solid #4ecfff;border-left:5px solid #38bcf9;border-radius:12px;background:rgba(36,116,184,.11);color:inherit;text-align:left;cursor:pointer;box-shadow:0 2px 6px #0003;}
#faq-forum-shell .faq-forum-topic-link:nth-of-type(3n) {border-left-color:#ffa651;}
#faq-forum-shell .faq-forum-topic-link:hover,#faq-forum-shell .faq-forum-topic-link:focus-visible {border-color:#fff;box-shadow:0 0 12px #20bfff8c;outline-offset:2px;}
#faq-forum-shell .faq-forum-topic-heading {display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;}
#faq-forum-shell .faq-forum-topic-heading strong {font-size:clamp(18px,1.25vw,23px);}
#faq-forum-shell .faq-forum-topic-count {font-size:13px;font-weight:800;}
#faq-forum-shell .faq-forum-topic-link small {display:block;margin-top:6px;font-size:14px;opacity:.85;}
#faq-forum-shell .faq-forum-topic-link p {margin:7px 0 0;font-size:clamp(16px,1.1vw,19px);overflow-wrap:anywhere;}
@media(max-width:740px){#faq-forum-shell .faq-forum-discussions {padding:10px;}#faq-forum-shell .faq-forum-discussions-head .faq-action-button {width:100%;}}

/* ===== FAQ V27 : médias d'entraide, sans toucher aux colonnes ni aux badges ===== */
#faq-forum-shell .faq-media-picker,
#faq-forum-shell .faq-media-existing-form {
    display:flex;flex-direction:column;gap:9px;margin:12px 0;
    padding:12px;border:1px solid #46c7fa;border-radius:12px;
    background:rgba(30,126,193,.09);box-sizing:border-box;min-width:0;
}
#faq-forum-shell .faq-media-existing-form[hidden] {display:none!important;}
#faq-forum-shell .faq-media-picker-title {font-weight:800;font-size:16px;}
#faq-forum-shell .faq-media-picker-buttons {display:flex;gap:8px;flex-wrap:wrap;}
#faq-forum-shell .faq-media-picker-button {
    flex:1 1 125px;min-width:0;cursor:pointer;border-radius:9px;
    background:linear-gradient(145deg,#246dd4,#053168);border:1px solid #71d8ff;
    box-shadow:0 2px 5px #0005;color:white;font-size:15px;font-weight:750;
    padding:11px 9px;text-align:center;
}
#faq-forum-shell .faq-media-picker-button:hover,
#faq-forum-shell .faq-media-picker-button:focus-visible {box-shadow:0 0 10px #20bfff;outline:2px solid #fff;}
#faq-forum-shell .faq-media-picker-help {font-size:13px;opacity:.83;line-height:1.4;}
#faq-forum-shell .faq-media-picker-selected {display:flex;flex-wrap:wrap;gap:5px;}
#faq-forum-shell .faq-media-picker-chip {
    display:flex;align-items:center;max-width:100%;min-width:0;gap:9px;
    font-size:13px;color:inherit;padding:5px 8px;border:1px solid #7ab2d8;
    border-radius:9px;overflow-wrap:anywhere;background:rgba(100,150,200,.09);
}
#faq-forum-shell .faq-media-picker-remove {cursor:pointer;border:0;border-radius:50%;background:#a51930;color:white;font-size:18px;font-weight:bold;min-width:23px;height:23px;}
#faq-forum-shell .faq-media-progress {font-size:14px;font-weight:bold;color:#189fea;}
#faq-forum-shell .faq-media-strip {
    display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;
    padding:7px 0;margin:8px 0;min-height:0;
}
#faq-forum-shell .faq-media-strip:empty {display:none;}
#faq-forum-shell .faq-media-tile-wrap {position:relative;width:112px;max-width:31%;flex:0 0 auto;}
#faq-forum-shell .faq-media-tile {
    width:100%;height:99px;display:flex;align-items:center;justify-content:center;
    flex-direction:column;gap:4px;cursor:pointer;border:2px solid #58c8ff;
    border-radius:11px;background:linear-gradient(155deg,#111a3d,#24376b);color:white;
    overflow:hidden;box-shadow:0 3px 8px #0006;padding:3px;
}
#faq-forum-shell .faq-media-tile:hover {border-color:white;box-shadow:0 0 10px #00c0ff;}
#faq-forum-shell .faq-media-tile-image {width:100%;height:69px;object-fit:contain;display:block;border-radius:5px;}
#faq-forum-shell .faq-media-tile-placeholder {display:block;font-size:35px;line-height:1.3;}
#faq-forum-shell .faq-media-tile-label {font-size:12px;font-weight:800;white-space:nowrap;}
#faq-forum-shell .faq-media-remove {
    position:absolute;top:-7px;right:-7px;z-index:1;cursor:pointer;
    border:1px solid white;border-radius:50%;background:#c5223e;color:white;
    font-weight:900;width:23px;height:23px;
}
#faq-forum-shell .faq-media-add-existing {margin:10px 0;}
#faq-forum-shell .faq-media-existing-form {margin-top:7px;}
/* Visionneuse hors du cadre du chat : elle ne change pas la hauteur des salons. */
.faq-media-overlay[hidden] {display:none!important;}
.faq-media-overlay {
    position:fixed;inset:0;z-index:2147483100;
    background:rgba(0,4,17,.94);backdrop-filter:blur(5px);
    display:flex;align-items:center;justify-content:center;
    padding:min(2.5vh,16px) min(2vw,18px);box-sizing:border-box;
    overflow:hidden!important;
}
.faq-media-dialog {
    width:min(98vw,1700px);height:min(96dvh,1050px);max-width:100%;max-height:100%;
    box-sizing:border-box;display:flex;flex-direction:column;gap:6px;
    min-height:0;min-width:0;overflow:hidden;
    color:#effaff;background:#060c21;border:2px solid #55d7ff;
    border-radius:15px;box-shadow:0 0 22px #00b9ff8c;
}
.faq-media-dialog-toolbar {
    display:flex;align-items:center;gap:10px;padding:9px 12px;
    min-height:44px;flex:0 0 auto;box-sizing:border-box;
    color:white;font:800 clamp(14px,1.6vw,21px) Trebuchet MS,Arial,sans-serif;
}
.faq-media-dialog-counter {font-size:14px;margin-left:auto;white-space:nowrap;}
.faq-media-close {
    cursor:pointer;flex:0 0 auto;padding:9px 13px;border:1px solid #f4afb8;
    background:linear-gradient(#bd304b,#81172c);color:white;
    border-radius:9px;font-weight:900;font-size:14px;
}
.faq-media-stage {
    flex:1 1 0;min-height:0;min-width:0;position:relative;
    display:flex;align-items:center;justify-content:center;
    overflow:hidden!important;padding:4px clamp(34px,4vw,62px);
    box-sizing:border-box;
}
.faq-media-full-image,.faq-media-player {
    display:block;max-width:100%;max-height:100%;width:auto;height:auto;
    object-fit:contain;min-width:0;min-height:0;
}
.faq-media-player {width:100%;height:100%;max-width:100%;max-height:100%;background:#000;}
.faq-media-loading {font-size:19px;color:#aeeeff;}
.faq-media-arrow {
    position:absolute;top:50%;transform:translateY(-50%);z-index:2;
    cursor:pointer;border:1px solid #83ebff;border-radius:8px;
    background:#074b86db;color:white;font-size:clamp(24px,3vw,40px);
    width:clamp(31px,4vw,50px);height:70px;
}
.faq-media-prev {left:3px;}.faq-media-next {right:3px;}
.faq-media-dialog-filmstrip {
    flex:0 0 auto;min-height:0;display:flex;justify-content:center;
    align-items:center;gap:6px;flex-wrap:nowrap;overflow:hidden;
    padding:0 6px 9px;
}
.faq-media-dialog-filmstrip:empty {display:none;}
.faq-media-film-thumb {
    flex:0 1 67px;min-width:0;height:48px;display:flex;align-items:center;
    justify-content:center;overflow:hidden;cursor:pointer;border:2px solid #326797;
    border-radius:7px;color:#fff;background:#102345;
}
.faq-media-film-thumb.is-selected {border-color:#fff;box-shadow:0 0 8px #2dd8ff;}
.faq-media-film-thumb img {max-width:100%;max-height:100%;object-fit:contain;}
@media (max-width:600px) {
    .faq-media-dialog {height:97dvh;width:99vw;border-radius:9px;}
    .faq-media-dialog-toolbar {padding:6px;min-height:37px;}
    .faq-media-close {padding:7px 8px;}
    .faq-media-stage {padding:4px 31px;}
    .faq-media-arrow {height:48px;}
    .faq-media-dialog-filmstrip {gap:3px;}
    .faq-media-film-thumb {height:36px;}
}

/* FAQ V29 — suivi des nouveautés jusqu'au sujet concerné.
   Aucun changement des dimensions des cartes et des colonnes.
   Badge présent seulement pour l'administration ; pas d'observation DOM. */
#faq-landing .faq-trail-badge {
    position: absolute;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    box-sizing: border-box;
    border: 2px solid #fff4f4;
    border-radius: 999px;
    background: linear-gradient(155deg, #ff5964, #df152a 58%, #980014);
    color: white;
    font: 900 13px/1 Arial, sans-serif;
    text-shadow: 0 1px 2px #47000c;
    box-shadow: 0 2px 5px #0009, 0 0 10px #ff263fb0;
    pointer-events: none;
    white-space: nowrap;
}
#faq-landing .faq-section-button > .faq-trail-badge {
    top: -9px;
    right: -7px;
}
#faq-category-menu .faq-category-link { position: relative; }
#faq-category-menu .faq-category-link > .faq-trail-badge {
    top: -7px;
    right: -6px;
}
#faq-category-menu .faq-category-link.faq-has-trail { padding-right: 26px; }
#faq-reading-content .faq-simple-post[data-faq-guide-id] { position: relative; }
#faq-reading-content .faq-simple-post[data-faq-guide-id] > .faq-trail-badge {
    bottom: 6px;
    right: 9px;
}
#faq-reading-content .faq-simple-post[data-faq-guide-id].faq-has-trail .faq-simple-post-openhint {
    padding-right: 45px;
}
#faq-reading-content .faq-forum-topic-link { position: relative; }
#faq-reading-content .faq-forum-topic-link > .faq-trail-badge {
    top: -7px;
    right: -6px;
}
#faq-reading-content .faq-forum-topic-link.faq-has-trail .faq-forum-topic-heading {
    padding-right: 18px;
}
@media (max-width: 540px) {
    #faq-landing .faq-section-button > .faq-trail-badge {
        top: -7px;
        right: -4px;
    }
    #faq-landing .faq-trail-badge {
        min-width: 22px;
        height: 22px;
        padding: 0 4px;
        border-width: 1px;
        font-size: 11px;
    }
}

/* FAQ V30 : nombre PERMANENT de discussions sur les trois vignettes ;
   distinct des chiffres rouges réservés au personnel. */
#faq-forum-shell .faq-post-collapsed {position:relative;}
#faq-forum-shell .faq-public-topic-count {
    position:absolute;right:9px;bottom:8px;z-index:1;
    display:inline-flex;align-items:center;justify-content:center;
    max-width:calc(100% - 18px);padding:3px 9px;
    border:1px solid rgba(177,246,255,.9);border-radius:999px;
    color:#fff;font-size:11px;line-height:1.3;font-weight:800;
    background:linear-gradient(125deg,#156db6,#6b3cb4);
    box-shadow:0 1px 7px #0008;
    pointer-events:none;
}
#faq-forum-shell .faq-post-collapsed .faq-simple-post-openhint {padding-right:92px;}
#faq-forum-shell .faq-announce-salon-option {
    display:flex;align-items:flex-start;gap:10px;
    margin:10px 0 9px;padding:10px 12px;
    border:1px solid rgba(48,201,240,.6);border-radius:10px;
    background:rgba(11,99,146,.13);cursor:pointer;
}
#faq-forum-shell .faq-announce-salon-option input {width:21px;height:21px;flex:0 0 21px;accent-color:#1faddd;cursor:pointer;}
#faq-forum-shell .faq-announce-salon-copy {display:flex;flex-direction:column;gap:3px;color:inherit;}
#faq-forum-shell .faq-announce-salon-copy span {font-weight:800;}
#faq-forum-shell .faq-announce-salon-copy small {font-size:12px;line-height:1.35;opacity:.85;}
/* Message de bot dans le salon : bouton discret, à côté du texte d'annonce. */
.faq-chat-direct-button {display:block;margin:8px 0 3px;padding:7px 12px;
    color:#fff;background:linear-gradient(130deg,#0876a9,#3455a5);
    border:1px solid #76dfff;border-radius:9px;font-family:inherit;font-size:13px;font-weight:700;line-height:1.3;
    cursor:pointer;box-shadow:0 2px 8px #0005;}
.faq-chat-direct-button:hover {filter:brightness(1.2);}
.faq-chat-direct-button:focus-visible {outline:2px solid #ffdf80;outline-offset:2px;}

/* FAQ V32 : les commandes sur fichiers sont réservées au mode Modifier. */
#faq-forum-shell .faq-media-edit-panel {
    margin: 12px 0 16px;
    padding: 10px 13px;
    border: 1px solid rgba(56,192,255,.6);
    border-radius: 11px;
    background: rgba(32,92,146,.1);
}
#faq-forum-shell .faq-media-edit-panel h5,
#faq-forum-shell .faq-media-edit-panel h6 {
    margin: 0 0 6px;
    font-size: 16px;
}

/* FAQ V33 : création d'onglets et ajustement du nombre de blocs, admin uniquement. */
#faq-forum-shell .faq-add-tab-button {
    width: 100%; min-height: 45px; flex: 0 0 auto;
    color: #fff; background: linear-gradient(145deg,#2569a6,#39246f);
    border: 2px dashed #8cdaff; border-radius: 13px;
    font: 800 15px/1.2 'Trebuchet MS',sans-serif;
    cursor: pointer; box-shadow: 0 0 9px #38bdf866;
}
#faq-forum-shell .faq-add-tab-button:hover {filter:brightness(1.2)}
#faq-forum-shell .faq-admin-forum-form,
#faq-forum-shell .faq-guide-count-form {
    padding: 10px; border-radius: 13px;
    background: linear-gradient(150deg,#1b3d6a,#221b4e);
    border: 1px solid #83d9ff; color: #fff;
    box-shadow: 0 0 12px #00adff52;
}
#faq-forum-shell .faq-admin-forum-form {flex:0 0 auto;}
#faq-forum-shell .faq-admin-forum-form h5 {font-size:16px;margin:0 0 8px;}
#faq-forum-shell .faq-admin-forum-form .faq-composer-label,
#faq-forum-shell .faq-guide-count-form .faq-composer-label {font-size:13px;margin:8px 0;}
#faq-forum-shell .faq-admin-forum-form .faq-composer-field,
#faq-forum-shell .faq-guide-count-form .faq-composer-field {font-size:15px;padding:7px;}
#faq-forum-shell .faq-admin-forum-form .faq-action-button {padding:7px;font-size:12px;min-height:36px;}
#faq-forum-shell .faq-admin-forum-help {font-size:13px;line-height:1.4;margin:8px 0;}
#faq-forum-shell .faq-simple-posts[data-guide-count="1"] {grid-template-columns:repeat(3,minmax(0,1fr));}
#faq-forum-shell .faq-simple-posts[data-guide-count="1"] > .faq-simple-post:first-child {grid-column:2;}
#faq-forum-shell .faq-simple-posts[data-guide-count="2"] {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:740px){
    #faq-forum-shell .faq-simple-posts[data-guide-count="1"],
    #faq-forum-shell .faq-simple-posts[data-guide-count="2"] {grid-template-columns:1fr;}
    #faq-forum-shell .faq-simple-posts[data-guide-count="1"] > .faq-simple-post:first-child {grid-column:auto;}
    #faq-forum-shell .faq-admin-forum-form {grid-column:1/-1;}
    #faq-forum-shell .faq-add-tab-button {min-height:45px;}
}

/* Nouveaux posts : badge de sujets lisible et environ deux fois plus large/haut. */
#faq-forum-shell .faq-post-collapsed {
    height: 300px; min-height: 300px; max-height: none;
}
#faq-forum-shell .faq-public-topic-count {
    min-width: 154px; min-height: 43px; box-sizing: border-box;
    padding: 8px 14px; right: 10px; bottom: 9px;
    font-size: 16px; line-height: 1.15; font-weight: 900;
    border-width: 2px;
}
#faq-forum-shell .faq-post-collapsed .faq-simple-post-openhint {
    padding-right: 12px; padding-bottom: 66px;
}
