* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --instagram-gradient: linear-gradient(135deg, #fdf2ff 0%, #ffe4f0 40%, #fff7ed 100%);
  --tiktok-gradient: linear-gradient(135deg, #0f172a 0%, #111827 40%, #020617 100%);
  --primary: #111827;
  --accent: #6366f1;
  --accent-tiktok: #06b6d4;
  --accent-tiktok-2: #ec4899;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f3f4f6;
  overflow-x: hidden;
}

/* NAVBAR */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-menu a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.2s ease;
}

.nav-menu a:hover {
  color: #111827;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* SECTIONS */

.platform-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.instagram-section {
  background: var(--instagram-gradient);
}

.tiktok-section {
  background: radial-gradient(circle at top left, #0ea5e9 0, transparent 55%), radial-gradient(circle at bottom right, #f97316 0, transparent 55%), #020617;
  color: #f9fafb;
}

.section-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.section-title {
  font-size: 2.7rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #111827;
}

.tiktok-title {
  color: #f9fafb;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
}

.tiktok-section .section-subtitle {
  color: #e5e7eb;
}

/* INPUT + BOUTONS */

.input-group {
  margin-bottom: 2.5rem;
}

.input-wrapper {
  position: relative;
  max-width: 550px;
  margin: 0 auto 1.25rem;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}

.instagram-icon {
  color: #ec4899;
}

.tiktok-icon {
  color: #0ea5e9;
}

.username-input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3.2rem;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  font-size: 0.98rem;
  outline: none;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.tiktok-section .username-input {
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
}

.username-input:focus {
  border-color: #6366f1;
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.25);
  transform: translateY(-1px);
}

.tiktok-section .username-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.5);
}

.continue-btn {
  padding: 0.95rem 2.5rem;
  border-radius: 999px;
  border: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.instagram-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

.instagram-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.5);
}

.tiktok-btn {
  background: linear-gradient(135deg, #06b6d4, #ec4899);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

.tiktok-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
}

/* FEATURES */

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}

.tiktok-section .feature-item {
  color: #e5e7eb;
}

.feature-icon {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* SECTION CONTACT */

.contact-section {
  background: #0f172a;
  color: #f9fafb;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 0.98rem;
  margin-bottom: 2rem;
  color: #cbd5f5;
}

.contact-email {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.contact-email:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: transparent;
  transform: translateY(-1px);
}

/* MODALE */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.2rem 2.2rem 2rem;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.4);
  animation: slideUp 0.25s ease-out;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.modal-username {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.modal-platform {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

/* TABS */

.modal-tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem;
  background: #f3f4f6;
  margin: 0 auto 1.5rem;
}

.modal-tab {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-tab.active {
  background: #111827;
  color: #f9fafb;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.modal-message {
  font-size: 0.95rem;
  color: #6b7280;
  text-align: center;
}

/* OFFRES */

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hidden {
  display: none;
}

.offer-card {
  position: relative;
  border-radius: 16px;
  background: #f9fafb;
  padding: 0.75rem 0.6rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, background 0.15s ease;
  font-size: 0.9rem;
}

.offer-card.best {
  border-width: 2px;
  border-color: #4f46e5;
}

.offer-card.selected {
  border-color: #2563eb;
  border-width: 2px;
  background: #eef2ff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.offer-card:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.offer-quantity {
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.offer-bonus {
  font-size: 0.75rem;
  color: #16a34a;
  min-height: 1rem;
}

.offer-price {
  margin-top: 0.25rem;
  font-weight: 600;
  color: #111827;
}

.offer-tag {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #b91c1c;
}

/* COMING SOON */

.coming-soon {
  grid-column: 1 / -1;
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #e5e7eb;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.coming-soon-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* FORM MODALE */

.modal-form {
  margin-top: 1.8rem;
  text-align: left;
}

.modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #374151;
}

.modal-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.modal-submit {
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #111827, #020617);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.4);
}

.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
}

/* ANIMATIONS */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav-container {
    padding: 0.8rem 1rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .modal-content {
    padding: 1.8rem 1.5rem 1.5rem;
  }
}
