/* ========================================
   Prosplay Shared Design System
   Landing Page v2 - Liquid Glass
   ======================================== */

/* CSS Variables - Dark mode by default */
:root {
  --background: 20 14.3% 4.1%;
  --foreground: 60 9.1% 97.8%;
  --muted: 12 6.5% 15.1%;
  --muted-foreground: 24 5.4% 63.9%;
  --primary: 60 9.1% 97.8%;
  --primary-foreground: 24 9.8% 10%;
  --border: 12 6.5% 15.1%;
  --radius: 0.5rem;
}

/* Light mode - automatic system detection */
@media (prefers-color-scheme: light) {
  :root {
    --background: 0 0% 100%;
    --foreground: 20 14.3% 4.1%;
    --muted: 60 4.8% 95.9%;
    --muted-foreground: 25 5.3% 44.7%;
    --primary: 24 9.8% 10%;
    --primary-foreground: 60 9.1% 97.8%;
    --border: 20 5.9% 90%;
  }
  
  /* Logo pour le mode clair */
  .prosplay-nav-logo,
  .footer-brand img,
  .prosplay-footer img {
    content: url("/Logo-long.svg") !important;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.page-wrapper { overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }

/* ========================================
   Typography
   ======================================== */
.font-boldonse { font-family: 'Boldonse', sans-serif; }
h1, h2, h3 { font-family: 'Boldonse', sans-serif; line-height: 1.26; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

/* ========================================
   Layout
   ======================================== */
.container-page { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   Navbar
   ======================================== */
.prosplay-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
}
.prosplay-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.prosplay-nav-left { display: flex; align-items: center; gap: 32px; padding-left: 32px; }
.prosplay-nav-right { display: flex; align-items: center; gap: 8px; padding-right: 32px; }
.prosplay-nav-logo { height: 42px; transition: opacity 0.2s; }
.prosplay-nav-logo:hover { opacity: 0.75; }

.prosplay-nav-links { display: none; align-items: center; gap: 24px; }
@media (min-width: 1024px) { .prosplay-nav-links { display: flex; } }

.prosplay-nav-link {
  font-size: 14px;
  font-weight: 400;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s;
}
.prosplay-nav-link:hover { color: hsl(var(--foreground) / 0.8); }

/* Dropdown */
.prosplay-dropdown { position: relative; }
.prosplay-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 14px;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}
.prosplay-dropdown-trigger:hover { color: hsl(var(--foreground) / 0.8); }
.prosplay-dropdown-trigger svg { width: 16px; height: 16px; transition: transform 0.2s; }
.prosplay-dropdown:hover .prosplay-dropdown-trigger svg { transform: rotate(180deg); }

.prosplay-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  padding-top: 24px;
  transform: scale(0.95);
  transform-origin: top;
  transition: all 0.2s;
}
.prosplay-dropdown:hover .prosplay-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
.prosplay-dropdown-panel {
  background: hsl(var(--background));
  border: 0.4px solid hsl(var(--muted));
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  min-width: 200px;
}
.prosplay-dropdown-panel a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s;
}
.prosplay-dropdown-panel a:hover { color: hsl(var(--foreground) / 0.8); }

/* Buttons */
.btn-outline {
  display: none;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  border: 0.5px solid hsl(var(--primary) / 0.4);
  background: transparent;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-outline:hover { background: hsl(var(--primary) / 0.05); }
@media (min-width: 768px) { .btn-outline { display: inline-flex; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  border: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  box-shadow: inset 0 0.5px 0 0 rgba(255,255,255,0.2), inset 0 0 0 0.5px rgba(0,0,0,0.2), 0 1px 2px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover { filter: brightness(0.8); }

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-primary-lg:hover { filter: brightness(0.9); transform: scale(1.05); }

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid hsl(var(--foreground) / 0.2);
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline-lg:hover { border-color: hsl(var(--foreground) / 0.4); }

/* ========================================
   Hero Section for subpages
   ======================================== */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  background: hsl(var(--background));
}
.page-hero h1 {
  color: #092759;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: hsl(var(--foreground) / 0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   Liquid Glass Cards
   ======================================== */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.10) 100%);
  backdrop-filter: blur(120px) saturate(180%) contrast(1.1);
  -webkit-backdrop-filter: blur(120px) saturate(180%) contrast(1.1);
  border-radius: 18px;
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
              0 -0.5px 0 0 rgba(255, 255, 255, 0.02) inset,
              0 0 0 0.5px rgba(255, 255, 255, 0.02),
              0 2px 4px -1px rgba(0, 0, 0, 0.08),
              0 6px 12px -3px rgba(0, 0, 0, 0.06),
              0 12px 24px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.glass-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.14) 100%);
  border-top: 0.5px solid rgba(255, 255, 255, 0.4);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
              0 4px 8px -2px rgba(0, 0, 0, 0.12),
              0 12px 24px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */
.prosplay-footer {
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
}
.prosplay-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}
.prosplay-footer footer {
  position: relative;
  border-radius: 16px;
  padding: 24px;
}
@media (min-width: 640px) { .prosplay-footer footer { padding: 32px; } }
@media (min-width: 768px) { .prosplay-footer footer { padding: 40px; } }
@media (min-width: 1024px) { .prosplay-footer footer { padding: 56px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand { max-width: 280px; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.footer-brand .btn-demo {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-top: 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: all 0.2s;
}
.footer-brand .btn-demo:hover { filter: brightness(0.9); }

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #092759;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: hsl(var(--foreground)); }

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.footer-social a:hover { color: hsl(var(--foreground)); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid hsl(var(--muted));
  text-align: center;
}
.footer-bottom p { font-size: 14px; color: hsl(var(--muted-foreground)); }

/* ========================================
   Sections
   ======================================== */
.section-spacing { padding: 80px 0; }
.section-spacing-lg { padding: 120px 0; }

/* CTA Section */
.cta-section {
  padding: 80px 24px;
  text-align: center;
}
.cta-section h2 {
  color: #092759;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  color: hsl(var(--foreground) / 0.7);
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .prosplay-nav-right { padding-right: 16px; }
  .prosplay-nav-left { padding-left: 16px; }
  .prosplay-footer-inner { padding: 0 16px; }
}

/* Mobile navigation */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
}
.nav-burger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}
@media (min-width: 768px) {
  .nav-burger { display: none; }
}

.prosplay-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.prosplay-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.prosplay-mobile-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: hsl(var(--background));
  border-left: 1px solid hsl(var(--muted));
  box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
.prosplay-mobile-panel.open {
  right: 0;
}
.prosplay-mobile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid hsl(var(--muted));
  font-weight: 600;
}
.nav-close {
  background: transparent;
  border: none;
  display: inline-flex;
  position: relative;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.nav-close span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  border-radius: 999px;
  background: hsl(var(--foreground));
}
.nav-close span:first-child { transform: rotate(45deg); top: 13px; }
.nav-close span:last-child { transform: rotate(-45deg); top: 13px; }

.prosplay-mobile-panel__content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-section { display: flex; flex-direction: column; gap: 8px; }
.mobile-section__title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.mobile-link {
  font-size: 14px;
  color: hsl(var(--foreground));
  text-decoration: none;
  padding: 4px 0;
}
.mobile-link:hover { color: hsl(var(--foreground) / 0.8); }

.prosplay-mobile-panel__actions {
  padding: 16px 20px 20px;
  border-top: 1px solid hsl(var(--muted));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-btn--outline {
  border: 1px solid hsl(var(--foreground) / 0.2);
  color: hsl(var(--foreground));
}
.mobile-btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

body.mobile-menu-open { overflow: hidden; }
