/* ===================================
   GLOBAL RESET
=================================== */
:root {
  --primary: #D62828;
  --dark: #0b0b0c;
  --text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ===================================
   NAVBAR OFFICIELLE UNIQUE
=================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20,20,20,0.35);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(15,15,15,0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px;
  height: 50px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.35s ease;
}
.logo img {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.logo:hover { transform: scale(1.05); }
.logo:hover img {
  filter: drop-shadow(0 0 5px rgba(255,0,0,1))
          drop-shadow(0 0 15px rgba(255,0,0,0.8))
          drop-shadow(0 0 30px rgba(214,40,40,0.55));
}
.menu { display: flex; gap: 30px; }
.menu a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: 0.25s ease;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.35s ease;
}
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a:hover, .menu a.active { color: white; }
.menu a:hover { transform: translateY(-2px); }

/* ===================================
   BOUTONS APPLE
=================================== */
button {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}
button:hover {
  transform: scale(1.05);
  background: var(--primary);
  border-color: transparent;
}

/* ===================================
   PANELS
=================================== */
.panel {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 30px;
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.panel > * { position: relative; z-index: 2; }

/* ===================================
   TYPO
=================================== */
h1 { font-size: clamp(3rem,7vw,6rem); letter-spacing: -0.05em; line-height: 1; }
h2 { font-size: clamp(2rem,5vw,4rem); letter-spacing: -0.03em; }
p { font-size: 1.2rem; opacity: 0.85; line-height: 1.6; }

/* ===================================
   NAVIGATION MOBILE
=================================== */
.mobile-menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav-container {
    height: 68px;
    padding: 0 18px;
    flex-wrap: nowrap;
  }
  .logo { min-width: 0; }
  .logo img { width: 180px; max-width: min(65vw, 180px); height: auto; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    font-size: 25px;
    line-height: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    z-index: 2;
  }
  .mobile-menu-toggle:hover { transform: none; background: rgba(214,40,40,0.3); }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 12px 18px 18px;
    flex-direction: column;
    gap: 3px;
    background: rgba(12,12,14,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 35px rgba(0,0,0,0.4);
  }
  .menu.mobile-open { display: flex; }
  .menu a {
    display: block;
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 15px;
    white-space: normal;
  }
  .menu a::after { display: none; }
  .menu a:hover, .menu a.active { background: rgba(214,40,40,0.2); transform: none; }
}

@media (max-width: 768px) {
  .panel { padding: 90px 20px; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  p { font-size: 1rem; }
}
