/* =========================================================
   BILLED — design commun (accueil + recrutement)
   ========================================================= */
:root {
  --bg: #07070d;
  --bg-2: #0e0e18;
  --carte: rgba(18, 18, 32, .72);
  --ink: #f2f3ff;
  --muted: #a6a9c8;
  --dim: #6a6e92;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --blurple: #5865f2;
  --violet: #9b6bff;
  --rose: #ff5fa2;
  --menthe: #3ee6b5;
  --rouge: #ff5c6c;
  --grad: linear-gradient(120deg, #5865f2 0%, #9b6bff 50%, #ff5fa2 100%);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
::selection { background: var(--blurple); color: #fff; }

/* ---------- Fond : lueurs + grille (dégradés simples, aucun flou coûteux) ---------- */
.fond { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fond::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
.fond i { position: absolute; border-radius: 50%; will-change: transform; animation: flotte 22s ease-in-out infinite alternate; }
.fond i:nth-child(1) { width: 70vmax; height: 70vmax; left: -25vmax; top: -35vmax; background: radial-gradient(circle, rgba(88, 101, 242, .45), transparent 62%); }
.fond i:nth-child(2) { width: 55vmax; height: 55vmax; right: -22vmax; top: 10vh; background: radial-gradient(circle, rgba(155, 107, 255, .3), transparent 62%); animation-duration: 28s; }
.fond i:nth-child(3) { width: 50vmax; height: 50vmax; left: 25vw; bottom: -30vmax; background: radial-gradient(circle, rgba(255, 95, 162, .2), transparent 62%); animation-duration: 34s; }
@keyframes flotte { to { transform: translate3d(5vw, 6vh, 0) scale(1.1); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, opacity .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-discord { background: var(--blurple); color: #fff; box-shadow: 0 12px 40px -12px rgba(88, 101, 242, .8); }
.btn-discord:hover { box-shadow: 0 18px 50px -12px rgba(88, 101, 242, 1); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 40px -14px rgba(155, 107, 255, .9); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-petit { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad); background: rgba(7, 7, 13, .8); border-bottom: 1px solid var(--line);
}
.marque { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: -.02em; }
.marque .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 17px; box-shadow: 0 6px 20px -6px rgba(155, 107, 255, .8); overflow: hidden; }
.marque .logo img { width: 100%; height: 100%; object-fit: cover; }
.marque .logo:has(img) { background: #fff; box-shadow: 0 6px 20px -6px rgba(155, 107, 255, .6); }
.nav-liens { display: flex; align-items: center; gap: 6px; }
.nav-liens a:not(.btn) { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-liens a:not(.btn):hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
@media (max-width: 720px) { .nav-liens a:not(.btn) { display: none; } }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 140px) var(--pad) clamp(60px, 9vw, 110px); max-width: 1180px; margin: 0 auto; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; }
.badge .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); box-shadow: 0 0 0 0 rgba(62, 230, 181, .6); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(62, 230, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 230, 181, 0); } }
.titre-geant { margin: 26px 0 0; font: 800 clamp(64px, 17vw, 210px)/.9 var(--display); letter-spacing: -.06em; }
.titre-geant span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan { margin: 20px auto 0; font: 600 clamp(20px, 3vw, 28px)/1.3 var(--display); letter-spacing: -.02em; max-width: 720px; }
.description { margin: 18px auto 0; color: var(--muted); font-size: 17px; max-width: 620px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.stat { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--carte); }
.stat b { font: 700 20px var(--display); }
.stat small { color: var(--muted); font-size: 13px; }
.stat .pt { width: 9px; height: 9px; border-radius: 50%; }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) var(--pad) 0; }
.section-titre { display: flex; align-items: baseline; gap: 14px; margin: 0 0 36px; }
.section-titre small { font: 500 12px var(--mono); color: var(--violet); letter-spacing: .15em; text-transform: uppercase; }
.section-titre h2 { margin: 0; font: 800 clamp(34px, 6vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.carte {
  position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--carte);
  transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.carte:hover { transform: translateY(-4px); border-color: rgba(155, 107, 255, .45); background: rgba(24, 22, 44, .8); }
.carte .ico { font-size: 30px; line-height: 1; }
.carte h3 { margin: 16px 0 8px; font: 700 19px var(--display); letter-spacing: -.02em; }
.carte p { margin: 0; color: var(--muted); font-size: 15px; }

.recrute {
  position: relative; overflow: hidden; padding: clamp(30px, 5vw, 56px); border-radius: 30px; border: 1px solid rgba(155, 107, 255, .35);
  background: radial-gradient(ellipse at 100% 0%, rgba(155, 107, 255, .25), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(88, 101, 242, .25), transparent 55%), var(--bg-2);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center;
}
.recrute h2 { margin: 0 0 14px; font: 800 clamp(30px, 5vw, 52px)/1.05 var(--display); letter-spacing: -.04em; }
.recrute h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.recrute p { color: var(--muted); margin: 0 0 26px; }
.etapes { display: grid; gap: 12px; }
.etape { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.etape b { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font: 700 15px var(--display); }
.etape span { display: block; font-weight: 600; }
.etape small { color: var(--muted); font-size: 14px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.roles span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .recrute { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--carte); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--display); color: var(--violet); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

.pied { max-width: 1180px; margin: clamp(70px, 10vw, 120px) auto 0; padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 13px; }
.pied a { color: var(--muted); }
.pied a:hover { color: var(--ink); }

/* apparition au défilement */
.apparait { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.apparait.vu { opacity: 1; transform: none; }

/* =========================================================
   RECRUTEMENT (façon Typeform)
   ========================================================= */
.recrutement { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.progression { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 30; background: rgba(255, 255, 255, .06); }
.progression i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); box-shadow: 0 0 14px rgba(155, 107, 255, .8); }
.scene { flex: 1; display: grid; place-items: center; padding: 30px var(--pad) 110px; position: relative; overflow: hidden; }
.ecran { width: min(680px, 100%); }
.ecran.entre { animation: entre .6s var(--ease) both; }
.ecran.entre-arriere { animation: entreArriere .6s var(--ease) both; }
.ecran.sort { animation: sort .35s ease-in both; }
.ecran.sort-arriere { animation: sortArriere .35s ease-in both; }
@keyframes entre { from { opacity: 0; transform: translateY(50px); } }
@keyframes entreArriere { from { opacity: 0; transform: translateY(-50px); } }
@keyframes sort { to { opacity: 0; transform: translateY(-40px); } }
@keyframes sortArriere { to { opacity: 0; transform: translateY(40px); } }

.kicker { display: flex; align-items: center; gap: 10px; color: var(--violet); font: 500 13px var(--mono); letter-spacing: .08em; }
.kicker .fl { color: var(--dim); }
.ecran h1 { margin: 14px 0 12px; font: 700 clamp(26px, 4.4vw, 40px)/1.2 var(--display); letter-spacing: -.03em; }
.ecran .aide { color: var(--muted); margin: 0 0 26px; font-size: 16px; }
.ecran .requis { color: var(--rose); }

.champ {
  width: 100%; border: 0; border-bottom: 2px solid var(--line-2); background: transparent; color: var(--ink);
  font: 500 clamp(20px, 3vw, 26px)/1.4 var(--sans); padding: 10px 2px; outline: none; transition: border-color .3s; resize: none;
}
.champ::placeholder { color: var(--dim); }
.champ:focus { border-color: var(--violet); }
textarea.champ { min-height: 120px; font-size: 19px; }
.compteur { text-align: right; font: 12px var(--mono); color: var(--dim); margin-top: 6px; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 17px; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.option:hover { border-color: rgba(155, 107, 255, .6); background: rgba(155, 107, 255, .08); }
.option kbd { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 12px var(--mono); color: var(--muted); }
.option.choisi { border-color: var(--violet); background: rgba(155, 107, 255, .16); }
.option.choisi kbd { background: var(--violet); border-color: var(--violet); color: #fff; }
.option.choisi::after { content: "✓"; margin-left: auto; color: var(--violet); font-weight: 700; }
.option.clic { animation: clic .35s var(--ease); }
@keyframes clic { 40% { transform: scale(.97); } }

.actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.astuce { color: var(--dim); font-size: 13px; }
.astuce kbd { font: 12px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); }
.erreur { margin-top: 14px; color: var(--rouge); font-size: 15px; min-height: 1.2em; }
.erreur.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px var(--pad); background: linear-gradient(transparent, rgba(7, 7, 13, .95) 40%);
}
.nav-q { display: flex; gap: 6px; }
.nav-q button { width: 44px; height: 44px; border-radius: 12px; background: var(--blurple); color: #fff; font-size: 18px; transition: opacity .2s, transform .2s var(--ease); }
.nav-q button:disabled { opacity: .3; }
.nav-q button:not(:disabled):hover { transform: translateY(-2px); }
.bas .etat { color: var(--dim); font: 13px var(--mono); }

.profil { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--carte); margin: 22px 0 26px; }
.profil img { width: 52px; height: 52px; border-radius: 50%; }
.profil b { display: block; font-size: 17px; }
.profil small { color: var(--muted); }
.note { color: var(--dim); font-size: 13px; margin-top: 18px; }

.recap { display: grid; gap: 10px; margin: 20px 0 28px; max-height: 52vh; overflow-y: auto; padding-right: 6px; }
.recap div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--carte); }
.recap small { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.recap small button { color: var(--violet); font-size: 13px; }
.recap p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }

.succes-ico { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: var(--grad); box-shadow: 0 20px 60px -15px rgba(155, 107, 255, .9); animation: pop .7s var(--ease) both; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: tombe linear forwards; }
@keyframes tombe { to { transform: translate3d(var(--x), 110vh, 0) rotate(var(--r)); } }

.chargement { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--violet); animation: tourne .8s linear infinite; margin: 0 auto; }
@keyframes tourne { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
