/* ===================================================================
   FISCCA-RH — Design System
   Cabinet d'ingénierie · Fiscalité · Comptabilité · RH
   =================================================================== */

:root {
  /* ── Brand Colors ── */
  --blue-dark: #1B2A4A;
  --blue-deeper: #0F1D35;
  --blue-medium: #2A3F6B;
  --blue-light: #3A5590;
  --blue-accent: #4A6BAD;
  --blue-muted: #6B7FA5;

  --orange-dark: #C4621A;
  --orange-medium: #D87B3A;
  --orange-light: #E8944F;
  --orange-glow: #F0A86A;
  --orange-subtle: rgba(196, 98, 26, 0.08);

  /* ── Neutrals (warmer) ── */
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --cream: #FAFAF8;
  --gray-50: #F0F1F4;
  --gray-100: #E4E6EB;
  --gray-200: #CDD0D8;
  --gray-300: #A0A5B3;
  --gray-500: #6E7484;
  --gray-600: #4E5462;
  --gray-800: #262A33;
  --black: #0D1117;

  /* ── Semantic Colors (feedback) ── */
  --success: #2D8A56;
  --success-light: rgba(45, 138, 86, 0.1);
  --warning: #D4930C;
  --warning-light: rgba(212, 147, 12, 0.1);
  --error: #C93B3B;
  --error-light: rgba(201, 59, 59, 0.1);
  --info: #4A6BAD;
  --info-light: rgba(74, 107, 173, 0.1);

  /* ── Gradients ── */
  --gradient-primary: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-deeper) 100%);
  --gradient-hero: linear-gradient(160deg, rgba(15, 29, 53, 0.92) 0%, rgba(27, 42, 74, 0.88) 40%, rgba(196, 98, 26, 0.15) 100%);
  --gradient-orange: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-medium) 100%);
  --gradient-success: linear-gradient(135deg, #2D8A56 0%, #3AAE6C 100%);

  /* ── Shadows (softer, more natural) ── */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.09);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 4px 24px rgba(196, 98, 26, 0.25);

  /* ── Typography ── */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Serif Display', 'Georgia', serif;
  --font-ui: 'Source Sans 3', 'DM Sans', -apple-system, sans-serif;

  /* ── Spacing ── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;
  --space-5xl: 9rem;

  /* ── Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}


/* ═══════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-600);
  background-color: var(--off-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--blue-dark);
  line-height: 1.25;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 600;
}


/* ═══════════════════════════════════
   UTILITY
   ═══════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--orange-dark);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--blue-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.85;
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}


/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--orange-dark);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(196, 98, 26, 0.2);
}

.btn-primary:hover {
  background: #B5580F;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196, 98, 26, 0.4);
  animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 98, 26, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(196, 98, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 98, 26, 0); }
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange-dark);
  border: 1.5px solid var(--orange-dark);
}

.btn-outline-orange:hover {
  background: var(--orange-dark);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-icon {
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}


/* ═══════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 18px 0;
}

.header.scrolled {
  background: rgba(15, 29, 53, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--orange-dark);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 16px;
}

.nav-cta .btn {
  padding: 9px 22px;
  font-size: 0.82rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--blue-deeper);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.04;
  animation: floatGentle 12s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 500px;
  height: 500px;
  background: var(--orange-dark);
  top: -180px;
  right: -120px;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--blue-accent);
  bottom: 8%;
  left: 3%;
  animation-delay: 3s;
}

.hero-shape:nth-child(3) {
  width: 350px;
  height: 350px;
  background: var(--orange-medium);
  top: 35%;
  right: 15%;
  animation-delay: 6s;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 660px;
  padding-top: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(196, 98, 26, 0.12);
  border: 1px solid rgba(196, 98, 26, 0.2);
  border-radius: 100px;
  color: var(--orange-light);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.5px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--orange-dark);
  border-radius: var(--radius-full);
  animation: pulseSoft 3s ease-in-out infinite;
}

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: var(--space-xl);
  line-height: 1.15;
  font-weight: 600;
}

.hero h1 span {
  color: var(--orange-light);
  font-style: italic;
}

.hero-description {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0.5px;
}


/* ═══════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════ */

.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--gradient-primary);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--off-white));
}

.page-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-shapes .hero-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -50px;
}

.page-hero-shapes .hero-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
}

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

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  font-weight: 300;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: var(--orange-light);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
}


/* ═══════════════════════════════════
   SECTIONS
   ═══════════════════════════════════ */

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--gradient-primary);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.section-blue {
  background: rgba(74, 107, 173, 0.08);
}

.section-center {
  text-align: center;
}

.section-center .section-header {
  max-width: 760px;
  margin: 0 auto var(--space-4xl);
}

.section-center .content-grid {
  justify-items: center;
}

.section-center .content-grid > * {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.section-center .about-features {
  align-items: center;
}

.section-center .about-feature {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-blue .section-title {
  color: var(--blue-dark);
}

.partner-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem 3.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.partner-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.partner-marquee {
  overflow: hidden;
  background: rgba(74, 107, 173, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 107, 173, 0.16);
  padding: 1rem 0;
  margin-top: 2rem;
}

.partner-marquee-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll-partners 18s linear infinite;
  padding-left: 100%;
}

.partner-marquee-track span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════ */

.services-grid, .premium-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.premium-service-grid {
  margin-top: var(--space-xl);
}

.service-card, .premium-service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid rgba(27, 42, 74, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  z-index: 1;
}

.service-card::before, .premium-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--white) 0%, #fcfdfd 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.service-card::after, .premium-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.service-card:hover, .premium-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27, 42, 74, 0.08);
  border-color: transparent;
}

.service-card:hover::after, .premium-service-card:hover::after {
  transform: scaleX(1);
}

.service-icon, .premium-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  background: var(--orange-subtle);
  color: var(--orange-dark);
  transition: all 0.4s ease;
  position: relative;
}

.service-card:hover .service-icon, .premium-service-card:hover .premium-service-icon {
  background: var(--gradient-orange);
  color: var(--white);
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 10px 20px rgba(232, 116, 36, 0.2);
}

.service-card h3, .premium-service-card h4, .premium-service-card h3 {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.75;
}


/* ═══════════════════════════════════
   ABOUT PREVIEW
   ═══════════════════════════════════ */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 140px;
  height: 140px;
  border: 3px solid var(--orange-dark);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.2;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);

}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--orange-subtle);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature h4 {
  font-size: 0.95rem;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}


/* ═══════════════════════════════════
   FORMATION CARDS
   ═══════════════════════════════════ */

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.formation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.formation-card-image {
  height: 200px;
  overflow: hidden;
}

.formation-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.formation-card:hover .formation-card-image img {
  transform: scale(1.05);
}

.formation-card-content {
  padding: var(--space-xl);
}

.formation-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--orange-subtle);
  color: var(--orange-dark);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.formation-card h3 {
  font-size: 1.08rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.formation-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.formation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-50);
}

.formation-meta span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gray-300);
  font-weight: 500;
}

.formation-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.formation-link:hover {
  gap: 8px;
}


/* ═══════════════════════════════════
   NEWS CARDS
   ═══════════════════════════════════ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  display: block;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.1;
  font-family: var(--font-ui);
}

.news-date-badge .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.news-date-badge .month {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  opacity: 0.7;
}

.news-card-content {
  padding: var(--space-xl);
}

.news-category {
  display: inline-block;
  padding: 3px 12px;
  background: var(--orange-subtle);
  color: var(--orange-dark);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.news-card h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.45;
  font-family: var(--font-ui);
  transition: color var(--transition-fast);
}

.news-card:hover h3 {
  color: var(--orange-dark);
}

.news-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* ═══════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════ */

.cta-section {
  padding: var(--space-5xl) 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  background: var(--orange-dark);
  opacity: 0.03;
  top: -250px;
  right: -150px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-2xl);
  font-weight: 300;
  line-height: 1.8;
}


/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.contact-info-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-200);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--orange-subtle);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--off-white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange-dark);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15), 0 0 0 3px rgba(249, 115, 22, 0.1);
  background: var(--white);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}


/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.footer {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
  overflow: hidden;
}

/* Floating Blobs in Footer */
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: float-footer-blob 10s ease-in-out infinite;
}

.footer::before {
  width: 400px;
  height: 400px;
  background: rgba(196, 98, 26, 0.15); /* Orange */
  top: -100px;
  right: -100px;
}

.footer::after {
  width: 350px;
  height: 350px;
  background: rgba(33, 150, 243, 0.1); /* Blue */
  bottom: -50px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes float-footer-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.1); }
  66% { transform: translate(40px, -20px) scale(0.9); }
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
}

.footer-brand .logo-name {
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: var(--space-md);
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--orange-dark);
  box-shadow: 0 0 8px var(--orange-dark);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
  display: inline-block;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--orange-light);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 167, 38, 0.5);
}

/* Glassmorphism Socials */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: var(--space-xl);
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-social a:hover {
  transform: translateY(-5px);
  background: var(--orange-dark);
  color: var(--white);
  border-color: var(--orange-light);
  box-shadow: 0 8px 25px rgba(196, 98, 26, 0.5);
}

/* Newsletter Input */
.footer-newsletter {
  margin-top: 1rem;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  transition: all var(--transition-base);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(196, 98, 26, 0.3);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

.newsletter-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: none;
  background: var(--orange-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0 15px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background: #B5580F;
  box-shadow: 0 0 15px rgba(196, 98, 26, 0.6);
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ═══════════════════════════════════
   CONTENT PAGES
   ═══════════════════════════════════ */

.content-section {
  padding: var(--space-4xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}


/* ═══════════════════════════════════
   VALUES GRID
   ═══════════════════════════════════ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all var(--transition-base);
}

.value-card:hover .value-icon {
  background: var(--orange-dark);
  color: var(--white);
}

.value-card h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}


/* ═══════════════════════════════════
   TEAM
   ═══════════════════════════════════ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.team-card-avatar {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
}

.team-card-content {
  padding: var(--space-xl);
}

.team-card h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.team-card .role {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--orange-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 6px;
}


/* ═══════════════════════════════════
   TIMELINE
   ═══════════════════════════════════ */

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: var(--space-2xl);
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--orange-dark);
  border: 3px solid var(--off-white);
}

.timeline-year {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}


/* ═══════════════════════════════════
   FORMATION PREMIUM CARDS (v2)
   ═══════════════════════════════════ */

/* ── Filter Tabs ── */
.formation-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-3xl);
}

.formation-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  letter-spacing: 0.02em;
}

.formation-tab:hover {
  color: var(--blue-dark);
  border-color: var(--gray-200);
  background: var(--off-white);
  transform: translateY(-1px);
}

.formation-tab.active {
  color: var(--white);
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.25);
}

.tab-icon {
  font-size: 0.9rem;
}

.tab-svg {
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
}

/* ── Premium Grid ── */
.formation-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

/* ── Premium Card ── */
.formation-premium-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--gray-100);
  transition: all 0.45s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.formation-premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-orange);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.formation-premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(27, 42, 74, 0.1), 0 6px 18px rgba(196, 98, 26, 0.05);
  border-color: transparent;
}

.formation-premium-card:hover::before {
  transform: scaleX(1);
}

/* Glow effect on hover */
.fpc-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(196, 98, 26, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.formation-premium-card:hover .fpc-glow {
  opacity: 1;
}

/* Card header with icon + number */
.fpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.fpc-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(196, 98, 26, 0.08), rgba(196, 98, 26, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
  color: var(--orange-dark);
}

.fpc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.fpc-icon svg {
  width: 20px;
  height: 20px;
}

.formation-premium-card:hover .fpc-icon-wrapper {
  background: var(--gradient-orange);
  box-shadow: 0 4px 14px rgba(196, 98, 26, 0.3);
  color: var(--white);
}

.formation-premium-card:hover .fpc-icon svg {
  stroke: var(--white);
}

.fpc-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-50);
  line-height: 1;
  transition: color 0.4s ease;
  letter-spacing: -0.03em;
}

.formation-premium-card:hover .fpc-number {
  color: rgba(196, 98, 26, 0.12);
}

/* Card title */
.fpc-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.formation-premium-card:hover .fpc-title {
  color: var(--blue-deeper);
}

/* Card description */
.fpc-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

/* Module list */
.fpc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  flex: 1;
}

.fpc-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.55;
  border-bottom: 1px solid var(--gray-50);
  transition: all 0.3s ease;
}

.fpc-list li:last-child {
  border-bottom: none;
}

.fpc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(196, 98, 26, 0.1), rgba(196, 98, 26, 0.2));
  transition: all 0.3s ease;
}

.fpc-list li::after {
  content: '✓';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--orange-dark);
  transition: all 0.3s ease;
}

.formation-premium-card:hover .fpc-list li:hover {
  padding-left: 32px;
  color: var(--blue-dark);
}

.formation-premium-card:hover .fpc-list li:hover::before {
  background: var(--orange-dark);
}

.formation-premium-card:hover .fpc-list li:hover::after {
  color: var(--white);
}

/* CTA button */
.fpc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.fpc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-orange);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fpc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 98, 26, 0.3);
}

.fpc-cta:hover::before {
  opacity: 1;
}

.fpc-cta span {
  position: relative;
  z-index: 1;
}

.fpc-cta-arrow {
  font-size: 1rem;
  transition: transform 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
}

.fpc-cta:hover .fpc-cta-arrow {
  transform: translateX(4px);
}

/* ── Card filter animation ── */
.formation-premium-card.hiding {
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  pointer-events: none;
}

.formation-premium-card.showing {
  animation: cardReveal 0.5s var(--ease-out) forwards;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* ═══════════════════════════════════
   NEWS PAGE
   ═══════════════════════════════════ */

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.news-page-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.news-page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 42, 74, 0.12);
}

.news-page-card .news-card-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(15, 29, 53, 0.95), rgba(74, 107, 173, 0.92));
  position: relative;
}

.news-page-card .news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(232, 148, 79, 0.35), transparent 45%);
}

.news-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-deeper);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  text-align: center;
  line-height: 1.1;
  font-family: var(--font-ui);
  box-shadow: var(--shadow-xs);
}

.news-date-badge .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.news-date-badge .month {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  opacity: 0.85;
}

.news-card-content {
  padding: calc(var(--space-xl) + 0.5rem) var(--space-xl) var(--space-xl);
  color: var(--gray-800);
}

.news-card-content h3 {
  margin: 0 0 1rem;
  color: var(--blue-deeper);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.news-card-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin: 0 0 1rem;
}

.news-category {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(232, 148, 79, 0.14);
  color: var(--orange-dark);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.btn-secondary {
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-dark);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  background: var(--blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
}


/* ═══════════════════════════════════
   PARTNERS CAROUSEL
   ═══════════════════════════════════ */

.partners-carousel {
  overflow: hidden;
  position: relative;
  padding: var(--space-xl) 0;
}

.partners-carousel::before,
.partners-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.partners-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}

.partners-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}

.partners-track {
  display: flex;
  gap: var(--space-xl);
  animation: scrollPartners 35s linear infinite;
  width: max-content;
}

.partners-carousel:hover .partners-track {
  animation-play-state: paused;
}

@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-item {
  flex-shrink: 0;
}

.partner-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  min-width: 240px;
  height: 72px;
  transition: all var(--transition-base);
  cursor: default;
}

.partner-logo-wrapper:hover {
  border-color: var(--orange-dark);
  box-shadow: var(--shadow-sm);
}

.partner-initials {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.partner-name {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
  white-space: nowrap;
  letter-spacing: 0;
}

.partner-logo-wrapper:hover .partner-name {
  color: var(--orange-dark);
}


/* ═══════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: all 0.7s var(--ease-out);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(24px);
  transition: all 0.7s var(--ease-out);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════
   MAP
   ═══════════════════════════════════ */

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-3xl);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}


/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media (max-width: 1024px) {
  .about-preview,
  .contact-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .hero-stats {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  /* ── Header: solid background on mobile to avoid stacking context issues ── */
  .header {
    padding: 10px 0;
    background: rgb(15, 29, 53) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .header.scrolled {
    background: rgb(15, 29, 53) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* ── Mobile menu overlay ── */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: rgb(15, 29, 53);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    padding: 80px 20px 40px;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--white);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-lg);
  }

  .nav-cta .btn {
    padding: 14px 36px;
    font-size: 0.95rem;
  }

  /* ── Hamburger & logo above everything ── */
  .hamburger {
    display: flex;
    z-index: 1060;
    position: relative;
  }

  .logo {
    z-index: 1060;
    position: relative;
  }

  /* ── Page layout adjustments ── */
  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .formation-grid,
  .formation-premium-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .formation-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .formation-tabs::-webkit-scrollbar {
    display: none;
  }

  .formation-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-content {
    padding-top: 80px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}


/* ═══════════════════════════════════
   SCROLLBAR & SELECTION
   ═══════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-300);
}

::selection {
  background: rgba(196, 98, 26, 0.15);
  color: var(--blue-dark);
}


/* ═══════════════════════════════════
   FEEDBACK MESSAGES
   ═══════════════════════════════════ */

.message {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  animation: slideInMessage 0.4s var(--ease-out);
}

.message-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(45, 138, 86, 0.2);
}

.message-error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid rgba(201, 59, 59, 0.2);
}

.message-warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(212, 147, 12, 0.2);
}

.message-info {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid rgba(74, 107, 173, 0.2);
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════
   FORM VALIDATION STATES
   ═══════════════════════════════════ */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(74, 107, 173, 0.12);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: var(--success);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-error-text {
  color: var(--error);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  margin-top: var(--space-xs);
  display: none;
}

.form-group.has-error .form-error-text {
  display: block;
}


/* ═══════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════ */

.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-orange { color: var(--orange-dark); }
.text-blue { color: var(--blue-dark); }
.text-muted { color: var(--gray-500); }

.bg-success { background-color: var(--success-light); }
.bg-error { background-color: var(--error-light); }
.bg-warning { background-color: var(--warning-light); }
.bg-info { background-color: var(--info-light); }

/* ═══════════════════════════════════
   DYNAMIC BACKGROUND (BLOBS)
   ═══════════════════════════════════ */

.dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.dynamic-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: floatBlobs 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  width: 40vw;
  height: 40vw;
  background: rgba(249, 115, 22, 0.2); /* Orange */
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 35vw;
  height: 35vw;
  background: rgba(37, 99, 235, 0.15); /* Blue */
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  background: rgba(249, 115, 22, 0.1); /* Lighter Orange */
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 15%) scale(1.1); }
  100% { transform: translate(-10%, -5%) scale(0.9); }
}

/* ═══════════════════════════════════
   GALLERY CAROUSEL
   ═══════════════════════════════════ */

.gallery-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: var(--space-2xl);
  padding: 10px 0;
}

.gallery-carousel::before,
.gallery-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.gallery-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}

.gallery-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}

.gallery-track {
  display: flex;
  gap: var(--space-md);
  animation: scrollGallery 80s linear infinite;
  width: max-content;
}

.gallery-carousel:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox pour la galerie */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 53, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}
