:root {
  --primary-color: #0c2340;
  --primary-dark: #071526;
  --secondary-color: #d4af37;
  --secondary-hover: #b89528;
  --accent-color: #007bff;
  --light-bg: #f8f9fa;
  --dark-text: #1e293b;
  --muted-text: #64748b;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

/* Adaptation d'échelle desktop (site public uniquement) :
   reproduit à 100% du navigateur le rendu exact obtenu à 80% (0.90 × 0.80 = 0.72) */
@media (min-width: 992px) {
  html {
    zoom: 0.72;
  }
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1320px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  html {
    zoom: 0.85;
  }
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark-text);
  background-color: #fdfdfd;
  line-height: 1.6;
  overflow-x: hidden;
}

/* TOPBAR */
.topbar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}
.topbar a:hover {
  color: var(--secondary-color);
}

/* NAVBAR */
.navbar-custom {
  background-color: var(--primary-color) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  transition: var(--transition-fast);
}
.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-custom .navbar-brand img {
  max-height: 48px;
  border-radius: 4px;
}
.navbar-custom .nav-link {
  color: #e2e8f0 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: var(--transition-fast);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(212, 175, 55, 0.12);
}
.btn-nav-admin {
  background-color: var(--secondary-color);
  color: var(--primary-dark) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 22px !important;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.btn-nav-admin:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.94) 0%, rgba(7, 21, 38, 0.97) 100%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 90px 0 110px;
  position: relative;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 30px;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* CARDS & CONTAINERS */
.section-title {
  position: relative;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 12px 0 0;
  border-radius: 2px;
}
.section-title.text-center::after {
  margin: 12px auto 0;
}

.custom-card {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
  height: 100%;
  overflow: hidden;
}
.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
}
.custom-card .card-body {
  padding: 30px;
}
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(12, 35, 64, 0.06);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}
.custom-card:hover .icon-box {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* STATS COUNTER */
.stat-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}
.stat-label {
  font-size: 0.95rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* EXPERTS TABLE */
.table-custom {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.table-custom thead {
  background-color: var(--primary-color);
  color: #ffffff;
}
.table-custom th, .table-custom td {
  padding: 16px 20px;
  vertical-align: middle;
}
.badge-onec {
  background-color: rgba(212, 175, 55, 0.15);
  color: #927415;
  border: 1px solid #d4af37;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

/* FOOTER */
.footer-custom {
  background-color: var(--primary-dark);
  color: #f1f5f9;
  padding: 70px 0 20px;
  font-size: 0.95rem;
}
.footer-custom p,
.footer-custom li,
.footer-custom .text-muted,
.footer-custom .small {
  color: #e2e8f0 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-custom h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
}
.footer-custom h5::after {
  content: '';
  display: block;
  width: 35px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 8px;
}
.footer-custom a {
  color: #f8fafc !important;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-custom a:hover {
  color: var(--secondary-color) !important;
  padding-left: 5px;
}
.footer-custom i {
  color: var(--secondary-color) !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.footer-bottom a {
  color: var(--secondary-color) !important;
}

/* ARTICLE DETAIL STYLES */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}
.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}
.article-body p {
  margin-bottom: 1.4rem;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body blockquote {
  border-left: 4px solid var(--secondary-color);
  background-color: #f8fafc;
  padding: 1.2rem 1.5rem;
  font-style: italic;
  color: #475569;
  margin: 1.8rem 0;
  border-radius: 0 8px 8px 0;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: var(--transition-fast);
  text-decoration: none;
  font-size: 1rem;
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.share-whatsapp { background-color: #25d366; }
.share-linkedin { background-color: #0a66c2; }
.share-twitter { background-color: #1da1f2; }
.share-email { background-color: #64748b; }

/* FORM CONTROLS FOCUS & GLOW */
.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

/* ==========================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================== */

/* Tablets and Mobile Drawers (<= 991px) */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background-color: var(--primary-dark);
    padding: 20px;
    border-radius: 12px;
    margin-top: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-custom .nav-link {
    padding: 10px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .btn-nav-admin {
    margin-top: 14px;
    display: block;
    width: 100%;
    text-align: center;
  }
  .hero-section {
    padding: 70px 0 80px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Mobile Phones (<= 767px) */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-section {
    padding: 55px 0 65px;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .stat-card {
    padding: 20px 10px;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .custom-card .card-body {
    padding: 22px;
  }
  .footer-custom {
    padding: 50px 0 20px;
    text-align: center;
  }
  .footer-custom h5::after {
    margin: 8px auto 0;
  }
}

/* Very Small Mobile Screens (<= 575px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .navbar-custom .navbar-brand {
    font-size: 1.15rem;
  }
  .badge-onec {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
