:root {
  --fond: #0c0c0f;
  --fond-2: #15151a;
  --trait: #26262e;
  --texte: #f3f1ec;
  --doux: #9d9a93;
  --orange: #ff8a1e;
  --jaune: #ffc928;
  --degrade: linear-gradient(100deg, var(--jaune), var(--orange));
  --large: 1680px;
  --marge: clamp(24px, 6vw, 120px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font: 400 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.cadre { width: min(var(--large), 100% - 2 * var(--marge)); margin-inline: auto; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--fond) 70%, transparent);
  border-bottom: 1px solid var(--trait);
}
.nav .cadre { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav img { height: 30px; width: auto; }
.langues { margin-left: auto; display: flex; gap: 10px; }
.langues button {
  padding: 0; border: 0; border-radius: 3px; background: none; cursor: pointer; line-height: 0;
  opacity: .4; transition: opacity .15s ease;
}
.langues button:hover { opacity: .75; }
.langues button[aria-pressed="true"] { opacity: 1; }
.langues button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.langues svg { display: block; width: 30px; height: 20px; border-radius: 3px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.bouton:active { transform: scale(.97); }
.bouton svg { width: 20px; height: 20px; }
.bouton.discord { background: #5865f2; color: #fff; }
.bouton.discord:hover { background: #4752e0; }
.bouton.creux { border: 1px solid var(--trait); }
.bouton.creux:hover { border-color: var(--doux); }

/* Accueil */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding-top: 68px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 72% 55%, rgb(255 138 30 / .22), transparent 70%),
    radial-gradient(40% 50% at 90% 20%, rgb(88 101 242 / .14), transparent 70%);
}
.hero .cadre { position: static; }
.hero-texte { position: relative; z-index: 5; padding-block: 80px; max-width: 560px; }
.hero-texte img { width: min(520px, 100%); height: auto; margin-left: -12px; }
.hero h1 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; color: var(--doux); margin-top: 18px; max-width: 30ch; }
.hero h1 strong { color: var(--texte); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-persos { position: absolute; z-index: 1; right: 0; bottom: 0; width: 66%; height: 100%; }
.hero-persos img { position: absolute; bottom: 0; width: auto; filter: drop-shadow(0 20px 40px rgb(0 0 0 / .5)); }
.hero-persos .p1 { height: 88%; left: 22%; z-index: 3; }
.hero-persos .p2 { height: 72%; left: -12%; z-index: 1; filter: grayscale(.3) brightness(.55); }
.hero-persos .p3 { height: 86%; right: -19%; z-index: 2; filter: grayscale(.3) brightness(.55); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 110px; z-index: 4;
  background: linear-gradient(transparent, var(--fond));
}

/* Sections */
section { padding-block: 120px; }
h2 {
  font: italic 900 clamp(40px, 5.4vw, 76px)/.95 "Barlow Condensed", "Segoe UI", sans-serif;
  text-transform: uppercase; letter-spacing: -.005em;
}
h2 em { font-style: inherit; color: var(--orange); }

/* Projet */
.projet { position: relative; overflow: hidden; padding-block: 72px 140px; isolation: isolate; }
.projet::before {
  content: ""; position: absolute; z-index: -2; inset: 60px -10% 60px max(40%, var(--marge) + 560px);
  background: radial-gradient(rgb(255 201 40 / .16) 1.4px, transparent 1.8px) 0 0 / 10px 10px, #121218;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.projet-texte { max-width: 600px; }
.projet-texte > p { color: var(--doux); margin-top: 24px; font-size: 18px; }
.projet dl { margin-top: 44px; border-top: 1px solid var(--trait); }
.projet dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--trait); }
.projet dt { font: italic 800 24px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--orange); }
.projet dd { margin: 0; color: var(--doux); }
.projet-art {
  position: absolute; z-index: -1; left: max(44%, var(--marge) + 660px); bottom: 0;
  height: 86%; width: auto; filter: drop-shadow(0 30px 60px rgb(0 0 0 / .6));
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}

/* Roster façon écran de sélection */
.roster { padding-block: 40px 0; }
.panneaux {
  list-style: none; padding: 0 0 0 24px; margin-top: 40px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 440px;
}
.panneaux li {
  position: relative; overflow: hidden;
  transform: skewX(-8deg);
  background:
    radial-gradient(rgb(0 0 0 / .28) 1.3px, transparent 1.7px) 0 0 / 8px 8px,
    linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 35%, #000));
  filter: saturate(.8) brightness(.85);
  transition: filter .25s ease;
}
.panneaux li img {
  position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none;
  transform: translate(var(--x, -50%), var(--y, 0)) skewX(8deg) scale(var(--s, 1.05)); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.panneaux li span {
  position: absolute; inset: auto 0 0; padding: 60px 20px 16px;
  transform: skewX(8deg);
  background: linear-gradient(transparent, rgb(0 0 0 / .85));
  font: italic 800 22px/1 "Barlow Condensed", sans-serif; text-transform: uppercase;
}
.panneaux li small { display: block; font: normal 600 11px/1 "Segoe UI", sans-serif; letter-spacing: .14em; color: rgb(255 255 255 / .85); margin-bottom: 6px; }
.panneaux li:hover { filter: none; }
.panneaux li:hover img { transform: translate(var(--x, -50%), var(--y, 0)) skewX(8deg) scale(calc(var(--s, 1.05) * 1.08)); }
.encore {
  margin-top: 18px; text-align: right;
  font: italic 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase;
  color: var(--orange);
}

/* Fin */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 40px; padding-block: 150px 110px;
  background: radial-gradient(rgb(0 0 0 / .18) 1.4px, transparent 1.8px) 0 0 / 10px 10px, var(--degrade);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  color: #1a1205;
}
.final .cadre { display: flex; align-items: flex-end; gap: 48px; }
.final h2 { font-size: clamp(56px, 8vw, 120px); }
.final p { font-size: 18px; font-weight: 500; max-width: 30ch; margin-bottom: 20px; }
.final .kofi { font-size: 14px; margin: 18px 0 0; }
.final .kofi a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.final-art {
  position: absolute; z-index: -1; right: max(-60px, (100vw - 1560px) / 2); bottom: -20px;
  height: 115%; width: auto; mix-blend-mode: multiply; opacity: .35; filter: grayscale(1) contrast(1.2);
}
main:has(.final:last-child) + footer { border-top: 0; }

/* Pied */
footer { border-top: 1px solid var(--trait); padding-block: 40px; color: var(--doux); font-size: 14px; }
footer .cadre { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--texte); }

/* Écrans moyens */
@media (min-width: 901px) and (max-width: 1820px) {
  .hero-persos { width: 66%; }
  .hero-persos .p1 { left: 22%; height: 84%; }
  .hero-persos .p2 { left: -14%; }
  .hero-persos .p3 { right: -34%; height: 92%; }
}

/* Petits écrans */
@media (max-width: 900px) {
  section { padding-block: 72px; }
  .nav { position: absolute; }
  .nav .cadre { height: 60px; }

  .hero { flex-direction: column; min-height: 0; padding-top: 60px; }
  .hero::before { background: radial-gradient(90% 45% at 50% 78%, rgb(255 138 30 / .24), transparent 70%); }
  .hero-texte { padding-block: 40px 0; text-align: center; margin-inline: auto; }
  .hero-texte img { width: min(340px, 100%); margin-inline: auto; }
  .hero h1 { font-size: 18px; margin-inline: auto; }
  .actions { justify-content: center; margin-top: 28px; }
  .actions .bouton { flex: 1 1 100%; justify-content: center; }
  .hero-persos { position: relative; right: auto; width: 100%; height: clamp(360px, 110vw, 520px); margin-top: 12px; overflow: hidden; }
  .hero-persos .p1 { height: 100%; left: 50%; transform: translateX(-50%); }
  .hero-persos .p2, .hero-persos .p3 { display: none; }
  .hero::after { height: 120px; }

  .projet { padding-bottom: 0; }
  .projet::before { display: none; }
  .projet-art { position: relative; left: auto; height: auto; width: min(420px, 100%); margin: 24px auto 0; }
  .projet dl div { grid-template-columns: 1fr; gap: 4px; }

  .roster { padding-top: 48px; }
  .panneaux {
    display: flex; gap: 6px; height: 340px; overflow-x: auto;
    margin-inline: -24px; padding: 0 24px 0 40px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .panneaux::-webkit-scrollbar { display: none; }
  .encore { font-size: 22px; margin-top: 14px; }
  .panneaux li { flex: 0 0 150px; scroll-snap-align: center; filter: none; }

  .final { margin-top: 56px; padding-block: 110px 72px; clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
  .final .cadre { flex-direction: column; align-items: flex-start; gap: 24px; }
  .final-art { height: 70%; right: -30%; }
  footer .cadre { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
