/* Structure commune des 5 styles (inspirée de sorceress.games). Chaque thème surcharge les variables. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; padding-bottom: 70px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }
.lbl { font-family: var(--label); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--a1); font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 10px clamp(12px, 2vw, 22px); background: var(--navbg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: var(--brand-ls, 0); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.pills { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-left: 10px; }
.pills a { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--mute); }
.pills a:hover { color: var(--ink); background: var(--panel2); }
.nav-right { margin-left: auto; display: flex; gap: 10px; }
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: var(--rb); border: 1px solid var(--line2); transition: transform .15s, box-shadow .2s, filter .2s;
  font-family: var(--btnfont, inherit);
}
.b:hover { transform: translateY(-2px); filter: brightness(1.12); }
.b-main { background: var(--btn); color: var(--btn-ink); border-color: transparent; box-shadow: var(--btn-glow); }
.b-gold { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-line); }
.b-ghost { background: transparent; color: var(--ink); }
.b-lg { padding: 15px 26px; font-size: 17px; }
.b svg { width: 18px; height: 18px; fill: currentColor; }
.b.soon { pointer-events: none; opacity: .6; }

/* HERO */
.hero { position: relative; text-align: center; padding: 50px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: var(--bg-op, .85); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil); }
.hero > .wrap { position: relative; z-index: 2; }
.emblem { width: min(380px, 70vw); margin: 0 auto 8px; filter: drop-shadow(0 10px 40px var(--glow)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
h1 { font-family: var(--display); font-weight: var(--h-w, 800); font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: var(--h-ls, -.02em); text-transform: var(--h-tt, none); }
.tabs { display: flex; justify-content: center; gap: clamp(30px, 14vw, 200px); margin: 34px 0 14px; }
.tabs span { font-family: var(--label); font-weight: 700; letter-spacing: .14em; font-size: 15px; padding-bottom: 6px; color: var(--mute); }
.tabs span.on { color: var(--ink); border-bottom: 2px solid var(--a1); }
.duo { display: flex; align-items: center; justify-content: center; gap: 18px; }
.duo-card {
  display: flex; gap: 16px; align-items: center; text-align: left; width: min(330px, 42vw); padding: 16px;
  border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); transition: transform .2s, box-shadow .2s;
}
.duo-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--a1), 0 10px 40px -10px var(--a1); }
.duo-card.on { box-shadow: 0 0 0 1.5px var(--a1), 0 0 30px -6px var(--a1); }
.duo-card img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; flex: none; }
.duo-card b { display: block; font-family: var(--display); font-size: 20px; }
.duo-card small { display: block; font-family: var(--label); font-size: 10.5px; letter-spacing: .16em; color: var(--a1); font-weight: 700; margin: 2px 0 6px; text-transform: uppercase; }
.duo-card p { font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.and { font-family: var(--label); font-size: 11px; letter-spacing: .2em; color: var(--mute); }
.explore { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 36px 0 16px; font-weight: 700; font-size: 18px; }
.chip { font-family: var(--label); font-size: 11px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--a1); color: var(--a1); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 780px; margin: 0 auto; }
.tile { text-align: center; }
.tile div { aspect-ratio: 1; border-radius: var(--rt); overflow: hidden; border: 1px solid var(--line2); background: var(--tilebg); transition: transform .25s, box-shadow .25s; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover div { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--a1), 0 12px 30px -8px var(--a1); }
.tile:hover img { transform: scale(1.07); }
.tile span { display: block; margin-top: 8px; font-family: var(--label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.browse { display: block; max-width: 780px; margin: 18px auto 0; padding: 14px; border-radius: var(--rb); border: 1px solid var(--a1); background: var(--panel); font-weight: 700; }

/* BANDES */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; text-align: center; background: var(--strip1); }
.strip h3 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); margin: 12px 0 18px; }
.strip .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.strip2 { background: var(--strip2); text-align: left; }
.strip2 .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 960px; }
.strip2 h3 { margin: 8px 0 4px; }
.strip2 p { color: var(--mute); }
.strip2 .lbl { color: var(--gold); }

/* SUITE */
.suite { padding: 110px 0 80px; }
h2 { font-family: var(--display); font-weight: var(--h-w, 800); font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: var(--h-ls, -.02em); text-transform: var(--h-tt, none); margin-top: 14px; }
.suite .lead { color: var(--mute); font-size: 18px; line-height: 1.6; max-width: 640px; margin-top: 18px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; margin-top: 40px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.carousel a { scroll-snap-align: start; }
.carousel .pic { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); background: var(--tilebg); }
.carousel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carousel a:hover img { transform: scale(1.05); }
.carousel .jump { display: block; font-family: var(--label); font-size: 10px; letter-spacing: .2em; color: var(--a1); margin-top: 12px; }
.carousel b { display: block; font-family: var(--display); font-size: 20px; margin: 4px 0; }
.carousel p { font-size: 13.5px; color: var(--mute); }

/* MODULES */
.mod { border-top: 1px solid var(--line); padding: 110px 0; background: var(--modbg, transparent); }
.mod .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.mod.rev .wrap { grid-template-columns: 1fr 1.05fr; }
.mod.rev .vis { order: 2; }
.vis { border-radius: var(--r); border: 1px solid var(--line2); padding: 16px; background: var(--panel); box-shadow: 0 30px 80px -30px var(--glow); }
.vis img { border-radius: calc(var(--r) - 8px); width: 100%; aspect-ratio: 1; object-fit: cover; }
.mod .lbl { display: flex; align-items: center; gap: 14px; }
.mod .lbl::before { content: ""; width: 40px; height: 2px; background: var(--a1); }
.mod h2 { font-size: clamp(42px, 5.6vw, 76px); }
.mod h4 { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); margin: 18px 0 16px; }
.mod .txt { color: var(--mute); font-size: 17px; line-height: 1.7; }
.steps { list-style: none; margin: 26px 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); }
.steps em { font-style: normal; font-family: var(--label); color: var(--a1); font-weight: 700; font-size: 14px; padding-top: 2px; }
.steps b { display: block; }
.steps span { color: var(--mute); font-size: 14.5px; }
.mod .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* REGLES + FIN */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.rules div { padding: 24px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel); }
.rules em { font-style: normal; font-family: var(--label); color: var(--a2); font-size: 13px; font-weight: 700; }
.rules b { display: block; font-family: var(--display); font-size: 20px; margin: 10px 0 8px; }
.rules p { color: var(--mute); font-size: 14.5px; line-height: 1.55; }
.final { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); background: var(--finalbg); }
.final .emblem { width: min(300px, 60vw); }
.final p.sub { color: var(--mute); font-size: 18px; margin: 16px auto 30px; max-width: 560px; }
.final .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* SELECTEUR DE STYLE (maquettes) */
.picker {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; align-items: center;
  padding: 6px; border-radius: 14px; background: rgba(10, 10, 14, .9); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px);
  font: 600 13px/1 system-ui, sans-serif; color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.picker span { padding: 0 10px; opacity: .6; }
.picker a { padding: 9px 12px; border-radius: 9px; opacity: .75; }
.picker a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.picker a.on { background: #fff; color: #000; opacity: 1; }
.picker a { white-space: nowrap; } .picker b { font-weight: 700; } .picker i { font-style: normal; }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .pills { display: none; }
  .mod .wrap, .mod.rev .wrap { grid-template-columns: 1fr; }
  .mod.rev .vis { order: 0; }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-right .b-ghost { display: none; }
  .duo { flex-direction: column; }
  .duo-card { width: 100%; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .tile:nth-child(n+4) { display: none; }
  .rules { grid-template-columns: 1fr; }
  .picker span { display: none; }
  .picker a { padding: 9px 12px; font-size: 13px; }
  .picker a:not(.on) i { display: none; }
  .b-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }

/* HERO COMMUNAUTAIRE : photo de classe */
.kick { display: inline-flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); margin-bottom: 22px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 12px #3dff8a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-sub { color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 720px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.photo { max-width: 1100px; margin: 46px auto 0; padding: 14px 14px 0; border-radius: calc(var(--r) + 6px); background: var(--photo-frame, #f4f1ea);
  box-shadow: 0 40px 100px -30px var(--glow), 0 0 0 1px var(--line2); transform: rotate(-.6deg); transition: transform .4s; }
.photo:hover { transform: rotate(0) scale(1.01); }
.photo-in { position: relative; border-radius: calc(var(--r) - 4px); overflow: hidden; }
.photo-in img { width: 100%; }
.photo figcaption { display: flex; justify-content: space-between; padding: 12px 6px 14px; font-family: var(--label); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--photo-ink, #1b1b22); text-transform: uppercase; }
.photo figcaption span:last-child { color: var(--photo-accent, #d4233a); }
.ptag { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font: 700 12.5px/1 var(--body); padding: 7px 10px; border-radius: 8px;
  background: rgba(10, 10, 18, .82); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.ptag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-right: inherit; border-bottom: inherit; }
.ptag.on { opacity: 1; transform: translate(-50%, -112%); }
.ptag.l { transform: translate(-14px, -100%); } .ptag.l.on { transform: translate(-14px, -112%); } .ptag.l::after { left: 14px; }
.ptag.r { transform: translate(calc(-100% + 14px), -100%); } .ptag.r.on { transform: translate(calc(-100% + 14px), -112%); } .ptag.r::after { left: calc(100% - 14px); }
.tiles.big { max-width: none; margin-top: 40px; gap: 16px; }
.tiles.big span { font-size: 13px; margin-top: 12px; color: var(--ink); }
.why { grid-template-columns: repeat(3, 1fr); }
.why em { font-size: 15px; }
.why b { font-size: 26px; }
@media (max-width: 980px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ptag { font-size: 10.5px; padding: 5px 7px; } .photo { padding: 8px 8px 0; transform: none; } .photo figcaption { font-size: 10.5px; } .tiles.big { grid-template-columns: repeat(2, 1fr); } .tiles.big .tile:nth-child(n+4) { display: block; } }

/* HERO PLEIN ÉCRAN : grande image de fond propre à chaque thème */
.hero-full { min-height: min(100vh, 1080px); padding: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.hero-full .hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-full .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-full .hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 30%, transparent 52%, transparent 82%, var(--bg) 100%); }
.hero-full .hero-text { position: relative; z-index: 2; padding-top: clamp(40px, 7vh, 80px); }
.hero-full h1 { text-shadow: 0 4px 30px rgba(0,0,0,.55); }
.hero-full .hero-sub { color: var(--ink); opacity: .9; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hero-down { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.3); color: #fff; animation: bob 2.4s ease-in-out infinite; }
@media (max-width: 760px) {
  .hero-full { min-height: 0; }
  .hero-full .hero-art { position: relative; order: 2; inset: auto; margin-top: 26px; aspect-ratio: 4 / 3; }
  .hero-full .hero-art img { object-position: center 80%; }
  .hero-full .hero-art::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 80%, var(--bg) 100%); }
  .hero-down { display: none; }
}
.hero-full .hero-art img { object-position: center bottom; }
.hero-full .hero-text::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 100%); height: 115%; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 52% at 50% 45%, color-mix(in srgb, var(--bg) 78%, transparent), transparent 100%); pointer-events: none; }
.hero-full .b-ghost { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
@media (max-width: 760px) { .hero-full .hero-text::before { display: none; } }

/* ACCUEIL : héros LAN party (texte peint dans l'image) + illustrations de sections */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-lan { position: relative; background: var(--bg); }
.lan-art { position: relative; max-width: 1920px; margin: 0 auto; }
.lan-art img { width: 100%; height: auto; display: block; }
.lan-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.lan-cta { position: absolute; z-index: 2; left: 50%; top: 31.5%; transform: translateX(-50%); display: flex; gap: 14px; flex-wrap: nowrap; }
.lan-cta .b { font-size: clamp(13px, 1.15vw, 18px); padding: clamp(10px, 1vw, 16px) clamp(16px, 1.8vw, 28px); white-space: nowrap; }
.lan-cta .b-main { box-shadow: 0 6px 0 rgba(0,0,0,.4), 0 0 40px rgba(31,91,255,.75); }
.lan-cta .b-ghost { background: rgba(1,11,48,.75); border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.strip-img, .final-img { position: relative; overflow: hidden; }
.sbg { position: absolute; inset: 0; z-index: 0; }
.sbg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.sbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 62%, transparent) 50%, color-mix(in srgb, var(--bg) 88%, transparent)); }
.strip-img > .wrap, .final-img > .wrap { position: relative; z-index: 1; }
.strip-img { padding: 70px 0; }
.strip-img h3 { font-size: clamp(24px, 2.8vw, 36px); text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.final-img { padding: 150px 0; }
.final-img h2, .final-img .sub { text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.final-img .sub { color: var(--ink); }
.banner { margin: 40px 0 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 30px 80px -30px var(--glow); position: relative; }
.banner img { width: 100%; display: block; }
.banner figcaption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--label); font-size: 13px; letter-spacing: .1em; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; background: rgba(1,11,48,.85); border: 1px solid var(--line2); white-space: nowrap; }
.hero-lan ~ .mod .vis img, .tiles.big .tile div img { aspect-ratio: auto; }
.hero-lan ~ .mod .vis img { aspect-ratio: 3 / 2; }
.classe { padding-bottom: 40px; }
@media (max-width: 760px) {
  .lan-cta { position: static; transform: none; flex-direction: column; padding: 16px 16px 0; }
  .lan-cta .b { justify-content: center; font-size: 16px; padding: 14px; }
  .lan-art::after { display: none; }
  .banner figcaption { font-size: 10px; white-space: normal; text-align: center; width: 90%; }
  .final-img { padding: 90px 0; }
}
