:root {
  --fond: #0a0b0f;
  --panneau: #13151b;
  --panneau-2: #1b1e26;
  --bord: #272b36;
  --texte: #f3f2ee;
  --doux: #a3a6b0;
  --pale: #5f6370;
  --accent: #2563eb;
  --accent-vif: #4f86ff;
  --vert: #3fd18f;
  --orange: #ff9b45;
  --titre: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --corps: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--texte);
  font: 500 16px/1.5 var(--corps);
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-vif); outline-offset: 2px; }
main { flex: 1; }

/* ── En-tête ─────────────────────────────────────────── */
.barre-haut { height: 4px; background: var(--accent); }
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--bord);
  background: rgba(10, 11, 15, .85);
  backdrop-filter: blur(12px);
}
.logo {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panneau);
  border: 1px solid var(--bord);
}
.logo svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-vif); stroke-width: 2.6; stroke-linecap: round; }
.nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--panneau);
  border: 1px solid var(--bord);
  border-radius: 14px;
}
.nav a {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav a[aria-current="page"] { background: var(--panneau-2); }
.c-accent { color: var(--accent-vif); }
.c-vert { color: var(--vert); }
.c-orange { color: var(--orange); }
.btn-proposer {
  justify-self: end;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--bord);
  background: var(--panneau);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.btn-proposer:hover { border-color: var(--accent-vif); }

/* ── Mise en page commune ────────────────────────────── */
.page {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.page::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -160px;
  left: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .26), transparent 65%);
  pointer-events: none;
}
.page-verte::before { background: radial-gradient(circle, rgba(63, 209, 143, .18), transparent 65%); }
.page-verte .titre-geant em, .page-verte .surtitre { color: var(--vert); }

.surtitre {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-vif);
}
.titre-geant {
  margin: 0;
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 136px);
  line-height: .9;
  text-transform: uppercase;
}
.titre-geant em { font-style: normal; color: var(--accent-vif); }
.chapo { max-width: 52ch; margin: 22px 0 0; font-size: 18px; color: var(--doux); }
.chapo + .chapo { margin-top: 10px; font-size: 16px; }
.chapo b { color: var(--texte); }
.panneau {
  padding: 18px;
  background: var(--panneau);
  border: 1px solid var(--bord);
  border-radius: 18px;
}
.mini-titre {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--doux);
}
.sous { margin: 4px 0 16px; font-size: 14px; color: var(--doux); }
.lien {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ico { width: 16px; height: 16px; flex: none; }

/* ── Accueil ─────────────────────────────────────────── */
.accueil {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: start;
}
.hero-bas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.compteur-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--doux);
}
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  white-space: nowrap;
}
.pastille::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pale); }
.pastille.direct { color: var(--accent-vif); border-color: rgba(79, 134, 255, .4); background: rgba(79, 134, 255, .1); }
.pastille.direct::before { background: var(--accent-vif); animation: pouls 1.6s infinite; }
@keyframes pouls { 50% { opacity: .25; } }

.odometre { display: flex; gap: 4px; margin-top: 16px; }
.chiffre {
  flex: 1;
  max-width: 30px;
  height: 64px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(180deg, #252833, #16181e 50%, #1e2129);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  font-family: var(--titre);
  font-size: 40px;
  line-height: 64px;
  text-align: center;
}
.rouleau { display: block; transition: transform 1.1s cubic-bezier(.2, .9, .2, 1); }
.rouleau span { display: block; height: 64px; color: var(--accent-vif); }
.chiffre.eteint .rouleau span { color: #343844; }

.etapes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.etapes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panneau);
  border: 1px solid var(--bord);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}
.etapes b { font-family: var(--titre); font-weight: 400; font-size: 24px; line-height: 1; color: var(--accent-vif); }
.etapes li:nth-child(2) { background: rgba(37, 99, 235, .1); border-color: rgba(79, 134, 255, .3); }
.etapes li:nth-child(3) b { color: var(--vert); }
.note { margin: 16px 0 0; font-size: 13px; color: var(--doux); }
.note .lien { color: var(--texte); }

.titre-bloc { margin: 0; font-family: var(--titre); font-weight: 400; font-size: 32px; text-transform: uppercase; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.puce {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--panneau);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.puce[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* ── Cartes à swiper ─────────────────────────────────── */
.deck { max-width: 370px; margin: 0 auto; }
.pile { position: relative; aspect-ratio: 10 / 11; }
.carte {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panneau-2);
  border: 1px solid var(--bord);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.carte.en-main { cursor: grabbing; }
.carte-fantome { transform: translateY(12px) scale(.95); opacity: .5; box-shadow: none; cursor: default; }
.carte-visuel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 30% 10%, hsl(var(--teinte) 85% 58%), hsl(var(--teinte) 70% 32%) 60%, hsl(var(--teinte) 60% 14%));
}
.carte-visuel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 9, 12, .92) 85%);
}
.carte-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.monogramme {
  font-family: var(--titre);
  font-size: 132px;
  line-height: 1;
  color: rgba(255, 255, 255, .92);
  transform: translateY(-30px);
}
.etiquette {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 9, 12, .65);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.etiquette-g { left: 14px; }
.etiquette-d { right: 14px; }
.carte-bas { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.carte-handle { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--doux); }
.carte h3 {
  margin: 4px 0 10px;
  font-family: var(--titre);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.carte-props, .badge-exemple {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.carte-props { background: rgba(79, 134, 255, .16); border: 1px solid rgba(79, 134, 255, .35); color: #cfe0ff; }
.badge-exemple { margin-left: 4px; background: rgba(255, 155, 69, .15); border: 1px solid rgba(255, 155, 69, .35); color: var(--orange); }
.tampon {
  position: absolute;
  top: 60px;
  z-index: 3;
  padding: 4px 12px;
  border: 3px solid currentColor;
  border-radius: 10px;
  background: rgba(8, 9, 12, .4);
  font-family: var(--titre);
  font-size: 30px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
.tampon-bloque { left: 18px; color: var(--accent-vif); transform: rotate(-12deg); }
.tampon-tard { right: 18px; color: var(--doux); transform: rotate(12deg); }

.actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.rond {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--bord);
  background: var(--panneau);
  font-size: 20px;
  cursor: pointer;
  transition: transform .15s;
}
.rond:hover { transform: scale(1.06); }
.rond-valider { color: var(--vert); border-color: rgba(63, 209, 143, .4); background: rgba(63, 209, 143, .08); }
.gros-bouton {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--titre);
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, .7);
}
.gros-bouton small { font-family: var(--corps); font-size: 11px; font-weight: 700; text-transform: none; opacity: .85; }
.gros-bouton[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.indice { margin: 14px 0 0; font-size: 12.5px; text-align: center; color: var(--doux); }

.pile-vide { display: grid; place-items: center; border: 1px dashed var(--bord); border-radius: 22px; }
.vide { padding: 24px; text-align: center; color: var(--doux); }
.vide-titre { margin: 0 0 6px; font-family: var(--titre); font-size: 30px; text-transform: uppercase; color: var(--texte); }

/* ── Blocklist et greenlist ──────────────────────────── */
.progression { margin-top: 32px; }
.progression-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.prog-chiffre { margin-top: 6px; font-family: var(--titre); font-size: 40px; line-height: 1; }
.barre { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--panneau-2); }
.barre > div { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s ease; }
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bord);
}
.groupe { margin-top: 32px; }
.groupe-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.groupe-tete h2 { margin: 0; font-family: var(--titre); font-weight: 400; font-size: 34px; text-transform: uppercase; }
.groupe-tete span { font-size: 13px; color: var(--doux); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panneau);
  border: 1px solid var(--bord);
  border-radius: 14px;
  transition: opacity .2s;
}
.ligne.est-bloque { opacity: .55; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--teinte) 80% 55%), hsl(var(--teinte) 65% 28%));
  font-family: var(--titre);
  font-size: 17px;
}
.avatar-photo { object-fit: cover; object-position: center 25%; border: 1px solid var(--bord); background: var(--panneau-2); }
/* Logo d'organisation : montré entier, jamais recadré. */
.carte-photo--logo { object-fit: contain; background: #fff; }
.ligne-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
a.ligne-txt:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ligne-txt b, .ligne-txt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ligne-txt b { font-weight: 800; }
.ligne-txt span { font-size: 13px; color: var(--doux); }
.ligne-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.lien-reseau {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--doux);
  text-decoration: none;
}
.lien-reseau:hover { color: var(--texte); }
.lien-reseau .ico { width: 14px; height: 14px; }
.lien-reseau.suivre { padding: 5px 11px; border-radius: 999px; background: rgba(63, 209, 143, .12); border: 1px solid rgba(63, 209, 143, .35); color: var(--vert); }
.coche {
  padding: 5px 11px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--panneau-2);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.coche[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.vide-liste { margin-top: 32px; color: var(--doux); }

/* ── Swipe ───────────────────────────────────────────── */
.swipe { max-width: 402px; margin: 0 auto; padding: 28px 16px 48px; }
.swipe-tete { display: flex; justify-content: space-between; align-items: center; }
.niveau {
  padding: 4px 12px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.score { font-size: 14px; font-weight: 700; color: var(--doux); }
.score b { font-family: var(--titre); font-weight: 400; font-size: 30px; color: var(--texte); }
.palier-txt { margin: 10px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.jauge { height: 7px; overflow: hidden; border-radius: 99px; background: var(--panneau-2); }
.jauge > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5fd4ff, #b18cff, var(--orange), var(--accent-vif));
  transition: width .5s ease;
}
.paliers { position: relative; height: 22px; margin: 6px 0 20px; font-size: 11px; font-weight: 800; }
.paliers span { position: absolute; transform: translateX(-50%); }
.paliers span:last-child { transform: translateX(-100%); }
.aide-swipe { margin: 10px 0 0; text-align: right; font-size: 12.5px; }

/* ── Pied de page ────────────────────────────────────── */
.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px;
  border-top: 1px solid var(--bord);
  font-size: 13px;
  color: var(--doux);
}
.pied a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.pied b { color: var(--texte); }

/* ── Fenêtres ────────────────────────────────────────── */
.dialogue {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 1px solid var(--bord);
  border-radius: 20px;
  background: var(--panneau);
  color: var(--texte);
}
.dialogue::backdrop { background: rgba(4, 5, 8, .7); backdrop-filter: blur(4px); }
.dialogue-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialogue h2 { margin: 0; font-family: var(--titre); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.fermer {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bord);
  border-radius: 50%;
  background: var(--panneau-2);
  cursor: pointer;
}
.guide { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.guide li {
  counter-increment: etape;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panneau-2);
  font-size: 14.5px;
  font-weight: 600;
}
.guide li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titre); font-size: 20px; color: var(--accent-vif); }
.formulaire { display: grid; gap: 14px; margin-top: 16px; }
.formulaire label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.formulaire label span { font-weight: 600; color: var(--pale); }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  background: var(--fond);
  color: var(--texte);
  font: 600 15px/1.4 var(--corps);
}
.formulaire textarea { resize: vertical; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mention { margin: 0; font-size: 12.5px; color: var(--doux); }
/* Champ piège à robots : hors écran, jamais rempli par un humain. */
.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--texte);
  color: var(--fond);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Petits écrans ───────────────────────────────────── */
@media (max-width: 960px) {
  .accueil { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  /* Sans flou : backdrop-filter ferait de l'en-tête le repère de la nav fixe, qui resterait collée en haut. */
  .entete { grid-template-columns: auto 1fr; padding: 12px 16px; backdrop-filter: none; background: var(--fond); }
  .nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  }
  .nav a { flex: 1; padding: 9px 4px; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal; }
  .page { padding: 32px 16px 48px; }
  .hero-bas, .deux { grid-template-columns: minmax(0, 1fr); }
  .grille { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: 100px; }
}
