/* ============================================================
   SKWID EDITION — style.css
   Feuille de style partagée : index, mentions-légales, 404
============================================================ */

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --bg:            #FFFFFF;
  --bg-alt:        #F4F5F1;
  --dark:          #0E1512;
  --text:          #1C2320;
  --muted:         #6A7870;
  --accent:        #1AC87A;
  --accent-bg:     rgba(26, 200, 122, 0.09);
  --accent-border: rgba(26, 200, 122, 0.22);
  --medok:         #F5C800;
  --medok-dark:    #0F0F0F;
  --decoy-dark:    #161616;
  --decoy-red:     #E8162B;
  --correction:    #2563EB;
  --w-max:         1320px;
  --w-pad:         90px;
  --nav-h:         64px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   WRAPPER
============================================================ */
.wrapper {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--w-pad);
}
@media (max-width: 1100px) { .wrapper { padding: 0 48px; } }
@media (max-width: 640px)  { .wrapper { padding: 0 24px; } }

/* ============================================================
   NAVIGATION
   .site-nav sur l'élément <nav> racine — évite d'écraser
   nav.nav-anchors et nav.footer-legal.
   Flex posé sur .wrapper (pas sur .site-nav) pour que le
   wrapper s'étire à 100% avant d'appliquer max-width + padding.
============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 200;
}
.site-nav > .wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
}
.nav-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0);   /* force noir sur fond blanc */
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-anchors {
  display: flex;
  gap: 24px;
}
.nav-anchors a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-anchors a:hover { color: var(--dark); }

/* Jeux dans la nav — texte coloré, pas de pill */
.nav-anchors a.nav-game:hover { color: inherit; opacity: 0.75; }
.nav-anchors a.nav-game.medok { color: var(--medok); }
.nav-anchors a.nav-game.decoy { color: var(--decoy-red); }

/* Toggle FR / EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.lang-switch span { color: var(--muted); }
.lbtn {
  color: var(--muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 2px 0;
  transition: color .2s;
  text-transform: uppercase;
}
.lbtn.active { color: var(--dark); font-weight: 900; }

@media (max-width: 960px) { .nav-anchors { display: none; } }

/* ============================================================
   HERO (index)
============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    /*linear-gradient(rgba(255,255,255,0.87), rgba(255,255,255,0.87)),*/
    url('../images/Fond-jade.png') center / cover no-repeat;
}

/* Octopus — paramètres définis par Vincent */
.hero-illus {
  position: absolute;
  pointer-events: none;
  user-select: none;
  bottom: -15%;
  right: 20%;
  width: 1800px;
  z-index: 2;
  transform: rotate(-12deg) translate3d(0px, 0px, 0px);
  /*filter: invert(100%) hue-rotate(102deg);*/
  will-change: transform;
  mix-blend-mode: color-dodge;
  opacity: 0.80;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 0 100px;
  max-width: 720px;
}

h1.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
/* MORDANT : Rubik Glitch — glyphes glitchés, disruptif par nature */
h1.hero-title em {
  font-family: 'Rubik Glitch', cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: black;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid;
  border-radius: 2px;
  transition: all .22s;
  white-space: nowrap;
}
.btn-medok { background: var(--medok); border-color: var(--medok); color: var(--dark); }
.btn-medok:hover { background: transparent; }
.btn-decoy { background: var(--decoy-dark); border-color: var(--decoy-dark); color: #fff; }
.btn-decoy:hover { background: transparent; color: var(--dark); }

/* ============================================================
   À PROPOS
============================================================ */
#about {
  padding: 120px 0;
  background: var(--bg-alt);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-eyebrow::before { content: '// '; opacity: 0.4; }

h2.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 36px;
}
.about-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }

/* Visuel about */
.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.about-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.av-corner {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 2;
}
.av-corner.tl {
  top: 20px; left: 16px;
  border-top: 2px solid rgba(26,200,122,0.4);
  border-left: 2px solid rgba(26,200,122,0.4);
}
.av-corner.br {
  bottom: 20px; right: 20px;
  border-bottom: 2px solid rgba(26,200,122,0.4);
  border-right: 2px solid rgba(26,200,122,0.4);
}
.about-visual-logo {
  position: relative;
  z-index: 2;
  width: 72%;
  max-width: 300px;
  /*filter: brightness(0) invert(1) sepia(1) hue-rotate(112deg) saturate(2.5) brightness(0.88);*/
}
.about-visual-tagline {
  position: relative;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: white;
  text-align: center;
}

/* ============================================================
   NOS JEUX DE CARTES
============================================================ */
#games {
  padding: 120px 0;
  background: var(--bg);
}
.games-header { margin-bottom: 60px; }
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-packshot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 12 / 9;
  background: #111;
  flex-shrink: 0;
}
.card-packshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform .4s ease;
}
.game-card:hover .card-packshot img { transform: scale(1.03); }

.card-body {
  padding: 30px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) { .card-body { padding: 28px 30px 36px; } }

.card-logo-img {
  height: 34px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left;
}

.card-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Correction Medok : cobayes barré en bleu, patients manuscrit bleu */
.correction-wrap {
  position: relative;
  display: inline-block;
  /*padding-bottom: 28px;*/
}
.card-tagline s {
  text-decoration: line-through;
  text-decoration-color: var(--correction);
  text-decoration-thickness: 2px;
}
.hand {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--correction);
  position: absolute;
  left: 8px;
  white-space: nowrap;
  bottom: -18px;
}

.card-stats {
  display: flex;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}
.stat { flex: 1; padding-right: 16px; }
.stat:last-child { padding-right: 0; }
.stat label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 4px;
  white-space: nowrap;
}
.stat span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: normal;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
  margin-left: auto;
}
.card-tags span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 1px solid currentColor;
}

/* Medok */
.card-medok { background: var(--medok); color: var(--dark); }
.card-medok .card-stats  { border-color: rgba(0,0,0,0.12); }
.card-medok .card-logo-img { filter: brightness(0); }
.btn-card-medok { background: var(--dark); border-color: var(--dark); color: var(--medok); }
.btn-card-medok:hover { background: transparent; color: var(--dark); }

/* Decoy — logo SVG sans filtre (couleurs naturelles) */
.card-decoy { background: var(--decoy-dark); color: #fff; }
.card-decoy .card-stats  { border-color: rgba(255,255,255,0.1); }
.card-decoy .card-tagline { opacity: 0.7; }
.btn-card-decoy { background: var(--decoy-red); border-color: var(--decoy-red); color: #fff; }
.btn-card-decoy:hover { background: transparent; color: var(--decoy-red); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--dark);
  padding: 48px 0 40px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.footer-logo img {
  height: 94px;
  width: auto;
  opacity: 0.9;
}
.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color .2s;
}
.footer-col ul li a:hover          { color: rgba(255,255,255,0.9); }
.footer-col ul li a.lk-medok:hover { color: var(--medok); }
.footer-col ul li a.lk-decoy:hover { color: var(--decoy-red); }
.footer-col ul li a.lk-insta:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.2);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   PAGES DE CONTENU (mentions légales, confidentialité…)
============================================================ */
.page-main {
  padding: calc(var(--nav-h) + 80px) 0 120px;
  min-height: calc(100vh - 240px);
}
.page-header {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.page-header .section-eyebrow { margin-bottom: 20px; }
.page-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}
.page-header .page-updated {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body { max-width: 820px; }

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

.legal-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-border);
}
.legal-section h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 28px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { opacity: 0.8; }

/* Crédits — grille de fiches */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.credit-item {
  padding: 20px 22px;
  background: var(--bg-alt);
  border-radius: 3px;
  border-left: 3px solid var(--accent);
}
.credit-item dt {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.credit-item dd {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--dark);
}

/* ============================================================
   PAGE 404
   Reprend exactement l'apparence du bloc Hero
============================================================ */
#error-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: url('../images/Fond-jade.png') center / cover no-repeat;
}
#error-hero .hero-illus {
  position: absolute;
  pointer-events: none;
  user-select: none;
  bottom: -15%;
  right: 20%;
  width: 1800px;
  z-index: 2;
  transform: rotate(-12deg) translate3d(0px, 0px, 0px);
  will-change: transform;
  mix-blend-mode: color-dodge;
  opacity: 0.80;
}
.error-content {
  position: relative;
  z-index: 3;
  padding: 80px 0 100px;
  max-width: 720px;
}
.error-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.error-label::before { content: '// '; opacity: 0.4; }
h1.error-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 7.5vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
h1.error-title em {
  font-family: 'Rubik Glitch', cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.error-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 44px;
}
.btn-home {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--bg);
}
.btn-home:hover { background: transparent; color: var(--dark); }
