/* ============================================================
   VARIABLES — MODIFIER ICI les couleurs principales du site
   ============================================================ */
:root{
  --ink: #0B111B;
  --ink-2: #121A28;
  --ink-3: #182234;
  --gold: #C9A227;
  --gold-soft: #8C7726;
  --paper: #F4F0E6;
  --muted: #9BA3B4;
  --line: #2B3546;
  --nav-h: 68px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

.display{
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.mono{ font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; }

.wrap{ max-width: 1040px; margin: 0 auto; padding: 0 32px; }

.eyebrow{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ============================================================
   NAVIGATION — barre fixe en haut de toutes les pages
   ============================================================ */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.logo span{ color: var(--gold); }

.nav-links{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > li > a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links > li > a:hover,
.nav-links > li > a.active{ color: var(--paper); }

.has-dropdown details{ position: relative; }
.has-dropdown summary{
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.has-dropdown summary::-webkit-details-marker{ display:none; }
.has-dropdown summary:hover{ color: var(--paper); }
.has-dropdown summary::after{ content: " ▾"; font-size: 11px; }
.dropdown{
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: var(--ink-3);
  border: 1px solid var(--line);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}
.dropdown a{
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.dropdown a:hover{ background: var(--ink-2); color: var(--paper); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 20px;
  width: 40px; height: 40px;
  cursor: pointer;
}

@media (max-width: 780px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open{ max-height: 400px; }
  .nav-links > li{ width: 100%; }
  .nav-links > li > a{ display:block; padding: 16px 32px; border-bottom: 1px solid var(--line); }
  .has-dropdown details{ width: 100%; }
  .has-dropdown summary{ padding: 16px 32px; border-bottom: 1px solid var(--line); }
  .dropdown{ position: static; border: none; background: var(--ink-2); }
  .dropdown a{ padding: 12px 44px; }
}

/* ============================================================
   TITRES ET SECTIONS COMMUNES
   ============================================================ */
h1{
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  max-width: 880px;
}
h2{
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  max-width: 760px;
  line-height: 1.08;
}
section{ padding: 90px 0; border-bottom: 1px solid var(--line); }

.cta{
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover{ background: var(--gold); color: var(--ink); }

footer{ padding: 40px 0 60px; font-size: 13px; color: var(--muted); }

/* ============================================================
   ACCUEIL — hero + feuille de match + pour qui + contact
   ============================================================ */
header.hero{ padding: 100px 0 90px; border-bottom: 1px solid var(--line); }
header.hero .sub{ margin-top: 32px; max-width: 620px; font-size: 19px; color: var(--muted); }
header.hero .sub strong{ color: var(--paper); font-weight: 500; }
header.hero .cta{ margin-top: 44px; }

.principe p{ margin-top: 26px; max-width: 640px; font-size: 17px; color: var(--muted); }

.feuille-de-match{ background: var(--ink-2); }
.grid-cas{
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.carte-cas{
  background: var(--ink-3);
  padding: 36px;
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.2s ease;
}
.carte-cas.visible{ opacity: 1; transform: translateY(0); }
.carte-cas:hover{ background: #1D2A3F; }
.numero{ font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 44px; color: var(--gold); line-height: 1; }
.univers{ font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.nom-cas{ font-family: 'Big Shoulders Display', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 24px; margin-top: 6px; }
.accroche-cas{ margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 320px; }
.lire-plus{ margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }

.pour-qui .wrap{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.pour-qui ul{ list-style: none; margin-top: 30px; }
.pour-qui li{ padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.pour-qui li:last-child{ border-bottom: 1px solid var(--line); }
.pour-qui li strong{ color: var(--paper); font-weight: 500; }

.contact-section{ border-bottom: none; }
.contact-section a.mail{
  display: inline-block;
  margin-top: 26px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 4px;
}
.contact-section a.mail:hover{ border-color: var(--gold); }

/* ============================================================
   PAGES CAS — récit, mécanismes, transposition
   ============================================================ */
header.hero-cas{ padding: 80px 0 70px; border-bottom: 1px solid var(--line); }
.media-placeholder{
  margin-top: 40px;
  height: 260px;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.hero-image-wrap{
  margin-top: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--ink-3);
  border: 1px solid var(--line);
  padding: 18px;
}
.hero-image{
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.credit{
  max-width: 480px;
  margin: 10px auto 0;
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.banner-image{
  margin: 36px auto 0;
  width: 100%;
  max-width: 340px;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.recit p{ margin-top: 22px; max-width: 680px; font-size: 17px; color: var(--muted); }
.recit p strong{ color: var(--paper); font-weight: 500; }

.mecanismes{ background: var(--ink-2); }
.liste-meca{ margin-top: 40px; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.meca{ background: var(--ink-3); padding: 28px 32px; }
.meca .chiffre{ font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: 13px; margin-bottom: 10px; }
.meca p{ font-size: 16px; color: var(--muted); max-width: 640px; }

.transposition p{ margin-top: 22px; max-width: 640px; font-size: 17px; color: var(--muted); }

.retour{ border-bottom: none; padding-top: 60px; padding-bottom: 60px; }
.retour a{ color: var(--gold); font-size: 14px; text-decoration: none; font-family: 'IBM Plex Mono', monospace; }
.retour a:hover{ text-decoration: underline; }

/* ============================================================
   À PROPOS
   ============================================================ */
.apropos p{ margin-top: 22px; max-width: 640px; font-size: 17px; color: var(--muted); }

@media (max-width: 900px){
  .grid-cas{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .pour-qui .wrap{ grid-template-columns: 1fr; }
  header.hero{ padding: 70px 0 60px; }
  section{ padding: 60px 0; }
}
