@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-orange: #E85D04;
  --brand-orange-hover: #C44A00;
  --brand-black: #0D0D0D;
  --brand-gray: #8E8E93;
  --brand-light-gray: #F2F2F7;
  --brand-dark: #1a1a1a;
  --apple-card-bg: rgba(255, 255, 255, 0.8);
  --apple-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --apple-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --apple-border-radius: 20px;
  --apple-border-radius-large: 28px;
  --apple-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --apple-transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #F5F5F7 0%, #FFFFFF 100%);
  color: #1D1D1F;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* NAVIGATION - Apple Style */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--brand-black);
  transition: var(--apple-transition);
}

.navbar-brand:hover {
  opacity: 0.7;
}

.nav-link {
  font-weight: 400;
  font-size: 0.9375rem;
  color: #1D1D1F;
  padding: 8px 16px !important;
  border-radius: 12px;
  transition: var(--apple-transition);
  letter-spacing: -0.01em;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1D1D1F;
}

.nav-link.btn-primary {
  background: #E85D04;
  color: white;
  font-weight: 500;
  padding: 8px 20px !important;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.3);
}

.nav-link.btn-primary:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4);
}

/* HERO - Apple Style */
.hero {
  background: linear-gradient(135deg, #0D0D0D 0%, #E85D04 50%, #0D0D0D 100%);
  color: white;
  padding: 140px 20px 100px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.95;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 400;
}

.hero .btn {
  border-radius: 24px;
  padding: 14px 32px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: var(--apple-transition-spring);
  border: none;
}

.hero .btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: #1D1D1F;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero .btn-light:hover {
  background: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* STORIES - Apple Style */
.stories {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  min-width: 100px;
  height: 180px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: var(--apple-transition-spring);
  overflow: hidden;
}

.story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
  border-radius: 24px;
}

.story:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.story span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 1;
}

/* EVENT CARD - Apple Style */
.event-card {
  border-radius: var(--apple-border-radius-large);
  overflow: hidden;
  border: none;
  transition: var(--apple-transition-spring);
  background: var(--apple-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 100%;
  box-shadow: var(--apple-shadow);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--apple-shadow-hover);
}

.event-card img {
  height: 220px;
  object-fit: cover;
  transition: var(--apple-transition);
}

.event-card:hover img {
  transform: scale(1.08);
}

/* BENTO GRID - Apple Style */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 16px 0;
}

.bento-card {
  background: var(--apple-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--apple-border-radius-large);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--apple-transition-spring);
  box-shadow: var(--apple-shadow);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  min-height: 280px;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--apple-shadow-hover);
}

.bento-card-large {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 400px;
}

.bento-card-medium {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 400px;
}

.bento-card-small {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 180px;
}

.bento-card-wide {
  grid-column: span 6;
  grid-row: span 1;
  min-height: 180px;
}

.bento-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--apple-transition);
}

.bento-card:hover .bento-card-image {
  transform: scale(1.1);
}

.bento-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
  padding: 32px;
  color: white;
}

.bento-card-small .bento-card-content {
  padding: 20px;
}

.bento-card-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 0.5px solid rgba(255,255,255,0.3);
}

.bento-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bento-card-small .bento-card-title {
  font-size: 1.125rem;
}

.bento-card-info {
  font-size: 0.875rem;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bento-card-info i {
  margin-right: 4px;
  opacity: 0.9;
}

.bento-card-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(255,255,255,0.2);
}

.bento-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

/* CATEGORY - Apple Style */
.category {
  padding: 10px 20px;
  background: var(--apple-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--apple-transition-spring);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9375rem;
}

.category:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.category.active {
  background: var(--brand-orange);
  color: white;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.3);
}

/* STATS - Apple Style */
.stats-section {
  background: var(--apple-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--apple-border-radius-large);
  padding: 48px 24px;
  box-shadow: var(--apple-shadow);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #1D1D1F;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

/* TESTIMONIAL - Apple Style */
.testimonial {
  background: var(--apple-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--apple-border-radius-large);
  padding: 32px;
  box-shadow: var(--apple-shadow);
  height: 100%;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  transition: var(--apple-transition);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-hover);
}

.testimonial img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* FEATURE - Apple Style */
.feature-card {
  background: var(--apple-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--apple-border-radius-large);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--apple-shadow);
  transition: var(--apple-transition-spring);
  height: 100%;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--apple-shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  color: var(--brand-orange);
  margin-bottom: 20px;
  transition: var(--apple-transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* HOW IT WORKS - Apple Style */
.how-it-works {
  background-image: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1920&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  border-radius: var(--apple-border-radius-large);
  padding: 64px 40px;
  box-shadow: var(--apple-shadow-hover);
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--apple-border-radius-large);
  z-index: 0;
}

.how-it-works > * {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* SECTION TITLES - Apple Style */
.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 56px;
  text-align: center;
  letter-spacing: -0.03em;
  color: #1D1D1F;
}

/* FOOTER - Apple Style */
footer {
  background: #0D0D0D;
  color: #8E8E93;
  padding: 64px 0 32px;
}

footer h5 {
  color: #F5F5F7;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

footer a {
  color: #8E8E93;
  text-decoration: none;
  transition: var(--apple-transition);
  font-size: 0.9375rem;
}

footer a:hover {
  color: #F5F5F7;
}

.social-icons a {
  display: inline-block;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  margin-right: 12px;
  transition: var(--apple-transition-spring);
  border: 0.5px solid rgba(255,255,255,0.1);
}

.social-icons a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px) scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================ */

/* Extra Large Devices (Desktop, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Large Devices (Desktop, 992px and up) */
@media (min-width: 992px) {
  .bento-grid {
    gap: 20px;
  }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991.98px) {
  /* Navigation */
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .nav-link {
    padding: 10px 16px !important;
    font-size: 0.875rem;
  }
  
  /* Hero */
  .hero {
    padding: 120px 20px 80px;
    min-height: 550px;
  }
  
  .hero-video {
    min-height: 550px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero .lead {
    font-size: 1.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Bento Grid */
  .bento-card-large {
    grid-column: span 12;
    grid-row: span 2;
    min-height: 350px;
  }

  .bento-card-medium {
    grid-column: span 12;
    grid-row: span 2;
    min-height: 350px;
  }

  .bento-card-small {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 250px;
  }

  .bento-card-wide {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 250px;
  }
  
  /* Event Cards */
  .event-card {
    margin-bottom: 24px;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2.25rem;
  }
  
  /* Stats */
  .stats-section {
    padding: 40px 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Features */
  .feature-card {
    margin-bottom: 24px;
  }
  
  /* How it works */
  .how-it-works {
    padding: 48px 32px;
  }
  
  /* Footer */
  footer {
    padding: 48px 0 24px;
  }
  
  footer .row > div {
    margin-bottom: 32px;
  }
}

/* Small Devices (Mobile Landscape, 576px to 767px) */
@media (max-width: 767.98px) {
  /* Navigation */
  .navbar {
    padding: 8px 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .nav-link.btn-primary {
    padding: 6px 16px !important;
    font-size: 0.8125rem;
    margin-left: 8px !important;
  }
  
  /* Hero */
  .hero {
    padding: 100px 16px 60px;
    margin-top: 60px;
    min-height: 500px;
  }
  
  .hero-video {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
    margin-bottom: 16px;
  }
  
  .hero .lead {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }
  
  .hero .btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
    width: 100%;
    margin-bottom: 12px;
  }
  
  .hero .d-flex {
    flex-direction: column;
    gap: 12px;
  }
  
  /* Bento Grid */
  .bento-grid {
    gap: 12px;
    padding: 12px 0;
  }

  .bento-card {
    min-height: 200px;
    border-radius: 16px;
  }

  .bento-card-large,
  .bento-card-medium {
    min-height: 280px;
  }
  
  .bento-card-small,
  .bento-card-wide {
    min-height: 200px;
  }

  .bento-card-content {
    padding: 16px;
  }

  .bento-card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .bento-card-small .bento-card-title {
    font-size: 1rem;
  }
  
  .bento-card-info {
    font-size: 0.8125rem;
    gap: 12px;
  }
  
  .bento-card-stats {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }
  
  .bento-card-badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }
  
  /* Stories */
  .stories {
    gap: 10px;
    padding: 8px;
  }
  
  .story {
    min-width: 80px;
    height: 140px;
    border-radius: 16px;
  }
  
  .story span {
    font-size: 0.75rem;
    bottom: 8px;
    left: 8px;
  }
  
  /* Categories */
  .category {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }
  
  /* Event Cards */
  .event-card {
    margin-bottom: 20px;
  }
  
  .event-card img {
    height: 180px;
  }
  
  /* Stats */
  .stats-section {
    padding: 32px 16px;
  }
  
  .stat-item {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* Features */
  .feature-card {
    padding: 32px 24px;
    margin-bottom: 20px;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* How it works */
  .how-it-works {
    padding: 40px 24px;
    border-radius: 20px;
  }
  
  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }
  
  /* Testimonials */
  .testimonial {
    padding: 24px;
    margin-bottom: 20px;
  }
  
  /* Footer */
  footer {
    padding: 40px 0 24px;
    text-align: center;
  }
  
  footer .row > div {
    margin-bottom: 32px;
  }
  
  footer h5 {
    font-size: 1rem;
  }
  
  footer ul {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
    margin-top: 20px;
  }
  
  /* Container padding */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Buttons */
  .btn-lg {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
  
  /* Forms */
  .form-section {
    padding: 32px 20px;
    border-radius: 24px;
  }
  
  .form-section h5 {
    font-size: 1.5rem;
  }
  
  /* Notifications */
  .smart-notification {
    right: 16px;
    left: 16px;
    min-width: auto;
    max-width: calc(100% - 32px);
  }
  
  .auto-save-indicator {
    right: 16px;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.8125rem;
  }
}

/* Extra Small Devices (Mobile Portrait, up to 575px) */
@media (max-width: 575.98px) {
  /* Hero */
  .hero {
    padding: 80px 12px 48px;
    min-height: 450px;
  }
  
  .hero-video {
    min-height: 450px;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .hero p {
    font-size: 0.875rem;
  }
  
  /* Bento */
  .bento-card {
    min-height: 180px;
    border-radius: 12px;
  }
  
  .bento-card-large,
  .bento-card-medium {
    min-height: 240px;
  }
  
  .bento-card-content {
    padding: 12px;
  }
  
  .bento-card-title {
    font-size: 1.125rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  
  /* Stats */
  .stat-number {
    font-size: 1.75rem;
  }
  
  /* Forms */
  .form-section {
    padding: 24px 16px;
  }
  
  .form-section h5 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  
  /* Step Indicator */
  .step-indicator {
    padding: 20px 12px;
    margin: 40px 0;
  }
  
  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .step-line {
    width: 60px;
    margin: 0 8px;
  }
  
  .step-label {
    font-size: 0.6875rem;
    top: -28px;
  }
  
  /* Categories */
  .category {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }
  
  /* Event Cards */
  .event-card img {
    height: 160px;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .d-flex.gap-2 {
    flex-direction: column;
  }
  
  .d-flex.gap-2 .btn {
    width: 100%;
  }
}

/* Buttons - Apple Style */
.btn {
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: var(--apple-transition-spring);
  border: none;
}

.btn-primary {
  background: #E85D04;
  color: white;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
  background: #0051D5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4);
  color: white;
}

.btn-outline-secondary {
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1D1D1F;
}

.btn-outline-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Form Controls - Apple Style */
.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  transition: var(--apple-transition);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
  outline: none;
  background: white;
}

.form-floating > label {
  color: #8E8E93;
  font-weight: 400;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--brand-orange);
}

/* UX Intelligence Styles */
.auto-save-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(52, 199, 89, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-save-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

.restore-notification {
  position: fixed;
  top: 100px;
  right: 24px;
  background: rgba(232, 93, 4, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 16px 24px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.3);
  z-index: 1000;
  animation: slideInRight 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.field-feedback {
  font-size: 0.8125rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-feedback.valid-feedback {
  color: #34C759;
}

.field-feedback.invalid-feedback {
  color: #FF3B30;
}

.field-help {
  font-size: 0.8125rem;
  color: #8E8E93;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}

.field-help.show {
  opacity: 1;
  transform: translateY(0);
}

.field-suggestion {
  background: rgba(232, 93, 4, 0.1);
  border-left: 3px solid var(--brand-orange);
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: #1D1D1F;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.field-suggestion.show {
  opacity: 1;
  transform: translateY(0);
}

.field-suggestion i {
  color: var(--brand-orange);
  margin-right: 8px;
}

.autocomplete-list {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 8px;
  margin: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.autocomplete-list li {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9375rem;
  color: #1D1D1F;
}

.autocomplete-list li:hover {
  background: rgba(232, 93, 4, 0.1);
  color: var(--brand-orange);
}

.form-progress-bar {
  height: 4px;
  background: var(--brand-orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.form-progress-text {
  font-size: 0.8125rem;
  color: #8E8E93;
  margin-top: 8px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.smart-notification {
  position: fixed;
  top: 100px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.smart-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.smart-notification.success {
  border-left: 4px solid #34C759;
}

.smart-notification.error {
  border-left: 4px solid #FF3B30;
}

.smart-notification.warning {
  border-left: 4px solid #FFCC00;
}

.smart-notification.info {
  border-left: 4px solid var(--brand-orange);
}

.smart-notification i {
  font-size: 1.25rem;
}

.smart-notification.success i {
  color: #34C759;
}

.smart-notification.error i {
  color: #FF3B30;
}

.smart-notification.warning i {
  color: #FFCC00;
}

.smart-notification.info i {
  color: var(--brand-orange);
}

.live-preview {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  max-height: 0;
  overflow: hidden;
}

.live-preview.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px;
}

.live-preview h6 {
  color: #8E8E93;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-preview h5 {
  color: #1D1D1F;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.live-preview p {
  color: #8E8E93;
  line-height: 1.6;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Progress Indicator pour formulaires multi-étapes */
.form-progress-container {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-progress-bar-container {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

/* Amélioration des champs de formulaire */
.form-control.is-valid,
.form-select.is-valid {
  border-color: #34C759;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2334C759' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #FF3B30;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF3B30'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #34C759;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2334C759' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Animation de chargement intelligent */
.smart-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(232, 93, 4, 0.2);
  border-radius: 50%;
  border-top-color: var(--brand-orange);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltip intelligent */
.smart-tooltip {
  position: relative;
  cursor: help;
}

.smart-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 1000;
}

.smart-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

/* Animations supplémentaires pour UX intelligente */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Amélioration des transitions de formulaire */
.form-section {
  animation: slideInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Feedback visuel amélioré pour les interactions */
.btn:active {
  transform: scale(0.98);
}

.card:active,
.bento-card:active {
  transform: scale(0.98);
}

/* Amélioration de l'accessibilité */
*:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading states améliorés */
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Amélioration des tooltips */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  animation: fadeIn 0.2s;
}

/* Amélioration de la navigation sticky */
.navbar {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              background 0.3s,
              box-shadow 0.3s;
}

/* Amélioration des cartes avec états de chargement */
.card.loading {
  position: relative;
  overflow: hidden;
}

.card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Amélioration des formulaires avec états de focus group */
.form-floating:focus-within {
  transform: translateY(-2px);
}

.form-floating:focus-within label {
  color: var(--brand-orange);
  font-weight: 600;
}

/* Amélioration de la sélection de texte */
::selection {
  background: rgba(232, 93, 4, 0.2);
  color: var(--brand-black);
}

/* Amélioration du scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 93, 4, 0.4);
  border-radius: 4px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Amélioration des états de hover avec feedback tactile */
@media (hover: hover) {
  .btn:hover,
  .card:hover,
  .bento-card:hover {
    cursor: pointer;
  }
}

/* Amélioration pour les appareils tactiles */
@media (hover: none) {
  .btn:active,
  .card:active,
  .bento-card:active {
    transform: scale(0.95);
  }
}

/* Amélioration de la performance avec will-change */
.bento-card,
.event-card,
.btn,
.form-section {
  will-change: transform;
}

/* Désactiver will-change après animation */
.bento-card:hover,
.event-card:hover,
.btn:hover {
  will-change: auto;
}

/* ============================================
   RESPONSIVE - Éléments spécifiques
   ============================================ */

/* Tableaux responsive */
@media (max-width: 767.98px) {
  .table-responsive {
    border-radius: 16px;
    overflow: hidden;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 10px 8px;
    white-space: nowrap;
  }
  
  .table th {
    font-size: 0.8125rem;
  }
  
  /* Stack table on very small screens */
  @media (max-width: 575.98px) {
    .table thead {
      display: none;
    }
    
    .table,
    .table tbody,
    .table tr,
    .table td {
      display: block;
      width: 100%;
    }
    
    .table tr {
      margin-bottom: 16px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 12px;
      padding: 12px;
      background: white;
    }
    
    .table td {
      text-align: right;
      padding: 8px 0;
      border: none;
      position: relative;
      padding-left: 50%;
    }
    
    .table td::before {
      content: attr(data-label);
      position: absolute;
      left: 0;
      width: 45%;
      text-align: left;
      font-weight: 600;
      color: #1D1D1F;
    }
  }
}

/* Formulaires responsive */
@media (max-width: 767.98px) {
  .row .col-md-6,
  .row .col-md-4,
  .row .col-md-3 {
    margin-bottom: 16px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .d-flex.gap-2,
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 12px !important;
  }
  
  .d-flex.gap-2 .btn,
  .d-flex.gap-3 .btn {
    width: 100%;
  }
}

/* Cards responsive */
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 20px;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
}

/* Navigation responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    gap: 8px;
  }
  
  .nav-item {
    margin-bottom: 4px;
  }
  
  .nav-link.btn-primary {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
    margin-top: 8px;
  }
}

@media (max-width: 767.98px) {
  .navbar {
    padding: 8px 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-toggler {
    padding: 4px 8px;
    font-size: 1rem;
  }
}

/* Modals responsive */
@media (max-width: 767.98px) {
  .modal-dialog {
    margin: 16px;
    max-width: calc(100% - 32px);
  }
  
  .modal-content {
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
}

/* Alerts responsive */
@media (max-width: 767.98px) {
  .alert {
    padding: 12px 16px;
    font-size: 0.875rem;
    border-radius: 12px;
  }
}

/* Badges responsive */
@media (max-width: 575.98px) {
  .badge {
    font-size: 0.6875rem;
    padding: 4px 8px;
  }
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Container responsive padding */
@media (max-width: 575.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  section.container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Text responsive */
@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
  
  .lead {
    font-size: 1.125rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
}

/* Spacing responsive */
@media (max-width: 767.98px) {
  .mt-5 { margin-top: 2rem !important; }
  .mt-4 { margin-top: 1.5rem !important; }
  .mb-5 { margin-bottom: 2rem !important; }
  .mb-4 { margin-bottom: 1.5rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

/* Utilities responsive */
@media (max-width: 767.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .d-none-mobile {
    display: none !important;
  }
  
  .d-block-mobile {
    display: block !important;
  }
  
  .w-100-mobile {
    width: 100% !important;
  }
}

/* Touch targets améliorés pour mobile */
@media (max-width: 767.98px) {
  .btn,
  .nav-link,
  .category,
  .story {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-check-input {
    width: 20px;
    height: 20px;
  }
  
  .form-check-label {
    padding-left: 8px;
  }
}

/* Amélioration du scroll sur mobile */
@media (max-width: 767.98px) {
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  .stories {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  .story {
    scroll-snap-align: start;
  }
}

/* Responsive pour les notifications UX */
@media (max-width: 575.98px) {
  .smart-notification {
    right: 12px;
    left: 12px;
    padding: 12px 16px;
    font-size: 0.875rem;
  }
  
  .auto-save-indicator {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .restore-notification {
    right: 12px;
    top: 80px;
    padding: 12px 16px;
    font-size: 0.875rem;
  }
  
  .field-feedback {
    font-size: 0.75rem;
  }
  
  .field-help {
    font-size: 0.75rem;
  }
  
  .field-suggestion {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
  
  .autocomplete-list {
    max-width: calc(100% - 24px);
    left: 12px !important;
    right: 12px !important;
  }
}

/* Responsive pour les tooltips */
@media (max-width: 767.98px) {
  [data-tooltip]:hover::before {
    display: none;
  }
  
  .smart-tooltip::after {
    display: none;
  }
}

/* Amélioration de la navigation sticky sur mobile */
@media (max-width: 767.98px) {
  .navbar {
    padding: 8px 0;
  }
  
  .navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Amélioration des boutons sur mobile */
@media (max-width: 575.98px) {
  .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.9375rem;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
    min-height: 36px;
  }
}

/* Amélioration des inputs sur mobile */
@media (max-width: 575.98px) {
  .form-control,
  .form-select {
    font-size: 16px; /* Évite le zoom automatique sur iOS */
    padding: 12px 14px;
  }
  
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"] {
    font-size: 16px;
  }
}

/* Amélioration des cartes sur très petits écrans */
@media (max-width: 375px) {
  .card-body {
    padding: 16px;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
  
  .bento-card-content {
    padding: 12px;
  }
  
  .bento-card-title {
    font-size: 1.125rem;
  }
}

/* Amélioration de l'espacement sur mobile */
@media (max-width: 767.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .mt-5 {
    margin-top: 2.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2.5rem !important;
  }
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 767.98px) {
  body {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  .lead {
    font-size: 1.125rem;
  }
}

/* Amélioration des icônes sur mobile */
@media (max-width: 575.98px) {
  .bi {
    font-size: 1rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .benefit-icon {
    font-size: 2.5rem;
  }
}

/* Amélioration des gaps sur mobile */
@media (max-width: 767.98px) {
  .g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  
  .g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
}

/* Amélioration de la visibilité des éléments interactifs */
@media (max-width: 767.98px) {
  .nav-link,
  .category,
  .btn {
    touch-action: manipulation;
  }
  
  a, button {
  -webkit-tap-highlight-color: rgba(232, 93, 4, 0.25);
}
}
