/* ==========================================================================
   ÉCOLE PRIVÉE FRANCO-ARABE ZAYD IBN THABIT - MALIKA, SÉNÉGAL
   Feuille de styles CSS haut de gamme avec palette Royale & Dorée
   ========================================================================== */

:root {
  --color-primary: #0a192f;
  --color-primary-light: #132f58;
  --color-primary-dark: #050d1a;
  --color-secondary: #d4af37;
  --color-secondary-light: #f3e5ab;
  --color-secondary-dark: #aa820a;
  --color-accent: #1e3a8a;
  --color-emerald: #059669;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C7E;
  
  --color-bg-light: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.3);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-heading: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Islamic Pattern Backgrounds */
.bg-islamic-pattern {
  background-color: var(--color-primary);
  background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px), radial-gradient(rgba(212, 175, 55, 0.08) 1px, #0a192f 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.bg-islamic-light {
  background-color: #fcfaf6;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #d4af37 0%, #fef3c7 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #d4af37 0%, #e6ca65 50%, #c59b27 100%);
}

.gold-gradient-border {
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.gold-gradient-border-hover:hover {
  border-color: #d4af37;
  box-shadow: var(--shadow-gold);
}

.navy-gradient {
  background: linear-gradient(145deg, #0a192f 0%, #132f58 100%);
}

/* Arabic Calligraphy Style */
.arabic-calligraphy {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.8;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-green 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Hero Carousel / Image Container */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
  pointer-events: none;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card-dark {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Badge styling */
.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #c59b27;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dark-gold {
  background: rgba(212, 175, 55, 0.2);
  color: #fef08a;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Custom Buttons */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #0a192f;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.45);
  color: #0a192f;
}

.btn-navy {
  background: #0a192f;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-navy:hover {
  background: #132f58;
  border-color: #d4af37;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a192f;
}
::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* Interactive Card Effects */
.feature-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Video Player Thumbnail Overlay */
.video-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(212, 175, 55, 0.9);
  color: #0a192f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
  transition: all 0.3s ease;
  z-index: 2;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #d4af37;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: #0a192f;
  color: white;
  border-left: 4px solid var(--color-secondary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  display: none;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(150%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

#toast.show {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Print Friendly Styles for Tarif & Admissions */
@media print {
  .no-print, .floating-whatsapp, header, footer {
    display: none !important;
  }
}
