/* =====================================================================
   ISTA ASSAKA — OFPPT AGADIR
   Feuille de style principale (corrigée et optimisée)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== VARIABLES ========== */
:root {
  --blue:         #005EB8;
  --green:        #009A44;
  --gray:         #7A869A;
  --dark:         #1A1A1A;
  --blue-light:   #e8f2ff;
  --green-light:  #e6f7ee;
  --font-main:    'Poppins', sans-serif;
  --font-arabic:  'Cairo', sans-serif;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0, 94, 184, 0.10);
  --shadow-hover: 0 8px 32px rgba(0, 94, 184, 0.18);
  --ease:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: #f8faff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #f0f4ff;
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
}

/* ========== PAGE SECTIONS (SPA) ========== */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  /* Fallback pour les navigateurs ne supportant pas backdrop-filter */
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(0, 94, 184, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 94, 184, 0.12);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), #0077e6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.30);
  transition: var(--ease);
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.06) rotate(-3deg);
}

.nav-logo-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--ease);
  background: transparent;
  border: none;
  font-family: var(--font-main);
  position: relative;
}

.nav-link i {
  font-size: 13px;
  color: var(--blue);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--green), #00b84d) !important;
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 154, 68, 0.30);
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 154, 68, 0.40) !important;
  background: linear-gradient(135deg, #008a3a, var(--green)) !important;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  transition: var(--ease);
}

.hamburger:hover {
  background: var(--blue-light);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 16px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 2px solid rgba(0, 94, 184, 0.08);
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--ease);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  background: var(--blue-light);
  color: var(--blue);
}

.mobile-menu-link i {
  color: var(--blue);
  font-size: 14px;
  width: 16px;
}

.mobile-menu-cta {
  background: var(--green);
  color: white !important;
  margin-top: 8px;
}

.mobile-menu-cta i {
  color: white !important;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #001f5c 0%, #003080 40%, #005EB8 70%, #0077e6 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 154, 68, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff);
  background-size: 80px 140px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 154, 68, 0.20);
  border: 1px solid rgba(0, 154, 68, 0.40);
  color: #4de898;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(90deg, #4de898, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 154, 68, 0.40);
  transition: var(--ease);
}

.btn-primary:hover {
  background: #008a3a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 154, 68, 0.50);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  cursor: pointer;
  font-family: var(--font-main);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: var(--ease);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: white;
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--ease);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(6px);
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.hero-card-icon.c-blue {
  background: rgba(0, 94, 184, 0.30);
  color: #7ab8ff;
}

.hero-card-icon.c-green {
  background: rgba(0, 154, 68, 0.30);
  color: #4de898;
}

.hero-card-icon.c-orange {
  background: rgba(255, 140, 0, 0.30);
  color: #ffb347;
}

.hero-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.hero-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.60);
  margin-top: 2px;
}

/* ========== STATS STRIP ========== */
.stats-strip {
  background: linear-gradient(135deg, var(--blue), #0077e6);
  padding: 40px 0;
}

.stats-strip-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats-number {
  font-size: 40px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stats-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 80px 0;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--blue);
}

.section-desc {
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light), #ddeeff);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-float-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), #00b84d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.about-float-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.about-float-sub {
  font-size: 12px;
  color: var(--gray);
}

.about-text h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text h2 span {
  color: var(--blue);
}

.about-text p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-light);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.about-feature i {
  color: var(--green);
}

/* ========== PREVIEW CARDS (Accueil) ========== */
.preview-bg {
  background: linear-gradient(135deg, #f0f5ff, #f8faff);
}

.previews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--ease);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transition: var(--ease);
  transform-origin: left;
}

.preview-card:hover::before {
  transform: scaleX(1);
}

.preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 94, 184, 0.10);
}

.preview-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: var(--ease);
}

.preview-card:hover .preview-icon {
  transform: scale(1.1) rotate(-5deg);
}

.c-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.c-green {
  background: var(--green-light);
  color: var(--green);
}

.c-orange {
  background: #fff5e6;
  color: #e67e00;
}

.c-purple {
  background: #f5f0ff;
  color: #7b2fff;
}

.c-red {
  background: #fff0f0;
  color: #e63946;
}

.c-teal {
  background: #e8faf5;
  color: #00897b;
}

.preview-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.preview-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  transition: var(--ease);
}

.preview-card:hover .preview-link {
  gap: 10px;
}

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, #001f5c 0%, #003080 50%, #005EB8 100%);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-section h2 span {
  color: #4de898;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(135deg, #001f5c 0%, #003080 50%, #005EB8 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 154, 68, 0.20) 0%, transparent 50%);
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 16px;
}

.breadcrumb span {
  cursor: pointer;
}

.breadcrumb span:hover {
  color: white;
}

.breadcrumb i {
  font-size: 10px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.8;
}

/* ========== FILIÈRES ========== */
.filieres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.filiere-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--ease);
  border: 1.5px solid rgba(0, 94, 184, 0.06);
}

.filiere-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 94, 184, 0.15);
}

.filiere-head {
  background: linear-gradient(135deg, var(--blue), #0077e6);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.filiere-head::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.filiere-ico {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 12px;
  backdrop-filter: blur(8px);
  transition: var(--ease);
}

.filiere-card:hover .filiere-ico {
  transform: scale(1.12) rotate(-5deg);
  background: rgba(255, 255, 255, 0.25);
}

.filiere-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.filiere-body {
  padding: 24px;
}

.filiere-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.filiere-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.tag-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.tag-green {
  background: var(--green-light);
  color: var(--green);
}

/* ========== EVENTS ========== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--ease);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.event-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-img img {
  transform: scale(1.08);
}

.event-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.50), transparent 50%);
}

.event-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.event-body {
  padding: 24px;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}

.event-lieu {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray);
}

.event-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  margin-top: 10px;
  line-height: 1.4;
}

.event-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ========== ACTUALITÉS ========== */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.actu-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--ease);
}

.actu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.actu-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.actu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.actu-card:hover .actu-img img {
  transform: scale(1.08);
}

.actu-body {
  padding: 24px;
}

.actu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.actu-cat {
  background: var(--blue-light);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.actu-date {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.actu-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.actu-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.actu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
  transition: var(--ease);
}

.actu-card:hover .actu-link {
  gap: 10px;
}

/* ========== EMPLOIS DU TEMPS ========== */
.emplois-info {
  background: linear-gradient(135deg, var(--blue-light), #ddeeff);
  border: 1.5px solid rgba(0, 94, 184, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.emplois-info-ico {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.emplois-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.emplois-info p {
  font-size: 14px;
  color: #3a5a8a;
  line-height: 1.7;
}

.emplois-info code {
  background: rgba(0, 94, 184, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: monospace;
  color: var(--blue);
}

.emplois-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.emploi-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--ease);
  border: 1.5px solid rgba(0, 94, 184, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emploi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 94, 184, 0.15);
}

.emploi-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.emploi-pdf-ico {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #e63946, #c1121f);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.30);
}

.emploi-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 6px;
}

.emploi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emploi-tag {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.emploi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #0077e6);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.25);
  transition: var(--ease);
}

.emploi-btn:hover {
  background: linear-gradient(135deg, #004a9a, var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 94, 184, 0.35);
}

/* ========== INSCRIPTIONS ========== */
.inscriptions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.insc-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.insc-card h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.insc-card-ico {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cond-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f4ff;
}

.cond-item:last-child {
  border-bottom: none;
}

.cond-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.cond-ico.ok {
  background: var(--green-light);
  color: var(--green);
}

.cond-ico.in {
  background: var(--blue-light);
  color: var(--blue);
}

.cond-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.cond-text strong {
  color: var(--dark);
  font-weight: 600;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-bottom: 24px;
  padding-left: 24px;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.20);
}

.tl-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tl-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.tl-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* DOCS LIST */
.docs-list {
  list-style: none;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f4ff;
  font-size: 14px;
  color: var(--gray);
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-item i {
  width: 32px;
  height: 32px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.frais-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.frais-item {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
}

.frais-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.frais-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.frais-card {
  background: linear-gradient(135deg, var(--green-light), #d0f0e0);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--ease);
}

.contact-info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

.ci-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ci-ico.blue {
  background: var(--blue);
  color: white;
}

.ci-ico.green {
  background: var(--green);
  color: white;
}

.ci-ico.orange {
  background: #e67e00;
  color: white;
}

.ci-ico.dark {
  background: var(--dark);
  color: white;
}

.ci-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.ci-value {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.contact-map-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 6px;
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* FORM */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e8eef7;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--dark);
  background: #fafcff;
  outline: none;
  transition: var(--ease);
}

.form-input:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.10);
}

.form-input::placeholder {
  color: var(--gray);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #0077e6);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--ease);
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.30);
}

.form-btn:hover {
  background: linear-gradient(135deg, #004a9a, var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 94, 184, 0.40);
}

.form-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.form-success i {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--gray);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.70);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-ico {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue), #0077e6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  margin-bottom: 16px;
}

.footer-name {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-soc-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.60);
  transition: var(--ease);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-soc-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.footer-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--ease);
}

.footer-link:hover {
  color: white;
  padding-left: 4px;
}

.footer-link i {
  font-size: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact-item i {
  font-size: 13px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.40);
}

/* ========== BACK TO TOP ========== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--blue), #0077e6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.40);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--ease);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 94, 184, 0.50);
}

/* ========== LOADING / EMPTY ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 12px;
  color: var(--gray);
  font-size: 15px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state i {
  font-size: 64px;
  color: var(--gray);
  opacity: 0.30;
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  color: var(--gray);
  font-size: 16px;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.d1 {
  transition-delay: 0.10s;
}

.fade-up.d2 {
  transition-delay: 0.20s;
}

.fade-up.d3 {
  transition-delay: 0.30s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cards {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .previews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inscriptions-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .previews-grid {
    grid-template-columns: 1fr;
  }

  .filieres-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .actu-grid {
    grid-template-columns: 1fr;
  }

  .emplois-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .frais-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px;
  }

  .inscriptions-grid {
    gap: 24px;
  }
}