/**
 * Copyright (C) 2017-2026 Solution Libre
 *
 * Vulgarisation Pages - Unified CSS
 * Design System: Clean, professional aesthetic matching formations & infrastructure
 *
 * Color Palette:
 * - Primary: #f3ac2f (warm yellow/gold)
 * - Dark: #d4941f
 * - Light: #f5be5c
 * - Slate tones for text hierarchy
 */

/* ============================================
   CSS VARIABLES - Vulgarisation Theme
   ============================================ */
:root {
  --vulgarisation-primary: #f3ac2f;
  --vulgarisation-dark: #d4941f;
  --vulgarisation-light: #f5be5c;
  --vulgarisation-slate-dark: #1e293b;
  --vulgarisation-slate-medium: #334155;
  --vulgarisation-slate-light: #cbd5e1;
}

/* ============================================
   THEME OVERRIDES - Vulgarisation Pages
   ============================================ */
.page-section-heading {
  color: var(--vulgarisation-primary) !important;
}

.divider-custom-line {
  background-color: var(--vulgarisation-primary);
}

.divider-custom-icon {
  color: var(--vulgarisation-primary);
}

.btn-primary {
  background-color: var(--vulgarisation-primary) !important;
  border-color: var(--vulgarisation-primary) !important;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--vulgarisation-dark) !important;
  border-color: var(--vulgarisation-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 172, 47, 0.3);
}

.text-primary {
  color: var(--vulgarisation-primary) !important;
}

/* ============================================
   HERO SECTION - Diagonal Gradient
   ============================================ */
/* Extends base .hero-section from style.css with vulgarisation-specific gradient */
.vulgarisation-hero {
  background: linear-gradient(135deg, #1e293b 0%, var(--vulgarisation-primary) 100%);
}

/* Vulgarisation-specific styling */
.vulgarisation-hero h1 i {
  opacity: 0.9;
}

.vulgarisation-hero .hero-subtitle {
  font-weight: 300;
  opacity: 0.85;
}

/* ============================================
   CONTENT CARDS
   ============================================ */
.vulgarisation-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-top: 5px solid var(--vulgarisation-primary);
}

.vulgarisation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(243, 172, 47, 0.15);
}

.vulgarisation-card .card-title {
  color: var(--vulgarisation-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vulgarisation-card .card-body {
  padding: 2.5rem;
}

.vulgarisation-card .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--vulgarisation-slate-medium);
}

/* ============================================
   PROJECT HIGHLIGHT - QTG Section
   ============================================ */
.qtg-image {
  border-radius: 16px 16px 0 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.qtg-link {
  color: var(--vulgarisation-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.qtg-link:hover {
  color: var(--vulgarisation-dark);
  text-decoration: underline;
}

.item-details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.item-details li {
  font-size: 1rem;
  color: var(--vulgarisation-slate-medium);
}

.item-details strong {
  color: var(--vulgarisation-slate-dark);
}

.item-details a {
  color: var(--vulgarisation-primary);
  text-decoration: none;
  font-weight: 600;
}

.item-details a:hover {
  color: var(--vulgarisation-dark);
  text-decoration: underline;
}

.item-details i {
  color: var(--vulgarisation-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-vulgarisation {
  background-color: var(--vulgarisation-primary);
  color: white;
  border-color: var(--vulgarisation-primary);
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-vulgarisation:hover {
  background-color: var(--vulgarisation-dark);
  border-color: var(--vulgarisation-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 172, 47, 0.3);
}

/* ============================================
   SECTION SPACING
   ============================================ */
.page-section.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--vulgarisation-dark) 0%, var(--vulgarisation-primary) 100%);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.4;
}

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

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background: white;
  color: var(--vulgarisation-primary);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #fef3e5;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  color: var(--vulgarisation-dark);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .vulgarisation-hero {
    min-height: 35vh;
    padding: 110px 0 30px;
  }

  .vulgarisation-card .card-body {
    padding: 1.5rem;
  }

  .item-details {
    flex-direction: column;
    gap: 0.25rem;
  }

  .item-details li {
    display: block;
  }

  .item-details i {
    display: none;
  }
}
