/* Polices hébergées localement (RGPD : aucun appel à Google Fonts) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #212121;
  --bg-deep: #171717;
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --violet: #ffffff;
  --cyan: #d4d4d4;
  --pink: #8a8a8a;
  --gold: #e5e5e5;
  --grad: linear-gradient(120deg, #ffffff, #9a9a9a 30%, #ffffff 55%, #c8c8c8 80%, #ffffff);
  --ink: #212121;
  --text-faint: rgba(255, 255, 255, 0.42);
  --roblox: #ff4d5e;
  --minecraft: #4ade80;
  --bot: #4a60de;
  --other: #a78bfa;
  --accent-grad: linear-gradient(120deg, #a78bfa, #38bdf8 35%, #f472b6 65%, #a78bfa);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at top, #2a2a2a 0%, var(--bg) 45%, var(--bg-deep) 100%) fixed;
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, .nav-title, .btn, .tab { font-family: "Outfit", sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: var(--ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 10px; }

/* ---------------- Fond animé ---------------- */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.1; animation: float 18s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -120px; }
.orb-2 { width: 440px; height: 440px; background: var(--cyan); bottom: -140px; right: -100px; animation-delay: -6s; opacity: 0.07; }
.orb-3 { width: 360px; height: 360px; background: var(--pink); top: 40%; left: 55%; animation-delay: -12s; opacity: 0.05; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-60px, 40px) scale(0.95); }
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 60%);
  transform: translate(-50%, -50%); left: -500px; top: -500px;
  transition: opacity 0.3s;
}

/* ---------------- Loader ---------------- */
#loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg-deep);
  display: grid; place-items: center; place-content: center; gap: 22px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 70px; height: 70px; border-radius: 50%;
  background: conic-gradient(var(--violet), var(--cyan), var(--pink), var(--violet));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 14px var(--violet));
}
.loader-text { font-family: "Outfit"; font-weight: 800; letter-spacing: 0.6em; font-size: 0.9rem; opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; width: min(1200px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 16px;
  background: rgba(33, 33, 33, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  position: relative; width: 38px; height: 38px; border-radius: 12px; overflow: hidden;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}
.nav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.nav-logo-fallback { font-family: "Outfit"; font-weight: 900; font-size: 1.2rem; color: var(--ink); }
.nav-title { font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; }
.nav-title b { font-weight: 300; opacity: 0.7; }

.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.04); }
.tab {
  position: relative; z-index: 1; padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--text-dim); transition: color 0.3s;
}
.tab:hover { color: #fff; }
.tab.active { color: var(--ink); }
.tab-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px;
  background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
  animation: gradient-shift 6s linear infinite;
}

/* ---------------- Boutons ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  white-space: nowrap;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-glow {
  background: var(--grad); background-size: 200% 100%;
  animation: gradient-shift 6s linear infinite;
  color: var(--ink);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 0 36px rgba(255, 255, 255, 0.55), 0 0 80px rgba(255, 255, 255, 0.2); }
.btn-ghost { border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.35); }
.nav-cta { padding: 10px 20px; font-size: 0.9rem; }
@keyframes gradient-shift { to { background-position: 200% 0; } }

/* ---------------- Pages / onglets ---------------- */
main { position: relative; z-index: 2; width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.page { display: none; padding: 70px 0 40px; }
.page.active { display: block; animation: page-in 0.7s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

.gradient-text {
  background: var(--accent-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 5s linear infinite;
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.4));
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--glass-border); background: var(--glass);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.lead { color: var(--text-dim); font-size: 1.1rem; line-height: 1.7; max-width: 560px; }
.lead strong { color: #fff; font-weight: 600; }
.lead .c-roblox { color: var(--roblox); text-shadow: 0 0 14px rgba(255, 77, 94, 0.45); }
.lead .c-minecraft { color: var(--minecraft); text-shadow: 0 0 14px rgba(74, 222, 128, 0.45); }
.lead .c-bot { color: var(--bot); text-shadow: 0 0 14px rgba(74, 96, 222, 0.45); }

/* ---------------- Hero ---------------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 50px; min-height: 70vh; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 900; margin: 22px 0; letter-spacing: -0.02em; }
.caret { font-weight: 300; color: #fff; animation: blink 0.9s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* Emplacement logo 500x500 */
.hero-logo { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 500px); justify-self: center; }
.logo-slot {
  position: relative; width: 78%; aspect-ratio: 1; border-radius: 32%;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.14), 0 0 120px rgba(255, 255, 255, 0.06), inset 0 0 40px rgba(255,255,255,0.04);
  overflow: hidden; display: grid; place-items: center;
  animation: levitate 6s ease-in-out infinite;
}
.logo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; }
.logo-placeholder { text-align: center; display: grid; gap: 6px; }
.logo-placeholder span { font-family: "Outfit"; font-size: 2.6rem; font-weight: 900; letter-spacing: 0.2em; }
.logo-placeholder small { color: var(--text-dim); font-size: 0.9rem; }
.logo-placeholder .hint { font-family: monospace; font-size: 0.78rem; opacity: 0.6; }
.logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--violet), transparent 30%, var(--cyan), transparent 60%, var(--pink), transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 12s linear infinite;
  filter: drop-shadow(0 0 8px var(--violet));
}
.ring-2 { inset: 7%; animation-duration: 18s; animation-direction: reverse; opacity: 0.6; }
@keyframes levitate { 50% { transform: translateY(-14px); } }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 40px 0 100px; }
.stat { padding: 26px; text-align: center; transition: transform 0.4s var(--ease), border-color 0.4s; }
.stat:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.4); }
.stat b { display: block; font-family: "Outfit"; font-size: 2.6rem; font-weight: 800; background: var(--accent-grad); background-size: 200% 100%; animation: gradient-shift 6s linear infinite; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-faint); font-size: 0.92rem; }

/* ---------------- Features ---------------- */
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-align: center; margin-bottom: 40px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 80px; }
.feature { padding: 34px 30px; position: relative; overflow: hidden; transition: border-color 0.4s; transform-style: preserve-3d; }
.feature::before, .card-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 50%);
}
.feature:hover::before, .card-glow:hover::before { opacity: 1; }
.feature:hover { border-color: var(--accent, rgba(255,255,255,0.25)); box-shadow: 0 0 40px color-mix(in srgb, var(--accent, #fff) 22%, transparent); }
.feature { transition: border-color 0.4s, box-shadow 0.4s; }
.feature h3 { color: var(--accent, #fff); }
.feature h3 { font-size: 1.5rem; margin: 20px 0 10px; }
.feature p { color: var(--text-dim); line-height: 1.65; }
.feature-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; }
.feature-icon svg { width: 28px; height: 28px; fill: #fff; }
.feature-icon.roblox { background: linear-gradient(135deg, #ff4d5e, #f97316); box-shadow: 0 0 26px rgba(255, 77, 94, 0.5); }
.feature-icon.minecraft { background: linear-gradient(135deg, #4ade80, #15803d); box-shadow: 0 0 26px rgba(74, 222, 128, 0.5); }
.feature-icon.bot { background: linear-gradient(135deg, #4a60de, #00e5ff); box-shadow: 0 0 26px rgba(74, 96, 222, 0.5); }
.feature-icon.other { background: linear-gradient(135deg, #a78bfa, #f472b6); box-shadow: 0 0 26px rgba(167, 139, 250, 0.5); }

/* ---------------- Valeurs ---------------- */
.values { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding: 48px; align-items: center; }
.values h2 { font-size: 2.4rem; margin-bottom: 12px; }
.values p { color: var(--text-dim); line-height: 1.6; }
.values ul { list-style: none; display: grid; gap: 18px; }
.values li { display: flex; gap: 18px; align-items: flex-start; color: var(--text-dim); line-height: 1.5; }
.values li b { display: block; color: #fff; font-size: 1.1rem; font-family: "Outfit"; }
.values li > span { font-family: "Outfit"; font-weight: 800; font-size: 1.3rem; min-width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--glass-border); color: var(--ink); background: #fff; border-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,0.3); }

/* ---------------- Page head ---------------- */
.page-head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -0.02em; }

/* ---------------- Projets ---------------- */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text-dim); font-weight: 500; transition: all 0.3s var(--ease);
}
.filter:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.filter.active { color: var(--ink); font-weight: 600; border-color: transparent; background: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.35); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project { overflow: hidden; position: relative; transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.4s; }
.project:hover { border-color: var(--accent, rgba(255,255,255,0.25)); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow, rgba(255, 255, 255,0.25)); }
.project.hide { display: none; }
.project-cover { height: 190px; position: relative; overflow: hidden; display: grid; place-items: center; }
.project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,23,23,0.9), transparent 60%); }
.project-cover .cover-art { position: absolute; inset: -20%; background: var(--cover); transition: transform 0.8s var(--ease); filter: saturate(1.15); }
.project:hover .cover-art { transform: scale(1.1) rotate(2deg); }
.project-cover .cover-emoji { position: relative; z-index: 1; font-size: 4rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); transition: transform 0.5s var(--ease); }
.project:hover .cover-emoji { transform: scale(1.15) translateY(-6px); }
.project-body { padding: 22px 24px 26px; position: relative; z-index: 1; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.tag.roblox { background: rgba(255, 77, 94, 0.15); color: #ff8a95; border: 1px solid rgba(255, 77, 94, 0.45); }
.tag.minecraft { background: rgba(74, 222, 128, 0.14); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.45); }
.tag.bot { background: rgba(74, 96, 222, 0.15); color: #a5b4fc; border: 1px solid rgba(74, 96, 222, 0.45); }
.tag.autre { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.45); }
.status { font-size: 0.8rem; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st, var(--gold)); box-shadow: 0 0 8px var(--st, var(--gold)); }
.project h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--accent, #fff); text-shadow: 0 0 18px color-mix(in srgb, var(--accent, #fff) 35%, transparent); }
.project p { color: var(--text-dim); line-height: 1.6; font-size: 0.95rem; }

/* ---------------- Staff ---------------- */
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-bottom: 70px; }
.member { padding: 32px 24px; text-align: center; position: relative; overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s; }
.member:hover { border-color: var(--role-color, rgba(255,255,255,0.25)); box-shadow: 0 0 40px color-mix(in srgb, var(--role-color, #fff) 20%, transparent); }
.member h3 { color: var(--role-color, #fff); }
.avatar {
  position: relative; width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%;
  padding: 3px; background: var(--ring);
  box-shadow: 0 0 30px var(--ring-glow);
}
.avatar::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--ring-glow));
  animation: spin 3s linear infinite; opacity: 0; transition: opacity 0.4s;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
}
.member:hover .avatar::before { opacity: 1; }
.avatar-inner {
  width: 100%; height: 100%; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; font-family: "Outfit"; font-weight: 800; font-size: 2rem; overflow: hidden;
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.3rem; }
.role { display: inline-block; margin: 8px 0 14px; font-size: 0.82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--role-color, #fff); }
.member p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.skills span { font-size: 0.75rem; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--glass-border); color: var(--text-faint); }

.recruit { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 48px; position: relative; overflow: hidden; }
.recruit::before { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; background: #fff; filter: blur(110px); opacity: 0.1; }
.recruit h2 { font-size: 2rem; margin-bottom: 8px; }
.recruit p { color: var(--text-dim); }

/* ---------------- Footer ---------------- */
.footer {
  position: relative; z-index: 2; width: min(1200px, calc(100% - 32px)); margin: 60px auto 0;
  padding: 30px 0 40px; border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 0.9rem;
}
.footer b { color: #fff; }
.socials { display: flex; gap: 20px; flex-wrap: wrap; }
.socials a { transition: color 0.3s, text-shadow 0.3s; }
.socials a:hover { color: #fff; text-shadow: 0 0 12px var(--violet); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero .lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; width: min(100%, 340px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; padding: 32px; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; justify-content: center; border-radius: 24px; padding: 10px; }
  .tab { padding: 8px 14px; font-size: 0.88rem; }
  .recruit { flex-direction: column; text-align: center; padding: 32px 24px; }
  .projects { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Logo réel (PNG transparent) ----------------
   Quand assets/logo.png existe, on masque le texte de remplacement
   et le fond argenté pour que la transparence s'affiche proprement. */
.logo-slot:has(img) .logo-placeholder,
.nav-logo:has(img) .nav-logo-fallback { display: none; }
.logo-slot:has(img) img { inset: 9%; width: 82%; height: 82%; filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.35)); }
.nav-logo:has(img) { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); box-shadow: 0 0 16px rgba(255, 255, 255, 0.12); }
.nav-logo:has(img) img { inset: 12%; width: 76%; height: 76%; object-fit: contain; }
/* Logo présent : pas de cadre derrière, seulement l'image */
.logo-slot:has(img) { background: none; border: 0; box-shadow: none; overflow: visible; }

/* Image de projet : remplit la couverture et remplace l'emoji
   (si l'image est introuvable, l'emoji et le dégradé reviennent). */
.project-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover .cover-img { transform: scale(1.08); }
.project-cover:has(.cover-img) .cover-emoji { display: none; }

/* ================= Launcher ================= */
.dl-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; margin-bottom: 100px; }
.dl-card { padding: 40px; text-align: center; display: grid; justify-items: center; gap: 14px; position: relative; overflow: hidden; }
.dl-card::before { content: ""; position: absolute; width: 320px; height: 320px; top: -180px; left: 50%; transform: translateX(-50%); background: #38bdf8; filter: blur(110px); opacity: 0.25; pointer-events: none; }
.dl-os-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #38bdf8, #a78bfa); box-shadow: 0 0 34px rgba(56, 189, 248, 0.45); animation: levitate 5s ease-in-out infinite; }
.dl-os-icon svg { width: 38px; height: 38px; fill: #fff; }
.dl-kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); }
.dl-card h2 { font-size: 2.2rem; font-weight: 800; }
.dl-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dl-meta span { font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--glass-border); color: var(--text-dim); }
.dl-meta b { color: #38bdf8; }
.btn-xl { padding: 18px 34px; font-size: 1.1rem; margin-top: 10px; position: relative; overflow: hidden; }
.btn-xl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: dl-bounce 1.8s ease-in-out infinite; }
.btn-xl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; }
.btn-xl.clicked { animation: pop 0.5s var(--ease); }
@keyframes dl-bounce { 50% { transform: translateY(3px); } }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
@keyframes pop { 40% { transform: scale(0.94); } 100% { transform: scale(1); } }
.dl-others { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.dl-others a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; color: var(--text-dim); border: 1px solid var(--glass-border); background: var(--glass); transition: all 0.3s var(--ease); }
.dl-others a:hover { color: #fff; border-color: rgba(255,255,255,0.35); transform: translateY(-2px); }
.dl-others svg { width: 16px; height: 16px; fill: currentColor; }
.dl-note { font-size: 0.82rem; color: var(--text-faint); }

/* Aperçu de la fenêtre du launcher */
.mock { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: #1a1a1a; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(167, 139, 250, 0.18); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); }
.mock:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #141414; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--text-faint); }
.mock-body { display: grid; grid-template-columns: 64px 1fr; min-height: 300px; }
.mock-side { display: grid; justify-items: center; align-content: start; gap: 16px; padding: 16px 0; background: #171717; border-right: 1px solid rgba(255,255,255,0.05); }
.mock-logo { width: 36px; height: 36px; display: grid; place-items: center; }
.mock-logo img { width: 100%; height: 100%; object-fit: contain; }
.mock-dot { width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.mock-dot.active { background: linear-gradient(135deg, #38bdf8, #a78bfa); box-shadow: 0 0 14px rgba(56, 189, 248, 0.5); }
.mock-main { padding: 18px; display: grid; gap: 16px; align-content: start; }
.mock-banner { height: 120px; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, #0ea5e9, #7c3aed 60%, #ec4899); background-size: 200% 200%; animation: gradient-shift 8s linear infinite; }
.mock-banner b { font-family: "Outfit"; font-size: 1.5rem; }
.mock-banner small { color: rgba(255,255,255,0.8); }
.mock-lines { display: grid; gap: 8px; }
.mock-lines span { height: 9px; border-radius: 6px; background: rgba(255,255,255,0.07); }
.mock-lines span:nth-child(2) { width: 80%; }
.mock-lines span:nth-child(3) { width: 55%; }
.mock-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.07); overflow: hidden; }
.mock-fill { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #38bdf8, #a78bfa); box-shadow: 0 0 12px #38bdf8; animation: fill 4s var(--ease) infinite; }
@keyframes fill { 0% { width: 0; } 75%, 100% { width: 100%; } }
.mock-foot { display: flex; justify-content: space-between; align-items: center; }
.mock-status { color: var(--text-faint); font-size: 0.78rem; }
.mock-play { font-family: "Outfit"; font-weight: 800; font-size: 0.85rem; padding: 9px 22px; border-radius: 10px; color: var(--ink); background: #4ade80; box-shadow: 0 0 18px rgba(74, 222, 128, 0.5); }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 80px; }
.step { padding: 28px 24px; position: relative; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-family: "Outfit"; font-weight: 800; font-size: 1.2rem; color: var(--ink); margin-bottom: 18px; }
.step:nth-child(4n+1) .step-num { background: #38bdf8; box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }
.step:nth-child(4n+2) .step-num { background: #a78bfa; box-shadow: 0 0 20px rgba(167, 139, 250, 0.5); }
.step:nth-child(4n+3) .step-num { background: #f472b6; box-shadow: 0 0 20px rgba(244, 114, 182, 0.5); }
.step:nth-child(4n+4) .step-num { background: #4ade80; box-shadow: 0 0 20px rgba(74, 222, 128, 0.5); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* Configuration requise + nouveautés */
.launcher-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 80px; }
.req, .changelog { padding: 32px; }
.req h3, .changelog h3 { font-size: 1.4rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.req ul, .changelog ul { list-style: none; display: grid; gap: 12px; }
.req li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); font-size: 0.93rem; }
.req li:last-child { border-bottom: 0; padding-bottom: 0; }
.req li span { color: var(--text-faint); }
.req li b { font-weight: 500; text-align: right; }
.changelog li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.93rem; }
.changelog li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.pill { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.12); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { border-radius: 16px; transition: border-color 0.3s; }
.faq-item[open] { border-color: rgba(167, 139, 250, 0.5); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: "Outfit"; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 24px 20px; color: var(--text-dim); line-height: 1.6; animation: page-in 0.4s var(--ease); }
.faq-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }

@media (max-width: 960px) {
  .dl-hero, .launcher-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .dl-card { padding: 30px 20px; }
}

/* ================= Pages légales ================= */
.tab-indicator { transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s; }
.legal-body { max-width: 860px; margin: 0 auto; padding: 44px 48px; line-height: 1.7; }
.legal-body h2 { font-size: 1.35rem; margin: 34px 0 12px; display: flex; align-items: center; gap: 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: linear-gradient(#a78bfa, #38bdf8); box-shadow: 0 0 10px rgba(167, 139, 250, 0.6); }
.legal-body p { color: var(--text-dim); margin-bottom: 10px; }
.legal-body strong, .legal-body b { color: #fff; font-weight: 600; }
.legal-body a { color: #38bdf8; text-decoration: underline; text-decoration-color: rgba(56, 189, 248, 0.4); text-underline-offset: 3px; transition: color 0.2s; }
.legal-body a:hover { color: #fff; }
.legal-list { list-style: none; display: grid; gap: 10px; margin-bottom: 12px; }
.legal-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.legal-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-list span { color: var(--text-faint); }
.legal-list b { text-align: right; }
.legal-bullets { list-style: none; display: grid; gap: 8px; margin: 8px 0 12px; }
.legal-bullets li { position: relative; padding-left: 20px; color: var(--text-dim); }
.legal-bullets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.legal-date { margin-top: 30px; font-size: 0.85rem; color: var(--text-faint) !important; }
.legal-highlights { max-width: 860px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.legal-highlights div { padding: 18px; text-align: center; display: grid; }
.legal-highlights b { font-family: "Outfit"; font-size: 2rem; font-weight: 800; color: #4ade80; text-shadow: 0 0 16px rgba(74, 222, 128, 0.5); }
.legal-highlights span { font-size: 0.85rem; color: var(--text-dim); }
mark.todo { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px dashed rgba(251, 191, 36, 0.6); padding: 1px 8px; border-radius: 6px; font-weight: 600; }

.footer-legal { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; }
.footer-legal a { transition: color 0.3s; }
.footer-legal a:hover { color: #fff; }
.footer-legal span { color: #4ade80; }
.footer-disclaimer { width: 100%; font-size: 0.72rem; color: var(--text-faint); opacity: 0.75; line-height: 1.5; }

@media (max-width: 640px) {
  .legal-body { padding: 30px 22px; }
  .legal-highlights { grid-template-columns: repeat(2, 1fr); }
  .legal-list li { flex-direction: column; gap: 2px; }
  .legal-list b { text-align: left; }
  .footer-legal { justify-content: center; }
}
