/* Landing page SteamLuaManager */
/* Bloc principal extrait de index.html pour faciliter la maintenance. */

/* Variables de theme et tokens de mise en page */

    :root {
      --bg: #0b1220;
      --bg-2: #0f172a;
      --surface: rgba(255, 255, 255, 0.04);
      --surface-2: rgba(255, 255, 255, 0.06);
      --surface-3: rgba(14, 165, 233, 0.08);
      --text: #e8eef8;
      --muted: #9aa9bf;
      --line: rgba(255, 255, 255, 0.08);
      --line-strong: rgba(14, 165, 233, 0.16);
      --primary: #0ea5e9;
      --primary-hover: #0284c7;
      --primary-soft: rgba(14, 165, 233, 0.12);
      --success: #22c55e;
      --success-soft: rgba(34, 197, 94, 0.15);
      --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.42);
      --radius-xl: 22px;
      --radius-lg: 18px;
      --radius-md: 14px;
      --max: 1160px;
    }

    body {
      font-family: "Inter", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.14), transparent 30%),
        linear-gradient(180deg, #0b1220 0%, #09101d 100%);
      line-height: 1.6;
      min-height: 100vh;
    }


    /* Navigation haute */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(14px);
      background: rgba(9, 16, 29, 0.72);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.85rem;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .brand img {
      width: 38px;
      height: 38px;
    }

    .brand span {
      font-size: 1.02rem;
    }

    .nav-links {
      display: none;
      align-items: center;
      gap: 1.15rem;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      min-height: 48px;
      padding: 0.92rem 1.2rem;
      border-radius: 14px;
      border: 1px solid transparent;
      font-weight: 700;
      transition: 0.2s ease;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24);
    }

    .btn-primary:hover {
      background: var(--primary-hover);
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.04);
      border-color: var(--line);
      color: var(--text);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.07);
    }

    main section {
      padding: 4.75rem 0;
    }

    /* Hero et proposition de valeur */
    .hero {
      padding-top: 4.4rem;
      padding-bottom: 3.8rem;
    }

    .hero-grid {
      display: grid;
      gap: 2rem;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.55rem 0.95rem;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .pulse {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--success);
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
      animation: pulse 2s infinite;
      flex: 0 0 auto;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
      70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
      100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    }

    .hero h1 {
      font-size: clamp(2.4rem, 6vw, 4.9rem);
      line-height: 1.02;
      letter-spacing: -0.065em;
      max-width: 10.5ch;
      margin-bottom: 1rem;
    }

    .hero p.lead {
      max-width: 62ch;
      font-size: 1.07rem;
      color: var(--muted);
      margin-bottom: 1.35rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
      margin-bottom: 1rem;
    }

    .version-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      align-items: center;
      margin-bottom: 1rem;
    }

    .version-badge,
    .meta-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.62rem 1rem;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      background: rgba(14, 165, 233, 0.08);
      color: #d3ebfb;
      font-size: 0.93rem;
      font-weight: 600;
    }

    .meta-badge {
      border-color: var(--line);
      background: rgba(255, 255, 255, 0.04);
      color: var(--muted);
    }

    .hero-points {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      color: var(--muted);
      font-size: 0.93rem;
    }

    .hero-points span {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }

    .hero-shot {
      border-radius: var(--radius-xl);
      overflow: hidden;
      border: 1px solid var(--line-strong);
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
      box-shadow: var(--shadow-lg);
    }

    .hero-shot img {
      width: 100%;
    }

    .hero-shot figcaption {
      padding: 0.82rem 1rem;
      font-size: 0.9rem;
      color: #bfd9ec;
      background: rgba(14, 165, 233, 0.07);
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    /* Sections de contenu reutilisables */
    .section-head {
      margin-bottom: 1.4rem;
    }

    .section-head h2 {
      font-size: clamp(1.7rem, 4vw, 2.5rem);
      letter-spacing: -0.045em;
      margin-bottom: 0.65rem;
    }

    .section-head p {
      max-width: 68ch;
      color: var(--muted);
    }

    .grid {
      display: grid;
      gap: 1rem;
    }

    .grid-3 {
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .games-page-header h1 {
      margin: 0 0 0.75rem;
      font-size: clamp(2rem, 4.8vw, 3rem);
      letter-spacing: -0.04em;
    }

    .games-list {
      padding: 1rem;
    }

    .games-list-ul {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 0.8rem;
    }

    .games-list-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 0.9rem 1rem;
    }

    .games-list-main {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      min-width: 0;
    }

    .games-thumb-wrap {
      width: 88px;
      height: 42px;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.05);
      flex: 0 0 auto;
      position: relative;
    }

    .games-thumb {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .games-thumb-fallback {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      font-size: 1rem;
      font-weight: 800;
      color: #d3ebfb;
      background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(34, 197, 94, 0.24));
    }

    .games-title-block {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0.45rem;
      min-width: 0;
    }

    .games-name {
      font-size: 1rem;
      letter-spacing: -0.01em;
    }

    .games-appid {
      color: var(--muted);
      font-size: 0.88rem;
    }

    .games-list-actions {
      flex: 0 0 auto;
    }

    .games-steam-link {
      min-height: 38px;
      padding: 0.5rem 0.8rem;
      font-size: 0.88rem;
    }

    .games-list-message {
      margin: 0;
      color: var(--muted);
      padding: 0.5rem;
    }

    .games-list-error {
      color: #fca5a5;
    }

    @media (max-width: 740px) {
      .games-list-item {
        align-items: flex-start;
        flex-direction: column;
      }

      .games-list-actions {
        width: 100%;
      }

      .games-steam-link {
        width: 100%;
      }
    }

    .grid-2 {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .card {
      padding: 1.35rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
    }

    .card strong.kicker {
      display: inline-block;
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #7dd3fc;
      margin-bottom: 0.7rem;
    }

    .card h3 {
      font-size: 1.04rem;
      margin-bottom: 0.45rem;
    }

    .card p {
      color: var(--muted);
      font-size: 0.96rem;
    }

    .feature-card {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    .feature-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: var(--primary-soft);
      border: 1px solid var(--line-strong);
      color: var(--primary);
      font-weight: 800;
      font-size: 0.95rem;
    }

    /* Galerie et screenshots */
    .gallery {
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .shot {
      overflow: hidden;
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.03);
    }

    .gallery-img {
      width: 100%;
      height: 17rem;
      object-fit: cover;
      cursor: zoom-in;
      transition: transform 0.22s ease;
    }

    .gallery-img:hover {
      transform: scale(1.02);
    }

    .shot figcaption {
      padding: 0.8rem 0.95rem;
      font-size: 0.86rem;
      color: var(--muted);
      border-top: 1px solid var(--line);
    }

    .steps {
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .step {
      padding: 1.35rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.03);
    }

    .step-num {
      width: 36px;
      height: 36px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-weight: 800;
      margin-bottom: 0.8rem;
      color: #86efac;
      background: var(--success-soft);
    }

    /* Bloc FAQ */
    .faq-list {
      display: grid;
      gap: 1rem;
    }

    .faq-item {
      padding: 1.2rem 1.3rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.03);
    }

    .faq-item h3 {
      font-size: 1rem;
      margin-bottom: 0.45rem;
    }

    .faq-item p {
      color: var(--muted);
      font-size: 0.96rem;
    }

    /* Appel a l'action final */
    .cta-box {
      padding: 2rem;
      border-radius: calc(var(--radius-xl) + 2px);
      border: 1px solid var(--line-strong);
      background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
      box-shadow: var(--shadow-lg);
    }

    .cta-box h2 {
      font-size: clamp(1.7rem, 4vw, 2.35rem);
      letter-spacing: -0.045em;
      margin-bottom: 0.7rem;
    }

    .cta-box p {
      color: var(--muted);
      max-width: 62ch;
      margin-bottom: 1.2rem;
    }

    footer {
      padding: 2rem 0 2.2rem;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.92rem;
    }

    .footer-row {
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
      align-items: flex-start;
    }

    .footer-row a {
      color: #7dd3fc;
    }

    .footer-row a:hover {
      text-decoration: underline;
    }

    /* Lightbox pour agrandir les captures */
    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0,0,0,0.92);
      justify-content: center;
      align-items: center;
      cursor: zoom-out;
      backdrop-filter: blur(4px);
    }

    .lightbox img {
      max-width: 95%;
      max-height: 95%;
      border-radius: 10px;
      border: 2px solid var(--primary);
      box-shadow: 0 0 40px rgba(0,0,0,0.85);
    }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 28px;
      font-size: 38px;
      font-weight: 700;
      color: white;
      cursor: pointer;
    }

    .close-btn:hover {
      color: var(--primary);
    }

    /* Breakpoints responsive */
    @media (min-width: 920px) {
      .nav-links {
        display: flex;
      }

      .hero-grid {
        grid-template-columns: 1.02fr 0.98fr;
      }

      .footer-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    @media (max-width: 720px) {
      .nav-actions .btn-secondary {
        display: none;
      }

      .hero {
        padding-top: 3.5rem;
      }

      .gallery-img {
        height: 14rem;
      }

      .cta-box {
        padding: 1.4rem;
      }
    }

/* Ajustements structurels apres extraction des styles inline HTML */
.gallery-img--contain {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.muted-text {
  color: var(--muted);
}

.hero-actions--flush {
  margin-bottom: 0;
}
