/* Forums (Phorum 6, template faireconstruire) à la charte A4.
   Chargée après Bootstrap 3 (grille, icônes, form-control) et fcc.css (variables, en-tête, pied). */

body.forum { background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 16px; line-height: 1.5; }
.forum-principal a { color: var(--brique); }
.forum-principal a:hover { color: var(--brique-fonce); }
body.forum h1, body.forum h2, body.forum h3 { font-family: var(--police); }

/* Bandeau sombre sous l'en-tête */
.bandeau-forum { padding-bottom: 32px; }
.bandeau-forum-titre { padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.bandeau-forum h1 { font-size: 40px; }
.bandeau-forum .chapo a { color: var(--brique-clair); }

/* Colonne principale + publicité verticale */
.forum-grille { padding-top: 32px; }
.forum-principal { min-width: 0; }
/* Publicités dans les discussions */
.forum-annonce { clear: both; margin: 20px auto; max-width: 970px; text-align: center; }
/* pas d'annonce disponible : on ne garde pas l'espace réservé */
.forum-annonce ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
/* Message aux utilisateurs de bloqueur de publicité (js/fcc.js) */
.aab { background: var(--brique); color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; }
.forum-charte { font-size: 14px; margin: 24px 0 0; }
.pageCount { display: inline-block; font-size: 14px; color: var(--secondaire); margin-bottom: 8px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hideOverflow { overflow: hidden; }

/* Barres de navigation (liens, pagination) */
.PhorumNavBlock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 0; font-size: 15px; }
.PhorumNavBlock.text-right { justify-content: flex-end; }
.PhorumNavHeading { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.PhorumNavLink { color: var(--brique); font-weight: 600; text-decoration: none; }
a.PhorumNavLink:hover { text-decoration: underline; }
span.PhorumNavLink { color: var(--texte); }
.PhorumNavBlock span.PhorumNavLink strong { display: inline-flex; min-width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: var(--sombre); color: #FFF; }
.button-primary, a.button-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--brique); color: #FFF !important; border-radius: 8px; padding: 8px 14px; text-decoration: none !important; }
.button-primary:hover { background: var(--brique-fonce); }
.button-primary a, .button-primary a:hover { color: #FFF !important; text-decoration: none; }
.PhorumFloatingText.button-primary { margin: 16px auto 0; display: inline-flex; padding: 10px 18px; font-weight: 600; }

/* Accueil du forum : cartes des forums */
.indexMsg { margin-top: 8px; }
.indexMsg .forum { margin-bottom: 24px; }
.forum-container { position: relative; height: 100%; min-height: 210px; background: var(--surface); border-radius: var(--rayon); padding: 28px 28px 64px; }
.forum-container .forum-name > a { display: block; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--texte); text-decoration: none; margin-bottom: 10px; }
.forum-container .forum-name > a:hover { color: var(--brique); }
.first-word { font-weight: 700; }
.forum-container .forum-name p { margin: 10px 0 0; font-size: 15px; color: var(--secondaire); line-height: 1.5; }
.forum-last-post, .forum-posts { font-size: 14px; color: var(--secondaire); }
.forum-posts { position: absolute; left: 28px; bottom: 24px; }
.forum-go { position: absolute; right: 24px; bottom: 18px; font-size: 26px; color: var(--brique); }
.indexMsg .folder .forum-name a { font-size: 20px; font-weight: 700; }
.PhorumNewFlag { color: var(--brique); font-weight: 700; }

/* Liste des sujets */
.PhorumTableRow, .PhorumTableRowAlt { background: var(--surface); border-top: 1px solid var(--filet); padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.PhorumNavBlock + .PhorumTableRow, .row + .PhorumTableRow { border-top: 0; }
.threadSubject { color: var(--texte) !important; font-size: 17px; font-weight: 600; text-decoration: none; }
.threadSubject:hover { color: var(--brique) !important; }
.newThreadSubject { font-weight: 700; }
.thSubCont .PhorumListSubjPrefix, .PhorumListSubjPrefix { color: var(--brique); font-size: 13px; font-weight: 700; }
.PhorumListPageLink, .PhorumListModLink { display: block; font-size: 13px; color: var(--secondaire); margin-top: 4px; }
.lastPost, .threadCount { color: var(--secondaire); font-size: 14px; }
.lastPost a { color: var(--secondaire); }

/* Départements dans les sujets : pastille (brique par défaut) */
span[class^="dpt"] { display: inline-block; background: var(--brique); color: #FFF; border: 0; border-radius: 4px; padding: 0 6px; margin-right: 4px; font-size: 0.8em; font-weight: 700; line-height: 1.6; vertical-align: 0.1em; }

/* Départements : une couleur par département, reprise de l'ancien forum */
span.dpt01 { background: #41A85F; } span.dpt02 { background: #00A885; } span.dpt03 { background: #3D8EB9; } span.dpt04 { background: #2969B0; }
span.dpt05 { background: #553982; } span.dpt06 { background: #475577; } span.dpt07 { background: #F37934; } span.dpt08 { background: #D14841; }
span.dpt09 { background: #B8312F; } span.dpt10 { background: #1ABC9C; } span.dpt11 { background: #2C82C9; } span.dpt12 { background: #9365B8; }
span.dpt13 { background: #EB6B56; } span.dpt14 { background: #A38F84; } span.dpt15 { background: #54ACD2; } span.dpt16 { background: #E25041; }
span.dpt17 { background: #41A85F; } span.dpt18 { background: #00A885; } span.dpt19 { background: #3D8EB9; } span.dpt20 { background: #2969B0; }
span.dpt21 { background: #F37934; } span.dpt22 { background: #D14841; } span.dpt23 { background: #B8312F; } span.dpt24 { background: #1ABC9C; }
span.dpt25 { background: #2C82C9; } span.dpt26 { background: #9365B8; } span.dpt27 { background: #EB6B56; } span.dpt28 { background: #A38F84; }
span.dpt29 { background: #54ACD2; } span.dpt2a { background: #2969B0; } span.dpt2b { background: #2969B0; } span.dpt30 { background: #E25041; }
span.dpt31 { background: #41A85F; } span.dpt32 { background: #00A885; } span.dpt33 { background: #3D8EB9; } span.dpt34 { background: #2969B0; }
span.dpt35 { background: #553982; } span.dpt36 { background: #475577; } span.dpt37 { background: #F37934; } span.dpt38 { background: #D14841; }
span.dpt39 { background: #B8312F; } span.dpt40 { background: #1ABC9C; } span.dpt41 { background: #2C82C9; } span.dpt42 { background: #9365B8; }
span.dpt43 { background: #EB6B56; } span.dpt44 { background: #A38F84; } span.dpt45 { background: #54ACD2; } span.dpt46 { background: #E25041; }
span.dpt47 { background: #41A85F; } span.dpt48 { background: #00A885; } span.dpt49 { background: #3D8EB9; } span.dpt50 { background: #2969B0; }
span.dpt51 { background: #553982; } span.dpt52 { background: #475577; } span.dpt53 { background: #F37934; } span.dpt54 { background: #D14841; }
span.dpt55 { background: #B8312F; } span.dpt56 { background: #1ABC9C; } span.dpt57 { background: #2C82C9; } span.dpt58 { background: #9365B8; }
span.dpt59 { background: #54ACD2; } span.dpt60 { background: #A38F84; } span.dpt61 { background: #54ACD2; } span.dpt62 { background: #E25041; }
span.dpt63 { background: #41A85F; } span.dpt64 { background: #00A885; } span.dpt65 { background: #3D8EB9; } span.dpt66 { background: #2969B0; }
span.dpt67 { background: #553982; } span.dpt68 { background: #475577; } span.dpt69 { background: #F37934; } span.dpt70 { background: #D14841; }
span.dpt71 { background: #B8312F; } span.dpt72 { background: #1ABC9C; } span.dpt73 { background: #2C82C9; } span.dpt74 { background: #9365B8; }
span.dpt75 { background: #EB6B56; } span.dpt76 { background: #A38F84; } span.dpt77 { background: #54ACD2; } span.dpt78 { background: #E25041; }
span.dpt79 { background: #41A85F; } span.dpt80 { background: #00A885; } span.dpt81 { background: #3D8EB9; } span.dpt82 { background: #2969B0; }
span.dpt83 { background: #553982; } span.dpt84 { background: #475577; } span.dpt85 { background: #F37934; } span.dpt86 { background: #D14841; }
span.dpt87 { background: #B8312F; } span.dpt88 { background: #1ABC9C; } span.dpt89 { background: #2C82C9; } span.dpt90 { background: #9365B8; }
span.dpt91 { background: #3D8EB9; } span.dpt92 { background: #A38F84; } span.dpt93 { background: #54ACD2; } span.dpt94 { background: #E25041; }
span.dpt95 { background: #41A85F; } span.dpt971 { background: #41A85F; } span.dpt972 { background: #00A885; } span.dpt973 { background: #00A885; }
span.dpt974 { background: #3D8EB9; } span.dpt975 { background: #2969B0; } span.dpt976 { background: #553982; }

/* Pseudos : pastilles de couleurs sobres pour distinguer les auteurs d'un fil */
span[class^="usr"] { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 10px; border-radius: 999px; color: #FFF; font-size: 14px; font-weight: 600; background: var(--secondaire); }
.usr0, .usr8 { background: #B5372B !important; }
.usr1, .usr9 { background: #3A3836 !important; }
.usr2, .usra { background: #7A5C3E !important; }
.usr3, .usrb { background: #5F5C57 !important; }
.usr4, .usrc { background: #93291F !important; }
.usr5, .usrd { background: #4F5B57 !important; }
.usr6, .usre { background: #8C5246 !important; }
.usr7, .usrf { background: #1E1D1C !important; }

/* Lecture d'un sujet */
.PhorumReadMessageBlock { clear: both; background: var(--surface); border-radius: var(--rayon); margin-bottom: 16px; overflow: hidden; }
.PhorumReadMessageBlock .PhorumStdBlock { background: transparent; border: 0; padding: 24px 28px 8px; }
.PhorumReadMessageBlock .author { text-align: right; }
.PhorumReadBodyHead.pdate { font-size: 13px; color: var(--secondaire); margin-top: 8px; }
.PhorumReadBodySubject h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--texte); }
.PhorumReadBodySubject h1 span[class^="dpt"] { font-size: 0.6em; vertical-align: 0.3em; }
.PhorumReadBodyHead { font-size: 15px; }
.PhorumReadBodyText { font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.PhorumReadBodyText img { max-width: 100%; height: auto; }
.PhorumReadBodyText blockquote, .PhorumReadBodyText .bbcode_quote { margin: 12px 0; padding: 12px 18px; border-left: 4px solid var(--filet); background: var(--fond); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--secondaire); }
.PhorumReadNavBlock { border-top: 1px solid var(--filet); padding: 10px 28px; font-size: 15px; }
.PhorumReadNavBlock .row { margin: 0; }
.moderateNavBlock { font-size: 13px; }
.moderateNavBlock .PhorumNavLink { font-weight: 500; margin-right: 10px; }
.unapproved { background: var(--alerte-fond); color: var(--alerte-texte); padding: 10px 28px; }
.sn-sharer { float: right; display: flex; gap: 4px; }
.sn-sharer a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: var(--fond); color: var(--secondaire); }
.sn-sharer a:hover { background: var(--brique); color: #FFF; }
.fliph { transform: scaleX(-1); }

/* Blocs génériques (formulaires, profil, MP, panneau de contrôle) */
.PhorumStdBlockHeader { background: var(--surface); border-radius: var(--rayon) var(--rayon) 0 0; padding: 24px 28px 8px; font-weight: 700; font-size: 18px; border: 0; }
.PhorumStdBlock { background: var(--surface); border: 0; padding: 20px 28px; }
.PhorumStdBlockHeader + .PhorumStdBlock { border-radius: 0 0 var(--rayon) var(--rayon); }
.PhorumNarrowBlock { max-width: 820px; margin-left: auto; margin-right: auto; text-align: left; }
.PhorumHeaderText { color: var(--texte); }
.PhorumFloatingText { padding: 8px 0; }
.PhorumStdRow { background: var(--surface); border-radius: var(--rayon); padding-top: 20px; padding-bottom: 20px; }
.PhorumUserError { background: var(--alerte-fond); color: var(--alerte-texte); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.PhorumOkMsg { background: #E7F2EA; color: #1F5A35; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.PhorumNotificationArea { background: var(--surface); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; flex-direction: column; align-items: flex-start; }
.PhorumSubmit, input.PhorumSubmit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--brique); color: #FFF; font: 600 16px var(--police); cursor: pointer; }
.PhorumSubmit:hover { background: var(--brique-fonce); }
body.forum .form-control { height: 46px; border: 1px solid var(--secondaire); border-radius: 8px; box-shadow: none; font: 16px var(--police); color: var(--texte); }
body.forum textarea.form-control { height: auto; min-height: 220px; line-height: 1.55; }
body.forum .form-control:focus { border-color: var(--brique); box-shadow: 0 0 0 2px var(--brique-pale); }
body.forum .col-form-label { padding-top: 12px; font-weight: 600; }
body.forum .form-group { margin-bottom: 16px; }

/* Tableaux (MP, panneau de contrôle, recherche) */
.PhorumStdTable { width: 100%; background: var(--surface); border-collapse: collapse; border-radius: 12px; overflow: hidden; }
.PhorumTableHeader { background: var(--fond); padding: 10px 14px; font-size: 14px; font-weight: 600; text-align: left; }
.PhorumStdTable td { padding: 12px 14px; border-top: 1px solid var(--filet); }
.PhorumFormTable td { padding: 6px 8px 6px 0; }
#phorum-menu ul, #phorum-menu dl { list-style: none; padding: 0; margin: 0 0 16px; }
#phorum-menu li a, #phorum-menu dd a { display: block; padding: 6px 0; color: var(--texte); text-decoration: none; }
#phorum-menu li a:hover, #phorum-menu dd a:hover, #phorum-menu .phorum-current-page { color: var(--brique); font-weight: 600; }
#phorum-menu .PhorumNavHeading, #phorum-menu dt { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--secondaire); text-transform: uppercase; letter-spacing: 0.04em; }
.PhorumShortText { color: var(--secondaire); font-size: 14px; padding-top: 4px; }
.PhorumSmallFont { font-size: 14px; }
.PhorumLargeFont { font-size: 20px; }

@media (max-width: 991px) {
  .forum-grille { padding-top: 20px; }
}
@media (max-width: 760px) {
  .bandeau-forum h1 { font-size: 30px; }
  .forum-container { min-height: 0; }
  .PhorumReadMessageBlock .author { text-align: left; margin-bottom: 8px; }
  .PhorumReadMessageBlock .PhorumStdBlock, .PhorumReadNavBlock { padding-left: 18px; padding-right: 18px; }
  .PhorumReadBodySubject h1 { font-size: 24px; }
}
