/* Delta Island Christmas 1.1.0 — light-mode refinements.
   Darkmode extension retains its own palette. */
#wrap.wrap {
  border: 1px solid #c5d0df;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  border-radius: 10px;
}
.site_info img { max-width: 100%; height: auto; }
:root:not(.darkmode) body { color: #263448; }
:root:not(.darkmode) li.row {
  background-image: none;
  border-bottom-color: #d5dfeb;
}
:root:not(.darkmode) li.row.bg1,
:root:not(.darkmode) li.row.bg3 { background-color: #f0f4f9 !important; }
:root:not(.darkmode) li.row.bg2 { background-color: #fff !important; }
:root:not(.darkmode) li.row:not(.bg1):not(.bg2):not(.bg3) { background-color: #f0f4f9; }
:root:not(.darkmode) li.row:hover { background-color: #e3edf8 !important; }
:root:not(.darkmode) li.row.reported { background-color: #f8e4e6 !important; }
:root:not(.darkmode) ul.topiclist dd { border-color: #d5dfeb; }
:root:not(.darkmode) ul.topiclist li.row,
:root:not(.darkmode) li.row .list-inner,
:root:not(.darkmode) li.row dd { color: #42556e; }
:root:not(.darkmode) a { color: #174b80; }
:root:not(.darkmode) a:hover { color: #08396b; }
:root:not(.darkmode) a.forumtitle,
:root:not(.darkmode) a.topictitle { color: #162d49; }
:root:not(.darkmode) a.forumtitle:hover,
:root:not(.darkmode) a.topictitle:hover { color: #185a9a; }
:root:not(.darkmode) .postlink { border-bottom-color: #174b80; }
:root:not(.darkmode) .navbar.nav-black a,
:root:not(.darkmode) #nav-main > li > a,
:root:not(.darkmode) #nav-footer > li > a,
:root:not(.darkmode) #nav-footer > li > span > a,
:root:not(.darkmode) li.header dt,
:root:not(.darkmode) li.header dd,
:root:not(.darkmode) li.header a { color: #fff; }
:root:not(.darkmode) .navbar.nav-black a:hover { color: #c6e3ff; }
:root:not(.darkmode) .username-coloured { text-shadow: none; }
:root:not(.darkmode) .forabg,
:root:not(.darkmode) .forumbg {
  background-color: #11305d;
  border-bottom: 2px solid #b59858;
  border-radius: 6px;
}
:root:not(.darkmode) .pagination li a {
  background: #f0f4f9; border-color: #899bb1; color: #234b75;
}
.pagination li a, .pagination li.active span { padding: 3px 7px; }
/* Keep embedded per-topic pagination compact. */
.row .pagination li a, .row .pagination li.active span { padding: 1px 4px; }
:root:not(.darkmode) .pagination li.active span,
:root:not(.darkmode) .pagination li a:hover {
  background: #174b80; border-color: #174b80; color: #fff;
}
:root:not(.darkmode) .pagination li a .icon { color: inherit; }
.action-bar.compact { margin: 10px 0; }
#recenttopicstop > .pagination { margin-top: 8px; margin-bottom: 8px; }
:root:not(.darkmode) :where(a,button,input,select,textarea):focus-visible {
  outline: 2px solid #185a9a; outline-offset: 3px;
}
/* tamit/slideshow: preserve the 3D positions, transforms and controls. */
:root:not(.darkmode) .slideshow-container {
  background: radial-gradient(ellipse at center, #f7f9fc, #dbe4ee) !important;
}
:root:not(.darkmode) .slideshow-slides { border: 1px solid #899bb1; }
:root:not(.darkmode) .slideshow-slides.position-0 {
  box-shadow: 0 18px 36px rgba(17,48,93,.32);
}
:root:not(.darkmode) .slideshow-slides-text {
  padding: 10px 46px;
  background: linear-gradient(to top, rgba(8,18,32,.97), rgba(8,18,32,.86) 65%, rgba(8,18,32,.6)) !important;
}
:root:not(.darkmode) .slideshow-slides-text a.forumtitle { color: #fff; font-size: 18px; }
:root:not(.darkmode) .slideshow-slides-text a.forumtitle:hover { color: #c6e3ff; }
:root:not(.darkmode) .slideshow-description { color: #e3ebf5; font-size: 13px; }
:root:not(.darkmode) .slideshow-prev,
:root:not(.darkmode) .slideshow-next { background: rgba(17,48,93,.87); color: #fff; }
:root:not(.darkmode) .slideshow-dot-navigator-container { background: #11305d !important; }
:root:not(.darkmode) .slideshow-dot-navigator { background-color: #a9bed7 !important; }
:root:not(.darkmode) .slideshow-dot-navigator.slideshow-active {
  background-color: #fff !important;
  box-shadow: 0 0 0 2px #11305d, 0 0 0 3px #fff;
}
@media (max-width: 920px) {
  #wrap.wrap { width: auto; max-width: 100%; border-radius: 0; }
}
@media (max-width: 700px) {
  .headerbar { margin-left: 0 !important; margin-right: 0 !important; padding-inline: 12px; }
  .site_info { padding-inline: 0; }
  :root:not(.darkmode) .slideshow-slides-text { padding: 10px 42px; }
  :root:not(.darkmode) .slideshow-slides-text a.forumtitle { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #particles-js { display: none; } }

/* Winter finishing touches: original snowy category image stays intact. */
#wrap.wrap { border-color: #c5d5e9; box-shadow: 0 10px 36px rgba(0,0,0,.3), 0 0 16px rgba(164,199,237,.18); }
.headerbar { position: relative; }
/* Garland removed: keep the original snowy edge of the banner. */
:root:not(.darkmode) #inner-wrap { background: #fbfcff; box-shadow: none; }
:root:not(.darkmode) .nav-black { background: linear-gradient(100deg, #0c2549, #183e68); }
:root:not(.darkmode) .pagination li.active span,
:root:not(.darkmode) .pagination li a:hover { background: #922e3d; border-color: #922e3d; color: #fff; }
:root:not(.darkmode) .badge { background: #f0d79c; color: #192c46; }
:root:not(.darkmode) .slideshow-container {
  background: radial-gradient(ellipse at 50% 40%, #f4f9ff, #c9daec 72%, #aec6e0) !important;
}
:root:not(.darkmode) .slideshow-slides.position-0 { border-color: #ad8d48; box-shadow: 0 20px 38px rgba(12,37,73,.35), 0 0 0 1px rgba(214,184,117,.3); }
:root:not(.darkmode) .slideshow-dot-navigator.slideshow-active {
  background-color: #f0d79c !important;
  box-shadow: 0 0 0 2px #11305d, 0 0 0 3px #f0d79c;
}
:root:not(.darkmode) .slideshow-prev:hover,
:root:not(.darkmode) .slideshow-next:hover { background: #922e3d; color: #fff; }
:root:not(.darkmode) li.row:hover { background-color: #e5eef8 !important; }
@media print { .headerbar::after, #particles-js { display: none; } }

/* Menus déroulants : texte lisible en mode clair */
:root:not(.darkmode) #phpbb .navbar .dropdown-contents {
    background-color: #fff;
    color: #263448;
}

:root:not(.darkmode) #phpbb .navbar .dropdown-contents a,
:root:not(.darkmode) #phpbb .navbar .dropdown-contents a:visited {
    color: #174b80;
}

:root:not(.darkmode) #phpbb .navbar .dropdown-contents a:hover,
:root:not(.darkmode) #phpbb .navbar .dropdown-contents a:focus-visible {
    color: #08396b;
    background-color: #e3edf8;
}

/* Rapprocher le carrousel et les sujets récents */
.section-index #recenttopicstop {
    margin-top: 0;
}

.section-index #recenttopicstop > .action-bar {
    margin: 8px 0 6px;
    min-height: 28px;
}

.section-index #recenttopicstop > .action-bar > .pagination {
    margin: 0;
}

.section-index #recent-topics-box {
    clear: both;
}

/* Ordinateur : lien à gauche, pagination à droite */
@media (min-width: 701px) {
    .section-index #page-body > .action-bar.compact:has(+ #recenttopicstop) {
        float: left;
        max-width: 55%;
        min-height: 28px;
        margin: 8px 12px 0 0;
    }

    .section-index #page-body > .action-bar.compact:has(+ #recenttopicstop) .mark-read {
        float: none;
        display: inline-block;
        line-height: 28px;
    }

    .section-index #recenttopicstop > .action-bar {
        clear: none;
        display: flow-root;
    }
}

/* Mobile : deux lignes compactes */
@media (max-width: 700px) {
    .section-index #page-body > .action-bar.compact:has(+ #recenttopicstop) {
        margin: 6px 0;
    }

    .section-index #recenttopicstop > .action-bar {
        margin: 4px 0 6px;
    }
}
