/* =========================================================
   SGL Esport — Simulation Games League
   Feuille de styles de la page « L'association »

   Sommaire
   1. Polices et variables
   2. Base
   3. Bandeau « Site en cours de développement »
   4. En-tête et menu
   5. Boutons
   6. Section du haut (hero)
   7. Sections
   8. Cadres à coins dorés
   9. Pied de page
   10. Transition entre les pages
   11. Date, heure et coordonnées de la souris
   12. Effets glitch
   13. Responsive et réduction des animations
   14. Thème clair (pages légales)
   ========================================================= */


/* ---------- 1. Polices et variables ----------
   Proelium : gros titres · Sansation (licence SIL OFL) : tout le reste.
   Proelium n'existe ici qu'en italique : les deux déclarations pointent vers
   GT Proelium Italic, pour que le navigateur n'incline pas une seconde fois les <em>. */
@font-face { font-family: "Proelium"; src: url("../assets/fonts/gt-proelium-italic.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Proelium"; src: url("../assets/fonts/gt-proelium-italic.woff") format("woff"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Sansation"; src: url("../assets/fonts/sansation-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sansation"; src: url("../assets/fonts/sansation-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg:         #080a0e;
  --bg-glass:   rgba(8, 10, 14, .85);   /* fond sombre semi-transparent */
  --surface:    rgba(8, 10, 14, .82);   /* fond des cadres */
  --line:       #2c323c;                /* traits et bordures décoratifs */
  --line-strong:#5f6672;                /* bordures des champs et boutons (contraste 3:1 minimum) */

  --text:       #eceef1;
  --muted:      #a3a9b3;                /* texte secondaire : contraste 8:1 sur le fond */
  --faint:      #848a94;                /* texte discret : contraste 5,7:1 (4,5:1 minimum requis) */

  --accent:     #c9ab53;                /* or */
  --accent-tx:  var(--accent);          /* or utilisé pour du texte (assombri sur fond clair) */
  --accent-ink: #1a1608;                /* texte sur fond or */

  --g1: #00ff9d;                        /* canaux de couleur de l'effet glitch */
  --g2: #ff0044;

  --font-title: "Proelium", "Sansation", system-ui, sans-serif;
  --font-text:  "Sansation", system-ui, sans-serif;

  /* Échelle typographique : 5 tailles seulement pour tout le site */
  --fs-small: 13px;                         /* étiquettes, menus, boutons, pied de page, date / heure */
  --fs-body:  17px;                         /* tous les textes (16 px sur mobile) */
  --fs-h3:    clamp(26px, 2.4vw, 32px);     /* titres des cartes (simulateurs, valeurs) */
  --fs-h2:    clamp(36px, 4.5vw, 56px);     /* sous-titres de section */
  --fs-h1:    clamp(50px, 8.5vw, 110px);    /* grands titres (haut de page et sections) */

  --wrap:    1200px;                  /* largeur max. de l'en-tête */
  --content: 1120px;                  /* largeur max. du contenu (titres, textes, cadres) */
  --gutter:  clamp(16px, 4vw, 40px);  /* marge latérale de base */
  --side:    var(--gutter);           /* marge latérale du contenu (élargie sur ordinateur, voir partie 13) */
  --ease:   cubic-bezier(.2, .7, .2, 1);
}


/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: var(--fs-body)/1.6 var(--font-text);
  color: var(--text);
  background: var(--bg) url("../assets/pattern.png") 0 0 / 100%  repeat; /* motif de fond */
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }   /* évite les mots isolés en fin de paragraphe */
h1, h2, h3 { text-wrap: balance; }      /* titres sur plusieurs lignes équilibrées */
li { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.04; letter-spacing: .01em; margin: 0; }

.wrap  { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono  { font-weight: 400; letter-spacing: .06em; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 8px 14px; font-weight: 700; background: var(--accent); color: var(--accent-ink);
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-tx); outline-offset: 3px; }


/* ---------- 3. Bandeau « Site en cours de développement » (30 px, au-dessus du menu) ---------- */
.devbar {
  position: absolute; inset: 0 0 auto 0; z-index: 60; height: 30px; overflow: hidden;
  font-size: var(--fs-small); line-height: 30px; letter-spacing: .08em; text-align: center; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
}


/* ---------- 4. En-tête et menu ----------
   L'en-tête reste en haut de la page : il défile avec le contenu (pas de menu flottant). */
.topbar {
  position: absolute; inset: 30px 0 auto 0; z-index: 50;   /* sous le bandeau, posé sur le haut de la page */
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { height: 40px; width: auto; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__top {
  position: relative; padding: 10px 14px; text-decoration: none;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  transition: color .2s;
}
.nav__item:hover .nav__top,
.nav__item:focus-within .nav__top,
.nav__item.is-current .nav__top { color: var(--text); }
.nav__item.is-current .nav__top::before {   /* trait doré sous la rubrique en cours */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent);
}

/* Sous-menus : ouverture au survol / au clavier (ordinateur), au toucher de la flèche (mobile) */
.has-sub > .nav__top { padding-right: 2px; }
.nav__toggle { display: grid; place-items: center; width: 20px; height: 32px; margin-right: 6px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; }
.nav__toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s var(--ease); }
.nav__item:hover .nav__toggle, .nav__item:focus-within .nav__toggle, .nav__item.is-open .nav__toggle { color: var(--text); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 4px; z-index: 5; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--bg-glass); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block; padding: 11px 18px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; color: var(--muted); border-left: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav__sub a:hover, .nav__sub a:focus-visible { color: var(--text); border-left-color: var(--accent); }
.nav__sub a[aria-current="page"] { color: var(--accent-tx); border-left-color: var(--accent); }

/* Logos Discord et Instagram, à droite du menu */
.nav__social { gap: 0px; margin-left: 32px; }
.nav__social a { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); transition: color .2s; }
.nav__social a:hover { color: var(--accent-tx); }
.nav__social svg { width: 18px; height: 18px; fill: currentColor; }

/* Choix de la langue FR / EN (à relier plus tard à l'extension de traduction WordPress) */
.nav__lang { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang { display: flex; align-items: center; gap: 2px; font-size: var(--fs-small); letter-spacing: .1em; }
.lang a { display: grid; place-items: center; min-width: 32px; height: 32px; text-decoration: none; color: var(--muted); transition: color .2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--accent-tx); font-weight: 700; }
.lang span { color: var(--line-strong); }

/* Bouton du menu mobile */
.burger { display: none; width: 44px; height: 44px; padding: 12px 10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); transition: transform .25s var(--ease); }
.burger span + span { width: 60%; margin: 7px 0 0 auto; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span + span { width: 100%; transform: translateY(-4.5px) rotate(-45deg); }


/* ---------- 5. Boutons ----------
   Angles droits. Survol (souris) : le nouveau fond arrive de gauche à droite, précédé d'un front
   de pixels carrés de 12 pixels de long sur 3 rangées, dans une 3e couleur, avec une transparence légèrement
   différente d'une rangée à l'autre. Les pixels sont dessinés par le JS dans .btn__fx.
   Couleurs : --wave = nouveau fond, --px = couleur des pixels de transition. */
.btn {
  --wave: var(--text);
  --px: var(--bg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px;
  font-weight: 700; font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0;
  transition: border-color .2s, color .12s;
}
.btn__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.btn__fx > span { position: absolute; left: 0; right: 0; }                    /* une rangée de pixels */
.btn__fx i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--wave); }   /* nouveau fond */
.btn__fx b { position: absolute; top: 0; bottom: 0; background: var(--px); }               /* pixels du front */
.btn:focus-visible .btn__fx i { width: 100% !important; left: 0 !important; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }                                   /* or → blanc, pixels foncés */
.btn--ghost { --wave: var(--accent); --px: var(--text); background: rgba(8, 10, 14, .6); border-color: var(--line-strong); color: var(--text); }   /* sombre → or, pixels blancs */
.btn--ghost.is-filled, .btn--ghost:focus-visible { color: var(--accent-ink); border-color: var(--accent); }


/* ---------- 6. Section du haut (hero) ---------- */
.hero {
  /* 200 px d'espace vide au-dessus du contenu ; l'image de fond reste calée en haut de la page */
  position: relative; isolation: isolate;
  min-height: calc(100vh + 200px); min-height: calc(100svh + 200px);
  display: flex; align-items: center; padding: 320px 0 72px;
}
/* Image de fond (assets/hero-esport.jpg), assombrie ; le bas s'efface en dégradé dans le motif du site */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, .25) 0%, rgba(8, 10, 14, .5) 60%, rgba(8, 10, 14, .85) 100%),   /* voile allégé : image plus visible */
    url("../assets/hero-esport.jpg") center / cover no-repeat,
    var(--bg);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
          mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.hero__inner { position: relative; text-align: center; }   /* contenu du haut centré */

.hero__title {
  margin: 28px 0;
  font-size: var(--fs-h1); text-transform: uppercase; line-height: 1.02;
}
.hero__title .line { display: block; }
.hero__lead { max-width: 560px; font-size: var(--fs-body); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

.hero__disciplines {
  list-style: none; max-width: 760px; margin: 72px auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero__disciplines li { padding: 16px 16px 0 0; font-weight: 700; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; }
.hero__disciplines .mono { display: block; margin-bottom: 4px; font-size: var(--fs-small); color: var(--accent); }


/* ---------- 7. Sections ---------- */
.section { position: relative; padding: clamp(88px, 12vw, 150px) 0; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2 { font-size: var(--fs-h1); text-transform: uppercase; }
.section__intro { margin-top: 20px; font-size: var(--fs-body); color: var(--muted); }
.subhead { margin: 80px 0 28px; font-size: var(--fs-h2); text-transform: uppercase; }

/* Hook */
.concept { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }   /* les 2 classements côte à côte */
.concept__big { font-style: italic; font-weight: 600; font-size: var(--fs-body); }

/* Emplacements « À compléter » */
.placeholder { position: relative; padding: 30px 24px 24px; color: var(--muted); border: 1px dashed var(--line); }
.placeholder--bare { background: transparent; }
.placeholder__tag {
  position: absolute; top: -11px; left: 16px; padding: 3px 8px;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .12em;
  background: var(--accent); color: var(--accent-ink);
}

/* Play-to-Eco */
.eco__title em { font-style: italic; color: var(--accent); }
/* Illustration à gauche, encart « En cours de développement » à droite */
.eco__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.eco__visual { margin: 0; }
/* L'image a de grandes marges transparentes en haut et en bas :
   l'affichage est recadré sur la bande du dessin, sans modifier le fichier */
.eco__visual img { width: 100%; height: auto; aspect-ratio: 5334 / 2000; object-fit: cover; object-position: 50% 45%; }
.eco__frame { position: relative; padding: clamp(28px, 5vw, 56px); background: var(--surface); }
.eco__lead { font-size: var(--fs-body); }
.eco__steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco__steps li { padding-top: 16px; border-top: 1px solid var(--line); }
.eco__steps .mono { font-size: var(--fs-small); color: var(--accent); }
.eco__steps p { margin-top: 8px; }

/* Jeux */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game {
  position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 32px 28px 40px; overflow: hidden;
  transition: background-color .25s var(--ease);
}
.game::before {   /* trait doré qui se déploie au survol */
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--accent);
  transition: width .35s var(--ease);
}
.game:hover { background-color: #22272e; }
.game:hover::before { width: 100%; }
.game__cat { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.game h3 { margin-top: auto; padding-top: 48px; font-size: var(--fs-h3); text-transform: uppercase; }
.game p { margin-top: 8px; color: var(--muted); }
.game--more h3 { color: var(--muted); }

/* Nos valeurs */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.split .section__head { margin-bottom: 0; }
.values { display: grid; gap: 16px; }
.value { padding: 28px; }
.value h3 { margin: 18px 0 8px; font-size: var(--fs-h3); text-transform: uppercase; }
.pillar__num { font-size: var(--fs-small); color: var(--accent); }


/* Pages intérieures (Contact, Nous rejoindre) : titre de page, cartes en 3 colonnes */
.page-hero { padding: 220px 0 0; }
.page-hero__title { margin: 0 0 24px; font-size: var(--fs-h1); text-transform: uppercase; line-height: 1.02; }
.page-hero__title .line { display: block; }
.page-hero + .section { padding-top: 72px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel, .job { display: flex; flex-direction: column; padding: 28px; text-decoration: none; color: var(--text); }
.channel h3, .job h3 { margin: 18px 0 8px; font-size: var(--fs-h3); text-transform: uppercase; }
.job__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.btn-icon {   /* bouton carré avec une icône seule (partager) */
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: rgba(8, 10, 14, .6); border: 1px solid var(--line-strong); border-radius: 0; color: var(--text);
  transition: border-color .2s, color .2s;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn-icon.is-done { border-color: var(--g1); color: var(--g1); }
.share-toast {   /* message « Lien copié » */
  position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translateX(-50%);
  padding: 10px 16px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em;
  background: var(--bg); border: 1px solid var(--g1); color: var(--g1);
}
.job p { margin-bottom: 28px; }


/* Page Contact : formulaire à gauche, réseaux à droite */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: stretch; }   /* même hauteur pour les 2 blocs */
.contact__other { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 40px); }
.contact__other-title { margin-bottom: 8px; font-size: var(--fs-h3); text-transform: uppercase; }
.social-link {
  display: flex; align-items: center; gap: 16px; padding: 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); transition: border-color .2s, background-color .2s;
}
.social-link:hover { border-color: var(--accent); background: rgba(201, 171, 83, .06); }
.social-link__icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 1px solid var(--line-strong); color: var(--accent); }
.social-link__icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-link[data-link="instagram"] .social-link__icon svg { fill: none; stroke: currentColor; }
.social-link__name { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.social-link__desc { display: block; font-size: var(--fs-small); color: var(--muted); }
.form { position: relative; display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--text);
  background: rgba(8, 10, 14, .6); border: 1px solid var(--line-strong); border-radius: 2px;
  transition: border-color .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field select {   /* liste déroulante avec flèche dorée */
  appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: var(--bg); color: var(--text); }
.field__req { color: var(--accent); }
.field__opt { text-transform: none; letter-spacing: 0; color: var(--faint); }
.form__captcha {   /* emplacement réservé au widget anti-robot (environ 300 × 65 px) */
  display: grid; place-items: center; width: 300px; max-width: 100%; height: 65px;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--faint);
  border: 1px dashed var(--line-strong);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* piège à robots, invisible */
.form__note { font-size: var(--fs-small); color: var(--faint); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form .btn { border: 0; cursor: pointer; font-family: inherit; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form__status { font-size: var(--fs-small); }
.form__status.is-ok { color: var(--g1); }
.form__status.is-error { color: var(--g2); }


/* Feuille de route : une carte par module, avec statut et barre d'avancement */
.roadmap__bar { margin: -32px 0 24px; }
.roadmap__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
/* Carrousel : une carte mise en avant au centre, les autres plus petites et estompées (ordinateur) */
.roadmap {
  --card: min(440px, 64cqw);   /* cqw = % de la largeur du contenu (le conteneur .wrap) */
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: var(--card); gap: 16px;
  padding-inline: calc((100cqw - var(--card)) / 2);   /* permet de centrer la première et la dernière carte */
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: 6px;
}
.roadmap::-webkit-scrollbar { display: none; }
@media (min-width: 641px) {   /* bords estompés : les cartes voisines disparaissent en douceur */
  .roadmap { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
}
.roadmap > .module {
  scroll-snap-align: center; scroll-snap-stop: always;
  scale: .88; opacity: .4; transition: scale .4s var(--ease), opacity .4s var(--ease);
}
.roadmap > .module.is-active { scale: 1; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .roadmap { user-select: none; } }   /* clics répétés sans sélectionner le texte */
/* Indicateur de position : rond plein ; carré doré de même taille = position actuelle */
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel__dots { display: flex; align-items: center; gap: 2px; }
.carousel__dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; }
.carousel__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong);
  transition: border-radius .25s var(--ease), background-color .25s var(--ease), scale .25s var(--ease);
}
.carousel__dot:hover::before { background: var(--muted); }
.carousel__dot[aria-selected="true"]::before { border-radius: 0; background: var(--accent); }
.module { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.module__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module__cat { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.module__status {   /* pastille pleine, texte foncé */
  display: inline-block; padding: 4px 10px; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 2px; color: var(--accent-ink);
}
.module__status--fait  { background: var(--g1); }
.module__status--cours { background: var(--accent); }
.module__status--prevu { background: var(--muted); }
.module h3 { font-size: var(--fs-h3); text-transform: uppercase; }
.module__progress { margin-top: 8px; }
.module__progress-head { display: flex; justify-content: space-between; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.module__pct { color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 6px; margin-top: 8px; background: var(--line); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--p); background: var(--accent); transform-origin: left; }
.js .bar__fill { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .bar.is-filled .bar__fill { transform: scaleX(1); }
.module__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.module__meta dt { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.module__meta dd { margin: 2px 0 0; }

/* L'équipe : rôle > pseudo > nom > présentation > disciplines */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { display: flex; flex-direction: column; padding: 24px; }
.member__photo {
  display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 20px; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo svg { width: 40%; fill: none; stroke: var(--faint); stroke-width: 1.2; }
.member__role { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.member h3 { margin-top: 6px; font-size: var(--fs-h3); text-transform: uppercase; }
.member__name { color: var(--text); }
.member__bio { margin-top: 12px; }
.member__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.member__tags li { padding: 2px 8px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line-strong); color: var(--muted); }


/* Pages légales (CGU, mentions légales, cookies) : texte long, largeur de lecture confortable */
.legal { max-width: 760px; }
.legal h2 { margin: 48px 0 12px; font-size: var(--fs-h3); text-transform: uppercase; scroll-margin-top: 24px; }
.legal p, .legal li, .legal dd { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent-tx); }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal__date { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--faint) !important; }
.legal__defs { display: grid; gap: 10px; margin: 12px 0 0; }
.legal__defs dt { font-weight: 700; color: var(--text); }
.legal__defs dd { margin: 2px 0 0; }
.legal__table { margin-top: 20px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.legal th, .legal td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); }
.legal th { text-transform: uppercase; letter-spacing: .08em; color: var(--text); background: var(--surface); }
.legal td { color: var(--muted); }
.todo { padding: 0 4px; background: rgba(201, 171, 83, .18); color: var(--accent-tx); }   /* information à compléter */


/* Liens vers les sites des jeux : soulignés en doré, petite flèche ↗ */
.ext { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; transition: color .2s; }
.ext::after { content: "↗"; margin-left: 2px; font-size: .85em; color: var(--accent-tx); }
.ext:hover { color: var(--accent-tx); }

/* L'équipe : appel à rejoindre */
.team__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 40px; text-align: center; }

/* Statuts et règlements : une ligne par document */
.docs { display: grid; gap: 16px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px 28px; }
.doc__icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); color: var(--accent-tx); }
.doc__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.doc h3 { font-size: var(--fs-h3); text-transform: uppercase; }
.doc__body .muted { margin-top: 4px; }
.doc__meta { margin-top: 6px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }


/* Tournament Center : page de maintenance */
.maintenance { position: relative; overflow: hidden; max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px); text-align: center; }
.maintenance h2 { margin: 20px 0 12px; font-size: var(--fs-h2); text-transform: uppercase; }
.maintenance p { max-width: 52ch; margin: 0 auto; }
.maintenance__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.maintenance__scan {   /* fine barre de balayage qui descend en boucle */
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--g2), var(--g1), transparent); opacity: .7;
  animation: scan-loop 3.2s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes scan-loop { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: .7; } 100% { top: 100%; opacity: 0; } }

/* Page 404 */
.error { text-align: center; }
.error__code { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: clamp(120px, 24vw, 280px); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.error .page-hero__title { margin-top: 8px; }
.error .hero__lead { margin: 0 auto; }
.error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.error__search { max-width: 420px; margin: 40px auto 0; }

/* Formulaire de recherche */
.searchform { display: flex; gap: 8px; }
.searchform input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; font: inherit; color: var(--text);
  background: rgba(8, 10, 14, .6); border: 1px solid var(--line-strong); border-radius: 2px;
}
.searchform input:focus { outline: none; border-color: var(--accent); }
.search-head { display: grid; gap: 16px; max-width: 640px; margin-bottom: 40px; }
.results { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; max-width: 760px; }
.result { padding: 24px 0; border-top: 1px solid var(--line); }
.result__title { margin: 6px 0 8px; font-size: var(--fs-h3); text-transform: uppercase; }
.result__title a, .post-card__title a { color: inherit; text-decoration: none; }
.result__title a:hover, .post-card__title a:hover { color: var(--accent-tx); }
.results mark { background: rgba(201, 171, 83, .25); color: var(--text); padding: 0 2px; }
.todo-note { color: var(--faint); }

/* Contenu éditorial (pages et articles WordPress) */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-tx); }
.prose h2 { margin-top: 48px; font-size: var(--fs-h2); text-transform: uppercase; }
.prose h3 { margin-top: 36px; font-size: var(--fs-h3); text-transform: uppercase; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent-tx); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); }
.prose blockquote p { font-family: var(--font-title); font-size: var(--fs-h3); line-height: 1.2; color: var(--text); text-transform: uppercase; }
.prose blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: var(--fs-small); color: var(--faint); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { width: 100%; height: auto; }
.prose figcaption, .wp-caption-text { margin-top: 8px; font-size: var(--fs-small); color: var(--faint); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); }
.prose th { color: var(--text); background: var(--surface); text-transform: uppercase; letter-spacing: .08em; }
.prose .table-wrap { overflow-x: auto; }
.prose__lead { font-size: calc(var(--fs-body) * 1.15); color: var(--text) !important; }
:where(.wp-block-buttons) { display: flex; flex-wrap: wrap; gap: 12px; }

/* Actualités : filtres, cartes d'articles, pagination */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { padding: 8px 14px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--muted); border: 1px solid var(--line-strong); }
.filters a:hover { color: var(--text); border-color: var(--text); }
.filters a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.post-card:hover { border-color: var(--accent); }
.post-card__img { display: grid; place-items: center; aspect-ratio: 16 / 9; text-decoration: none; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); background: rgba(255, 255, 255, .03) url("../assets/hero-esport.jpg") center / cover; background-blend-mode: luminosity; }
.post-card__img span { padding: 4px 8px; background: var(--bg-glass); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 24px 24px; }
.post-card__title { font-size: var(--fs-h3); text-transform: uppercase; }
.post-card__more { margin-top: auto; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-tx); text-decoration: none; }
.post-card__more::after { content: " →"; }
.post-meta { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.post-cat { color: var(--accent-tx); text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; font-size: var(--fs-small); text-decoration: none; color: var(--text); border: 1px solid var(--line-strong); }
.page-numbers:hover { border-color: var(--accent); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Article */
.page-hero__title--post { font-size: var(--fs-h2); max-width: 20ch; }
.section--post { padding-top: 40px; }
.post-cover { margin: 0 0 48px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.post-tags a { display: inline-block; padding: 4px 10px; font-size: var(--fs-small); text-transform: uppercase; text-decoration: none; color: var(--muted); border: 1px solid var(--line-strong); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin-top: 32px; }
.post-nav a { display: block; padding: 16px 20px; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: border-color .2s; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav a:last-child { text-align: right; }
.post-nav span { display: block; margin-bottom: 4px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }

/* Classes standard de WordPress (exigées par les thèmes) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--content); }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }
.gallery-caption, .wp-block-image figcaption { font-size: var(--fs-small); color: var(--faint); }
.sticky, .bypostauthor { position: relative; }


/* Création de compte et adhésion */
.section--tight { padding-top: 56px; }
.narrow { max-width: 760px; margin: 0 auto; }
.notice { margin-bottom: 24px; padding: 16px 20px; color: var(--muted); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--bg-glass); }
.notice strong { color: var(--text); }
.notice a, .field__hint a, .check a { color: var(--accent-tx); }
.form__group { display: grid; gap: 20px; margin: 0; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); }
.form__group legend { padding: 0 0 16px; font-family: var(--font-title); font-size: var(--fs-h3); text-transform: uppercase; }
.form__group legend .field__opt { font-family: var(--font-text); font-size: var(--fs-small); }
.field__hint { font-size: var(--fs-small); color: var(--faint); }
.field input[type="date"] { color-scheme: dark; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-small); color: var(--muted); cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: clamp(32px, 6vw, 56px); text-align: center; background: var(--surface); }
.price__label { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-tx); }
.price__amount { font-family: var(--font-title); font-size: var(--fs-h2); line-height: 1; }
.price__amount span { font-size: var(--fs-h3); color: var(--muted); }
.price .btn { margin-top: 12px; }
.price__amount .todo { font-family: var(--font-text); font-size: var(--fs-body); vertical-align: middle; }


/* Objectifs : 3 compteurs */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.stat__value { font-family: var(--font-title); font-weight: 600; font-size: var(--fs-h1); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__unit { font-size: var(--fs-h3); color: var(--muted); }

/* Page d'une offre (offre.html) */
.offre { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.offre__aside { position: sticky; top: 24px; display: grid; gap: 20px; padding: 28px; }
.offre__infos { display: grid; gap: 14px; margin: 0; }
.offre__infos div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.offre__infos dt { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.offre__infos dd { margin: 2px 0 0; color: var(--text); }
.offre__actions { display: flex; gap: 8px; }
.offre__actions .btn { flex: 1; justify-content: center; }
.offre__back { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-decoration: none; }
.offre__back:hover { color: var(--accent-tx); }


/* ---------- 8. Cadres à coins dorés ----------
   Modèle : cadre Play-to-Eco (coins en <span class="corner">).
   Les autres cadres dessinent les mêmes coins en fond : branches de 9 px, 2 px d'épaisseur. */
.corner { position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent); }
.corner--tl { top: 0;    left: 0;  border-top-width: 2px;    border-left-width: 2px; }
.corner--tr { top: 0;    right: 0; border-top-width: 2px;    border-right-width: 2px; }
.corner--bl { bottom: 0; left: 0;  border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.concept .placeholder,
.module,
.stat,
.offre__aside,
.doc,
.member,
.game,
.value,
.channel,
.job,
.form,
.contact__other {
  --c: linear-gradient(var(--accent), var(--accent));
  border: 0;
  background-color: var(--surface);
  background-image: var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c);
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-size: 9px 2px, 2px 9px, 9px 2px, 2px 9px, 9px 2px, 2px 9px, 9px 2px, 2px 9px;
  background-repeat: no-repeat;
}
.game--more { background-color: rgba(8, 10, 14, .75); }
.concept .placeholder__tag { left: 20px; }   /* l'étiquette ne couvre pas le coin */


/* ---------- 9. Pied de page ---------- */
.footer { padding: 56px 0 28px; background: rgba(8, 10, 14, .94); border-top: 1px solid var(--line); }
.footer p { margin-top: 6px; font-size: var(--fs-small); }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer__logo { display: inline-block; }
.footer__logo img { height: 40px; width: auto; }

.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); transition: color .2s; }
.footer__social a:hover { color: var(--accent-tx); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.nav__social a[data-link="instagram"] svg,
.footer__social a[data-link="instagram"] svg { fill: none; }

.footer__menus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li + li { margin-top: 12px; }
.footer__col a {
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
}
.footer__copy { font-size: var(--fs-small); color: var(--faint); }


/* ---------- 10. Transition entre les pages ----------
   Au clic sur un lien vers une autre page : écran noir qui arrive en tranches,
   logo SGL qui apparaît puis disparaît en glitch au centre, puis changement de page.
   L'écran reprend le fond de la page (motif compris).
   Durée : 800 ms (même valeur que TRANSITION_DUREE dans js/main.js).
   Le calque .pt est créé par le JS. */
.pt {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  visibility: hidden; pointer-events: none;
  /* même fond que la page (couleur + motif, taille reprise du body, y compris sur mobile) ;
     la position du motif est recalée par le JS pour coïncider avec celui de la page */
  background-color: var(--bg);
  background-image: inherit; background-size: inherit; background-repeat: inherit;
}
.pt.is-on { visibility: visible; pointer-events: auto; animation: pt-cover .8s steps(1, end) both; }
.pt__logo {
  position: relative; width: min(320px, 60vw); aspect-ratio: 421 / 220; opacity: 0;
  background: url("../assets/logo-sgl.png") center / contain no-repeat;
}
.pt__logo::before,
.pt__logo::after {   /* copies du logo en vert et en rouge */
  content: ""; position: absolute; inset: 0; opacity: 0;
  -webkit-mask: url("../assets/logo-sgl.png") center / contain no-repeat;
          mask: url("../assets/logo-sgl.png") center / contain no-repeat;
}
.pt__logo::before { background: var(--g1); }
.pt__logo::after  { background: var(--g2); }
.pt.is-on .pt__logo         { animation: pt-logo .8s steps(1, end) both; }
.pt.is-on .pt__logo::before { animation: pt-split-a .8s steps(1, end) both; }
.pt.is-on .pt__logo::after  { animation: pt-split-b .8s steps(1, end) both; }
@keyframes pt-cover {
  0%       { clip-path: inset(0 0 100% 0); transform: none; }
  6%       { clip-path: inset(38% 0 48% 0); transform: translateX(-20px); }
  12%      { clip-path: inset(0 0 70% 0);   transform: translateX(14px); }
  18%      { clip-path: inset(55% 0 0 0);   transform: translateX(-8px); }
  24%      { clip-path: inset(8% 0 22% 0);  transform: translateX(4px); }
  30%, to  { clip-path: inset(0);           transform: none; }
}
@keyframes pt-logo {   /* apparition (16-36 %), maintien, disparition (66-90 %) */
  0%, 14%  { opacity: 0; }
  16%      { opacity: 1;  clip-path: inset(40% 0 35% 0); transform: translateX(10px); }
  22%      { opacity: 1;  clip-path: inset(0 0 60% 0);   transform: translateX(-8px); }
  28%      { opacity: .4; clip-path: inset(30% 0 0 0);   transform: translateX(4px); }
  36%      { opacity: 1;  clip-path: none;               transform: none; }
  52%      { clip-path: inset(0 0 55% 0); transform: translateX(-5px); }
  55%      { clip-path: none;             transform: none; }
  66%      { opacity: 1;  clip-path: inset(45% 0 20% 0); transform: translateX(8px); }
  72%      { opacity: .5; clip-path: inset(0 0 65% 0);   transform: translateX(-10px); }
  78%      { opacity: 1;  clip-path: inset(60% 0 8% 0);  transform: translateX(12px); }
  84%      { opacity: .3; clip-path: inset(48% 0 46% 0); transform: translateX(-16px); }
  90%, to  { opacity: 0;  clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes pt-split-a {
  0%, 14%  { opacity: 0; }
  16%      { opacity: .9; clip-path: inset(12% 0 70% 0); transform: translateX(-12px); }
  24%      { opacity: .9; clip-path: inset(55% 0 25% 0); transform: translateX(9px); }
  32%      { opacity: .9; clip-path: inset(80% 0 4% 0);  transform: translateX(-6px); }
  38%      { opacity: 0; }
  52%      { opacity: .9; clip-path: inset(30% 0 52% 0); transform: translateX(6px); }
  56%      { opacity: 0; }
  66%      { opacity: .9; clip-path: inset(4% 0 80% 0);  transform: translateX(-8px); }
  74%      { opacity: .9; clip-path: inset(40% 0 38% 0); transform: translateX(12px); }
  82%      { opacity: .9; clip-path: inset(70% 0 12% 0); transform: translateX(-16px); }
  88%, to  { opacity: 0; }
}
@keyframes pt-split-b {
  0%, 14%  { opacity: 0; }
  16%      { opacity: .9; clip-path: inset(62% 0 20% 0); transform: translateX(12px); }
  24%      { opacity: .9; clip-path: inset(20% 0 62% 0); transform: translateX(-9px); }
  32%      { opacity: .9; clip-path: inset(40% 0 40% 0); transform: translateX(7px); }
  38%      { opacity: 0; }
  52%      { opacity: .9; clip-path: inset(70% 0 10% 0); transform: translateX(-6px); }
  56%      { opacity: 0; }
  66%      { opacity: .9; clip-path: inset(50% 0 30% 0); transform: translateX(8px); }
  74%      { opacity: .9; clip-path: inset(10% 0 72% 0); transform: translateX(-12px); }
  82%      { opacity: .9; clip-path: inset(30% 0 55% 0); transform: translateX(16px); }
  88%, to  { opacity: 0; }
}


/* ---------- 11. Date, heure et coordonnées de la souris (en bas à droite) ---------- */
.hud {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right;
  font-size: var(--fs-small); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--faint);
}
.hud__date, .hud__time, .hud b { color: var(--muted); }
.hud b { font-weight: 400; }
.hud__xy { display: flex; gap: 14px; }
.hud i { font-style: normal; color: var(--accent-tx); }   /* X, Y, « / » et « : » en doré */


/* ---------- 12. Effets glitch ---------- */

/* Apparition d'un bloc : .reveal au défilement, .intro au chargement (délai via --d) */
.js .reveal, .js .intro { opacity: 0; }
.js .reveal.is-visible,
.js .intro.is-visible { animation: glitch-in .72s steps(1, end) var(--d, 0ms) both; }
@keyframes glitch-in {
  0%   { opacity: 0;   clip-path: inset(0 0 100% 0);  transform: translateX(-14px); }
  8%   { opacity: 1;   clip-path: inset(42% 0 44% 0); transform: translateX(12px); }
  16%  { opacity: 1;   clip-path: inset(8% 0 78% 0);  transform: translateX(-9px); }
  24%  { opacity: .2;  clip-path: inset(66% 0 6% 0);  transform: translateX(6px); }
  32%  { opacity: 1;   clip-path: inset(0 0 58% 0);   transform: translateX(-4px); filter: brightness(1.8); }
  44%  { opacity: 1;   clip-path: inset(28% 0 18% 0); transform: translateX(3px);  filter: none; }
  56%  { opacity: .5;  clip-path: inset(0 0 12% 0);   transform: translateX(-2px); }
  68%  { opacity: 1;   clip-path: inset(0);           transform: translateX(1px); }
  80%  { opacity: .75; }
  100% { opacity: 1;   clip-path: none; transform: none; filter: none; }
}

/* Titres : séparation des couleurs en tranches (calques ::before / ::after, texte copié par le JS) */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text); position: absolute; inset: 0; padding: inherit;
  white-space: pre-line; pointer-events: none; opacity: 0; -webkit-text-stroke: 0;
}
.glitch.is-glitching:not(.intro):not(.reveal) { animation: rgb-split .6s steps(1, end) both; }
.glitch.is-glitching::before { color: var(--g1); animation: slice-a .6s steps(1, end) both; }
.glitch.is-glitching::after  { color: var(--g2); animation: slice-b .6s steps(1, end) both; }
@keyframes rgb-split {
  0%   { text-shadow: 4px 0 var(--g1), -4px 0 var(--g2); }
  30%  { text-shadow: -3px 0 var(--g1), 3px 0 var(--g2); }
  60%  { text-shadow: 2px 0 var(--g1), -2px 0 var(--g2); }
  100% { text-shadow: none; }
}
@keyframes slice-a {
  0%      { opacity: .9; clip-path: inset(12% 0 70% 0); transform: translateX(-10px); }
  15%     { opacity: .9; clip-path: inset(55% 0 25% 0); transform: translateX(8px); }
  30%     { opacity: .9; clip-path: inset(80% 0 4% 0);  transform: translateX(-6px); }
  45%     { opacity: .9; clip-path: inset(30% 0 52% 0); transform: translateX(5px); }
  60%     { opacity: .9; clip-path: inset(4% 0 88% 0);  transform: translateX(-3px); }
  75%, to { opacity: 0; }
}
@keyframes slice-b {
  0%      { opacity: .9; clip-path: inset(62% 0 20% 0); transform: translateX(10px); }
  15%     { opacity: .9; clip-path: inset(20% 0 62% 0); transform: translateX(-8px); }
  30%     { opacity: .9; clip-path: inset(40% 0 40% 0); transform: translateX(7px); }
  45%     { opacity: .9; clip-path: inset(84% 0 2% 0);  transform: translateX(-4px); }
  60%     { opacity: .9; clip-path: inset(10% 0 75% 0); transform: translateX(3px); }
  75%, to { opacity: 0; }
}

/* Barre de balayage qui traverse la section du haut au chargement */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--g2), var(--g1), transparent);
}
.js .hero.is-booting::after { animation: scan 1.1s cubic-bezier(.6, 0, .4, 1) .15s both; }
@keyframes scan {
  0%       { opacity: 0; top: 0; }
  10%, 90% { opacity: .9; }
  100%     { opacity: 0; top: 100%; }
}


/* ---------- 13. Responsive et réduction des animations ----------

   Contenu centré, sans chevauchement avec les éléments fixes :
   sur ordinateur (souris, écran de plus de 900 px), la date / l'heure (en bas à droite)
   occupe environ 150 px. Le contenu garde une marge de 168 px de chaque côté
   pour ne pas passer dessous et rester centré.
   Sur tablette et mobile, la date / l'heure est masquée et la marge revient à 16-40 px. */
@media (min-width: 901px) and (hover: hover) {
  :root { --side: 168px; }
}
main .wrap,
.footer .wrap {
  max-width: calc(var(--content) + 2 * var(--side));
  padding-inline: var(--side);
  container-type: inline-size;   /* les grilles s'adaptent à la place réellement disponible */
}

/* Mises en page selon la largeur disponible pour le contenu (et non selon l'écran) */
@container (max-width: 820px) {
  .concept, .split, .eco__intro { grid-template-columns: 1fr; gap: 32px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .offre { grid-template-columns: 1fr; }
  .offre__aside { position: static; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .eco__steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@container (max-width: 540px) {
  .games { grid-template-columns: 1fr; }
  .doc { grid-template-columns: auto 1fr; }
  .doc__btn { grid-column: 1 / -1; justify-self: start; }
  .team { grid-template-columns: 1fr; }
  .posts, .post-nav { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
  .member__photo { width: 120px; }   /* sur une colonne : photo réduite pour garder des cartes compactes */
  .form__row { grid-template-columns: 1fr; }
  .game { min-height: 0; }
  .game h3 { padding-top: 28px; }
}

@media (hover: none) {
  .hud { display: none; }
}

@media (max-width: 900px) {
  .hud { display: none; }

  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - 102px); overflow-y: auto;   /* sous l'en-tête */
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__top { flex: 1; padding: 18px 0; font-size: var(--fs-small); }
  .nav__item.is-current .nav__top::before { left: 0; right: auto; width: 24px; bottom: 10px; }
  .nav__item.has-sub { flex-wrap: wrap; }
  .nav__toggle { width: 44px; height: 44px; margin: 0 0 0 auto; }
  .has-sub > .nav__top { padding-right: 0; }
  .nav__sub {   /* mobile : liste sous la rubrique, dépliée au toucher de la flèche */
    position: static; display: none; flex: 0 0 100%; min-width: 0; padding: 0 0 8px; border: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__sub a { padding: 12px 16px; min-height: 44px; }
  .nav__social { margin-left: 0; padding: 16px 0; border-bottom: 0; gap: 10px; }
  .nav__lang { margin: 0; padding: 8px 0; border-left: 0; border-bottom: 0; }
  .lang a { min-width: 44px; height: 44px; }
  .nav__social a { width: 44px; height: 44px; }
  .topbar.menu-open { background: var(--bg); }

  /* Liens du pied de page : zone tactile de 44 px de haut (au lieu de la seule hauteur du texte) */
  .footer__col li + li { margin-top: 0; }
  .footer__col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}

@media (max-width: 640px) {
  :root { --fs-body: 16px; }
  /* Carrousel : carte centrée, voisines visibles sur les bords, sans effet de taille */
  .roadmap { --card: 84cqw; gap: 12px; }
  .roadmap > .module { scale: 1; opacity: 1; }
  /* Motif de fond : taille fixe sur mobile (sinon il suit la largeur de l'écran et devient minuscule) */
  body { background-size: 1200px auto; }
  /* Image du haut : calée sur la largeur (et non plus sur la hauteur de la section), placée en haut */
  .hero::before { background-size: 100% 100%, 200% auto; background-position: 0 0, 50% 0; }
  /* l'espace vide au-dessus du titre passe de 200 à 40 px sur mobile */
  .page-hero { padding-top: 160px; }
  .hero { padding-top: 160px; min-height: calc(100svh + 40px); }
  .hero__disciplines { grid-template-columns: 1fr; margin-top: 48px; }
  .hero__disciplines li { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero__disciplines .mono { display: inline; margin: 0; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .intro { opacity: 1; }
  .glitch::before, .glitch::after { display: none; }
}


/* ---------- 14. Thème clair : DA inversée (CGU, mentions légales, cookies) ----------
   Activé par <body class="theme-light">. Fond blanc, texte foncé, mêmes polices et même or.
   L'or (#c9ab53) reste pour les traits et les fonds ; le texte doré passe en or foncé (contraste 5,5:1). */
.theme-light {
  --bg:          #ffffff;
  --bg-glass:    rgba(255, 255, 255, .9);
  --surface:     #f4f5f7;
  --line:        #dfe2e7;
  --line-strong: #858b96;
  --text:        #14171c;   /* contraste 18:1 */
  --muted:       #4b5260;   /* contraste 8:1 */
  --faint:       #5b6270;   /* contraste 6:1 */
  --accent-tx:   #7a5f17;
  background-image: none;
}
.theme-light .brand__logo,
.theme-light .footer__logo img { filter: invert(1); }          /* logo blanc passé en noir */
.theme-light .footer { background: var(--surface); }
.theme-light .nav__social a { color: var(--muted); }
.theme-light .pt { background-color: #080a0e; background-image: url("../assets/pattern.png"); background-size: 100% auto; }   /* la transition reste sombre */
@media (max-width: 640px) { .theme-light .pt { background-size: 1200px auto; } }


/* =========================================================
   12. WORDPRESS : blocs de l'éditeur
   Les compositions « SGL » utilisent les blocs de base de WordPress ;
   ces règles leur donnent l'apparence du site (et retirent les styles
   par défaut de WordPress : arrondis, marges automatiques…).
   ========================================================= */

/* Conteneurs : pas d'espacement automatique entre les blocs */
:where(.wp-block-group, .wp-block-buttons, .wp-block-image, .wp-block-list) { margin: 0; }
:where(.wrap, .section, .section__head, .hero__inner, .module, .member, .stat, .value, .doc, .doc__body, .eco__frame, .price, .maintenance, .split) > * { margin-block: 0; }
.section__head .section__intro { margin-top: 20px; }
.value .pillar__num { display: block; }
.wp-block-heading { text-wrap: balance; }
.alignwide { max-width: var(--wrap); margin-inline: auto; }
.alignfull { max-width: none; }

/* Boutons (bloc Bouton ; style « Contour » = bouton secondaire) */
:where(.wp-block-buttons) { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons.is-content-justification-center, .hero__actions, .maintenance__actions, .team__cta { justify-content: center; }
.wp-block-button .wp-block-button__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px;
  font-family: inherit; font-weight: 700; font-size: var(--fs-small); line-height: inherit; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; box-shadow: none;
  background: var(--accent); color: var(--accent-ink);
}
.wp-block-button.is-style-contour .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link { background: rgba(8, 10, 14, .6); border-color: var(--line-strong); color: var(--text); }
.wp-block-button.is-style-contour .wp-block-button__link.is-filled,
.wp-block-button.is-style-outline .wp-block-button__link.is-filled { color: var(--accent-ink); border-color: var(--accent); }
.doc .wp-block-buttons { justify-content: flex-end; }
.price .wp-block-buttons { justify-content: center; margin-top: 12px; }
@media (max-width: 640px) {
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; }
  .doc .wp-block-buttons { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Statut (pastille) saisi comme paragraphe : la pastille ne prend que la largeur du texte */
p.module__status { justify-self: start; }
.maintenance .module__status { display: inline-block; }

/* Équipe : photo ajoutée avec un bloc Image */
.member__photo .wp-block-image, .member__photo figure { height: 100%; margin: 0; }
.member__photo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* Images du contenu */
.wp-block-image img { height: auto; }
.eco__visual img, .wp-block-image.eco__visual img { width: 100%; height: auto; }

/* Pagination et navigation des articles générées par WordPress */
.pagination .nav-links { display: contents; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Barre d'administration WordPress (connecté) */
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
.price__amount em { font-style: normal; font-size: var(--fs-h3); color: var(--muted); }
.roadmap__legend > p { margin: 0; }
