/* ===== Base mobile-first ===== */

/* Media never overflow */
img, video { max-width: 100%; height: auto; }

/* Banner carousel */
#banner .carousel { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
#banner .carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
#banner .carousel img.active { opacity: 1; position: relative; }

/* White section trio */
section.white-bg .row { display: flex; flex-wrap: wrap; gap: 1em; }
section.white-bg .row > div { flex: 1 1 30%; max-width: 30%; }
section.white-bg img { display: inline-block; border-radius: 8px; }

/* Intro media */
.intro-media { margin: 1.5em auto 1.2em auto; text-align: center; }
.intro-media img { width: 60%; max-width: 800px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* CTA compact */
#cta.wrapper.style3 { background-color: #4e6fa8 !important; padding-top: 1em !important; padding-bottom: 1em !important; }
#cta.wrapper.style3 header h2 { margin-bottom: .5em !important; }
#cta.wrapper.style3 .button { margin-top: 0 !important; }

/* Nav links */
#nav ul li a { padding: .75em .9em; }

/* Wrapper tweaks */
.wrapper.style1 { margin-bottom: 1em !important; }
.wrapper.style2 { padding-top: .5em !important; }

/* Lore carousel */
.carousel-lore { position: relative; overflow: hidden; width: 100%; border-radius: 8px; aspect-ratio: 4/3; }
.carousel-lore img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; border-radius: 8px; }
.carousel-lore img.active { opacity: 1; position: relative; }

/* ===== Mobile adjustments ===== */
@media (max-width: 980px) {
  section.white-bg .row > div { flex: 1 1 100%; max-width: 100%; margin-top: 1.2em; }
  section.white-bg img { transform: none !important; width: 92%; }
  .intro-media img { width: 100%; max-width: none; }
  .box.post .image.left img { width: 100%; height: auto; }
  #banner header { padding: .8em .8em !important; }
  #banner h2 { font-size: 1.15em; line-height: 1.35; }
}

/* Small phones */
@media (max-width: 480px) {
  #nav ul li a { padding: .65em .8em; }
}

/* ===== Gigantic heading spacing ===== */
.wrapper.style2 header.major { margin-bottom: 0 !important; }
.wrapper.style2 header.major p { margin-bottom: 0 !important; }
.wrapper.style2 { padding-bottom: 0.5em !important; }
.wrapper.style2 header.major > *:last-child { margin-bottom: 0 !important; }

/* Desktop-only subtitle smaller */
@media (min-width: 980px) {
  .wrapper.style2 header.major p { font-size: .9em; line-height: 1.4; margin-bottom: 0; color: #777; }
}

/* ===== Header / Nav ===== */

/* Header background */
#header { position: relative; padding: 8px 0 !important; overflow: hidden; }
#header::before {
  content: ""; position: absolute; inset: 0; height: 260px;
  background: url('images/header-bg.jpg') center/cover no-repeat;
  opacity: .4; z-index: 0; pointer-events: none;
}

/* Nav row */
#nav { position: relative; z-index: 1; }
#nav ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1em; margin: 0; padding: 0; list-style: none; }

/* Discord badge */
#nav .discord-badge { position: static; transform: none; display: inline-block; }
#nav .discord-badge img { height: 56px; }

/* Desktop header tweaks */
@media (min-width: 980px) {
  #header::before { height: 505px; }
  #nav .discord-badge { position: absolute; top: 22%; right: 125px; transform: translateY(-50%); }
  #nav .discord-badge img { height: 90px; }
}




/* === SUPPRIMER LA LIGNE BLEUE AUTOUR DU BOUTON === */
a:focus, a:active, button:focus, button:active {
  outline: none !important;
  box-shadow: none !important;
}
#nav ul li a {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  padding: 0.5em 0.7em;
}

#nav ul li.current a {
  font-weight: bold;
  position: relative;
  color: #ffffff !important;
}

#nav ul li.current a::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #4ec3ff;
}

#cta.wrapper.style3 {
  padding-top: 1em !important;
  padding-bottom: 1em !important;
  background-color: #4e6fa8 !important;
}

.copyright {
  margin-top: 0 !important;
  padding: 0.5em 0 !important;
}

.copyright ul.menu {
  gap: 0.7em !important;
}

.copyright img {
  height: 40px !important;
  vertical-align: middle;
}

.actions.buttons-side-by-side {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}
/* Logo - toujours au-dessus du background */
#logo {
  position: relative;
  z-index: 2; /* Plus haut que #header::before */
}

#logo img {
  display: block;
  margin: 0 auto;
  height: 256px;
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

/* Sur mobile, le logo est plus petit */
@media (max-width: 980px) {
  #logo img {
    height: 64px !important;
    margin-bottom: 0 !important;
  }
}





/* Fix: hauteur du carrousel sur mobile */
@media (max-width: 768px) {
  #banner .carousel {
    aspect-ratio: unset;
    height: 240px;
  }

  #banner .carousel img {
    object-fit: cover;
    height: 240px;
  }

  #banner header {
    padding: 1em;
  }
}
@media (max-width: 980px) {
  /* Ajoute un espace sous les trois blocs dans la section blanche */
  section.white-bg .row {
    margin-bottom: 2.5em;
  }

  /* Force la section blanche à allonger son fond */
  section.white-bg {
    padding-bottom: 2em !important;
    background-color: #fff !important;
  }
}

h2, .major h2 {
  font-family: "IM Fell English SC", serif;
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: none;
}


