/* ========================================================
   CEEAC-ECCAS - Charte Graphique Officielle
   Maquette Complète - CSS Principal
   ======================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --red: #C41E3A;
  --red-dark: #9B1830;
  --red-light: #E8354F;
  --blue: #0B5394;
  --blue-dark: #083D6E;
  --blue-light: #1A7BBF;
  --blue-sky: #2196F3;
  --green: #2D8B4E;
  --green-dark: #1E6B3A;
  --green-light: #3AAF63;
  --gold: #D4A843;
  --gold-light: #E8C56A;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray-100: #F0F2F5;
  --gray-200: #E4E7EB;
  --gray-300: #CDD1D8;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --dark: #0D1B2A;
  --dark-light: #1B2D45;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe 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: var(--off-white);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit;
  border: none; outline: none; background: none;
}
::selection { background: var(--red); color: var(--white); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--red), var(--blue)); border-radius: 4px; }

/* --- Utility Classes --- */
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 70px 0; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-red { background: var(--red); color: var(--white); }

/* --- Section Title --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title .label-red { background: rgba(196,30,58,0.1); color: var(--red); border: 1px solid rgba(196,30,58,0.2); }
.section-title .label-blue { background: rgba(11,83,148,0.1); color: var(--blue); border: 1px solid rgba(11,83,148,0.2); }
.section-title .label-green { background: rgba(45,139,78,0.1); color: var(--green); border: 1px solid rgba(45,139,78,0.2); }
.section-title .label-gold { background: rgba(212,168,67,0.1); color: var(--gold); border: 1px solid rgba(212,168,67,0.15); }
.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.section-title p {
  max-width: 600px;
  margin: 12px auto 0;
  color: var(--gray-500);
  font-size: 15px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,30,58,0.4); }
.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(11,83,148,0.3);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,83,148,0.4); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B8912E);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(212,168,67,0.3);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--gold); font-size: 12px; }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-social { display: flex; gap: 10px; }
.top-bar-social a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: var(--transition);
}
.top-bar-social a:hover { color: var(--gold); }
.lang-switch {
  display: flex;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.lang-switch a {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.lang-switch a.active, .lang-switch a:hover {
  background: var(--red);
  color: var(--white);
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.news-ticker {
  background: var(--red);
  color: var(--white);
  padding: 0;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--red-dark);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.ticker-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  border-left: 12px solid var(--red-dark);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}
.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track a {
  color: var(--white);
  font-size: 13px;
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker-track a::before {
  content: '◆';
  font-size: 6px;
  opacity: 0.5;
}
.ticker-track a:hover { opacity: 0.8; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: none;
}
.logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(11,83,148,0.2);
}
.logo-icon span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
}
.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 3px;
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--red);
  background: rgba(196,30,58,0.06);
}
.nav-list > li > a .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.nav-list > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}
.nav-list > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown a:hover {
  background: rgba(196,30,58,0.06);
  color: var(--red);
  padding-left: 18px;
}
.dropdown a i {
  color: var(--blue);
  font-size: 11px;
  width: 20px;
  text-align: center;
}

/* Sub-dropdown */
.dropdown li { position: relative; }
.dropdown .sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
}
.dropdown li:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Search bar */
.nav-search {
  margin-left: 12px;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}
.nav-search-btn:hover { color: var(--red); background: var(--gray-100); }
.search-box {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-right: 0;
}
.search-box.open {
  width: 260px;
  opacity: 1;
  margin-right: 10px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.search-box input:focus {
  border-color: var(--blue);
  outline: none;
}
.search-box::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f002";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
  pointer-events: none;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  font-size: 24px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--dark);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.hero-slider {
  background-color: var(--blue-dark);
}
.slide-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.slide-link:hover .slide-title { text-decoration: underline; text-underline-offset: 4px; }
.slide-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
  margin: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.slide-figure {
  flex: 0 0 42%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 2px solid rgba(255,255,255,0.12);
  border-right: none;
}
.slide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-figure--prioritaire img {
  object-position: center center;
}
.slide-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px 40px 44px;
  background: linear-gradient(135deg, rgba(11,83,148,0.97) 0%, rgba(8,61,110,0.98) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 2px solid rgba(255,255,255,0.08);
  border-left: none;
}
.slide-content .slide-title {
  max-width: 100%;
}
.slide-content .slide-excerpt {
  max-width: 100%;
}
.slide-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}
.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}
.slide-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 550px;
}
.slide-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.slide-meta i { color: var(--gold); }

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  right: 60px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.slider-btn:hover { background: var(--red); border-color: var(--red); }
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 60px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--red);
  width: 30px;
  border-radius: 5px;
}

/* Hero accueil : slider actualités + dernière vidéo Web TV */
.hero-home {
  position: relative;
  background-color: var(--blue-dark);
  background-image: url('../img/batiment_siege_ceeac.jpg');
  background-size: cover;
  background-position: center;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,83,148,0.75) 0%, rgba(8,61,110,0.82) 50%, rgba(8,61,110,0.88) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-home__inner {
  position: relative;
  z-index: 1;
}
.hero-home__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 540px;
}
.hero-home__slider {
  height: 540px;
  min-height: 540px;
}
.hero-home__slider .hero-slider {
  height: 100%;
}
.hero-home__webtv {
  padding: 24px;
  display: flex;
  align-items: stretch;
}
.hero-webtv-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}
.hero-webtv-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-webtv-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.hero-webtv-video {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 16px;
  flex: 1;
}
.hero-webtv-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-webtv-thumb .video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition);
  z-index: 2;
}
.hero-webtv-video:hover .video-play {
  background: var(--red);
  color: var(--white);
  transform: scale(1.08);
}
.hero-webtv-thumb .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}
.hero-webtv-video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.hero-webtv-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.hero-webtv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  margin-top: auto;
  transition: var(--transition);
}
.hero-webtv-link:hover { color: var(--white); }

@media (max-width: 1024px) {
  .hero-home__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-home__slider { height: 420px; min-height: 420px; }
  .hero-home__slider .hero-slider { height: 100%; }
  .hero-home__webtv { padding: 20px 24px 28px; }
  .hero-webtv-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-webtv-video { flex: 1 1 100%; margin-bottom: 12px; }
  .hero-webtv-link { width: 100%; justify-content: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 768px) {
  .hero-home__slider { height: 360px; min-height: 360px; }
  .hero-home__slider .hero-slider { height: 100%; }
}

/* ============================================
   NEWS SECTIONS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  position: relative;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.news-card-body { padding: 24px; }
.news-card-date {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-date i { color: var(--red); font-size: 11px; }
.news-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-title { color: var(--red); }
.news-card-excerpt {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.read-more:hover { gap: 10px; }
.news-card-views {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Featured / Big card */
.news-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.news-featured .news-card-img { height: 100%; min-height: 320px; }
.news-featured .news-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured .news-card-title { font-size: 24px; -webkit-line-clamp: 4; }
.news-featured .news-card-excerpt { -webkit-line-clamp: 4; }

/* ============================================
   DEPARTMENT TABS
   ============================================ */
.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}
.dept-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.dept-tab:hover { color: var(--dark); background: var(--gray-100); }
.dept-tab.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.widget-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-header i { color: var(--gold); }
.widget-body { padding: 20px; }

/* Social widget */
.social-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
}
.social-stat:hover { transform: translateY(-2px); }
.social-stat.facebook { background: #1877F2; }
.social-stat.twitter { background: #1DA1F2; }
.social-stat.youtube { background: #FF0000; }
.social-stat.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-stat i { font-size: 18px; }
.social-stat-info span { display: block; font-size: 16px; font-weight: 800; line-height: 1; }
.social-stat-info small { font-size: 10px; opacity: 0.8; }

/* Weather widget */
.weather-widget {
  text-align: center;
  padding: 24px;
}
.weather-city {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.weather-temp {
  font-size: 48px;
  font-weight: 900;
  color: var(--blue);
  font-family: var(--font-heading);
}
.weather-temp sup { font-size: 20px; }
.weather-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.weather-days {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.weather-day {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}
.weather-day span { display: block; font-size: 14px; font-weight: 800; color: var(--blue); }

/* Recent posts widget */
.widget-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.widget-post:last-child { border-bottom: none; }
.widget-post-img {
  width: 70px;
  height: 55px;
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
}
.widget-post-img img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.widget-post:hover .widget-post-title { color: var(--red); }
.widget-post-date { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* Calendar widget */
.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th {
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-align: center;
}
.calendar-table td {
  padding: 6px 4px;
  font-size: 12px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.calendar-table td:hover { background: var(--gray-100); }
.calendar-table td.today {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
}

/* Newsletter widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--gray-100);
  transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--blue); background: var(--white); }
.newsletter-form button {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 70px 0;
}
.video-section .section-title h2 { color: var(--white); }
.video-section .section-title p { color: rgba(255,255,255,0.5); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.video-thumb {
  height: 180px;
  background: var(--blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(196,30,58,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(196,30,58,0.4);
  transition: var(--transition);
}
.video-card:hover .video-play { transform: scale(1.1); }
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}
.video-card-body { padding: 18px; }
.video-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   MEMBER STATES BAR
   ============================================ */
.members-bar {
  background: var(--white);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
  overflow: hidden;
}
.members-bar h3 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.members-bar h3 i { color: var(--blue); }
.members-flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.flag-item:hover { background: var(--gray-100); transform: translateY(-2px); }
.flag-item .flag { font-size: 32px; }
.flag-item .flag-img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--gray-200);
  display: block;
}
.flag-item span { font-size: 10px; font-weight: 600; color: var(--gray-500); }
.flag-item span:not(.flag) { margin-top: 4px; }

/* ============================================
   ABOUT / COMMISSION PAGE
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  padding: 100px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* Bannière des pages internes */
.page-hero--banner {
  background-image: url('../img/batiment_siege_ceeac.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--blue-dark);
}
.page-hero--banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,83,148,0.88), rgba(8,61,110,0.9));
  z-index: 0;
}
.page-hero--banner h1,
.page-hero--banner .breadcrumb { position: relative; z-index: 1; }

/* Détail article / activité */
.article-detail-header { margin-bottom: 28px; }
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.article-detail-meta span { display: flex; align-items: center; gap: 6px; }
.article-detail-meta i { color: var(--red); }
.article-detail-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-600);
}
.article-detail-content p { margin-bottom: 18px; }
.article-detail-content h2, .article-detail-content h3 { margin: 28px 0 12px; color: var(--dark); }
.article-detail-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  border: 1px solid var(--gray-200);
}
.article-share { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.article-share span { font-size: 13px; font-weight: 700; color: var(--gray-500); margin-right: 12px; }
.article-share a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); margin-right: 8px; transition: var(--transition); }
.article-share a:hover { background: var(--blue); color: var(--white); }

/* Profil membre commission */
.member-profile { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.member-profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.member-profile-info h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.member-profile-title { font-size: 16px; color: var(--red); font-weight: 700; margin-bottom: 24px; }
.member-profile-bio h2 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--dark); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); }
.member-profile-bio p, .member-profile-bio ul { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 12px; }
.member-profile-bio ul { padding-left: 24px; }
@media (max-width: 768px) { .member-profile { grid-template-columns: 1fr; } }

/* Détail offre emploi */
.job-detail-header { margin-bottom: 28px; }
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.job-detail-meta .tag { padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; background: rgba(11,83,148,0.1); color: var(--blue); }
.job-detail-meta .tag.deadline { background: rgba(196,30,58,0.1); color: var(--red); }
.job-detail-body p { margin-bottom: 16px; font-size: 15px; line-height: 1.8; color: var(--gray-600); }
.job-detail-body h3 { font-size: 18px; color: var(--dark); margin: 24px 0 10px; }
.job-apply-cta { margin-top: 32px; padding: 24px; background: linear-gradient(135deg, rgba(11,83,148,0.08), rgba(45,139,78,0.06)); border-radius: var(--radius-md); border-left: 4px solid var(--blue); }

/* Commentaires (blog) */
.comments-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--gray-200); }
.comments-section h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.comments-section h3 i { color: var(--blue); }
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item {
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blue);
}
.comment-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.comment-author { font-weight: 700; color: var(--dark); font-size: 15px; }
.comment-date { font-size: 12px; color: var(--gray-400); }
.comment-body { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.comment-form { margin-top: 32px; padding: 28px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.comment-form h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.comment-form .form-group { margin-bottom: 16px; }
.comment-form textarea { min-height: 120px; resize: vertical; }

.content-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 28px;
}
.content-block h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.content-block p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Org chart cards */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.org-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.org-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.org-card:nth-child(1)::before { background: var(--red); }
.org-card:nth-child(2)::before { background: var(--blue); }
.org-card:nth-child(3)::before { background: var(--green); }
.org-card:nth-child(4)::before { background: var(--gold); }
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.org-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.org-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.org-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   MEMBER STATES PAGE
   ============================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.member-flag { font-size: 52px; margin-bottom: 14px; }
.member-flag-img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: block;
  border: 1px solid var(--gray-200);
}
.member-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.member-capital { font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.member-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

/* ============================================
   PUBLICATIONS / RESOURCES PAGE
   ============================================ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.doc-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}
.doc-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.doc-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.doc-icon.pdf { background: rgba(196,30,58,0.1); }
.doc-icon.doc { background: rgba(11,83,148,0.1); }
.doc-icon.xls { background: rgba(45,139,78,0.1); }
.doc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 4px;
}
.doc-meta { font-size: 12px; color: var(--gray-400); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(11,83,148,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--off-white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11,83,148,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  margin-top: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--blue-dark), #062a4a);
  border-top: 4px solid var(--red);
  color: rgba(255,255,255,0.85);
}
.footer-main {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-text h1 { color: var(--white); }
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  color: rgba(255,255,255,0.45);
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red);
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  padding: 5px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-social { display: flex; gap: 12px; }
.footer-bottom-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-bottom-social a:hover { background: var(--red); color: var(--white); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196,30,58,0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--red-dark); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured .news-card-img { min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-left span:not(:first-child) { display: none; }
  .desktop-nav { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .nav-search { display: none; }
  .header .container { height: 66px; }
  .logo-icon { width: 44px; height: 44px; }
  .logo-text h1 { font-size: 18px; letter-spacing: 2px; }
  .hero-slider { height: 420px; }
  .slide-inner { flex-direction: column; margin: 10px; }
  .slide-figure { flex: 0 0 200px; min-height: 200px; border-radius: var(--radius-md) var(--radius-md) 0 0; border: 2px solid rgba(255,255,255,0.12); border-bottom: none; }
  .slide-content { padding: 24px 24px 28px; border-radius: 0 0 var(--radius-md) var(--radius-md); border: 2px solid rgba(255,255,255,0.08); border-top: none; }
  .slider-controls { bottom: 16px; right: 16px; }
  .slider-dots { bottom: 16px; left: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .content-block { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr 1fr; }
  .section-padding { padding: 48px 0; }
}

@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr; }
  .social-stats { grid-template-columns: 1fr; }
  .hero-slider { height: 360px; }
  .slide-inner { margin: 8px; }
  .slide-figure { flex: 0 0 180px; min-height: 180px; }
  .slide-content { padding: 20px 20px 24px; }
}

/* --- Mobile Navigation Overlay --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(11,83,148,0.98);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(16px);
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.mobile-nav-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}
.mobile-nav-list a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.mobile-nav-list a:hover, .mobile-nav-list a.active {
  color: var(--red);
  padding-left: 22px;
}
.mobile-nav-list .sub-link {
  padding-left: 32px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.mobile-nav-list .sub-link:hover { color: var(--gold); }
