/* ============================================
   MAIN STYLES FOR MR. BURGER WEBSITE
   ============================================ */

/* Custom Styles for Mr. Burger Website */

/* Smooth transitions */
* {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Body and HTML */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Location Modal Animation */
#locationModal {
  backdrop-filter: blur(5px);
}

#locationModal > div {
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Button Hover Effects */
.location-btn {
  position: relative;
  overflow: hidden;
}

.location-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.location-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Menu Items */
.menu-item {
  position: relative;
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

/* Category Sections */
.category-section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out;
}

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

/* Image Loading */
img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

img[src] {
  animation: none;
  background: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Navbar Shadow on Scroll */
.navbar-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* WhatsApp Button Pulse */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

button:hover i.fa-whatsapp {
  animation: pulse 1s infinite;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Featured Badge Animation */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.ring-mr-yellow {
  animation: shimmer 3s infinite linear;
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.3), transparent);
  background-size: 200% 100%;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #DC2626;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Optimizations for Low Bandwidth */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   CONTACT SECTION - NOUS TROUVER
   SINGLE CARD DISPLAY (CENTERED)
   ============================================ */

.contact-section {
  padding: 100px 0;
  background: #000000;
  color: #FFFFFF;
  min-height: 100vh;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 20px;
  color: #CCCCCC;
  font-weight: 400;
  margin: 0;
}

/* Single Card Container - CENTERED */
.location-single-card-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Individual Location Card */
.location-card {
  background: #1A1A1A;
  border: 2px solid #2B2B2B;
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

/* Hover Effect */
.location-card:hover {
  transform: translateY(-8px);
  border-color: #C9A962;
  box-shadow: 0 12px 35px rgba(201, 169, 98, 0.25);
}

/* Selected/Active State */
.location-card.active {
  border: 3px solid #C9A962;
  background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
  box-shadow: 0 10px 40px rgba(201, 169, 98, 0.35);
}

/* Selected Badge */
.location-card.active::before {
  content: '✓ SÉLECTIONNÉ';
  position: absolute;
  top: 20px;
  right: 20px;
  background: #C9A962;
  color: #000000;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px solid #2B2B2B;
}

.card-header .flag {
  font-size: 42px;
  line-height: 1;
}

.card-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

/* Card Content */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
}

/* Info Items */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.info-item .icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 4px;
  line-height: 1;
}

.info-item .info-text {
  flex: 1;
}

.info-item .info-text strong {
  display: block;
  font-size: 12px;
  color: #C9A962;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.info-item .info-text p {
  font-size: 17px;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

.info-item .contact-link {
  font-size: 17px;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  font-weight: 400;
}

.info-item .contact-link:hover {
  color: #C9A962;
}

/* Google Maps Button */
.maps-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: 2px solid #C9A962;
  color: #C9A962;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  cursor: pointer;
}

.maps-button:hover {
  background: #C9A962;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
}

.maps-button .maps-icon {
  font-size: 20px;
  line-height: 1;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.social-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-button span:first-child {
  font-size: 18px;
  line-height: 1;
}

.social-button.instagram {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FD1D1D 100%);
  color: #FFFFFF;
  border: none;
}

.social-button.instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
  filter: brightness(1.1);
}

.social-button.tiktok {
  background: #000000;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.social-button.tiktok:hover {
  background: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 1024px) {
  .location-single-card-container {
    max-width: 550px;
  }
  
  .location-card {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .section-header h2 {
    font-size: 36px;
  }
  
  .section-header p {
    font-size: 18px;
  }
  
  .location-single-card-container {
    max-width: 100%;
  }
  
  .location-card {
    padding: 30px;
    min-height: auto;
  }
  
  .card-header .flag {
    font-size: 36px;
  }
  
  .card-header h3 {
    font-size: 24px;
  }
  
  .location-card.active::before {
    font-size: 10px;
    padding: 6px 12px;
    top: 15px;
    right: 15px;
  }
  
  .info-item .icon {
    font-size: 22px;
  }
  
  .info-item .info-text strong {
    font-size: 11px;
  }
  
  .info-item .info-text p,
  .info-item .contact-link {
    font-size: 16px;
  }
  
  .maps-button {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-button {
    width: 100%;
    padding: 14px;
  }
  
  .category-section {
    margin-bottom: 2rem;
  }
  
  #locationModal > div {
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .location-card {
    padding: 25px;
  }
  
  .card-header h3 {
    font-size: 22px;
  }
}

/* Print Styles */
@media print {
  nav,
  footer,
  button,
  #locationModal {
    display: none !important;
  }
  
  .menu-item {
    page-break-inside: avoid;
  }
}
