/*
 * Conan Exiles Mania — thème public, d'après le thème PluXml « defaut » personnalisé du site d'origine
 * (captures/ et html/ à la racine du projet).
 * 1rem = 10px (comme PluCSS).
 */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/opensans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/opensans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/opensans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #258fd6;
  --blue-dark: #3a6c96;
  --text: #3a4145;
  --title: #222;
  --muted: #9eabb3;
  --line: #ddd;
  --button: #1b88dc;
  --red: #d61518;
  --red-dark: #a81013;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-wrap: break-word;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover,
a:focus {
  color: #444;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 3rem 0 1.5rem;
  font-weight: 500;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p,
ul,
ol,
blockquote,
pre,
table,
figure {
  margin: 0 0 1.5rem;
}

small {
  font-size: 1.2rem;
}

blockquote {
  font-style: italic;
}

pre,
code {
  font-family: ui-monospace, 'DejaVu Sans Mono', Consolas, monospace;
  font-size: 1.4rem;
}
pre {
  overflow: auto;
  padding: 1rem 1.5rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: .3rem;
}
:not(pre) > code {
  padding: .1rem .4rem;
  background: #f2f2f2;
  border-radius: .3rem;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
th,
td {
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .5rem 1rem;
  background: #fff;
}

.container {
  width: 100%;
  max-width: 132rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- En-tête ---------- */

.header {
  padding: 1rem 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.logo {
  display: inline-block;
  line-height: 0;
}
.logo img {
  width: 36rem;
  max-width: 100%;
}
.logo__text {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--title);
}
.tagline {
  margin: .6rem 0 0;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--title);
}

.nav {
  position: relative;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li {
  font-size: 1.5rem;
  margin-left: .5rem;
}
.menu a {
  display: inline-block;
  padding: 0 .35rem;
  color: var(--blue);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.menu a:hover {
  color: #000;
  text-decoration: none;
  border-bottom-color: #222;
}
.menu .active a {
  color: #000;
}
.nav-toggle {
  display: none;
}

/* ---------- Mise en page ---------- */

.main {
  padding-top: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 3rem;
}
.grid--full {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Articles ---------- */

.article {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.article::after {
  content: '';
  display: block;
  clear: both;
}
.article + .article {
  margin-top: 2rem;
}
.mode-article .article {
  border-bottom: 0;
}
.article header {
  margin-top: 0;
}
.article header div {
  margin: 0;
}
.art-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
}
.art-title,
.art-title a {
  color: var(--title);
  font-size: 3.2rem;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0;
}
.art-title a:hover {
  color: #111;
  text-decoration: none;
}
.article header small {
  color: var(--muted);
}
.written-by {
  font-weight: 700;
}
.written-by::after,
.classified-in::after {
  content: ' |';
  font-weight: 400;
}
.classified-in:last-child::after {
  content: '';
}

.chapo,
.entry-content {
  margin-top: 1.5rem;
  font-size: 1.7rem;
}
.chapo::after {
  content: '';
  display: block;
  clear: both;
}
img.art_thumbnail {
  float: right;
  max-width: 40%;
  max-height: 10rem; /* miniatures PluXml : 100 px de haut au plus */
  width: auto;
  margin: .5rem 0 1rem 1.5rem;
}

.more {
  margin: 0 0 1rem;
}
.button,
button.button {
  display: inline-block;
  padding: 1rem 2rem;
  border: 0;
  border-radius: .3rem;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color .2s;
}
.button:hover,
.button:focus {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

/* Contenu des articles */

.entry-content > :first-child {
  margin-top: 0;
}
.entry-content h2 {
  font-size: 2.2rem;
  color: var(--title);
}
.entry-content h3 {
  font-size: 1.9rem;
}
.entry-content h4 {
  font-size: 1.7rem;
}
.entry-content ul,
.entry-content ol {
  padding-left: 3rem;
}
.entry-content li > p {
  margin: 0;
}
.entry-content blockquote {
  margin-left: 0;
  padding: .5rem 0 .5rem 2rem;
  border-left: 3px solid var(--line);
}
.entry-content img {
  height: auto;
}
.entry-content .aligncenter,
.entry-content figure.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.entry-content figure.aligncenter {
  display: table;
}
.entry-content .alignleft {
  float: left;
  margin: .5rem 2rem 1rem 0;
}
.entry-content .alignright {
  float: right;
  margin: .5rem 0 1rem 2rem;
}
.entry-content figure {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
.entry-content figure img {
  display: block;
}
.entry-content figcaption {
  font-size: 1.4rem;
  color: #666;
  text-align: center;
  padding-top: .5rem;
}
.entry-content::after {
  content: '';
  display: block;
  clear: both;
}

.cat-description {
  margin-bottom: 2rem;
  color: #666;
}
.empty {
  margin: 2rem 0;
}

/* Pagination */

.pagination {
  margin: 3rem 0;
  text-align: center;
}
.pagination > span {
  display: inline-block;
  margin: .5rem .2rem;
}
.pagination a {
  background: var(--blue);
  border-radius: .3rem;
  color: #fff;
  padding: .9rem .7rem;
  transition: background-color .2s;
}
.pagination a:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}
.p_current::first-letter,
.pagination a::first-letter {
  text-transform: uppercase;
}

/* ---------- Commentaires ---------- */

.comments {
  margin-top: 3rem;
}
.comments h3 {
  font-size: 1.7rem;
  margin: 3rem 0 1.5rem;
}
.comment {
  margin-bottom: 2.5rem;
  padding-left: 6rem;
  background: url(../img/user.svg) no-repeat 0 .3rem / 4.5rem;
}
.comment small {
  color: var(--muted);
}
.comment .author {
  font-weight: 700;
  color: var(--text);
}
.comment blockquote {
  margin: .5rem 0 0;
  font-style: normal;
  font-size: 1.5rem;
}
.comment blockquote p {
  margin: 0;
}
.type-admin {
  background-color: #f0f8ff;
  padding: .2rem .5rem .2rem 6rem;
  background-position: .5rem .5rem;
}
.nbcom {
  background: var(--blue);
  border-radius: .3rem;
  color: #fff;
  padding: .2rem .6rem;
}
.nbcom:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}
.comment-reply {
  font-size: 1.3rem;
}
.level-1 { margin-left: 5rem; }
.level-2 { margin-left: 10rem; }
.level-3 { margin-left: 15rem; }
.level-4 { margin-left: 20rem; }
.level-5 { margin-left: 25rem; }

.comment-form {
  max-width: 88rem;
}
.comment-form label {
  display: block;
  margin: 1.2rem 0 .5rem;
}
.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form textarea,
.searchfield {
  width: 100%;
  padding: .6rem 1rem;
  border: 1px solid #bbb;
  border-radius: .3rem;
  font: inherit;
  font-size: 1.6rem;
  color: var(--text);
  background: #fff;
}
.comment-form input:focus,
.comment-form textarea:focus,
.searchfield:focus {
  outline: 2px solid #9cc8ea;
  border-color: var(--blue);
}
.comment-form .field-half {
  max-width: 42rem;
}
.comment-form textarea {
  min-height: 17rem;
  resize: vertical;
}
.comment-form .capcha {
  margin-top: 2rem;
}
.comment-form .capcha label {
  display: inline;
}
.comment-form #id_rep {
  width: 4rem;
  text-align: center;
  display: inline-block;
}
.capcha-word {
  display: inline-block;
  background: #ddd;
  border-radius: .3rem;
  padding: .5rem .9rem;
  margin: 0 .3rem;
  font-weight: 700;
  letter-spacing: .1rem;
  white-space: nowrap;
}
.comment-form .button {
  padding: .4rem 1rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.reply-to {
  margin: 1rem 0 0;
  font-size: 1.5rem;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
}
.alert {
  padding: 1rem 1.5rem;
  border-radius: .3rem;
}
.alert--ok {
  background: #e7f6ec;
  color: #1d6b37;
}
.alert--error {
  background: #fdecea;
  color: #a12b1f;
}
.comments-feed {
  margin-top: 3rem;
}
.muted {
  color: #888;
}

/* Recherche */

.searchform form {
  display: flex;
  gap: 1rem;
  max-width: 60rem;
  margin: 1.5rem 0 2rem;
}
.searchform .button {
  padding: .6rem 1.6rem;
}
.search-title {
  font-weight: 700;
}
.not-found form {
  display: flex;
  gap: 1rem;
  max-width: 60rem;
}

/* ---------- Colonne latérale ---------- */

.aside {
  padding: 0 1rem;
}
.aside h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 5rem 0 1.5rem;
  text-transform: uppercase;
  color: #3a4145;
}
.aside h3:first-child {
  margin-top: 2rem;
}
.unstyled-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aside a.active {
  background-color: #6aa6ce;
  color: #fff;
}
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}
.tag-list li {
  display: inline-block;
}
.tag-list li a {
  padding: 0 .5rem 0 0;
}
.tag-list li a.active {
  font-weight: 700;
  background-color: #68838b;
  color: #fff;
  padding: 0 .5rem;
}
/* Couleurs du thème PluXml (tendances automne 2016) */
.tag-size-1 a { font-size: 1rem; color: #4c6a92; }
.tag-size-2 a { font-size: 1.2rem; color: #92b6d5; }
.tag-size-3 a { font-size: 1.4rem; color: #838487; }
.tag-size-4 a { font-size: 1.6rem; color: #b76ba3; }
.tag-size-5 a { font-size: 1.8rem; color: #af9483; }
.tag-size-6 a { font-size: 2rem; color: #ad5d5d; }
.tag-size-7 a { font-size: 2.2rem; color: #006e51; }
.tag-size-8 a { font-size: 2.4rem; color: #d8ae47; }
.tag-size-9 a { font-size: 2.6rem; color: #9e4624; }
.tag-size-10 a { font-size: 2.8rem; color: #b93a32; }
.tag-size-11 a { font-size: 3rem; color: #034f84; }

/* ---------- Pied de page ---------- */

.footer {
  padding: 6rem 0;
  color: #666;
  text-align: center;
  font-size: 1.2rem;
}
.footer p {
  margin: 0;
}
.footer a:hover {
  text-decoration: none;
}
.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

/* ---------- Écrans moyens et grands ---------- */

@media (min-width: 64em) {
  .container {
    padding: 0 5rem;
  }
}
@media (min-width: 128em) {
  .container {
    padding: 0 15rem;
    max-width: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem 0;
    box-shadow: 0 1px 0 var(--line);
  }
  .header__inner {
    align-items: center;
  }
  .logo img {
    width: 22rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: block;
    border: 0;
    background: none;
    font-size: 2.8rem;
    line-height: 1;
    padding: .5rem;
    color: #333;
    cursor: pointer;
  }
  .menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
    min-width: 22rem;
    flex-direction: column;
    padding: .8rem 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .15);
  }
  .nav.is-open .menu {
    display: flex;
  }
  .menu li {
    margin: 0;
  }
  .menu a {
    display: block;
    padding: .8rem 1.6rem;
    border: 0;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .aside {
    padding: 0;
  }
  .art-title,
  .art-title a {
    font-size: 2.6rem;
  }
  .comment,
  .type-admin {
    padding-left: 0;
    background-image: none;
  }
  .type-admin {
    padding: .5rem;
  }
  .level-1 { margin-left: 1rem; }
  .level-2 { margin-left: 2rem; }
  .level-3 { margin-left: 3rem; }
  .level-4 { margin-left: 4rem; }
  .level-5 { margin-left: 5rem; }
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
  }
  .footer {
    padding: 3rem 0;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 17rem;
  }
  .art-title,
  .art-title a {
    font-size: 2.3rem;
  }
  .searchform form,
  .not-found form {
    flex-direction: column;
  }
}

/* Vidéo YouTube intégrée (lien seul dans un paragraphe, voir embed_videos()) */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 1em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Particularités de Conan Exiles Mania ---------- */

/* Logo (médaillon + nom) ; le slogan n'est pas affiché, comme sur l'ancien site */
.logo img {
  width: 36rem;
}
.tagline {
  display: none;
}

/* Bouton « Lire la suite... » rouge */
.more .button {
  background: var(--red);
  border-radius: .2rem;
  padding: .8rem 2rem;
}
.more .button:hover,
.more .button:focus {
  background: var(--red-dark);
}

/* Fil d'Ariane des catégories : Accueil / Construction */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0 2.5rem;
  padding: 0;
  list-style: none;
  font-size: 1.5rem;
}
.breadcrumb li + li::before {
  content: '/';
  padding: 0 .8rem;
  color: #666;
}

/* Avertissement au-dessus du formulaire de commentaire */
.moderation-notice {
  font-weight: 700;
  color: red;
}

/* Barre latérale : titres plus rapprochés, logo Reddit, playlist YouTube */
.aside h3 {
  margin-top: 3rem;
}
.community {
  margin: 0;
  line-height: 0;
}
.video--aside {
  max-width: 25rem;
  margin: 0;
}

@media (max-width: 767px) {
  .logo img {
    width: 24rem;
  }
}
