/* =========================================================
   LEO GAME CREATION — DESIGN SYSTEM
   ========================================================= */

:root {
    --bg: #000000;
    --surface: #000000;
    --surface-2: #000000;
    --primary: #ff9800;
    --primary-hover: #ffb300;
    --gold: #ffd54a;
    --text: #ffffff;
    --muted: #a5a5b0;
    --border: rgba(255, 152, 0, 0.30);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    --glow: 0 0 28px rgba(255, 152, 0, 0.22);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000000; }
body { min-height: 100vh; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: #000000; color: var(--text); text-align: center; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.home-header,
.project-header { padding: 56px 20px 34px; background: #000000; border-bottom: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65); }
.home-header { padding: 24px 20px 20px; }
.home-header .logo { width: 300px; max-width: min(72vw, 300px); margin: 0 auto 2px; filter: drop-shadow(0 0 14px rgba(255, 152, 0, 0.34)); }
.home-header p,
.project-header p { color: #c0c0c8; font-size: 16px; letter-spacing: 0.02em; }
.home-header p::before,
.home-header p::after { content: "✦"; color: var(--primary); margin: 0 10px; font-size: 12px; }
.logo { width: 180px; max-width: 70vw; margin: 0 auto 16px; }
.home-header h1,
.project-header h1 { color: var(--text); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 10px; text-shadow: 0 0 22px rgba(255, 152, 0, 0.22); }

/* =========================================================
   PROJECTS
   ========================================================= */
.games { width: min(1280px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 48px 0 56px; align-items: stretch; background: #000000; }
.game { display: flex; flex-direction: column; background: #000000; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.game::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.8; }
.game:hover { transform: translateY(-6px); border-color: rgba(255, 152, 0, 0.68); box-shadow: var(--shadow), var(--glow); }
.game img { width: 100%; height: auto; object-fit: contain; object-position: center; background: #000000; border-radius: 10px; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, 0.08); }
.game h2 { color: var(--primary); margin-bottom: 8px; font-size: 21px; text-shadow: 0 0 12px rgba(255, 152, 0, 0.15); }
.game p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.game .btn { margin-top: auto; }
.green { color: var(--primary); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn,
.neon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border: 1px solid rgba(255, 213, 74, 0.35); border-radius: 9px; background: linear-gradient(135deg, #ff8f00, #ffb300); color: #111; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn:hover,
.neon-btn:hover { background: linear-gradient(135deg, #ffb300, #ffd54a); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 152, 0, 0.30); }

/* =========================================================
   PROJECT PAGES
   ========================================================= */
.project { max-width: 1120px; margin: 0 auto; padding: 44px 20px 20px; background: #000000; }
.project > img,
.project img { border-radius: 12px; border: 1px solid var(--border); }
.project > img { width: 320px; max-width: 90%; margin: 0 auto 24px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 24px; }
.gallery img { width: 100%; border-radius: 10px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gallery img:hover { transform: translateY(-3px); box-shadow: var(--glow); }

/* BACK BUTTON */
.back-fixed { position: fixed; top: 18px; left: 18px; z-index: 100; display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px; background: #000000; color: var(--primary); border: 1px solid var(--border); border-radius: 9px; backdrop-filter: none; text-decoration: none; font-weight: 700; transition: background 0.2s ease, border-color 0.2s ease; }
.back-fixed:hover { background: #000000; border-color: rgba(255, 152, 0, 0.65); }

/* =========================================================
   PRIVACY
   ========================================================= */
.confidentialite { width: min(900px, calc(100% - 40px)); margin: 40px auto; padding: 36px; text-align: left; line-height: 1.75; background: #000000; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); }
.confidentialite h2 { margin-top: 34px; margin-bottom: 10px; color: var(--primary); font-size: 22px; }
.confidentialite h3 { margin-top: 24px; margin-bottom: 8px; color: var(--primary-hover); font-size: 18px; }
.confidentialite p,
.confidentialite ul li { color: var(--muted); }
.confidentialite p { margin-bottom: 15px; }
.confidentialite ul { margin: 10px 0 0 20px; }
.confidentialite ul li { margin-bottom: 8px; }
.confidentialite a,
footer a { color: var(--primary); text-decoration: none; }
.confidentialite a:hover,
footer a:hover { color: var(--primary-hover); text-decoration: underline; }
.confidentialite hr { border: 0; height: 1px; background: var(--border); margin: 28px 0; }

/* =========================================================
   FOOTER
   ========================================================= */
footer { margin-top: 0; padding: 28px 20px; background: #000000; color: #777782; border-top: 1px solid var(--border); font-size: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .games { grid-template-columns: 1fr; width: min(100% - 30px, 560px); }
}

@media (max-width: 768px) {
    .home-header,
    .project-header { padding: 44px 18px 28px; }
    .home-header { padding: 18px 16px 16px; }
    .home-header .logo { width: 250px; max-width: 78vw; }
    .home-header p { font-size: 14px; }
    .games { padding: 36px 0 44px; }
    .game img { width: 100%; height: auto; max-height: none; object-fit: contain; }
    .project { padding: 34px 15px 10px; }
    .confidentialite { width: calc(100% - 30px); padding: 26px 22px; }
    .back-fixed { top: 12px; left: 12px; min-height: 36px; padding: 7px 12px; font-size: 13px; }
}
