/* FORUM - CSS SPÉCIFIQUE (registre clair, cartes) */

.forum-wrap {
width: 100%;
max-width: 1020px;
margin: 0 auto 4rem;
padding: 1.75rem 1.5rem 2.25rem;
background: #f2efe9;
border-radius: 18px;
color: #1e293b;
}
.forum-wrap--read {
max-width: 1020px;
}

.forum-loading,
.forum-empty {
color: #64748b;
font-size: 0.95rem;
padding: 1.5rem 0;
text-align: center;
}
.forum-empty--thread {
text-align: left;
padding: 1rem 0;
}

/* Bandeau de forum : recherche + session au niveau de la page */
.forum-masthead {
width: 100%;
max-width: 1020px;
margin: 0 auto 1.1rem;
padding: 0 1.5rem;
}
.forum-masthead-in {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
}
.forum-masthead .forum-account-out {
color: #cbd5e1;
}
.forum-masthead .forum-account-out:hover {
color: #c89b3c;
}

/* Barres d'outils */
.forum-toolbar {
display: flex;
justify-content: flex-end;
margin: 0 0 1.1rem;
}
.forum-toolbar--list {
justify-content: flex-end;
margin-bottom: 0.8rem;
}
.forum-tool-link {
font-size: 0.85rem;
font-weight: 600;
color: #8b6914;
text-decoration: none;
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 999px;
padding: 0.45rem 1rem;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}
.forum-tool-link:hover {
border-color: #c89b3c;
}
.forum-search {
flex: 1 1 auto;
max-width: 340px;
}
.forum-search-input {
width: 100%;
font-family: 'Inter', sans-serif;
font-size: 0.88rem;
color: #1e293b;
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 999px;
padding: 0.45rem 1.1rem;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}
.forum-search-input::placeholder {
color: #64748b;
}
.forum-search-input:focus {
outline: none;
border-color: #c89b3c;
box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.18);
}
.forum-search-head {
font-size: 0.85rem;
color: #64748b;
margin: 0 0 0.7rem;
}
/* Compte membre */
.forum-account {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.forum-account-chip {
display: inline-flex;
align-items: center;
gap: 0.45rem;
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 999px;
padding: 0.25rem 0.8rem 0.25rem 0.3rem;
font-size: 0.85rem;
font-weight: 600;
color: #1e293b;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}
.forum-account-ava {
width: 26px;
height: 26px;
font-size: 0.6rem;
}
.forum-account-out {
background: none;
border: none;
padding: 0;
font-family: 'Inter', sans-serif;
font-size: 0.78rem;
color: #64748b;
cursor: pointer;
}
.forum-account-out:hover {
color: #a97e22;
}
.forum-account-card {
background: #fff;
border-radius: 13px;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
padding: 1.1rem 1.2rem 1.2rem;
margin: 0.9rem 0 1.4rem;
}
.forum-account-card form {
display: flex;
flex-direction: column;
gap: 0.7rem;
}
.forum-account-title {
margin: 0;
font-family: 'Playfair Display', serif;
font-size: 1.05rem;
font-weight: 600;
color: #1e293b;
}
.forum-account-opt {
display: flex;
align-items: baseline;
gap: 0.45rem;
font-size: 0.82rem;
color: #475569;
margin-top: 0.6rem;
}
.forum-account-card .forum-form-note {
margin: 0;
}
.forum-input--locked {
background: #f1ede4;
color: #64748b;
}
.forum-rank--membre {
color: #475569;
border-color: rgba(71, 85, 105, 0.4);
}
.forum-propose-par {
margin: 0.35rem 0 0;
padding-left: 1.2rem;
font-size: 0.8rem;
color: #64748b;
}
#forum-search-results {
margin-bottom: 2rem;
}
.forum-sort {
font-family: 'Inter', sans-serif;
font-size: 0.85rem;
font-weight: 500;
color: #8b6914;
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 999px;
padding: 0.4rem 0.9rem;
cursor: pointer;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}
.forum-sort:focus {
outline: none;
border-color: #c89b3c;
}

/* Hub : colonne des rubriques + liste unique */
.forum-layout {
display: grid;
grid-template-columns: 210px minmax(0, 1fr);
gap: 1.8rem;
align-items: start;
}
.forum-side {
display: flex;
flex-direction: column;
gap: 0.15rem;
font-size: 0.9rem;
position: sticky;
top: 90px;
}
.forum-side-link {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.5rem 0.75rem;
border-radius: 9px;
color: #475569;
text-decoration: none;
font-weight: 500;
}
.forum-side-link:hover {
color: #1e293b;
}
.forum-side-link--on {
background: #fff;
color: #1e293b;
font-weight: 600;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.06);
}
.forum-side-n {
margin-left: auto;
font-size: 0.74rem;
color: #64748b;
font-weight: 500;
}
.forum-side-dot {
width: 10px;
height: 10px;
border-radius: 3px;
flex: 0 0 auto;
}
.forum-side-dot--all { background: #94a3b8; }
.forum-side-dot--education { background: #3d7ea6; }
.forum-side-dot--communication { background: #6b7280; }
.forum-side-dot--musique { background: #a8607a; }
.forum-side-dot--generation125 { background: #c8102e; }
.forum-side-dot--apropos { background: #c89b3c; }
.forum-side-link--open {
color: #1e293b;
font-weight: 600;
}
.forum-side-subs {
display: flex;
flex-direction: column;
gap: 0.1rem;
margin: 0.15rem 0 0.45rem 1.05rem;
padding-left: 0.45rem;
border-left: 2px solid #e2ddd2;
}
.forum-side-subs--education { border-color: rgba(61, 126, 166, 0.5); }
.forum-side-subs--communication { border-color: rgba(107, 114, 128, 0.5); }
.forum-side-subs--musique { border-color: rgba(168, 96, 122, 0.5); }
.forum-side-subs--generation125 { border-color: rgba(200, 16, 46, 0.45); }
.forum-side-subs--apropos { border-color: rgba(200, 155, 60, 0.55); }
.forum-side-link--sub {
font-size: 0.84rem;
padding: 0.32rem 0.6rem;
}
.forum-side-link--doc {
margin-top: 0.6rem;
padding-top: 0.65rem;
border-top: 1px solid #e2ddd2;
border-radius: 0;
color: #8b6914;
font-size: 0.84rem;
}
.forum-side-link--doc:hover {
color: #a97e22;
}
.forum-new-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #c89b3c;
margin-right: 0.45rem;
vertical-align: middle;
}
.forum-side-new {
margin-left: 0.4rem;
font-size: 0.68rem;
font-weight: 700;
color: #fff;
background: #c89b3c;
border-radius: 999px;
padding: 0.05rem 0.4rem;
}

/* Auteur et rang */
.forum-author {
color: #475569;
}
.forum-author--admin {
color: #a97e22;
font-weight: 600;
}
.forum-rank {
display: inline-block;
margin-left: 0.4rem;
font-size: 0.66rem;
font-weight: 600;
letter-spacing: 0.03em;
text-transform: uppercase;
color: #8b6914;
border: 1px solid rgba(139, 105, 20, 0.4);
border-radius: 4px;
padding: 0.05rem 0.35rem;
vertical-align: middle;
}
.forum-stats {
margin: 1.75rem 0 0.3rem;
padding-top: 1rem;
border-top: 1px solid #e2ddd2;
font-size: 0.82rem;
color: #64748b;
text-align: center;
}
.forum-legend {
margin: 0;
font-size: 0.8rem;
color: #64748b;
text-align: center;
}

/* Titres de sections (voisins) */
.forum-cat-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 1rem;
font-family: 'Playfair Display', serif;
font-size: 1.25rem;
font-weight: 600;
color: #1e293b;
margin: 0 0 0.55rem;
}

/* Fil d'Ariane */
.forum-bc-sep {
margin: 0 0.45rem;
opacity: 0.4;
}

/* Listes de sujets : cartes */
.forum-topics {
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.forum-topic {
display: flex;
align-items: center;
gap: 0.9rem;
padding: 0.8rem 1.1rem;
background: #fff;
border: 1px solid rgba(30, 41, 59, 0.04);
border-radius: 13px;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
color: #1e293b;
text-decoration: none;
transition: border-color 0.2s ease;
}
.forum-topic:hover {
border-color: #c89b3c;
}
.forum-topic:hover .forum-topic-q {
color: #a97e22;
}
.forum-topic-ava {
flex: 0 0 auto;
}
.forum-topic-main {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: 0.18rem;
min-width: 0;
}
.forum-topic-q {
font-size: 0.96rem;
font-weight: 600;
transition: color 0.2s ease;
}
.forum-topic-sub {
font-size: 0.79rem;
line-height: 1.4;
color: #64748b;
}
.forum-topic-cols {
display: flex;
align-items: center;
gap: 1.4rem;
flex: 0 0 auto;
}
.forum-topic-rep {
text-align: center;
font-size: 0.68rem;
color: #64748b;
min-width: 52px;
}
.forum-topic-rep b {
display: block;
font-size: 0.95rem;
color: #1e293b;
font-weight: 600;
}
.forum-topic-rep--live b {
color: #a97e22;
}
.forum-topic-rep--none {
font-size: 0.85rem;
color: #cbc6ba;
}
.forum-back-list {
margin: 2rem 0 0;
text-align: center;
font-size: 0.85rem;
}
.forum-back-list a {
color: #8b6914;
text-decoration: none;
font-weight: 600;
}
.forum-back-list a:hover {
color: #a97e22;
}
.forum-more--topics {
margin: 0.9rem 0 0;
}

/* Pastilles de rubrique */
.forum-badge {
display: inline-block;
flex: 0 0 auto;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.02em;
padding: 0.18rem 0.6rem;
border-radius: 999px;
white-space: nowrap;
}
.forum-badge--education {
color: #2a5a7a;
background: rgba(61, 126, 166, 0.13);
}
.forum-badge--communication {
color: #3a3a3e;
background: rgba(107, 114, 128, 0.14);
}
.forum-badge--musique {
color: #7c3a52;
background: rgba(168, 96, 122, 0.13);
}
.forum-badge--generation125 {
color: #a00d25;
background: rgba(200, 16, 46, 0.1);
}
.forum-badge--apropos {
color: #8b6914;
background: rgba(200, 155, 60, 0.16);
}

/* Avatars */
.forum-avatar {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 50%;
background: #2a4858;
color: #faf8f5;
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.forum-avatar--admin {
background: linear-gradient(135deg, #c89b3c, #a97e22);
color: #fff;
}
/* Couleur d'avatar stable derivee du pseudo */
.forum-avatar--c0 { background: #2a4858; }
.forum-avatar--c1 { background: #4a2a3a; }
.forum-avatar--c2 { background: #2f4a35; }
.forum-avatar--c3 { background: #6b3a2a; }
.forum-avatar--c4 { background: #3a3a5e; }
.forum-avatar--c5 { background: #2a5850; }
.forum-avatar--c6 { background: #5a4a22; }
.forum-avatar--c7 { background: #44506a; }

/* Fil : flux plat + reglette */
.forum-thread-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 180px;
gap: 2.2rem;
align-items: start;
}
.forum-thread {
display: flex;
flex-direction: column;
}
.forum-post {
display: flex;
gap: 0.9rem;
padding: 1.15rem 0.35rem;
border-top: 1px solid #e2ddd2;
color: #1e293b;
}
.forum-post--opening {
background: #fbf7ee;
border: none;
border-left: 3px solid #c89b3c;
border-radius: 13px;
padding: 1.15rem 1.2rem;
margin-bottom: 0.5rem;
}
.forum-replies .forum-post:first-child {
border-top: none;
}
.forum-post-side {
flex: 0 0 auto;
}
.forum-post-main {
flex: 1 1 auto;
min-width: 0;
}
.forum-post-head {
display: flex;
align-items: baseline;
gap: 0.6rem;
margin-bottom: 0.3rem;
}
.forum-post-author {
font-weight: 600;
font-size: 0.95rem;
}
.forum-post-date {
font-size: 0.75rem;
color: #64748b;
}
.forum-post-text {
margin: 0;
font-size: 0.98rem;
line-height: 1.55;
white-space: pre-wrap;
word-wrap: break-word;
}
.forum-post-text a {
color: #8b6914;
font-weight: 600;
text-decoration: none;
word-break: break-all;
}
.forum-post-text a:hover {
color: #a97e22;
}
.forum-post-img {
display: block;
max-width: 100%;
height: auto;
border-radius: 10px;
border: 1px solid #e2ddd2;
margin: 0.55rem 0;
}
.forum-replies {
display: flex;
flex-direction: column;
}
.forum-replies-head {
font-family: 'Playfair Display', serif;
font-size: 1.05rem;
color: #1e293b;
margin: 1.4rem 0 0.4rem;
}
.forum-more {
align-self: flex-start;
margin: 0.9rem 0 0;
font-size: 0.85rem;
font-weight: 600;
color: #8b6914;
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 999px;
padding: 0.45rem 1.1rem;
cursor: pointer;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}
.forum-more:hover {
border-color: #c89b3c;
}

/* Reglette de fil */
.forum-rail {
position: sticky;
top: 110px;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
padding-left: 1rem;
border-left: 2px solid #e2ddd2;
}
.forum-rail-btn {
display: inline-block;
background: linear-gradient(135deg, #c89b3c, #a97e22);
color: #fff;
font-size: 0.88rem;
font-weight: 600;
text-decoration: none;
border-radius: 999px;
padding: 0.5rem 1.2rem;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.12);
}
.forum-rail-btn:hover {
filter: brightness(1.06);
}
.forum-rail-link {
background: none;
border: none;
padding: 0;
font-family: 'Inter', sans-serif;
font-size: 0.82rem;
color: #64748b;
cursor: pointer;
}
.forum-rail-link:hover {
color: #a97e22;
}
.forum-rail-pos {
margin: 0;
padding-left: 0.65rem;
border-left: 3px solid #c89b3c;
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.forum-rail-pos b {
font-size: 0.86rem;
color: #1e293b;
}
.forum-rail-pos span {
font-size: 0.76rem;
color: #64748b;
}

/* Sujets voisins */
.forum-related {
margin-top: 2.2rem;
}

/* Page Comment fonctionne le forum */
.forum-doc {
display: flex;
flex-direction: column;
gap: 0.9rem;
}
.forum-doc-card {
background: #fff;
border-radius: 13px;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
padding: 1.2rem 1.4rem 1.3rem;
}
.forum-doc-title {
font-family: 'Playfair Display', serif;
font-size: 1.15rem;
font-weight: 600;
color: #1e293b;
margin: 0 0 0.55rem;
}
.forum-doc-card p {
margin: 0;
font-size: 0.95rem;
line-height: 1.6;
color: #475569;
}
.forum-doc-card ul {
margin: 0.5rem 0 0;
padding-left: 1.2rem;
font-size: 0.95rem;
line-height: 1.6;
color: #475569;
}
.forum-doc-card li {
margin-top: 0.3rem;
}
.forum-doc-card a {
color: #8b6914;
font-weight: 600;
text-decoration: none;
}
.forum-doc-card a:hover {
color: #a97e22;
}

/* Participer */
.forum-participate {
margin-top: 2.25rem;
background: #fff;
border-radius: 13px;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
padding: 1.3rem 1.4rem 1.5rem;
}
.forum-participate-title {
font-family: 'Playfair Display', serif;
font-size: 1.15rem;
font-weight: 600;
color: #1e293b;
margin: 0 0 0.9rem;
}
.forum-form {
display: flex;
flex-direction: column;
gap: 0.7rem;
}
.forum-txt-tools {
display: flex;
gap: 0.35rem;
margin-bottom: -0.35rem;
}
.forum-mf {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 30px;
font-family: 'Inter', sans-serif;
font-size: 0.85rem;
color: #475569;
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 7px;
cursor: pointer;
box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}
.forum-mf:hover {
border-color: #c89b3c;
color: #8b6914;
}
.forum-input,
.forum-textarea {
width: 100%;
padding: 0.75rem 0.9rem;
border: 1px solid #e2ddd2;
border-radius: 10px;
background: #faf8f3;
color: #1e293b;
font-family: 'Inter', sans-serif;
font-size: 0.95rem;
}
.forum-textarea {
min-height: 110px;
resize: vertical;
}
.forum-input:focus,
.forum-textarea:focus {
outline: none;
border-color: #c89b3c;
box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.18);
}
.forum-form-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.forum-form-note {
font-size: 0.78rem;
color: #64748b;
}
.forum-note-link {
color: #8b6914;
font-weight: 600;
text-decoration: none;
}
.forum-note-link:hover {
color: #a97e22;
}
.forum-submit {
padding: 0.6rem 1.4rem;
border: none;
border-radius: 999px;
background: linear-gradient(135deg, #c89b3c, #a97e22);
color: #fff;
font-family: 'Inter', sans-serif;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
}
.forum-submit:hover {
filter: brightness(1.06);
}
.forum-submit:disabled {
opacity: 0.55;
cursor: default;
}
.forum-form-status {
font-size: 0.85rem;
color: #8b6914;
margin: 0.5rem 0 0;
min-height: 1.2em;
}

.forum-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

@media (max-width: 900px) {
.forum-layout {
display: flex;
flex-direction: column;
gap: 1rem;
}
.forum-side {
position: static;
flex-direction: row;
flex-wrap: wrap;
gap: 0.4rem;
}
.forum-side-link {
background: #fff;
border: 1px solid #e2ddd2;
border-radius: 999px;
padding: 0.35rem 0.8rem;
font-size: 0.82rem;
}
.forum-side-link--on {
border-color: #c89b3c;
box-shadow: none;
}
.forum-side-n {
margin-left: 0.35rem;
}
.forum-side-subs {
flex-basis: 100%;
flex-direction: row;
flex-wrap: wrap;
gap: 0.4rem;
margin: 0.1rem 0 0.2rem;
padding-left: 0.75rem;
border-left-width: 3px;
}
.forum-side-link--sub {
font-size: 0.78rem;
padding: 0.3rem 0.7rem;
}
.forum-side-link--doc {
margin-top: 0;
}
.forum-thread-grid {
display: flex;
flex-direction: column;
}
.forum-rail {
display: none;
}
}
@media (max-width: 600px) {
.forum-wrap {
padding: 1.1rem 0.85rem 1.75rem;
border-radius: 14px;
}
.forum-masthead {
padding: 0 0.85rem;
}
.forum-search {
max-width: none;
flex-basis: 100%;
order: 2;
}
.forum-masthead .forum-account {
margin-left: auto;
}
.forum-topic {
display: grid;
grid-template-columns: 36px minmax(0, 1fr) auto;
gap: 0.4rem 0.75rem;
align-items: center;
}
.forum-topic-ava {
grid-column: 1;
grid-row: 1 / 3;
align-self: start;
width: 36px;
height: 36px;
font-size: 0.72rem;
}
.forum-badge {
grid-column: 2;
grid-row: 1;
justify-self: start;
}
.forum-topic-cols {
grid-column: 3;
grid-row: 1;
justify-self: end;
}
.forum-topic-main {
grid-column: 2 / 4;
grid-row: 2;
}
.forum-topic:not(:has(.forum-badge)) .forum-topic-main {
grid-column: 2;
grid-row: 1 / 3;
}
.forum-topic:not(:has(.forum-badge)) .forum-topic-cols {
grid-row: 1 / 3;
}
.forum-topic-rep {
text-align: right;
min-width: 0;
}
.forum-topic-rep--live b {
display: inline;
margin-right: 0.25rem;
}
.forum-topic-rep--none {
display: none;
}
.forum-cat-head {
flex-direction: column;
gap: 0.15rem;
align-items: flex-start;
}
.forum-post {
padding: 0.95rem 0.1rem;
}
.forum-post--opening {
padding: 0.95rem 1rem;
}
}
