@import url('variable.css');

@font-face {
  font-family: 'oxanium';
  src: url('../fonts/Oxanium-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'poppins';
  src: url('../fonts/Poppins-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

/* =========================
   BASE / GLOBALE
   ========================= */

body {
  color: #cdcdcd;
  background-color: var(--bkg-body);
  min-height: 100vh;
  margin: 0;
  font-family: 'oxanium', sans-serif;
  font-weight: normal;
  overflow-x: hidden;
}

a,
h1,
h2,
span {
  color: #cdcdcd;
}

p {
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.4;
  text-align: justify;
  padding-left: 10px;
  padding-right: 10px;
}

li {
  color: var(--text-color);
  list-style: none;
  font-size: 16px;
  text-align: justify;
}

main {
  padding-bottom: 50px;
}

main img {
  width: 100%;
}

aside {
  z-index: 1;
}

.hidden-content {
  display: none;
}

.orange {
  color: var(--orange) !important;
}

.border-orange {
  border-color: var(--orange);
}

.oblique {
  color: black;
  background: var(--linear-orange);
  padding: 15px;
  clip-path: polygon(
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px),
    0 0
  );
}

.oblique-small {
  width: 300px;
  color: black;
  background: var(--linear-orange);
  padding: 15px;
  clip-path: polygon(
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px),
    0 0
  );
}

.underline {
  text-decoration: underline;
}

.no-margin-lat {
  margin-left: 0;
  margin-right: 0;
}

.padding-top-separateur {
  padding-top: 20px;
}

.titre,
.margin-top-separateur {
  margin-top: 50px;
}

.margin-bottom-separateur {
  margin-bottom: 50px;
}

.exemple {
  font-style: italic;
}

.ancre-nav {
  text-decoration: none;
}

.icone-deroulant {
  width: 17px;
  margin-bottom: -3px;
}

#open-nav {
  color: #cdcdcd;
}

/* =========================
   TITRES
   ========================= */

.h-title {
  position: relative;
  padding-bottom: 8px;
  font-family: 'elnath';
}

.h-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 170px;
  height: 2px;
  background: var(--orange);
}

.h-title::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 130px;
  height: 2px;
  background: var(--orange-light);
  opacity: 0.6;
}

h2 {
  font-family: 'elnath';
  font-size: 4vw;
  margin: 10px 0 20px 0;
  padding: 15px;
  clip-path: polygon(
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px),
    0 0
  );
}

h3 {
  font-family: 'elnath';
  font-size: 20px;
  line-height: 20px;
  margin-left: 10px;
  margin-right: 10px;
}

h4 {
  font-family: 'elnath';
  margin-left: 10px;
  margin-right: 10px;
  font-size: 20px;
}

/* =========================
   PARALLAX / HERO
   ========================= */

.parallax-container {
  height: 90vh;
  background-image: url(../img/station.jpg);
  background-position: center;
}

.parallax-translate {
  height: 250px;
  transition: .6s height ease;
  position: relative;
  overflow: hidden;
  z-index: 9;
}

.cadre-image-parallax {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120%;
  text-align: center;
  width: 100%;
}

.title-parallax {
  left: 0;
  width: 100%;
  top: 300px;
  -webkit-transform: translateY(-35%);
  -ms-transform: translateY(-35%);
  transform: translateY(-35%);
  z-index: -1;
}

.title-parallax h1 {
  color: #fff;
  font-size: 7vw;
  font-family: 'elnath';
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 0;
  letter-spacing: 4px;
}

.container-img-parallax {
  position: absolute;
  z-index: -2;
  background-color: black;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.magie {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.img-parallax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center;
  opacity: .6;
  transform: translate3d(0, 0, 0);
}

/* =========================
   CONTENU
   ========================= */

#contenu {
  position: relative;
  z-index: 10;
  max-width: 3800px;
  background-color: var(--bkg-contenu);
  margin: -40px auto 0 auto;
  padding-bottom: 20px;
  width: 95%;
  clip-path: polygon(
    calc(100% - 30px) 0,
    100% 30px,
    100% 100%,
    30px 100%,
    0 calc(100% - 30px),
    0 0
  ) !important;
}

#contenu .illus-chapitre,
.tableau-img {
  width: 100%;
}

.container-contenu {
  width: 100%;
  margin: 0 auto;
}

.illus-chapitre {
  clip-path: polygon(
    calc(100% - 40px) 0,
    100% 40px,
    100% 100%,
    40px 100%,
    0 calc(100% - 40px),
    0 0
  );
}

.title-armure {
  padding: 15px;
}

/* =========================
   LISTES DE CONTENU
   ========================= */

.list-comp li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.liste-caste li,
.carriere li {
  margin-bottom: 20px;
  font-size: 16px;
  list-style-type: disc;
  line-height: 1.5;
}

.intro-liste li {
  list-style: square;
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  margin-bottom: 15px;
  padding-right: 10px;
}

.intro-liste a {
  text-decoration: none;
}

/* =========================
   NAV PRINCIPALE
   ========================= */

.nav-principale {
  position: relative;
  z-index: 10001;
  background-color: black;
}

.bandeau-navprincipale {
  display: flex;
  justify-content: space-between;
  height: 50px;
  padding-right: 15px;
}

.bandeau-navprincipale .logo {
  display: flex;
  align-items: center;
  padding-left: 8px;
  width: 90%;
  font-size: 30px;
  height: 50px;
}

.bandeau-navprincipale .logo a {
  color: #cdcdcd;
  text-decoration: none;
  display: flex;
}

.bandeau-navprincipale .logo a img {
  width: 50px;
}

.bandeau-navprincipale .logo img {
  width: 100%;
}

.container-icon-navprincipale {
  position: relative;
  width: 160px;
  line-height: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #e5e5e5;
  cursor: pointer;
}

.icon-box img,
.container-icon-navprincipale .icon-navprincipale {
  width: 25px;
}

.container-icon-navprincipale .icon-logout {
  color: #e5e5e5;
}

.search,
.user,
.icon-logout {
  width: 25px;
}

.link-box-principale {
  visibility: hidden;
  width: 100%;
  height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link-box-principale a {
  width: 100%;
  height: 45%;
  text-align: center;
  text-decoration: none;
}

.show {
  visibility: visible;
  height: 700vh;
}

.icon-logout-nav {
  margin-bottom: 0;
}

/* =========================
   BARRE DE RECHERCHE
   ========================= */

.search-panel {
  position: absolute;
  top: 50%;
  right: 160px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  background: var(--bkg-contenu);
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 0.3em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 1000;
  width: 200px;
}

.search-panel.active {
  transform: translateY(-50%) scaleX(1);
  display: block;
}

.search-panel form {
  display: flex;
}

.search-panel input#search-input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 2px 0 0 2px;
  padding: 0.3em;
}

.search-panel button {
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 2px 2px 0;
  padding: 0.3em 0.6em;
  cursor: pointer;
}

.search-results {
  list-style: none;
  margin: 0.2em 0 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bkg-contenu);
  border-radius: 0 0 4px 4px;
  display: none;
}

.search-results li {
  padding: 0.4em;
  cursor: pointer;
}

.search-results li:hover {
  background: rgba(255, 165, 0, 0.1);
}

.search-panel.active .search-results {
  display: block;
}

.search-results-page {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.search-results-page li {
  margin-bottom: 1em;
}

.search-results-page li a {
  text-decoration: none;
  color: inherit;
}

.search-results-page .snippet {
  font-size: 0.9em;
  color: #666;
}

.search-results-page .title {
  font-weight: bold;
  margin-top: 0.2em;
}

/* =========================
   BOUTONS ZOOM NAV PRINCIPALE
   ========================= */

.button {
  margin-top: 80px;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  transform: translateY(0%);
  overflow: hidden;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  top: -80px;
  right: 0;
  bottom: 0;
  left: 0;
}

.button::after {
  background-color: #000;
  opacity: 0.16;
  z-index: 2;
}

.button div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
}

.button div::before,
.button div::after {
  position: absolute;
  top: 40%;
  right: 0;
  left: 0;
  color: #fff;
  font-size: 30px;
  font-family: 'elnath';
  font-weight: bold;
  line-height: 1;
  text-align: center;
  padding: 25px 0;
  transition: 0.3s ease all;
}

.button:hover::before {
  transform: scale(1.3);
}

.button:hover div::before {
  letter-spacing: 3px;
  opacity: 0;
  transform: scale(4);
}

.button:hover div::after {
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

/* INTRO */
.btn-img-intro::before {
  transform: scale(1);
  background-image: url("../img/introduction.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-intro div::before {
  content: "INTRODUCTION ET UNIVERS";
  letter-spacing: 2px;
  opacity: 1;
  transform: scale(1);
}

.name-a-intro div::after {
  content: "INTRODUCTION ET UNIVERS";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* REGLES */
.btn-img-regle::before {
  transform: scale(1);
  background-image: url("../img/regles.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-regle div::before {
  content: "REGLES DU JEU";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-regle div::after {
  content: "REGLES DU JEU";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* CREATION */
.btn-img-crea::before {
  transform: scale(1);
  background-image: url("../img/creation-personnage.png");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-crea div::before {
  content: "CREATION DU PERSONNAGE";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-crea div::after {
  content: "CREATION DU PERSONNAGE";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* LEVEL UP */
.btn-img-levelup::before {
  transform: scale(1);
  background-image: url("../img/level_up.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-levelup div::before {
  content: "LEVEL UP";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-levelup div::after {
  content: "LEVEL UP";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
  background: var(--linear-orange);
  color: black;
  padding: 15px;
  clip-path: polygon(
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px),
    0 0
  );
  margin: 0 auto;
}

/* CORPORATIONS */
.btn-img-corpo::before {
  transform: scale(1);
  background-image: url("../img/corporations.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-corpo div::before {
  content: "CORPORATIONS";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-corpo div::after {
  content: "CORPORATIONS";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* MEMO */
.btn-img-memo::before {
  transform: scale(1);
  background-image: url("../img/memocaps.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-memo div::before {
  content: "MEMO-CAPS";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-memo div::after {
  content: "MEMO-CAPS";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* POUVOIRS */
.btn-img-pouvoir::before {
  transform: scale(1);
  background-image: url("../img/pouvoir.webp");
  background-size: cover;
  background-position: top;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-pouvoir div::before {
  content: "POUVOIRS PSYCHIQUES";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-pouvoir div::after {
  content: "POUVOIRS PSYCHIQUES";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* EQUIPEMENT */
.btn-img-stuff::before {
  transform: scale(1);
  background-image: url("../img/equipements.webp");
  background-size: cover;
  background-position: top;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-stuff div::before {
  content: "EQUIPEMENT";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-stuff div::after {
  content: "EQUIPEMENT";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* VEHICULES */
.btn-img-vehicule::before {
  transform: scale(1);
  background-image: url("../img/vehicules.png");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-vehicule div::before {
  content: "VEHICULES";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-vehicule div::after {
  content: "VEHICULES";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* CRAFT */
.btn-img-craft::before {
  transform: scale(1);
  background-image: url("../img/craft.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-craft div::before {
  content: "LE CRAFT";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-craft div::after {
  content: "LE CRAFT";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* FDP */
.btn-img-fdp::before {
  transform: scale(1);
  background-image: url("../img/fdp.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-fdp div::before {
  content: "FEUILLE DE PERSONNAGE";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-fdp div::after {
  content: "FEUILLE DE PERSONNAGE";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* AIDE MJ */
.btn-img-aide::before {
  transform: scale(1);
  background-image: url("../img/aidemj.webp");
  background-size: cover;
  background-position: center;
  transition: 0.3s ease transform;
  z-index: 1;
}

.name-b-aide div::before {
  content: "AIDES MJ";
  letter-spacing: 0;
  opacity: 1;
  transform: scale(1);
}

.name-a-aide div::after {
  content: "AIDES MJ";
  letter-spacing: -10px;
  transform: scale(0);
  opacity: 0;
}

/* Bloc commun des after */
.name-a-intro div::after,
.name-a-regle div::after,
.name-a-crea div::after,
.name-a-corpo div::after,
.name-a-memo div::after,
.name-a-pouvoir div::after,
.name-a-stuff div::after,
.name-a-vehicule div::after,
.name-a-craft div::after,
.name-a-fdp div::after,
.name-a-aide div::after {
  color: var(--black);
  background: var(--linear-orange);
  padding: 15px;
  clip-path: polygon(
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px),
    0 0
  );
  margin: 0 auto;
}

/* =========================
   BOUTONS SCIFI GENERIQUES
   ========================= */

.btn {
  --hue: 35;
  --saturation: 100%;
  --lightness: 50%;
  position: relative;
  padding: 1rem 3rem;
  word-break: break-all;
  font-size: 14px;
  line-height: 23px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  background-color: hsl(var(--hue), var(--saturation), var(--lightness));
  outline: transparent;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: 0.25s;
}

.btn:hover {
  background-color: hsl(var(--hue), var(--saturation), calc(var(--lightness) - 10%));
}

.btn-primary {
  --hue: 35;
}

.btn-ghost {
  color: hsl(var(--hue), var(--saturation), var(--lightness));
  background-color: transparent;
  border-color: hsl(var(--hue), var(--saturation), var(--lightness));
}

.btn-ghost:hover {
  color: hsl(var(--hue), var(--saturation), var(--lightness));
}

.btn-shine {
  color: #e5e5e5;
  white-space: break-spaces;
  position: relative;
}

.btn-shine::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    hsla(var(--hue), var(--saturation), var(--lightness), 0.5),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.6s;
  z-index: 1;
  mix-blend-mode: screen;
}

.btn-shine:hover {
  background-color: transparent;
}

.btn-shine:hover::before {
  transform: translateX(100%);
}

.btn-shine > * {
  position: relative;
  z-index: 2;
}

/* =========================
   TOOLTIPS
   ========================= */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltiptext {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
}

.tooltiptext.show {
  display: block;
}

/* =========================
   FLECHE BAS DE PAGE
   ========================= */

#container-arrow {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: auto;
  max-width: 100vw;
  pointer-events: auto;
}

#container-arrow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#container-arrow img {
  display: block;
  width: 35px;
  max-width: 48px;
  height: auto;
}

/* =========================
   RESPONSIVE GLOBAL
   ========================= */

@media screen and (min-width: 749px) {
  .parallax-translate {
    height: 70vh;
  }

  .intro-liste li,
  .liste-caste li,
  .carriere li {
    font-size: 20px;
  }
}

@media screen and (min-width: 768px) {
  .name-a-intro div::after,
  .name-a-regle div::after,
  .name-a-crea div::after,
  .name-a-levelup div::after,
  .name-a-corpo div::after,
  .name-a-memo div::after,
  .name-a-pouvoir div::after,
  .name-a-stuff div::after,
  .name-a-vehicule div::after,
  .name-a-craft div::after,
  .name-a-fdp div::after,
  .name-a-aide div::after {
    width: 60%;
  }

  h3 {
    font-size: 25px;
  }

  li {
    font-size: 20px;
  }
}

@media screen and (min-width: 900px) {
  .icon-box img,
  .container-icon-navprincipale .icon-navprincipale {
    width: 20px;
  }

  .img-parallax {
    left: 0;
  }
}

@media screen and (min-width: 1280px) {
  h2 {
    font-size: 2vw;
  }

  .container-contenu {
    width: 100%;
  }
}

@media screen and (min-width: 1440px) {
  p {
    font-size: 20px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .parallax-translate {
    height: 80vh;
  }
}

@media screen and (min-width: 2560px) {
  .parallax-translate {
    height: 70vh;
  }
}

/* Largeurs fixes du contenu */
@media (min-width: 1024px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 1440px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 1600px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 2048px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 2560px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 2880px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 3200px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 3440px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 3840px) {
  #contenu {
    width: 92%;
  }
}

@media (min-width: 5120px) {
  #contenu {
    width: 5120px;
  }
}

/* =========================
   NAV SECONDAIRE
   ========================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at left center, rgba(255, 165, 0, 0.08), transparent 35%),
    rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 10000;
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.nav-chapter {
   scroll-behavior: auto;
  overflow-anchor: none;
  z-index: 10001;
  background-color: black;
  border-top: 1px solid rgba(255, 165, 0, 0.18);
  box-shadow:
    0 -20px 45px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 165, 0, 0.08);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transform: translateY(calc(100% - 66px));
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.nav-chapter::-webkit-scrollbar {
  display: none;
}

.nav-chapter.nav-is-open {
  transform: translateY(0);
  background-color: rgba(10, 10, 10, 0.985);
  box-shadow:
    0 -30px 70px rgba(0, 0, 0, 0.78),
    0 0 28px rgba(255, 165, 0, 0.08),
    0 0 0 1px rgba(255, 165, 0, 0.14);
}

.nav-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 165, 0, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(255, 165, 0, 0.14), transparent 14%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.nav-chapter.nav-is-open::before {
  opacity: 1;
}

.link-box-chapter {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 8px 12px;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(8, 8, 8, 0.96));
  border-bottom: 1px solid rgba(255, 165, 0, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.title-chapter {
  width: auto;
  margin: 0;
  font-size: 20px;
  line-height: 1;
  font-family: 'elnath';
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
}

/* =========================
   BOUTON MENU SCI-FI
   SANS CERCLE
   ========================= */

.nav-menu-toggle {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 16px rgba(255, 165, 0, 0.28);
  border-radius: 8px;
}

.menu-circle {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-circle::before,
.menu-circle::after {
  display: none;
}

.nav-menu-toggle.is-open .menu-circle {
  transform: scale(1.04);
}

.menu-lines,
.menu-cross {
  position: absolute;
  inset: 0;
  display: block;
}

.menu-line {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9f1c, #ffd089);
  box-shadow:
    0 0 10px rgba(255, 165, 0, 0.34),
    0 0 3px rgba(255, 210, 150, 0.45);
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.menu-line-1 {
  top: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.menu-line-2 {
  top: 50%;
  width: 28px;
  transform: translateX(-50%);
}

.menu-line-3 {
  top: 50%;
  transform: translateX(-50%) translateY(8px);
}

.nav-menu-toggle.is-open .menu-line-1 {
  transform: translateX(-50%) translateY(9px) rotate(45deg);
  opacity: 0;
}

.nav-menu-toggle.is-open .menu-line-2 {
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
}

.nav-menu-toggle.is-open .menu-line-3 {
  transform: translateX(-50%) translateY(-9px) rotate(-45deg);
  opacity: 0;
}

.menu-cross-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb347, #ffe0aa);
  box-shadow:
    0 0 12px rgba(255, 165, 0, 0.36),
    0 0 3px rgba(255, 210, 150, 0.45);
  opacity: 0;
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.menu-cross-line-1 {
  transform: translate(-50%, -50%) rotate(-90deg) scaleX(0.2);
}

.menu-cross-line-2 {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.nav-menu-toggle.is-open .menu-cross-line-1 {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
}

.nav-menu-toggle.is-open .menu-cross-line-2 {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

/* =========================
   BLOCS CHAPITRES AVEC PREVIEW
   ========================= */

.chapter-block {
  opacity: 0;
  filter: blur(6px);
  transform: translateX(-110px) translateY(8px) scale(0.94);
  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(420ms + var(--stagger-index, 0) * 180ms);
}

.nav-chapter.nav-is-open .chapter-block {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) translateY(0) scale(1);
}

.chapter-block + .chapter-block {
  margin-top: 10px;
}

.chapter-title {
  width: calc(100% - 16px);
  display: block;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'elnath';
  color: #e5e5e5;
  background:
    linear-gradient(135deg, rgba(255, 165, 0, 0.18), rgba(255, 165, 0, 0.05)),
    #111;
  margin: 10px auto 10px auto;
  clip-path: polygon(
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px),
    0 0
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 165, 0, 0.22),
    0 0 12px rgba(255, 165, 0, 0.08);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.chapter-title-with-preview {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: stretch;
  min-height: 92px;
  padding: 0;
  overflow: hidden;
}

.chapter-preview-wrapper {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
}

.chapter-preview-bg {
  position: absolute;
  inset: 0;
  display: block;
  background-size: cover;
  background-position: center;
  transform: scale(1.16) translateX(-14px);
  filter: brightness(0.78) saturate(1.05);
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease,
    opacity 0.35s ease;
}

.chapter-preview-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.12), rgba(0,0,0,0.44)),
    linear-gradient(180deg, rgba(255,165,0,0.08), transparent 50%);
  pointer-events: none;
}

.chapter-title-texts {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 14px 14px;
  overflow: hidden;
}

.chapter-kicker,
.chapter-main-title {
  display: block;
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease;
}

.nav-chapter.nav-is-open .chapter-block .chapter-kicker {
  transform: translateY(0);
  opacity: 0.72;
  transition-delay: calc(560ms + var(--stagger-index, 0) * 180ms);
}

.nav-chapter.nav-is-open .chapter-block .chapter-main-title {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(640ms + var(--stagger-index, 0) * 180ms);
}

.chapter-kicker {
  font-family: 'oxanium', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffd79a;
}

.chapter-main-title {
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #f5f5f5;
}

.chapter-title:hover {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 165, 0, 0.30), rgba(255, 165, 0, 0.10)),
    #151515;
  box-shadow:
    inset 0 0 0 1px rgba(255, 165, 0, 0.35),
    0 0 18px rgba(255, 165, 0, 0.14);
}

.chapter-title:hover .chapter-preview-bg {
  transform: scale(1.08) translateX(0);
  filter: brightness(0.9) saturate(1.12);
}

.chapter-title.is-open,
.chapter-title.is-parent-current {
  color: #FFA500;
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.30);
  background:
    linear-gradient(135deg, rgba(255, 165, 0, 0.36), rgba(255, 165, 0, 0.12)),
    #181818;
  box-shadow:
    inset 0 0 0 1px rgba(255, 165, 0, 0.45),
    0 0 20px rgba(255, 165, 0, 0.16);
}

.chapter-title.is-open .chapter-preview-bg,
.chapter-title.is-parent-current .chapter-preview-bg {
  transform: scale(1.05) translateX(0);
  filter: brightness(0.94) saturate(1.15);
}

.chapter-title:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 165, 0, 0.45),
    0 0 0 2px #000,
    0 0 14px rgba(255, 165, 0, 0.28);
}

.chapter-block.chapter-open .chapter-title {
  position: relative;
}

.chapter-block.chapter-open .chapter-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,165,0,0.08), transparent 25%);
  pointer-events: none;
}

.chapter-block.chapter-open .chapter-title::after {
  content: "";
  position: absolute;
  left: 122px;
  bottom: 10px;
  width: 78px;
  height: 2px;
  background: linear-gradient(90deg, #FFA500, rgba(255, 165, 0, 0));
  opacity: 0.95;
}

/* Images de test */
.chapter-preview-intro {
  background-image: url("../img/introduction.webp");
}

.chapter-preview-regles {
  background-image: url("../img/regles.webp");
}

.chapter-preview-crea {
  background-image: url("../img/creation-personnage.png");
}

.chapter-preview-levelup {
  background-image: url("../img/level_up.webp");
}

.chapter-preview-corpo {
  background-image: url("../img/corporations.webp");
}

.chapter-preview-memo {
  background-image: url("../img/memocaps.webp");
}

.chapter-preview-pouvoirs {
  background-image: url("../img/pouvoir.webp");
}

.chapter-preview-equipements {
  background-image: url("../img/equipements.webp");
}

.chapter-preview-vehicules {
  background-image: url("../img/vehicules.png");
}

.chapter-preview-craft {
  background-image: url("../img/craft.webp");
}

.chapter-preview-fdp {
  background-image: url("../img/fdp.webp");
}

.chapter-preview-aidemj {
  background-image: url("../img/aidemj.webp");
}

/* =========================
   OUVERTURE / FERMETURE DES LISTES DE CHAPITRE
   ========================= */

.chapter-list {
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.55s ease,
    opacity 0.28s ease;
}

.chapter-block.chapter-open .chapter-list {
  max-height: 5000px;
  opacity: 1;
}

/* Apparition progressive des liens internes */
.chapter-list > .sub-link-1 {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.42s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-block.chapter-open .chapter-list > .sub-link-1 {
  opacity: 1;
  transform: translateX(0);
}

.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(1)  { transition-delay: 70ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(2)  { transition-delay: 120ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(3)  { transition-delay: 170ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(4)  { transition-delay: 220ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(5)  { transition-delay: 270ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(6)  { transition-delay: 320ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(7)  { transition-delay: 370ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(8)  { transition-delay: 420ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(9)  { transition-delay: 470ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(10) { transition-delay: 520ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(11) { transition-delay: 570ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(12) { transition-delay: 620ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(13) { transition-delay: 670ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(14) { transition-delay: 720ms; }
.chapter-block.chapter-open .chapter-list > .sub-link-1:nth-child(15) { transition-delay: 770ms; }

/* =========================
   LIENS DE NAV
   ========================= */

.nav-chapter li,
.nav-chapter a,
.nav-chapter .chapter-title {
  opacity: 1 !important;
}

.nav-chapter li {
  background-color: var(--bkg-contenu);
  width: calc(100% - 16px);
  margin: 0 auto 8px auto;
  clip-path: polygon(
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px),
    0 0
  );
}

.nav-chapter ul {
  margin: 0;
  padding: 0;
}

.nav-chapter a {
  display: block;
  min-height: 55px;
  padding: 17px 8px 8px 10px;
}

.nav-chapter a.is-current {
  color: #FFA500 !important;
  border-color: #FFA500 !important;
  text-shadow: 0 0 10px rgba(255, 165, 0, .35);
}

.nav-chapter a.is-parent-current {
  color: #FFA500 !important;
  text-shadow: 0 0 10px rgba(255, 165, 0, .25);
}

.sub-link-2 {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.4s ease;
  opacity: 0;
  transform: translateX(-16px);
}

.sub-link-2.show-chapter {
  max-height: 2400px;
  opacity: 1;
  transform: translateX(0);
}

.sub-link-2 a {
  word-break: break-all;
  font-size: 14px;
  padding-left: 16px;
}

.carriere-link {
  padding-left: 20px !important;
}

.carriere-sub-link a {
  padding-left: 30px !important;
}

/* =========================
   DESKTOP
   ========================= */

@media screen and (min-width: 1440px) {
  .nav-chapter {
    top: 90px;
    bottom: 40px;
    left: 0;
    width: 550px;
    height: auto;
    max-height: none;
    border-top: none;
    /* border-right: 1px solid rgba(255, 165, 0, 0.18); */
    clip-path: polygon(
  0 0,
  calc(100% - 18px) 0,
  100% 18px,
  100% calc(100% - 18px),
  calc(100% - 18px) 100%,
  0 100%
);
    transform: translateX(calc(-100% + 56px));
    transition:
      transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.35s ease,
      background-color 0.35s ease,
      width 0.35s ease;
    box-shadow:
      16px 0 40px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 165, 0, 0.08);
  }

  .nav-chapter.nav-is-open {
    transform: translateX(0);
    box-shadow:
      24px 0 55px rgba(0, 0, 0, 0.65),
      0 0 24px rgba(255, 165, 0, 0.10),
      0 0 0 1px rgba(255, 165, 0, 0.16);
  }
}

/* =========================
   PAGES LEGALES
   ========================= */

.legal-page {
  padding-top: 80px;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 20px 60px 20px;
}

.legal-container h2 {
  color: black;
  background: var(--linear-orange);
}

.legal-section {
  margin-bottom: 35px;
}

.legal-section h3 {
  color: var(--orange);
  margin-top: 25px;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 30px;
}

.legal-section li {
  list-style-type: disc;
  margin-bottom: 8px;
  line-height: 1.5;
}

.legal-update {
  font-style: italic;
  opacity: 0.8;
}

/* =========================
   FOOTER GLOBAL
   ========================= */

.site-footer {
  width: 100%;
  padding: 25px 15px;
  background: #050505;
  border-top: 1px solid rgba(255, 165, 0, 0.25);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.footer-nav a,
.footer-nav span {
  color: #cdcdcd;
  font-size: 14px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--orange);
}

/* =========================
   NAV PUBLIQUE / PAGES LEGALES
   ========================= */

.nav-publique .bandeau-navprincipale {
  align-items: center;
}

.public-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 260px;
}

.public-nav-form {
  margin: 0;
}

.public-nav-link,
.public-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 165, 0, 0.55);
  color: #f2f2f2;
  background:
    linear-gradient(135deg, rgba(255, 165, 0, 0.18), rgba(255, 165, 0, 0.04)),
    #0d0d0d;
  clip-path: polygon(
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 0
  );
  font-family: 'oxanium', sans-serif;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 165, 0, 0.12),
    0 0 12px rgba(255, 165, 0, 0.08);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.public-nav-button {
  appearance: none;
}

.public-nav-link:hover,
.public-nav-button:hover {
  color: var(--orange);
  border-color: rgba(255, 165, 0, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 165, 0, 0.30), rgba(255, 165, 0, 0.08)),
    #151515;
  box-shadow:
    inset 0 0 0 1px rgba(255, 165, 0, 0.22),
    0 0 18px rgba(255, 165, 0, 0.18);
  transform: translateY(-1px);
}

.public-nav-link:active,
.public-nav-button:active {
  transform: translateY(0);
}

@media screen and (max-width: 600px) {
  .public-nav-actions {
    min-width: auto;
    gap: 6px;
  }

  .public-nav-link,
  .public-nav-button {
    padding: 8px 10px;
    font-size: 11px;
  }
}