:root {
  color-scheme: dark;
  --bg: #070611;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.55);
  --primary: #ff4fb4;
  --primary-2: #ff86d0;
  --accent: #ffd1ea;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

/* 
   ==========================================================================
   SCROLLBAR STYLE "PILL" (FORME CAPSULE FINE) 
   ==========================================================================
*/

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 14px !important; /* Largeur de la zone de clic */
  height: 14px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important; /* Rail invisible pour l'effet flottant */
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary) !important; /* Ton rose */
  border-radius: 20px !important; /* Arrondi total */
  
  /* L'ASTUCE DU SCREEN 2 : Une bordure épaisse de la couleur du fond 
     pour affiner visuellement la barre rose et la décoller du bord */
  border: 4px solid var(--bg) !important; 
  background-clip: padding-box !important;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-2) !important; /* Rose plus clair au survol */
}

/* Firefox */
* {
  scrollbar-width: thin !important;
  scrollbar-color: var(--primary) transparent !important;
}

/* 
   ==========================================================================
   BASE & STRUCTURE
   ==========================================================================
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 600px at 20% -10%, rgba(255, 79, 180, 0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(255, 134, 208, 0.16), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(255, 209, 234, 0.12), transparent 60%),
    linear-gradient(180deg, #04040a 0%, #0a0820 60%, #05040f 100%);
  background-attachment: fixed; /* Garde le dégradé stable au scroll */
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* 
   ==========================================================================
   COMPOSANTS (HEADER, BUTTONS, CARDS)
   ==========================================================================
*/

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 6, 17, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 79, 180, 0.95), rgba(255, 134, 208, 0.85));
  box-shadow: 0 16px 40px rgba(255, 79, 180, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: all 160ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: all 160ms ease;
}

.btn-primary {
  border: 1px solid rgba(255, 79, 180, 0.28);
  background: linear-gradient(135deg, rgba(255, 79, 180, 0.95), rgba(255, 134, 208, 0.82));
  box-shadow: 0 18px 45px rgba(255, 79, 180, 0.22);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

/* 
   ==========================================================================
   HERO & SECTIONS
   ==========================================================================
*/

.hero { padding: 54px 0; }

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.section { padding: 44px 0; }

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

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 79, 180, 0.24);
}

/* 
   ==========================================================================
   MODALS & OVERLAYS
   ==========================================================================
*/

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.modal-backdrop.open { display: flex; }

.modal-panel {
  width: min(600px, calc(100vw - 24px));
  background: var(--bg);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-panel::-webkit-scrollbar { width: 5px; }
.modal-panel::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}

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