/* ============================================
   HICHAM KAMIL — SITE PROFESSIONNEL
   Design System & Styles
============================================ */

/* Root Variables */
:root {
  --navy: #0a0f2e;
  --navy-mid: #0d1540;
  --navy-light: #141d52;
  --gold: #c9a84c;
  --gold-light: #f0c456;
  --gold-pale: #f5d98020;
  --accent: #4f8ef7;
  --accent-2: #7c5cbf;
  --white: #ffffff;
  --gray-100: #f8f9ff;
  --gray-200: #e8eaf6;
  --gray-400: #9199b5;
  --gray-600: #5a6285;
  --text-primary: #1a2245;
  --text-secondary: #5a6285;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(201, 168, 76, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.15);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 46, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -1px;
}

.dot {
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1a2a6c 0%, #0a0f2e 60%);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4f8ef7 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #c9a84c 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #7c5cbf 0%, transparent 70%);
  top: 40%; right: 20%;
  animation: float 6s ease-in-out infinite 2s;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #8bb8ff;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease 0.1s both;
}

.hero-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(201, 168, 76, 0.5);
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold), transparent, var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
  z-index: 1;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), #fff6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-company {
  font-size: 0.95rem;
  color: var(--gold);
  margin-top: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.35s both;
}

.company-icon { margin-right: 4px; }

.hero-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 15px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.5);
}

.btn-primary.large {
  padding: 18px 48px;
  font-size: 1rem;
}

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.hero-social {
  animation: fadeInUp 0.8s ease 0.55s both;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link svg {
  width: 20px; height: 20px;
}

.social-link:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,119,181,0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS SHARED
============================================ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: linear-gradient(180deg, #080c24 0%, #0a0f2e 50%, #080c24 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin: 16px auto 0;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text {
  color: rgba(255,255,255,0.75);
}

.about-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: all var(--transition);
  cursor: default;
}

.value-chip:hover {
  background: rgba(201, 168, 76, 0.15);
  transform: translateY(-2px);
}

.about-card-wrapper {
  perspective: 1000px;
}

.about-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.about-card:hover {
  transform: rotateY(-3deg) rotateX(2deg);
}

.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.card-location {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.card-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 20px;
}

.card-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.card-info-item:last-child { margin-bottom: 0; }

.card-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-info-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 3px;
}

.card-info-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* ============================================
   TIMELINE / EXPERIENCE
============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  display: flex;
  gap: 36px;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.timeline-dot.current {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.timeline-dot.current::before {
  background: var(--gold);
}

.timeline-dot.founder {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.4);
}

.timeline-dot.founder::before {
  background: var(--accent);
}

.timeline-content {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all var(--transition);
}

.timeline-content:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-gold);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}

.current-badge {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.founder-badge {
  background: rgba(79, 142, 247, 0.12);
  color: #8bb8ff;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-period {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 4px 12px;
  font-weight: 500;
}

/* ============================================
   EXPERTISE GRID
============================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.expertise-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.expertise-card:hover::before {
  opacity: 1;
}

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.expertise-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.expertise-fill {
  height: 100%;
  width: var(--fill);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  animation: fillBar 1.5s ease 0.5s both;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--fill); }
}

/* ============================================
   EDUCATION
============================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.edu-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 36px;
  width: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
}

/* Carte MBA mise en avant */
.edu-card-featured {
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(255,255,255,0.025) 100%);
  border-color: rgba(201,168,76,0.3);
}

.edu-card-featured::before {
  background: linear-gradient(to bottom, var(--gold-light), var(--gold));
  width: 5px;
}

.edu-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px) translateX(4px);
  box-shadow: var(--shadow-gold);
}

.edu-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.8rem;
  border: 1px solid rgba(201,168,76,0.2);
}

.edu-logo-tbs {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(240,196,86,0.1));
}
.edu-logo-encg {
  background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(79,142,247,0.05));
  border-color: rgba(79,142,247,0.25);
}
.edu-logo-mohamedv {
  background: linear-gradient(135deg, rgba(124,92,191,0.2), rgba(124,92,191,0.05));
  border-color: rgba(124,92,191,0.25);
}

/* Badges colorés par niveau */
.edu-badge {
  display: inline-block;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.edu-badge-gold {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.3);
}

.edu-badge-blue {
  background: rgba(79,142,247,0.12);
  color: #8bb8ff;
  border: 1px solid rgba(79,142,247,0.25);
}

.edu-badge-accent {
  background: rgba(124,92,191,0.12);
  color: #b99dff;
  border: 1px solid rgba(124,92,191,0.25);
}

.edu-school {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.edu-subtitle {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}

.edu-period {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.edu-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ============================================
   CERTIFICATIONS
============================================ */
.certifications-section {
  margin-top: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.certif-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.certif-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.certif-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  transition: all var(--transition);
  min-width: 280px;
}

.certif-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201,168,76,0.1);
}

.certif-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.certif-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.certif-org {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 3px;
}

.certif-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Responsive éducation */
@media (max-width: 600px) {
  .edu-card {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }
  .edu-logo {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
}



/* ============================================
   CONTACT
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.contact-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}

.linkedin-icon {
  background: rgba(0, 119, 181, 0.15);
  border: 1px solid rgba(0, 119, 181, 0.3);
  color: #0077b5;
}

.expert-icon {
  background: rgba(124, 92, 191, 0.15);
  border: 1px solid rgba(124, 92, 191, 0.3);
}

.hr-icon {
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
}

.port-icon {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.3px;
}

.contact-link:hover {
  color: var(--gold-light);
}

.contact-cta {
  text-align: center;
}

.contact-cta p {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #060919;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

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

/* ============================================
   ANIMATIONS
============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

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

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

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 15, 46, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.5rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; }
  .timeline::before { left: 14px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .hero-name { font-size: 2.5rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 48px; height: 1px; }
}

/* ============================================
   ABOUT GALLERY — 2×2 grille uniforme
============================================ */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(201, 168, 76, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,46,0.9) 0%, rgba(10,15,46,0.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(10,15,46,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  padding: 6px 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .about-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery-item {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   PASSIONS SECTION — Layout asymétrique
============================================ */
.passions {
  background: linear-gradient(180deg, #080c24 0%, var(--navy) 50%, #080c24 100%);
}

.passions-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  align-items: stretch;
}

/* Grande photo principale — Hicham à cheval */
.passion-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.passion-main:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(201, 168, 76, 0.22);
}

.passion-main .passion-img-wrapper {
  position: relative;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}

/* Colonne droite : 2 photos empilées */
.passion-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.passion-secondary {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  flex: 1;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.passion-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.2);
}

.passion-secondary .passion-img-wrapper {
  position: relative;
  height: 100%;
  min-height: 228px;
  overflow: hidden;
}

/* Wrapper générique et image */
.passion-img-wrapper {
  position: relative;
  overflow: hidden;
}

.passion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.passion-main:hover .passion-img,
.passion-secondary:hover .passion-img {
  transform: scale(1.07);
}

.passion-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(10, 15, 46, 0.92) 100%
  );
  pointer-events: none;
}

/* Label sur l'image (en bas) */
.passion-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10,15,46,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  transition: opacity var(--transition);
}

.passion-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.passion-label-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.passion-label-sub {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .passions-layout {
    grid-template-columns: 1fr 1fr;
  }
  .passion-main .passion-img-wrapper {
    min-height: 360px;
  }
  .passion-secondary .passion-img-wrapper {
    min-height: 170px;
  }
}

@media (max-width: 600px) {
  .passions-layout {
    grid-template-columns: 1fr;
  }
  .passion-side {
    flex-direction: row;
  }
  .passion-secondary .passion-img-wrapper {
    min-height: 200px;
  }
  .passion-main .passion-img-wrapper {
    min-height: 300px;
  }
}

