/* Eilati complète les interactions, la grille des formulaires et les menus de prosilver. */
@import url("../../prosilver/theme/stylesheet.css");

:root {
    --ink: #15203b;
    --blue: #184daa;
    --blue-hover: #103575;
    --read: #626b7d;
    --muted: #505e73;
    --line: #cddce8;
    --ice: #eef7ff;
    --green: #168338;
    --heading: Georgia, "Times New Roman", serif;
}
html, body { background: #f6f9fc; color: var(--ink); }
body { font-family: "Segoe UI", Arial, sans-serif; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #2871ce; outline-offset: 3px; }
h1, h2, h3, .content h2, .content h3 { font-family: var(--heading); color: var(--ink); }
h2, h3 { text-transform: none; }
h2 a, h3 a { color: inherit; }
.wrap { max-width: 1480px; min-width: 0; padding: 0 clamp(12px, 2.6vw, 42px) 24px; margin: 0 auto; border: 0; border-radius: 0; background: #fff; }
#page-body { margin: 18px 0; }
.eilati-masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 12px; }
.eilati-brand { flex: 0 1 195px; }
.eilati-brand img { display: block; width: 100%; height: auto; }
.eilati-site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(12px, 2vw, 38px); }
.eilati-site-nav a { padding: 10px 0 8px; border-bottom: 3px solid transparent; color: var(--ink); font: bold clamp(13px, 1.3vw, 19px)/1.2 var(--heading); text-transform: uppercase; }
.eilati-site-nav .current, .eilati-site-nav a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
#page-header .headerbar { position: relative; isolation: isolate; overflow: hidden; margin: 0; border-radius: 13px 13px 0 0; background: var(--ice); padding: 0; color: var(--ink); }
.headerbar::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 33%; background: url("images/paysage.jpg") center 54% / cover no-repeat; mask-image: linear-gradient(to right, transparent, #000 20%); }
.headerbar > .inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 106px; padding: 14px clamp(16px, 3vw, 48px); }
.section-index .headerbar > .inner { min-height: clamp(165px, 15vw, 224px); }
#site-description { float: none; width: auto; }
#site-description h1 { display: block; margin: 0 0 12px; font: bold clamp(29px, 3.5vw, 56px)/1.08 var(--heading); letter-spacing: -.035em; }
#site-description h1 a { color: var(--ink); text-decoration: none; }
.section-index #site-description h1 { font-size: clamp(36px, 4.2vw, 64px); }
#page-header .search-header { display: block; float: none; margin: 0; background: #fff; border-radius: 8px; box-shadow: 0 1px 5px #183b6718; }
.search-header .inputbox { width: clamp(130px, 19vw, 300px); }
.search-box .inputbox, .search-box .button { box-sizing: border-box; height: 32px; }
#page-header .navbar, #page-footer .navbar { background: #f5faff; border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 4px 12px; }
#page-footer .navbar { border-radius: 8px; }
.navbar a { color: #263f67; }
.navbar .dropdown a { color: var(--ink); }
.navbar .badge { color: white; }
.eilati-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 12px 0 14px; font-size: 13px; color: var(--muted); }
.eilati-legend span { display: inline-flex; align-items: center; gap: 7px; }
.eilati-dot, .eilati-directory .forumtitle::before, .row-item .topictitle::before {
    content: ""; display: inline-block; box-sizing: border-box; width: 12px; height: 12px;
    border: 2px solid #8490a1; border-radius: 50%; background: #fff; vertical-align: baseline;
}
.eilati-directory .forumtitle::before, .row-item .topictitle::before { margin-inline-end: 8px; }
.eilati-dot.new, .eilati-directory [class*="_unread"] .forumtitle::before, .row-item[class*="_unread"] .topictitle::before { background: var(--green); border-color: var(--green); }
/* Dans les listes de sujets, la pastille remplace le dossier de prosilver. */
.row dl.row-item:has(.topictitle) { background-image: none; }
.row dl.row-item:has(.topictitle) dt .list-inner { padding-inline-start: 12px; }
/* Une icône choisie par l’auteur reste distincte de l’état de lecture. */
.row dl.row-item:has(.topictitle) dt[style*="background-image"] .list-inner { padding-inline-start: 29px; }
.row dl.row-item:has(.topictitle) dt > .row-item-link { display: none; }

/* La pastille verte conserve le lien natif vers le premier message non lu. */
.row-item .list-inner a.unread:has(.fa-file) {
    display: inline-block; padding-inline-end: 4px; text-decoration: none;
}
.row-item .list-inner a.unread .fa-file {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    background: var(--green); vertical-align: baseline;
}
.row-item .list-inner a.unread .fa-file::before,
.row-item .list-inner a.unread:has(.fa-file) ~ .topictitle::before { content: none; }
/* Le nom ouvre la rubrique ; seule la pastille active ouvre le sujet non lu. */
.eilati-directory .row dl dt a.eilati-unread-shortcut {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; min-height: 24px; vertical-align: middle; border-radius: 50%;
}
.eilati-directory .eilati-unread-shortcut + .forumtitle::before { display: none; }
.eilati-unread-shortcut:hover .eilati-dot { box-shadow: 0 0 0 3px #16833829; }
.eilati-topic-label {
    display: inline-flex; gap: 4px; align-items: baseline; margin-inline-start: 6px;
    vertical-align: middle; white-space: nowrap; color: #536077; font: 600 11px/1.4 "Segoe UI", Arial, sans-serif;
}
.eilati-directory .row .lastsubject {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
    overflow: hidden; overflow-wrap: anywhere;
}
.eilati-directory .lastsubject + br { display: none; }
.eilati-index { display: grid; grid-template-columns: minmax(0, 3fr) minmax(225px, 1fr); gap: 20px; align-items: start; }
.eilati-forums, .eilati-sidebar { min-width: 0; }
.eilati-index:not(:has(.eilati-sidebar > *)) { grid-template-columns: 1fr; }
.forabg, .forumbg, .eilati-sidebar .stat-block { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0; margin: 0 0 18px; }
.forabg li.header, .forumbg li.header, .eilati-sidebar h3 { background: linear-gradient(105deg,#e5f3ff,#d7eafa); border-radius: 9px 9px 0 0; }
.forabg li.header, .forumbg li.header { padding: 8px 10px; }
.forabg .header a, .forumbg .header a, .forabg .header dt, .forabg .header dd, .forumbg .header dt, .forumbg .header dd { color: var(--ink); text-shadow: none; text-transform: none; }
.forabg .header dt, .forumbg .header dt { font: bold 19px/1.25 var(--heading); }
.forabg .header dd, .forumbg .header dd { font: 600 13px/1.4 "Segoe UI", Arial, sans-serif; }
ul.forums, .forabg li.row, .forumbg li.row { background: #fff; }
li.row { border-top: 1px solid var(--line); border-bottom: 0; }
li.row:last-child, ul.forums, .forumbg ul.topics { border-radius: 0 0 9px 9px; }
li.row:hover { background: #f4f9fd; }
ul.topiclist li.row dd { border-color: #edf2f7; }
.eilati-sidebar h3 { margin: 0; padding: 10px 15px; border: 0; font: bold 20px/1.2 var(--heading); }
.eilati-sidebar .stat-block p { padding: 12px 15px; margin: 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.eilati-sidebar .statistics strong { color: var(--ink); }
.eilati-legend ~ .eilati-index .quick-login { line-height: 2.3; }

/* Les ID sont ceux des rubriques publiques. Le pictogramme par défaut couvre les futures rubriques. */
.eilati-directory { --forum-icon: url("images/annonces.png"); }
.eilati-directory [data-forum-id="3"] { --forum-icon: url("images/regles.png"); }
.eilati-directory [data-forum-id="5"] { --forum-icon: url("images/presentations.png"); }
.eilati-directory [data-forum-id="6"] { --forum-icon: url("images/suggestions.png"); }
.eilati-directory [data-forum-id="8"] { --forum-icon: url("images/rendez-vous.png?v=102"); }
.eilati-directory [data-forum-id="9"] { --forum-icon: url("images/bugs.png"); }
.eilati-directory [data-forum-id="10"] { --forum-icon: url("images/classes.png?v=102"); }
.eilati-directory [data-forum-id="11"] { --forum-icon: url("images/astuces.png?v=102"); }
.eilati-directory [data-forum-id="15"] { --forum-icon: url("images/discussions.png"); }
.eilati-directory [data-forum-id="17"] { --forum-icon: url("images/talents.png?v=102"); }
.eilati-directory [data-forum-id="18"] { --forum-icon: url("images/jeux.png?v=102"); }
.eilati-directory .row dl.row-item { background-image: var(--forum-icon); background-position: 12px center; background-size: 40px auto; }
.eilati-directory .row dl.row-item:has(.forum-image) { background-image: none; }
.eilati-directory .forum-image { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 44px; padding: 0; }
.eilati-directory .row-item-link { left: 4px; width: 44px; }
.eilati-directory .row .forumtitle, .row .lastsubject, .row .topictitle { color: var(--read); font-family: var(--heading); font-size: 16px; line-height: 1.3; font-weight: 500; }
.eilati-directory .row [class*="_unread"] :is(.forumtitle,.lastsubject), .row [class*="_unread"] .topictitle { color: var(--blue); font-weight: bold; }
.eilati-directory .row .forumtitle:hover, .row .lastsubject:hover, .row .topictitle:hover { text-decoration: underline; }
.eilati-directory .row .list-inner, .eilati-directory .lastpost { color: var(--muted); overflow-wrap: anywhere; }
.eilati-directory ul.topiclist .row-item { display: grid; grid-template-columns: minmax(0, 1fr) 8% 9% minmax(155px, 29%); align-items: center; padding: 5px 10px; }
.eilati-directory ul.topiclist .row-item::after { display: none; }
.eilati-directory li.header { padding: 4px 0; }
.eilati-directory ul.topiclist .row-item > :is(dt,dd) { float: none; width: auto; margin: 0; min-height: 0; padding: 4px 0; border: 0; }
.eilati-directory ul.topiclist .row-item dt .list-inner { margin: 0; padding: 3px 7px; }
.eilati-directory ul.topiclist .row .row-item dt .list-inner { padding: 8px 10px 8px 52px; }
.eilati-directory ul.topiclist .row-item .lastpost { width: auto; }
.eilati-directory .redirect { grid-column: span 3; }
.eilati-directory .topics, .eilati-directory .posts { text-align: center; }
.eilati-directory .row .topics, .eilati-directory .row .posts { font-size: 14px; }
.eilati-directory .row .lastpost { font-size: 12px; }
.eilati-directory .forum_link .forumtitle::before { display: none; }

/* Le verrou et la redirection restent visibles à côté du pictogramme de la rubrique. */
.eilati-directory [class*="_locked"] .forumtitle::after,
.eilati-directory .forum_link .forumtitle::after {
    font: 12px FontAwesome; margin-inline-start: 6px; color: var(--muted);
}
.eilati-directory [class*="_locked"] .forumtitle::after { content: "\f023"; }
.eilati-directory .forum_link .forumtitle::after { content: "\f08e"; }

/* Actions natives : la disponibilité et les URL sont calculées par phpBB. */
.button, a.button, input.button1, input.button2, a.button1, a.button2, input.button3 {
    font-family: inherit; color: #24466e; border: 1px solid #a8bfd5; border-radius: 6px;
    background: #f5faff; text-shadow: none; box-shadow: none;
}
.button:hover, a.button:hover, input.button2:hover, input.button3:hover { background: #e6f2ff; border-color: #719bc4; color: #133f79; }
.action-bar > a.button, input.button1, .submit-buttons .default-submit-action {
    background: var(--blue); color: white; border-color: var(--blue); font-weight: 600; padding: 5px 13px;
}
.action-bar > a.button .icon { color: inherit; }
.action-bar > a.button:hover, input.button1:hover, .submit-buttons .default-submit-action:hover { background: var(--blue-hover); color: #fff; }
.post-buttons .button .eilati-action-label { margin-inline: 4px; font: 600 12px/1.3 "Segoe UI", Arial, sans-serif; }
.button .icon { color: inherit; }
.inputbox, textarea, select { border: 1px solid #aebed0; border-radius: 5px; color: var(--ink); background-color: #fff; }
.inputbox:focus, textarea:focus, select:focus { border-color: var(--blue); }
.panel, #cp-main .panel, .post { background: #f6faff; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.post.bg1, .post.bg2 { background: #fff; }
.post.unreadpost { border-inline-start: 3px solid var(--green); }
.panel .panel, .panel-container .panel { background: #fff; }
.panel h3, .post h3 { border-color: var(--line); }
.bg1 { background-color: #fbfdff; }
.bg2 { background-color: #f3f8fd; }
.bg3 { background-color: #eaf3fb; }
.cp-mini, .panel-container table.table1 thead { background-color: #e0edfa; }
#tabs .tab > a, #minitabs .tab > a, #navigation a { background: #e2eef9; color: #243f61; }
#tabs .activetab > a, #minitabs .activetab > a, #navigation #active-subsection a { color: var(--ink); background: #fff; box-shadow: inset 0 2px var(--blue); }
.pagination li.active span { background: var(--blue); border-color: var(--blue); }
blockquote, .codebox, .attachbox { background: #f7fafe; border-color: var(--line); }
blockquote { border-inline-start: 3px solid #91b8dd; }
table.table1 thead th, table.table1 thead th a { color: var(--ink); }
.forumbg-table table.table1 thead { background: #e0effc; }
.eilati-sidebar, .postprofile { color: var(--muted); }

/* L’avatar vient du compte de l’auteur. Le serveur décide si la pastille est visible. */
.post.has-profile.online, #viewprofile .panel.online { background-image: none; }
.postprofile .has-avatar .avatar-container, #viewprofile .profile-avatar { display: table; position: relative; margin: 0 auto 9px; overflow: visible; }
.postprofile .avatar { float: none; margin: 0; }
.postprofile .avatar img, #viewprofile .profile-avatar img { display: block; width: auto; height: auto; max-width: 115px; max-height: 132px; border-radius: 20%; }
.eilati-online { box-sizing: border-box; display: inline-block; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border: 2px solid white; border-radius: 50%; background: #078128; }
.eilati-online.inline { position: static; vertical-align: middle; width: 13px; height: 13px; }
.postprofile .eilati-more { display: block; overflow: visible; }
.eilati-more:not(:has(details dl > dd)) { display: none; }
.eilati-more details { margin-top: 9px; }
.eilati-more summary { display: inline-block; cursor: pointer; font-size: 12px; padding: 4px 9px; color: #435673; border: 1px solid #d6e3ef; background: #f4f8fc; border-radius: 5px; }
.eilati-more summary:hover, .eilati-more details[open] summary { color: var(--blue); background: #e8f2fc; }
.eilati-more details > dl { margin-top: 8px; }
.eilati-more details dd { margin: 4px 0; }
.postprofile dd.profile-contact { overflow: visible; }
.postprofile dd.eilati-character-profile { font-size: 12px; }
@media (min-width: 701px) {
    .post.has-profile .postprofile { box-sizing: border-box; float: left; width: 19%; min-width: 0; text-align: center; margin: 3px 0 10px; padding: 10px 5px; border: 0; }
    .post.has-profile .postbody { box-sizing: border-box; float: right; width: 79%; padding-inline-start: 1.5%; border-inline-start: 1px solid var(--line); }
    .has-profile .postprofile dd, .has-profile .postprofile dt { margin-left: 0; line-height: 1.45; }
    .postprofile dd.profile-rank { margin: 2px 0; }
}
@media (max-width: 1050px) {
    .eilati-index { grid-template-columns: 1fr; }
    .eilati-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
}
@media (max-width: 700px) {
    .wrap { padding-inline: 8px; }
    .eilati-masthead { flex-direction: column; gap: 0; padding: 3px 0 8px; }
    .eilati-brand { flex: none; width: 118px; }
    .eilati-site-nav { justify-content: center; gap: 2px 13px; }
    .eilati-site-nav a { font-size: 11px; padding: 4px 0; }
    .headerbar::before { left: 24%; opacity: .63; mask-image: linear-gradient(to right, transparent, #000 70%); }
    .headerbar > .inner, .section-index .headerbar > .inner { min-height: 100px; padding: 12px; }
    #site-description { display: block; text-align: left; }
    .eilati-directory ul.topiclist .row-item { grid-template-columns: minmax(0,1fr); }
    .eilati-directory ul.topiclist .row-item > .lastpost { display: none; }
    .eilati-directory ul.topiclist .row .row-item > .lastpost { display: block; padding: 0 8px 7px 52px; }
    .eilati-directory ul.topiclist .row .lastpost > span { display: block; padding: 0; }
    .eilati-directory ul.topiclist .lastpost .eilati-last-label {
        position: static; display: block; clip: auto; width: auto; height: auto;
        margin: 4px 0 2px; overflow: visible; color: var(--muted);
        font: 600 12px/1.4 "Segoe UI", Arial, sans-serif;
    }
    .eilati-directory .row .lastsubject { -webkit-line-clamp: 2; margin-bottom: 2px; }

    .eilati-directory ul.topiclist .row-item > :is(.topics,.posts) { display: none; }
    .eilati-directory .row dl.row-item { background-position: 10px 14px; background-size: 35px; }
    .eilati-directory .redirect { grid-column: auto; }
    .post.has-profile .postprofile { text-align: center; float: none; width: auto; padding: 8px; margin-bottom: 12px; }
    .post.has-profile .postprofile dt, .postprofile .has-avatar .avatar-container { float: none; margin: 0 auto 5px; }
    .post.has-profile .postprofile .avatar img { max-height: 64px; max-width: 64px; }
    .postprofile dd.eilati-character-profile, .postprofile .eilati-more, .eilati-more details dd { display: block; }
    .has-profile .postbody h3 { margin-right: 0; }
    .has-profile .postbody .post-buttons { position: static; max-width: 100%; margin-block: 4px 8px; }
    .eilati-online { width: 14px; height: 14px; }
    .eilati-legend { gap: 12px; }
}
@media print {
    .eilati-masthead, .headerbar::before, .eilati-legend, .eilati-sidebar, .eilati-more { display: none; }
    .eilati-index { display: block; }
}

