/* ============================================
   CLASS-MARKET - COMPONENTS CSS
   Header, Footer, Buttons, Cards, Modals
============================================ */

/* ============================================
   HEADER
============================================ */

 /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: white;
  }

  h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
  h2 { font-size: clamp(2rem, 4vw, 3rem); }
  h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
  h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: 12%;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.15);
   -webkit-backdrop-filter: blur(25px) saturate(200%);
  backdrop-filter: blur(25px) saturate(200%);
  box-shadow: var(--shadow-glow-lg), 0 8px 32px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0; /* reduced vertical padding for thinner header */
  min-height: 10%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition-bounce);
  position: relative;
  width: 40%;
  height: 40%;
  border-radius: 40%;
}

.logo:hover {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  transform: translateX(-40%);
}

/* Ensure header logo image fits in reduced header */
.logo-image,
.logo img, .logo .floating1 {
  max-height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Header actions (cart + admin) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.admin-login {
  background: none;
  border: 1px solid rgba(255,255,255,0.06);
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
}

/* Center major sections */
.container { max-width: 100%; margin: 0 auto; padding: 0 16px; }
.section-title { text-align: center; }
.section-header { text-align: center; }


.nav-link {
  color:rgba(40, 190, 190, 0.7);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition-bounce);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-transform: uppercase;
  
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
  z-index: -1;
  opacity: 0.1;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::before {
  left: 0;
  opacity: 0.2;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-rainbow);
  transition: var(--transition-bounce);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: var(--space-6);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    min-width: 250px;
    
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-content { padding: 8px 0; }
  .logo img, .logo .floating1 { max-height: 36px; }
  .nav { gap: var(--space-4); }
}

/* ============================================
   BUTTONS
============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 14px;
  min-width: 180px;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.4);
  filter: brightness(1.15);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   SECTION STYLES
============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-20);
  position: relative;
  z-index: 2;
}

.section-title {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  animation: textGlow 4s ease-in-out infinite alternate;
}

.section-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: serif;
}

/* ============================================
   HERO SECTION
============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  animation: shimmer 8s ease-in-out infinite;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 25%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 80%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 85%; animation-delay: 5s; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero h1 {
  margin-bottom: var(--space-8);
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out, textGlow 3s ease-in-out infinite alternate;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
}

.hero h1 span {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: var(--space-10);
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out 0.2s both;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.4s both;
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: 60px;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   FOOTER
============================================ */

.footer {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  padding: var(--space-20) 0 var(--space-10);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-32);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-20);
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 2;
}

.footer-section h3 {
  margin-bottom: var(--space-6);
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-bounce);
  padding: var(--space-1) 0;
  position: relative;
  display: inline-block;
}

.footer-section a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-section a:hover::before {
  width: 100%;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-bounce);
}

.footer-socials a:hover {
  background: var(--primary-500);
  transform: translateY(-5px) rotate(5deg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-10);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}




/*============  Contacter  ===========*/
/* Stunning Contact Section */
  .contact {
    padding: var(--space-32) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
  }

  .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: 1;
  }

  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .contact-info h2 {
    margin-bottom: var(--space-6);
    color: white;
  }

  .contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-8);
  }

  .contact-form {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: var(--space-10);
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      var(--shadow-glow),
      0 20px 40px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    
  }
  .Champ-obligatioire{
    color: rgba(255,0,0,0.9);
  }

  .form-group {
    margin-bottom: var(--space-6);
  }

  .form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    
  }

  .form-input,
  .form-textarea {
    width: 100%;
    padding: var(--space-5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    transition: var(--transition-bounce);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 
      var(--shadow-glow),
      0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
  }

  .form-input::placeholder,
  .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
  }

  .form-textarea {
    resize: vertical;
    min-height: 120px;
  }

  .social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
  }

  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: var(--transition-elastic);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
  }

  .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-slow);
  }

  .social-link:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-lg), var(--shadow-2xl);
  }

  .social-link:hover::before {
    left: 100%;
  }


  /*======Paiement*/
    /* Payment Modal */
/* Modal général */
.payment-modal {
  position: fixed; top:0; left:0; width:100%; height:100%;
  z-index:10000; display:flex; align-items:center; justify-content:center;
  font-family:'Poppins', sans-serif;
}

.payment-overlay {
  position: absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.payment-content {
  position: relative;
  background: linear-gradient(145deg,#ffffff,#f0f8ff);
  border-radius: 2rem; max-width:480px; width:90%;
  max-height:90vh; overflow-y:auto; padding-bottom:1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: scaleIn 0.4s cubic-bezier(.6,.04,.98,.335);
}




/*========LOGO =======*/
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
  }

  .logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
  }

  .logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-elastic);
  }

  .logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition-slow);
    opacity: 0;
  }

  .logo-icon:hover::before {
    animation: shine 0.6s ease-in-out;
  }

  .logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-lg);
  }


p, li, .description{
  font-size: 1.1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
}
.form-note{
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,0.7);
  font-family: sans-serif;
}
/* Titres plus visibles */
h1, h2, h3 {
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.card-body{
    width: 200%;
    max-width: 320px;
    margin: auto;
    padding: 10px;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(120deg, rgba(0, 198, 255, 0.1), rgba(255, 0, 255, 0.1));
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.3), 0 0 25px rgba(255, 0, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    transform: translateX(-130%);
}
.card-body input,select{
  width: 260px;
  height: 27px;
  background: transparent;
  border: 2px solid  rgba(255, 255, 255, 0.2);
  color: #666;
}
.card-body textarea{
  background: transparent;
  border: 2px solid  rgba(255, 255, 255, 0.2);
  color: white;
}
label{
  color: white;
}
.form-label{
  color: #ffffff;
}
.mb-0{
  color: #ffffff;
}