/* =====================================================================
   Le forum sur le site du jeu (temps 8b) : l'allure de la fenêtre du forum dans le jeu.
   Les couleurs sont celles du HUD (Assets/_Bouzouks/Resources/HUD/HudBouzouks.uss), comme compte.css :
   encre 22,36,63 · en-tête 29,49,87 · carte 234,251,248 · jaune 255,206,58 · ciel 78,142,190.
   Pages sans script : tout est ici.
   ===================================================================== */

:root {
    --encre: rgb(22, 36, 63);
    --entete: rgb(29, 49, 87);
    --carte: rgb(234, 251, 248);
    --jaune: rgb(255, 206, 58);
    --turquoise: rgb(31, 181, 168);
    --note: rgb(56, 84, 116);
    --ciel: rgb(78, 142, 190);
    --lien: rgb(28, 111, 184);
    --violet: rgb(112, 80, 205);
    --tete: rgb(158, 216, 255);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0 12px 32px;
    min-height: 100vh;
    background-color: var(--ciel);
    color: var(--encre);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

a { color: var(--lien); }
a:hover { color: var(--encre); }

/* ----- Le haut de la page : le nom du jeu, et « Jouer » ----- */
.haut {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 2px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.marque {
    color: rgb(255, 255, 255);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 2px 0 var(--encre);
}
.marque span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: none;
    color: var(--jaune);
}
.marque:hover { color: var(--jaune); }
.jouer {
    flex: none;
    padding: 6px 16px;
    background-color: var(--jaune);
    border: 3px solid var(--encre);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--encre);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}
.jouer:hover { background-color: rgb(255, 224, 120); color: var(--encre); }

/* ----- Le fil : où je suis ----- */
.fil { max-width: 860px; margin: 0 auto 8px; }
.fil ol { list-style: none; margin: 0; padding: 0 2px; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 14px; }
.fil li { color: rgb(255, 255, 255); }
.fil li + li::before { content: "›"; margin: 0 8px; color: rgba(255, 255, 255, 0.7); }
.fil a { color: rgb(255, 255, 255); font-weight: 600; }
.fil a:hover { color: var(--jaune); }
.fil span { opacity: 0.9; }

/* ----- La carte : le gros contour et le bord du bas plus épais, comme les fenêtres du jeu ----- */
.carte {
    max-width: 860px;
    margin: 0 auto;
    padding: 4px 18px 18px;
    background-color: var(--carte);
    border: 3px solid var(--encre);
    border-bottom-width: 7px;
    border-radius: 20px;
}

h1 { margin: 14px 0 4px; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
h2 {
    margin: 22px 0 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
p { margin: 6px 0; }
.chapeau { font-size: 17px; }
.chapeau.petit { font-size: 15px; color: var(--note); }
.note { margin-top: 16px; font-size: 14px; color: var(--note); }
.vide { color: var(--note); font-style: italic; }

.pastille {
    display: inline-block;
    padding: 0 8px;
    border-radius: 10px;
    background-color: rgb(154, 212, 255);
    color: var(--encre);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 2px;
}

/* ----- Les listes : les forums d'une catégorie, les discussions d'un forum ----- */
.liste { list-style: none; margin: 0; padding: 0; }
.ligne {
    margin: 8px 0;
    padding: 8px 12px 9px;
    background-color: rgb(255, 255, 255);
    border: 2px solid var(--encre);
    border-bottom-width: 4px;
    border-radius: 14px;
}
.ligne.epinglee { background-color: rgb(255, 246, 214); }
.ligne .nom { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.ligne .nom a { color: var(--encre); text-decoration: none; }
.ligne .nom a:hover { color: var(--lien); text-decoration: underline; }
.description { color: rgb(40, 58, 90); }
.details { margin: 2px 0 0; font-size: 13px; color: var(--note); overflow-wrap: anywhere; }

/* ----- Les pages, en haut et en bas ----- */
.pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0; font-size: 14px; }
.pages a, .pages .courante {
    min-width: 34px;
    padding: 3px 9px;
    border: 2px solid var(--encre);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}
.pages a { background-color: rgb(255, 255, 255); color: var(--encre); }
.pages a:hover { background-color: var(--tete); }
.pages .courante { background-color: var(--jaune); }
.pages .trou { color: var(--note); }

/* ----- Un message : la tête, le pseudo et la date ; dessous, ses bulles ----- */
.message { margin: 18px 0; scroll-margin-top: 12px; }
.message:target .bulle { box-shadow: 0 0 0 3px var(--jaune); }
.entete-message { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tete {
    flex: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--encre);
    border-radius: 50%;
    background-color: var(--tete);
    font-size: 22px;
    font-weight: 800;
}
.qui { min-width: 0; }
.auteur { margin: 0; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.auteur .compte { font-size: 12px; font-weight: 600; color: var(--note); }
.date { margin: 0; font-size: 12px; color: var(--note); }
.date a { color: var(--note); }
.signaler { color: var(--note); }

/* Une bulle : blanche, au contour d'encre, le coin pointu du côté de la tête. */
.bulle {
    margin: 4px 0 0 28px;
    max-width: calc(100% - 28px);
    width: fit-content;
    min-width: 120px;
    padding: 7px 12px 8px;
    background-color: rgb(255, 255, 255);
    border: 2px solid var(--encre);
    border-bottom-width: 4px;
    border-radius: 4px 16px 16px 16px;
    font-size: 15px;
    overflow-wrap: anywhere;
}
.texte { white-space: pre-wrap; }
.texte + .texte, .texte + .citation, .citation + .texte, .image + .texte, .texte + .image { margin-top: 6px; }
.centre { display: block; text-align: center; }
.justifie { display: block; text-align: justify; }
.texte a { color: var(--lien); }

/* Une action (« /me ») : au milieu, entre les bulles, sans bulle. */
.action {
    margin: 8px 40px 4px;
    text-align: center;
    color: var(--violet);
    font-weight: 700;
    font-style: italic;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.action-citee { margin: 4px 10px; font-size: 14px; }

/* Une citation : une boîte dans la bulle, avec un trait à gauche et « Pseudo a écrit : ». */
.citation {
    margin: 3px 0 5px;
    padding: 4px 8px 5px;
    border-left: 4px solid var(--turquoise);
    border-radius: 4px 8px 8px 4px;
    background-color: rgba(22, 36, 63, 0.08);
    font-size: 14px;
    color: rgb(40, 58, 90);
}
.auteur-citation { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--note); }

/* Les images des joueurs (la copie du monde) et les smileys. */
.image { margin: 6px 0; }
.image img { display: inline-block; max-width: 100%; height: auto; border-radius: 6px; }
.image.centre { text-align: center; }
.smiley { vertical-align: middle; image-rendering: pixelated; max-width: 100%; height: auto; }

/* Un message retiré : il garde sa place. */
.retire {
    margin: 4px 0 0 28px;
    padding: 6px 12px;
    width: fit-content;
    border: 2px dashed var(--note);
    border-radius: 4px 16px 16px 16px;
    color: var(--note);
    font-style: italic;
}

/* ----- Les mentions légales ----- */
.texte-legal h2 { margin-top: 20px; }
.texte-legal address { font-style: normal; }

/* ----- Le bas de la page ----- */
.bas { max-width: 860px; margin: 14px auto 0; color: rgb(255, 255, 255); font-size: 14px; text-align: center; }
.bas p { margin: 4px 0; }
.bas a { color: rgb(255, 255, 255); font-weight: 600; }
.bas a:hover { color: var(--jaune); }

@media (max-width: 520px) {
    body { padding: 0 8px 24px; }
    .carte { padding: 2px 12px 14px; border-radius: 16px; }
    h1 { font-size: 22px; }
    .marque { font-size: 20px; }
    .bulle, .retire { margin-left: 10px; max-width: calc(100% - 10px); }
    .action { margin-left: 12px; margin-right: 12px; }
}
