/* ============================================
   GROUPE SCOLAIRE SIKANY - THEME ENHANCEMENTS
   Modern Visual Improvements
   ============================================ */

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */
:root {
  --gradient-primary: linear-gradient(135deg, #08066B, #1a1a8f);
  --gradient-secondary: linear-gradient(135deg, #7A0B0B, #a01010);
  --gradient-accent: linear-gradient(135deg, #08066B, #7A0B0B);
}

/* ============================================
   SECTION BACKGROUNDS WITH IMAGES
   ============================================ */
.section-with-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.section-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 6, 107, 0.7);
  pointer-events: none;
}

/* ============================================
   CARD IMPROVEMENTS
   ============================================ */
.card-modern {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(8, 6, 107, 0.1);
}

.card-modern:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(8, 6, 107, 0.2);
  border-color: rgba(122, 11, 11, 0.2);
}

.card-modern-img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.card-modern-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-modern:hover .card-modern-img img {
  transform: scale(1.12) rotate(1deg);
}

.card-modern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(122, 11, 11, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-modern:hover .card-modern-overlay {
  opacity: 1;
}

/* ============================================
   BADGE & LABELS ENHANCED
   ============================================ */
.card-category {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #7A0B0B, #a01010);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(122, 11, 11, 0.3);
}

/* ============================================
   STAT BLOCKS WITH ICONS
   ============================================ */
.stat-block {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #08066B, #7A0B0B);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-block:hover::before {
  transform: scaleX(1);
}

.stat-block:hover {
  box-shadow: 0 15px 35px rgba(8, 6, 107, 0.1);
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.stat-block:hover .stat-icon {
  transform: scale(1.15);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #08066B, #7A0B0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTON ENHANCED STYLES
   ============================================ */
.btn-gradient {
  background: linear-gradient(135deg, #7A0B0B, #a01010);
  color: #ffffff;
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-gradient:hover {
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(122, 11, 11, 0.4);
  transform: translateY(-2px);
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

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

/* ============================================
   IMAGE FRAME EFFECTS
   ============================================ */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  pointer-events: none;
  z-index: 10;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image-frame:hover img {
  transform: scale(1.08);
}

/* ============================================
   TEXT EFFECTS
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #08066B, #7A0B0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shadow-gold {
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.divider-gold {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #08066B, #7A0B0B);
  border-radius: 2px;
  margin: 1rem auto;
}

/* ============================================
   FLOATING ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   PULSE ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(122, 11, 11, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(122, 11, 11, 0);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ============================================
   FEATURE ICONS WITH BACKGROUNDS
   ============================================ */
.icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(122, 11, 11, 0.1), rgba(122, 11, 11, 0.05));
  border: 2px solid rgba(122, 11, 11, 0.3);
  transition: all 0.3s ease;
}

.stat-block:hover .icon-box {
  background: linear-gradient(135deg, rgba(122, 11, 11, 0.2), rgba(122, 11, 11, 0.1));
  border-color: rgba(122, 11, 11, 0.6);
  transform: scale(1.1);
}

/* ============================================
   SECTION TITLE DECORATIONS
   ============================================ */
.section-title-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title-wrapper::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #7A0B0B, transparent);
  border-radius: 2px;
}

/* ============================================
   MODERN LIST STYLES
   ============================================ */
.modern-list {
  list-style: none;
}

.modern-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #495057;
  line-height: 1.6;
}

.modern-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7A0B0B;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-md {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.shadow-xl {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-xl {
  border-radius: 16px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .card-modern-img {
    height: 200px;
  }

  .stat-block {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .icon-box {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
}
