/* elyesbc.com — V4.2 — home.css */
/* ═══════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════ */
:root {
  --cyan:     #18C2DC;
  --cyan-d:   #0FA3BF;
  --cyan-l:   #6EDDF0;
  --navy:     #0D1B2E;
  --navy-2:   #152540;
  --gold:     #C9963A;
  --gold-l:   #E8C572;
  --white:    #FFFFFF;
  --off:      #F5F2ED;
  --ink:      #0D1B2E;
  --ink-60:   #4A6080;
  --ink-30:   #9BAEC2;
  --coral:    #E85D45;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Outfit', sans-serif;
  --font-arabic:  'Noto Naskh Arabic', serif;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--off);
  color: var(--ink);
  overflow-x: hidden;
  cursor: auto;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), background 0.3s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: transform 0.15s var(--ease-smooth), width 0.4s var(--ease-spring), height 0.4s var(--ease-spring);
  opacity: 0.6;
}
.cursor.hovered { width: 24px; height: 24px; background: var(--gold); }
.cursor-ring.hovered { width: 56px; height: 56px; border-color: var(--gold); opacity: 0.4; }

a, button { cursor: pointer; }

.cursor,
.cursor-ring { display: none; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(13, 27, 46, 0.96);
  backdrop-filter: blur(20px);
  padding: 1rem 4rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-smooth);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  display: flex;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.3rem 0.5rem;
}

.lang-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--cyan);
  color: var(--white);
}

.nav-cta {
  background: var(--cyan);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--cyan-d) !important; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav-links { display: none; }
  .nav-lang { display: flex; margin-left: auto; }
  .burger { display: flex; }
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatBg 8s ease-in-out infinite;
}

.hero-bg-circle:nth-child(1) {
  width: 600px; height: 600px;
  background: rgba(24,194,220,0.08);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.hero-bg-circle:nth-child(2) {
  width: 400px; height: 400px;
  background: rgba(201,150,58,0.06);
  bottom: -100px; left: 30%;
  animation-delay: 3s;
}
.hero-bg-circle:nth-child(3) {
  width: 300px; height: 300px;
  background: rgba(24,194,220,0.05);
  top: 40%; left: -100px;
  animation-delay: 6s;
}

@keyframes floatBg {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid lines decoration */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,194,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,194,220,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Hero left — content */
.hero-left {
  padding: 8rem 4rem 6rem 6rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(24,194,220,0.3);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.hero-name {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: fadeUp 0.8s 0.35s ease both;
  margin-bottom: 0.3rem;
}

.hero-name strong {
  font-weight: 800;
  display: block;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-name em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.65s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.9s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cyan);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--cyan-d);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(24,194,220,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, transform 0.3s var(--ease-spring), border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: fadeUp 0.8s 1.2s ease both;
}

.scroll-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--cyan);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  to { left: 100%; }
}

.scroll-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Hero right — photo full height */
.hero-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(13,27,46,0.6) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-photo-wrap {
  width: 100%;
  height: 100%;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scaleX(-1);
  filter: contrast(1.02) brightness(1.02);
}

.hero-float-card:nth-child(1) {
  top: 18%;
  right: -20px;
  animation-delay: 0s;
}
.hero-float-card:nth-child(2) {
  bottom: 28%;
  left: -30px;
  animation-delay: 3s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar {
  background: var(--navy-2);
  border-top: 1px solid rgba(24,194,220,0.1);
  border-bottom: 1px solid rgba(24,194,220,0.1);
  padding: 2rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

.stat-num {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.services {
  padding: 8rem 6rem;
  background: var(--off);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: 'SERVICES';
  position: absolute;
  font-family: var(--font-display);
  font-size: 15rem;
  font-weight: 700;
  color: rgba(24,194,220,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title em {
  font-style: italic;
  color: var(--cyan);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
  cursor: default;
}

/* ═══════════════════════════════════════════════
   SELECTED PROJECTS
═══════════════════════════════════════════════ */
.selected-projects {
  padding: 8rem 6rem;
  background: var(--off);
  position: relative;
  overflow: hidden;
}

.selected-projects::before {
  content: 'PORTFOLIO';
  position: absolute;
  right: -1rem;
  top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 17vw, 15rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(24,194,220,0.035);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
}

.project-card {
  min-height: 390px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background: var(--navy);
  box-shadow: 0 18px 50px rgba(13,27,46,0.11);
}

.project-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 0.65s var(--ease-smooth);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.88) contrast(1.03);
}

.project-card:hover .project-visual img { transform: scale(1.035); }

.project-visual::before,
.project-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.23);
}

.project-visual::before { width: 260px; height: 260px; right: -40px; top: -45px; }
.project-visual::after { width: 130px; height: 130px; right: 65px; top: 60px; }
.project-card:nth-child(1) .project-visual { background: linear-gradient(135deg, #203c69, #80255f); }
.project-card:nth-child(2) .project-visual { background: linear-gradient(135deg, #0d1b2e, #18c2dc); }
.project-card:nth-child(3) .project-visual { background: linear-gradient(135deg, #9d1d20, #eeb64b); }
.project-card:nth-child(4) .project-visual { background: linear-gradient(135deg, #075a40, #24b47e); }
.project-card:nth-child(5) .project-visual { background: linear-gradient(135deg, #321663, #d64da1); }
.project-card:nth-child(6) .project-visual { background: linear-gradient(135deg, #113758, #548db4); }

.project-content {
  width: 100%;
  padding: 2rem;
  background: linear-gradient(180deg, transparent, rgba(7,18,32,0.96));
  color: var(--white);
}

.project-index {
  position: absolute;
  top: 1.6rem;
  left: 1.8rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: rgba(255,255,255,0.34);
}

.project-title { font-size: 1.45rem; line-height: 1.2; margin-bottom: 0.55rem; }
.project-meta { font-size: 0.78rem; color: rgba(255,255,255,0.68); letter-spacing: 0.035em; }
.project-link {
  display: inline-flex;
  margin-top: 1.15rem;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.project-link::after { content: '→'; transition: transform 0.25s; }
.project-card:hover .project-visual { transform: scale(1.045); }
.project-card:hover .project-link::after { transform: translateX(5px); }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--font-body);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(24,194,220,0.1);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  transition: color 0.3s;
}
.service-card:hover .service-number { color: rgba(24,194,220,0.2); }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(24,194,220,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s, transform 0.3s var(--ease-spring);
}
.service-card:hover .service-icon {
  background: var(--cyan);
  transform: scale(1.1) rotate(-5deg);
}

.service-title {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--ink-60);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-d);
  background: rgba(24,194,220,0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════════ */
.clients {
  background: var(--white);
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-30);
  margin-bottom: 2rem;
  padding: 0 6rem;
}

.clients-track-wrap {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.clients-track {
  --marquee-gap: 3.5rem;
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  animation: marquee 48s linear infinite;
  width: max-content;
  height: 60px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - (var(--marquee-gap) / 2))); }
}

.client-logo-wrap {
  width: 140px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-logo {
  width: 120px;
  height: 48px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}
.client-logo-wrap:hover .client-logo {
  opacity: 1;
  transform: scale(1.08);
}
.client-name-fallback {
  display: block;
  max-width: 120px;
  color: var(--ink-60);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   FORMATIONS CLIENTS
═══════════════════════════════════════════════ */
.formations-clients {
  background: var(--navy-2);
  padding: 4rem 6rem;
  overflow: hidden;
  border-top: 1px solid rgba(24,194,220,0.08);
  border-bottom: 1px solid rgba(24,194,220,0.08);
}

.formations-clients-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.formations-clients-label::before,
.formations-clients-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.formations-track-wrap {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.formations-track {
  --marquee-gap: 3rem;
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  animation: marquee2 35s linear infinite;
  width: max-content;
}
@keyframes marquee2 {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - (var(--marquee-gap) / 2))); }
}

.formation-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  transition: background 0.3s, box-shadow 0.3s;
}
.formation-chip:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.formation-chip-logo {
  max-height: 26px;
  max-width: 70px;
  object-fit: contain;
  transition: opacity 0.3s;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}
.formation-chip:hover .formation-chip-logo { opacity: 1; }

.formation-chip-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.formation-chip:hover .formation-chip-name { color: var(--cyan-d); }

@media (hover: hover) and (pointer: fine) {
  .clients-track:hover,
  .formations-track:hover { animation-play-state: paused; }
}

/* Certifications badges */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid;
}

.cert-badge.cyan {
  color: var(--cyan-d);
  background: rgba(24,194,220,0.08);
  border-color: rgba(24,194,220,0.2);
}
.cert-badge.gold {
  color: var(--gold);
  background: rgba(201,150,58,0.08);
  border-color: rgba(201,150,58,0.2);
}

/* ═══════════════════════════════════════════════
   ABOUT TEASER
═══════════════════════════════════════════════ */
.about-teaser {
  padding: 8rem 6rem;
  background: var(--off);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-photo-col {
  position: relative;
}

.about-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(13,27,46,0.12);
}

.about-photo-frame img {
  width: 100%;
  display: block;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: rgba(13,27,46,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(24,194,220,0.25);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  z-index: 10;
}

.about-badge-num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.about-badge-txt {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-content {}

.about-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--ink-30);
  direction: rtl;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.about-bio {
  font-size: 1rem;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-bio strong { color: var(--ink); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.highlight-item:hover {
  border-color: rgba(24,194,220,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.highlight-icon {
  width: 32px; height: 32px;
  background: rgba(24,194,220,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.highlight-text {
  font-size: 0.82rem;
  color: var(--ink-60);
  line-height: 1.5;
}

.highlight-text strong { color: var(--ink); display: block; font-size: 0.88rem; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.btn-dark:hover {
  background: var(--navy-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(13,27,46,0.2);
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonials {
  background: var(--navy);
  padding: 8rem 6rem;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '❝';
  position: absolute;
  font-size: 25rem;
  color: rgba(24,194,220,0.03);
  top: -4rem;
  left: 2rem;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

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

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  cursor: grab;
  touch-action: pan-y;
}

.testimonials-carousel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.testimonials-carousel.is-dragging .testimonials-track {
  transition: none;
}

.testimonials-carousel img {
  -webkit-user-drag: none;
  user-select: none;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s var(--ease-smooth);
}

.testimonial-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2.5rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.2rem;
}

.star { color: var(--gold); font-size: 0.9rem; }

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-author > div:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-d));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.author-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.author-avatar span {
  position: relative;
  z-index: 0;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.author-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.1rem;
  overflow-wrap: anywhere;
}

.author-company {
  margin-left: auto;
  max-width: 42%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: var(--cyan);
  background: rgba(24,194,220,0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 6px; height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
  cursor: pointer;
}
.carousel-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--cyan);
}

/* ═══════════════════════════════════════════════
   ENGAGEMENT SECTION (Gaza)
═══════════════════════════════════════════════ */
.engagement {
  background: var(--off);
  padding: 5rem 6rem;
}

.engagement-card {
  background: var(--navy);
  border-radius: 24px;
  padding: 3.5rem 4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.engagement-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
}

.engagement-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.engagement-content { position: relative; z-index: 1; }

.engagement-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.engagement-title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.engagement-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 500px;
}

.engagement-badge {
  text-align: center;
  position: relative;
  z-index: 1;
}

.engagement-badge-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.engagement-badge-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--cyan-d) 0%, var(--navy) 60%);
  padding: 8rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(24,194,220,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201,150,58,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
}

.cta-title em { font-style: italic; color: var(--cyan-l); }

.cta-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3rem;
  position: relative;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.btn-white:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(24,194,220,0.08);
  padding: 4rem 6rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  text-decoration: none;
}

.footer-logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
}

.footer-logo-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: rgba(255,255,255,0.5);
}
.social-link:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-list a:hover { color: var(--cyan); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.footer-contact-item span:first-child { font-size: 0.9rem; }
.footer-contact-item a, .footer-contact-item span:last-child {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer-copy span { color: var(--cyan); }

.footer-credits {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

/* Force hide broken images before they show */
img.formation-chip-logo {
  background: transparent !important;
  color: transparent;
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════ */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4 { transition-delay: 0s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 8rem 2rem 4rem 2rem; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-right { display: none; }
  .hero-scroll { left: 50%; transform: translateX(-50%); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-frame img { max-width: 100%; }
  .stats-bar { padding: 2rem 2rem; }
  .services, .clients, .selected-projects, .about-teaser, .engagement, .cta-section, footer { padding-left: 2rem; padding-right: 2rem; }
  .testimonials { padding: 7rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .engagement-card { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .engagement-card::before { width: 100%; height: 4px; bottom: auto; }
}

@media (max-width: 900px) {
  .testimonial-card { flex-basis: calc((100% - 1.5rem) / 2); }
}

@media (max-width: 640px) {
  .clients { padding-left: 0; padding-right: 0; }
  .formations-clients { padding: 3rem 0; }
  .clients-track { animation-duration: 38s; }
  .formations-track { animation-duration: 28s; }
  .clients-track-wrap,
  .formations-track-wrap {
    mask: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  }
  .clients-label,
  .formations-clients-label { padding-left: 1.25rem; padding-right: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stats-bar { justify-content: center; }
  .testimonials { padding: 5rem 1.25rem; }
  .testimonials .section-header { align-items: flex-end; gap: 1.5rem; }
  .testimonials-carousel { width: 100%; }
  .testimonial-card {
    flex-basis: 100%;
    padding: 1.5rem;
  }
  .testimonial-author { flex-wrap: wrap; }
  .author-company {
    margin-left: 50px;
    max-width: calc(100% - 50px);
  }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 330px; }
  .selected-projects { padding-top: 6rem; padding-bottom: 6rem; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .nav-lang { gap: 0.15rem; padding: 0.25rem 0.35rem; }
  .lang-btn { padding: 0.22rem 0.48rem; }
}


/* ═══════════════════════════════════════════════
   HEADER & FOOTER — shared index design
═══════════════════════════════════════════════ */
:root {
  --font-body: var(--body, 'Outfit', sans-serif);
  --font-display: var(--display, 'Cormorant Garamond', serif);
  --ease-smooth: var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 4rem; display: flex; align-items: center;
  justify-content: space-between; background: transparent; border: 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
nav#navbar.scrolled {
  background: rgba(13,27,46,.96); backdrop-filter: blur(20px);
  padding: 1rem 4rem; box-shadow: 0 4px 40px rgba(0,0,0,.2);
}
nav#navbar .nav-logo { display:flex; align-items:center; gap:.7rem; text-decoration:none; }
nav#navbar .nav-logo img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
nav#navbar .nav-logo-text { font-family:var(--font-body); font-size:1.2rem; font-weight:600; color:#fff; letter-spacing:.02em; }
nav#navbar .nav-links { display:flex; gap:2.5rem; list-style:none; align-items:center; }
nav#navbar .nav-links a {
  font-size:.82rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.65); text-decoration:none; position:relative;
  border:0; padding-bottom:0; transition:color .2s;
}
nav#navbar .nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px;
  background:var(--cyan); transition:width .3s var(--ease-smooth);
}
nav#navbar .nav-links a:hover,
nav#navbar .nav-links a.active { color:#fff; }
nav#navbar .nav-links a:hover::after,
nav#navbar .nav-links a.active::after { width:100%; }
nav#navbar .nav-lang { display:flex; gap:.4rem; margin-left:0; background:rgba(255,255,255,.08); border-radius:100px; padding:.3rem .5rem; }
nav#navbar .lang-btn {
  font-family:var(--font-body); font-size:.72rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:rgba(255,255,255,.5); background:none; border:0;
  padding:.25rem .6rem; border-radius:100px; transition:all .2s;
}
nav#navbar .lang-btn.active { background:var(--cyan); color:#fff; }
nav#navbar .nav-cta { background:var(--cyan); color:#fff!important; padding:.55rem 1.4rem!important; border-radius:100px; }
nav#navbar .nav-cta::after { display:none!important; }
nav#navbar .nav-cta:hover { background:var(--cyan-d)!important; transform:translateY(-1px); }
nav#navbar .burger { display:none; flex-direction:column; gap:5px; background:none; border:0; padding:.5rem; }
nav#navbar .burger span { display:block; width:24px; height:2px; margin:0; background:#fff; border-radius:2px; }

footer.site-footer {
  background:var(--navy); color:#fff; border-top:1px solid rgba(24,194,220,.08);
  padding:4rem 6rem 2.5rem;
}
footer.site-footer .footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem;
  margin:0 0 4rem; padding:0 0 4rem; border-bottom:1px solid rgba(255,255,255,.06);
}
footer.site-footer .footer-brand { display:block; margin:0; }
footer.site-footer .footer-logo { display:flex; align-items:center; gap:.7rem; margin-bottom:1.2rem; text-decoration:none; }
footer.site-footer .footer-logo img { width:44px; height:44px; border-radius:50%; object-fit:cover; }
footer.site-footer .footer-logo-text { font-family:var(--font-body); font-size:1.1rem; font-weight:700; color:#fff; }
footer.site-footer .footer-tagline { font-family:var(--font-display); font-size:1rem; font-style:italic; color:rgba(255,255,255,.35); margin-bottom:1.5rem; line-height:1.5; }
footer.site-footer .footer-social { display:flex; gap:.7rem; }
footer.site-footer .social-link {
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08); display:flex; align-items:center;
  justify-content:center; padding:0; text-decoration:none; color:rgba(255,255,255,.5);
  transition:all .2s;
}
footer.site-footer .social-link:hover { background:var(--cyan); border-color:var(--cyan); color:#fff; transform:translateY(-3px); }
footer.site-footer .footer-col-title { font-size:.72rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.35); margin:0 0 1.2rem; }
footer.site-footer .footer-links-list { list-style:none; display:flex; flex-direction:column; gap:.7rem; margin:0; padding:0; }
footer.site-footer .footer-links-list li { margin:0; }
footer.site-footer .footer-links-list a { display:inline; font-size:.85rem; line-height:1.4; color:rgba(255,255,255,.5); text-decoration:none; transition:color .2s; }
footer.site-footer .footer-links-list a:hover { color:var(--cyan); }
footer.site-footer .footer-contact-item { display:flex; align-items:center; gap:.6rem; margin-bottom:.7rem; }
footer.site-footer .footer-contact-item svg { flex:0 0 auto; }
footer.site-footer .footer-contact-item a,
footer.site-footer .footer-contact-item span { font-size:.82rem; line-height:1.4; color:rgba(255,255,255,.5); text-decoration:none; transition:color .2s; }
footer.site-footer .footer-contact-item a:hover { color:var(--cyan); }
footer.site-footer .footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; padding:0; border:0; }
footer.site-footer .footer-copy { font-size:.78rem; color:rgba(255,255,255,.25); }
footer.site-footer .footer-copy span { color:var(--cyan); }
footer.site-footer .footer-credits { font-size:.75rem; color:rgba(255,255,255,.2); }

@media (max-width:1100px) {
  footer.site-footer { padding-left:2rem; padding-right:2rem; }
  footer.site-footer .footer-top { grid-template-columns:1fr 1fr; }
}
@media (max-width:900px) {
  nav#navbar { padding:1.2rem 1.5rem; }
  nav#navbar.scrolled { padding:.9rem 1.5rem; }
  nav#navbar .nav-links { display:none; }
  nav#navbar .nav-links.mobile-open { display:flex; position:absolute; top:70px; left:0; right:0; flex-direction:column; background:rgba(13,27,46,.98); padding:2rem; gap:1.5rem; backdrop-filter:blur(20px); }
  nav#navbar .nav-lang { display:flex; margin-left:auto; }
  nav#navbar .burger { display:flex; }
}
@media (max-width:640px) {
  footer.site-footer .footer-top { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  nav#navbar .nav-logo-text { display:none; }
  nav#navbar .nav-lang { gap:.15rem; padding:.25rem .35rem; }
  nav#navbar .lang-btn { padding:.22rem .48rem; }
}

/* ═══════════════════════════════════════════════
   HERO 2026 — ARCHITECTURE CONTEMPORAINE TUNISIENNE
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #081629;
}

.hero-bg,
.hero-grid-lines {
  display: none;
}

.hero-right {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-right::before {
  left: 0;
  width: 100%;
  background:
    linear-gradient(90deg,
      rgba(7, 19, 35, .98) 0%,
      rgba(7, 19, 35, .94) 28%,
      rgba(7, 19, 35, .72) 43%,
      rgba(7, 19, 35, .22) 60%,
      rgba(7, 19, 35, .04) 72%),
    linear-gradient(180deg,
      rgba(7, 19, 35, .38) 0%,
      rgba(7, 19, 35, 0) 32%,
      rgba(7, 19, 35, .16) 100%);
}

.hero-photo-wrap,
.hero-photo {
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: saturate(.94) contrast(1.02) brightness(.98);
}

.hero-left {
  width: min(48rem, 52vw);
  padding: 8.5rem 2rem 7rem clamp(2rem, 5.2vw, 6.25rem);
  z-index: 3;
  text-align: left;
}

.hero-name {
  font-size: clamp(2.8rem, 4.7vw, 5.15rem);
  text-shadow: 0 3px 30px rgba(0, 0, 0, .24);
}

.hero-tagline {
  max-width: 46rem;
  color: rgba(255, 255, 255, .67);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero-slogan {
  text-shadow: 0 2px 22px rgba(0, 0, 0, .35);
}

.hero-scroll {
  left: clamp(2rem, 5.2vw, 6.25rem);
  z-index: 4;
}

@media (max-width: 1100px) {
  .hero {
    align-items: flex-end;
  }

  .hero-right::before {
    background:
      linear-gradient(180deg,
        rgba(7, 19, 35, .14) 0%,
        rgba(7, 19, 35, .18) 30%,
        rgba(7, 19, 35, .82) 65%,
        rgba(7, 19, 35, .98) 100%),
      linear-gradient(90deg,
        rgba(7, 19, 35, .70) 0%,
        rgba(7, 19, 35, .22) 58%,
        rgba(7, 19, 35, .05) 100%);
  }

  .hero-photo {
    object-position: 66% center;
  }

  .hero-left {
    width: min(46rem, 100%);
    padding: 8rem 2rem 5.75rem;
    text-align: left;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .hero-scroll {
    left: auto;
    right: 2rem;
    bottom: 2rem;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 48rem;
  }

  .hero-photo {
    object-position: 67% center;
  }

  .hero-right::before {
    background:
      linear-gradient(180deg,
        rgba(7, 19, 35, .10) 0%,
        rgba(7, 19, 35, .20) 31%,
        rgba(7, 19, 35, .88) 57%,
        rgba(7, 19, 35, .99) 100%),
      linear-gradient(90deg,
        rgba(7, 19, 35, .52) 0%,
        rgba(7, 19, 35, .08) 78%);
  }

  .hero-left {
    width: 100%;
    padding: 7rem 1.25rem 3.2rem;
  }

  .hero-badge {
    margin-bottom: 1.15rem;
    font-size: .64rem;
    padding: .42rem .9rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 11vw, 3.15rem);
    line-height: 1.02;
    margin-bottom: .75rem;
  }

  .hero-name strong {
    white-space: normal;
  }

  .hero-tagline {
    max-width: 22rem;
    margin-bottom: 1rem;
    font-size: .98rem;
    line-height: 1.35;
  }

  .hero-slogan {
    font-size: 1.35rem;
    margin-bottom: 1.35rem;
  }

  .hero-ctas {
    width: min(100%, 22rem);
    gap: .7rem;
  }

  .hero-ctas a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-name,
  .hero-tagline,
  .hero-slogan,
  .hero-ctas,
  .hero-scroll {
    animation: none;
  }
}

/* V4.2 — anciennes déclarations inline */
.training-section-title{margin-bottom:1.5rem}
