:root {
  --sama-navy: #0d1b3e;
  --sama-night: #050d1f;
  --sama-navy-hover: #1a3060;
  --sama-gold: #c8a84b;
  --sama-gold-hover: #d4b560;
  --sama-bg-light: #f5f5fa;
  --sama-border-light: #e8e8f0;
  --sama-text: #0d1b3e;
  --sama-text-muted: rgba(13,27,62,0.55);
  --sama-text-white: rgba(255,255,255,0.9);
  --sama-text-white-60: rgba(255,255,255,0.6);
  --sama-text-white-50: rgba(255,255,255,0.5);
  --sama-text-white-40: rgba(255,255,255,0.4);
  --sama-radius: 2px;
  --sama-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sama-container: 1280px;
}

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

.sama-navbar, .sama-hero, .subpage-hero, .sama-section, .sama-section.sama-section-dark,
.cta-band, .ticker-band, .footer-band, .page-cta, .kpi-band,
.sama-footer, .sama-mobile-menu, .sama-pages-index,
.module-section, .pourqui-card.public, .manifesto-section, .apropos-section,
.sama-search-wrap { font-family: var(--sama-font); }

.sama-hero, .subpage-hero, .sama-section.sama-section-dark,
.cta-band, .ticker-band, .sama-footer, .sama-mobile-menu,
.manifesto-section, .apropos-section { background: var(--sama-night); }

.sama-section.sama-section-light { background: var(--sama-bg-light); }

.sama-hero, .subpage-hero, .cta-band, .kpi-band,
.sama-pages-index .sama-hero, .module-section .module-hero { color: var(--sama-text-white); }

.sama-navbar a, .sama-footer a, .sama-mobile-menu a,
.sama-hero a, .subpage-hero a, .cta-band a, .page-cta a,
.sama-section a, .kpi-band a, .ticker-band a,
.sama-pages-index a, .module-section a { color: var(--sama-gold); text-decoration: none; }
.sama-navbar a:hover, .sama-footer a:hover, .sama-mobile-menu a:hover,
.sama-hero a:hover, .subpage-hero a:hover, .cta-band a:hover, .page-cta a:hover,
.sama-section a:hover, .kpi-band a:hover, .ticker-band a:hover,
.sama-pages-index a:hover, .module-section a:hover { color: var(--sama-gold-hover); }

a.btn-sama-gold, .btn-sama-gold, .sama-section a.btn-sama-gold, .sama-container a.btn-sama-gold {
  color: var(--sama-navy) !important;
  background: var(--sama-gold) !important;
}
a.btn-sama-gold:hover, .btn-sama-gold:hover, .sama-section a.btn-sama-gold:hover, .sama-container a.btn-sama-gold:hover {
  color: var(--sama-navy) !important;
  background: var(--sama-gold-hover) !important;
}
a.btn-sama-navy, .btn-sama-navy, .sama-section a.btn-sama-navy, .sama-container a.btn-sama-navy {
  color: #ffffff !important;
  background: var(--sama-navy) !important;
  border: 1px solid rgba(200,168,75,0.35) !important;
}
a.btn-sama-navy:hover, .btn-sama-navy:hover, .sama-section a.btn-sama-navy:hover, .sama-container a.btn-sama-navy:hover {
  color: #ffffff !important;
  background: var(--sama-navy-hover) !important;
  border-color: var(--sama-gold) !important;
}

.sama-hero, .subpage-hero { padding-top: 0 !important; }

.sama-hero, .subpage-hero, .sama-section, .cta-band, .page-cta, .kpi-band, .ticker-band,
.sama-section.sama-section-dark, .sama-section.sama-section-light {
  margin-top: 0 !important; border-top: none !important;
}

.sama-container { max-width: var(--sama-container); margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.sama-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(5,13,31,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 56px; overflow: visible;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Removed ::before hover sensor — now handled by JS mousemove to avoid click interception */
.sama-navbar::before {
  display: none;
}

/* JS adds/removes .navbar-visible class to show/hide the navbar */
.sama-navbar.navbar-visible {
  transform: translateY(0);
}

/* Static override to disable hover-to-reveal on auth/login pages */
.sama-navbar.navbar-static {
  position: static !important;
  transform: none !important;
  transition: none !important;
}
.sama-navbar.navbar-static::before {
  display: none !important;
}

body { overflow-x: hidden; }

.navbar-inner {
  max-width: var(--sama-container); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: 1rem;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: var(--sama-gold); border-radius: var(--sama-radius); display: flex; align-items: center; justify-content: center; color: var(--sama-navy); font-weight: 800; font-size: 1rem; }
.logo-title { font-weight: 800; font-size: 0.9rem; color: white; line-height: 1; letter-spacing: 0.05em; }
.logo-sub { font-size: 0.55rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; }
.navbar-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-link {
  font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.65);
  padding: 6px 10px; border-radius: var(--sama-radius); text-decoration: none;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--sama-gold); }
.navbar-cta { flex-shrink: 0; font-size: 0.8rem; padding: 8px 18px; }
.navbar-contact { font-size: 0.8rem; padding: 6px 10px; flex-shrink: 0; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nav-dropdown-trigger .dropdown-arrow { font-size: 0.6rem; opacity: 0.5; transition: transform 0.2s; }
.nav-dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: 100%; left: 0;
  background: #0d1b3e; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--sama-radius); min-width: 220px; padding: 6px;
  opacity: 0; visibility: hidden; max-height: 0; overflow: hidden;
  transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.15s, transform 0.15s, max-height 0s 0.15s, visibility 0s 0.15s; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-dropdown.is-open .dropdown-panel {
  opacity: 1; visibility: visible; max-height: 80vh; overflow-y: auto;
  transform: translateY(0); pointer-events: auto; transition-delay: 0s;
}
.dropdown-panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.8rem;
  color: rgba(255,255,255,0.65); border-radius: var(--sama-radius);
  transition: background 0.15s, color 0.15s; text-decoration: none;
}
.dropdown-panel a i { width: 16px; text-align: center; font-size: 0.75rem; color: var(--sama-gold); opacity: 0.7; }
.dropdown-panel a:hover { background: rgba(200,168,75,0.1); color: var(--sama-gold); }
.dropdown-panel a:hover i { opacity: 1; }

.sama-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; background: none; border: none; }
.sama-hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.15s; }
.sama-mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(5,13,31,0.97); backdrop-filter: blur(20px); z-index: 1050;
  padding: 2rem 1.5rem; flex-direction: column; gap: 0.5rem; overflow-y: auto;
}
.sama-mobile-menu.open { display: flex; }
.sama-mobile-menu a {
  display: block; padding: 0.85rem 1rem; color: rgba(255,255,255,0.6);
  font-size: 1rem; font-weight: 500; border-radius: var(--sama-radius);
  transition: all 0.15s; text-decoration: none !important;
}
.sama-mobile-menu a:hover, .sama-mobile-menu a.active { color: var(--sama-gold); background: rgba(200,168,75,0.1); }

@media (max-width: 1100px) { .navbar-inner { gap: 0.5rem; } .navbar-inner .navbar-cta { display: none !important; } .navbar-inner .navbar-contact { display: none !important; } .nav-link { padding: 6px 6px; font-size: 0.75rem; } }
@media (max-width: 768px) { .navbar-inner .navbar-links, .navbar-inner .navbar-cta, .navbar-inner .navbar-contact { display: none !important; } .sama-hamburger { display: flex; } }

/* ===== BUTTONS ===== */
.btn-sama-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sama-gold); color: var(--sama-navy); font-weight: 700;
  border-radius: var(--sama-radius); padding: 14px 32px; font-size: 0.9rem;
  letter-spacing: 0.02em; border: none; cursor: pointer; transition: background 0.2s;
  text-decoration: none !important; font-family: var(--sama-font);
}
.btn-sama-gold:hover { background: var(--sama-gold-hover); color: var(--sama-navy); }
.btn-sama-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--sama-radius); padding: 14px 32px; font-weight: 500;
  font-size: 0.9rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  text-decoration: none !important; font-family: var(--sama-font);
}
.btn-sama-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); color: white; }
.btn-sama-navy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sama-navy) !important; color: #ffffff !important; border-radius: var(--sama-radius);
  padding: 14px 32px; font-weight: 600; font-size: 0.9rem; border: none;
  cursor: pointer; transition: background 0.2s; text-decoration: none !important; font-family: var(--sama-font);
}
.btn-sama-navy:hover { background: var(--sama-navy-hover) !important; color: #ffffff !important; }
.btn-sama-gold-sm { padding: 10px 24px; font-size: 0.82rem; }
.btn-sama-navy-sm { padding: 10px 24px; font-size: 0.82rem; }

/* ===== BADGE ===== */
.sama-badge {
  display: inline-block; background: rgba(13,27,62,0.08); color: var(--sama-navy);
  border: none; border-radius: var(--sama-radius); font-size: 0.65rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 16px; margin-bottom: 1rem;
}
.sama-badge-gold {
  background: rgba(200,168,75,0.15); color: var(--sama-gold);
  border: 1px solid rgba(200,168,75,0.30);
}

/* ===== HERO ===== */
.sama-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden; background: var(--sama-night);
}
.sama-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; pointer-events: none; }
.sama-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,13,31,0.95) 0%, rgba(13,27,62,0.80) 50%, rgba(5,13,31,0.90) 100%); pointer-events: none; }
.sama-hero-overlay2 { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(200,168,75,0.08) 0%, transparent 60%); pointer-events: none; }
.sama-hero-geo1, .sama-hero-geo2 { position: absolute; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,168,75,0.10), transparent); pointer-events: none; }
.sama-hero-geo1 { top: 25%; }
.sama-hero-geo2 { bottom: 30%; }
.sama-hero-geo3 { position: absolute; top: 15%; bottom: 15%; width: 1px; left: 50%; background: linear-gradient(180deg, transparent, rgba(200,168,75,0.10), transparent); pointer-events: none; }
.sama-hero-content { position: relative; z-index: 2; max-width: 768px; padding: 7rem 1.5rem 4rem; }
.hero-badge {
  display: inline-block; background: rgba(200,168,75,0.15); color: var(--sama-gold);
  border: 1px solid rgba(200,168,75,0.30); border-radius: var(--sama-radius);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 16px; margin-bottom: 1.5rem;
}
.hero-h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; margin: 0 0 1.25rem; letter-spacing: -0.02em; color: white; }
.hero-h1 .hero-gold { color: var(--sama-gold); }
.hero-h1 .hero-white-dim { color: rgba(255,255,255,0.70); }
.hero-p { font-size: clamp(0.95rem, 1.5vw, 1.125rem); color: var(--sama-text-white-60); max-width: 640px; margin: 0 auto 1.75rem; line-height: 1.7; }
.hero-tags { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-tag { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--sama-text-white-50); }
.hero-tag i { color: var(--sama-gold); font-size: 0.7rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); }
.hero-stat { padding: 1.25rem 1rem; text-align: center; background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); }
.hero-stat-num { font-size: 1.75rem; font-weight: 900; color: var(--sama-gold); line-height: 1.1; }
.hero-stat-unit { font-size: 1rem; font-weight: 700; }
.hero-stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.50); margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

.hero-badge, .hero-h1, .hero-p, .hero-tags, .hero-buttons, .hero-stats {
  opacity: 0; transform: translateY(20px); animation: hero-fadein 0.7s ease forwards;
}
@keyframes hero-fadein { to { opacity: 1; transform: translateY(0); } }
.hero-badge { animation-duration: 0.6s; animation-delay: 0.0s; }
.hero-h1 { animation-duration: 0.7s; animation-delay: 0.10s; }
.hero-p { animation-duration: 0.7s; animation-delay: 0.20s; }
.hero-tags { animation-duration: 0.7s; animation-delay: 0.30s; }
.hero-buttons { animation-duration: 0.7s; animation-delay: 0.40s; }
.hero-stats { animation-duration: 0.8s; animation-delay: 0.60s; }
.subpage-hero .hero-badge { animation-duration: 0.6s; animation-delay: 0.0s; }
.subpage-hero .hero-h1 { animation-duration: 0.7s; animation-delay: 0.10s; }
.subpage-hero .hero-p { animation-duration: 0.7s; animation-delay: 0.20s; }
.subpage-hero .hero-buttons { animation-duration: 0.7s; animation-delay: 0.30s; }

/* ===== TICKER ===== */
.ticker-band {
  background: #0d1b3e; padding: 12px 0; overflow: hidden;
  border-top: 1px solid rgba(200,168,75,0.2);
  border-bottom: 1px solid rgba(200,168,75,0.2);
}
.ticker-track {
  display: inline-flex; gap: 3rem; animation: ticker-scroll 30s linear infinite; white-space: nowrap;
}
.ticker-band:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; gap: 3rem; }
.ticker-sep { color: var(--sama-gold); font-size: 0.6rem; }

/* ===== SECTIONS ===== */
.sama-section { padding: 6rem 0; }
.sama-section-dark { background: var(--sama-navy); }
.sama-section-dark .sama-badge { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); }
.sama-section-dark .sama-badge-gold { background: rgba(200,168,75,0.22); border: 1px solid rgba(200,168,75,0.45); color: #d4b560; }
.sama-section-dark .section-p { color: rgba(255,255,255,0.70); }
.sama-section-light { background: var(--sama-bg-light); color: var(--sama-text); }
.sama-section-light .section-h2 { color: var(--sama-navy); }
.sama-section-light .section-p { color: var(--sama-text-muted); }
.section-h2 { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.02em; color: white; }
.section-h2 .sama-gold { color: var(--sama-gold); }
.section-p { font-size: 1.125rem; color: var(--sama-text-white-60); max-width: 560px; margin: 0 auto; line-height: 1.65; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* ===== VALUE PROPS ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.value-card { text-align: center; }
.value-icon-wrap { width: 56px; height: 56px; background: rgba(13,27,62,0.06); border-radius: var(--sama-radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.sama-section-light .value-icon-wrap { background: rgba(13,27,62,0.06); }
.sama-section-dark .value-icon-wrap { background: rgba(255,255,255,0.06); }
.value-card h3 { font-size: 0.9rem; font-weight: 700; margin: 0 0 0.5rem; }
.sama-section-light .value-card h3 { color: var(--sama-navy); }
.sama-section-dark .value-card h3 { color: white; }
.value-card p { font-size: 0.8rem; color: var(--sama-text-muted); margin: 0; line-height: 1.55; }

/* ===== TABS SECTEURS ===== */
.tabs-secteurs { margin-top: 2rem; overflow: hidden; }
.tabs-header { display: flex; gap: 0.25rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px; font-size: 0.8rem; font-weight: 500; cursor: pointer;
  border: none; background: transparent; color: var(--sama-text-muted);
  border-radius: 4px; transition: all 0.15s; font-family: var(--sama-font);
}
.tab-btn:hover { background: rgba(13,27,62,0.06); }
.tab-btn.active { background: var(--sama-navy); color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

/* Interlocuteurs grid */
.interlocuteurs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.tab-icon-wrap { width: 48px; height: 48px; background: var(--sama-navy); border-radius: var(--sama-radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin-bottom: 1rem; }
.tab-title { font-size: 1.5rem; font-weight: 700; color: var(--sama-navy); margin: 0 0 0.75rem; }
.tab-desc { font-size: 0.9rem; color: var(--sama-text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.tab-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.tab-list li { padding: 6px 0; font-size: 0.85rem; color: var(--sama-text-muted); }
.tab-list li::before { content: '\2014'; color: var(--sama-gold); margin-right: 0.75rem; }
.tab-image-wrap { position: relative; }
.tab-image-wrap img { width: 100%; border-radius: var(--sama-radius); aspect-ratio: 4/3; object-fit: cover; display: block; }
.tab-module-badge { margin-top: 0.5rem; background: var(--sama-gold); color: var(--sama-navy); font-weight: 700; border-radius: var(--sama-radius); padding: 6px 12px; font-size: 0.7rem; display: inline-block; font-family: var(--sama-font); letter-spacing: 0.06em; }

@media (max-width: 1024px) { .tab-panel-inner { grid-template-columns: 1fr; } }

/* ===== TIMELINE ===== */
.timeline { display: flex; gap: 3rem; margin-top: 3rem; position: relative; }
.timeline::before { content: ''; position: absolute; top: 24px; left: 60px; right: 60px; height: 2px; border-top: 2px dashed rgba(200,168,75,0.35); }
.timeline-step { flex: 1; position: relative; }
.timeline-num { font-size: 4rem; font-weight: 800; color: rgba(200,168,75,0.35); line-height: 1; margin-bottom: 0.5rem; }
.timeline-title { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.5; }

@media (max-width: 1024px) { .timeline { flex-direction: column; gap: 2rem; } .timeline::before { display: none; } }

/* ===== 8 SECTORS GRID ===== */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.sector-grid .sama-card { height: 100%; }
.sama-card { background: white; border: 1px solid var(--sama-border-light); border-radius: var(--sama-radius); padding: 1.5rem; transition: box-shadow 0.2s, border-color 0.2s; cursor: default; display: flex; flex-direction: column; gap: 0.5rem; }
.sama-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); border-color: rgba(200,168,75,0.40); }
.sama-card-link { color: inherit; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sama-card-link:hover { color: inherit; }
.card-icon { width: 40px; height: 40px; border-radius: var(--sama-radius); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; font-size: 1rem; color: white; }
.sama-card:hover .card-icon { transform: scale(1.10); }
.card-title { font-size: 0.875rem; font-weight: 700; color: var(--sama-navy); margin: 0; }
.card-desc { font-size: 0.75rem; color: rgba(13,27,62,0.5); line-height: 1.45; margin: 0; flex: 1; }
.card-badge { display: inline-block; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sama-gold); border: 1px solid rgba(200,168,75,0.30); border-radius: var(--sama-radius); padding: 2px 8px; align-self: flex-start; }

@media (max-width: 1024px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } .interlocuteurs-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .sector-grid { grid-template-columns: 1fr; } .interlocuteurs-grid { grid-template-columns: 1fr; } .value-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; } }

/* ===== POUR QUI ===== */
.pourqui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.pourqui-card { padding: 2.5rem; border-radius: var(--sama-radius); }
.pourqui-card.public { background: var(--sama-navy); color: white; }
.pourqui-card.prive { background: var(--sama-bg-light); color: var(--sama-text); }
.pourqui-card .sama-badge { margin-bottom: 1rem; }
.pourqui-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.pourqui-card.public h3 { color: white; }
.pourqui-card.prive h3 { color: var(--sama-navy); }
.pourqui-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.pourqui-card.public p { color: var(--sama-text-white-60); }
.pourqui-card.prive p { color: var(--sama-text-muted); }
.pourqui-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.pourqui-list li { padding: 6px 0; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.pourqui-card.public .pourqui-list li { color: var(--sama-text-white-60); }
.pourqui-card.prive .pourqui-list li { color: var(--sama-text-muted); }
.pourqui-list li i { color: var(--sama-gold); font-size: 0.75rem; }

@media (max-width: 768px) { .pourqui-grid { grid-template-columns: 1fr; } }

/* ===== CTA BAND ===== */
.cta-band { padding: 6rem 0; text-align: center; position: relative; background: var(--sama-navy); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; background: radial-gradient(ellipse at 50% 0%, rgba(200,168,75,0.12) 0%, transparent 70%); pointer-events: none; }
.cta-band-icon { font-size: 3rem; color: rgba(200,168,75,0.6); margin-bottom: 1rem; display: block; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: white; margin: 0 0 0.75rem; }
.cta-band p { font-size: 1rem; color: var(--sama-text-white-60); max-width: 560px; margin: 0 auto 2rem; line-height: 1.6; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-band .cta-stat { font-size: 0.8rem; color: var(--sama-text-white-40); }

/* ===== KPI BAND ===== */
.kpi-band { padding: 4rem 0; display: flex; justify-content: center; }
.kpi-band.kpi-gold { background: var(--sama-gold); color: var(--sama-navy); }
.kpi-band.kpi-teal { background: #0a4f6e; color: white; }
.kpi-band.kpi-green { background: #2d4a1e; color: white; }
.kpi-band.kpi-brown { background: #5c3010; color: white; }
.kpi-grid { display: flex; gap: 0; width: 100%; max-width: var(--sama-container); margin: 0 auto; padding: 0 1.5rem; }
.kpi-item { flex: 1; text-align: center; padding: 1rem 1.5rem; }
.kpi-item + .kpi-item { border-left: 1px solid rgba(255,255,255,0.15); }
.kpi-band.kpi-gold .kpi-item + .kpi-item { border-left-color: rgba(13,27,62,0.15); }
.kpi-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.kpi-label { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.kpi-desc { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 768px) { .kpi-grid { flex-direction: column; gap: 1.5rem; } .kpi-item + .kpi-item { border-left: none; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); } .kpi-band.kpi-gold .kpi-item + .kpi-item { border-top-color: rgba(13,27,62,0.15); } }

/* ===== SUBPAGE HERO ===== */
.subpage-hero { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background: var(--sama-night); padding-top: 56px; }
.subpage-hero .sama-hero-overlay { background: linear-gradient(180deg, rgba(5,13,31,0.92) 0%, rgba(13,27,62,0.75) 50%, rgba(5,13,31,0.88) 100%); }
.subpage-hero .sama-hero-content { max-width: 720px; }
.subpage-hero .hero-h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.subpage-hero .hero-p { max-width: 600px; }

/* ===== SPLIT HERO (text left + image right) ===== */
.subpage-hero-split { display: flex; align-items: center; justify-content: space-between; gap: 3rem; text-align: left; padding: 7rem 6% 4rem; }
.subpage-hero-split .sama-hero-content { flex: 1 1 50%; max-width: 560px; padding: 0; }
.subpage-hero-split .sama-hero-content .hero-p { margin-left: 0; }
.subpage-hero-split .sama-hero-content .hero-tags { justify-content: flex-start; }
.subpage-hero-split .sama-hero-content .hero-buttons { justify-content: flex-start; }
.subpage-hero-split .hero-image { flex: 0 1 420px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.subpage-hero-split .hero-image img { width: 100%; max-width: 400px; height: auto; border-radius: 16px; filter: drop-shadow(0 8px 40px rgba(200,168,75,0.15)); }

/* Homepage split hero */
.sama-hero.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 3rem; text-align: left; padding: 7rem 6% 4rem; min-height: 100vh; }
.sama-hero.hero-split .sama-hero-content { flex: 1 1 50%; max-width: 600px; padding: 0; }
.sama-hero.hero-split .sama-hero-content .hero-p { margin-left: 0; }
.sama-hero.hero-split .sama-hero-content .hero-tags { justify-content: flex-start; }
.sama-hero.hero-split .sama-hero-content .hero-buttons { justify-content: flex-start; }
.sama-hero.hero-split .hero-image { flex: 0 1 450px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.sama-hero.hero-split .hero-image img { width: 100%; max-width: 420px; height: auto; border-radius: 16px; filter: drop-shadow(0 8px 40px rgba(200,168,75,0.2)); }

@media (max-width: 900px) {
  .subpage-hero-split, .sama-hero.hero-split { flex-direction: column; text-align: center; padding: 7rem 1.5rem 4rem; }
  .subpage-hero-split .sama-hero-content, .sama-hero.hero-split .sama-hero-content { max-width: 100%; }
  .subpage-hero-split .sama-hero-content .hero-p, .sama-hero.hero-split .sama-hero-content .hero-p { margin-left: auto; }
  .subpage-hero-split .sama-hero-content .hero-tags, .sama-hero.hero-split .sama-hero-content .hero-tags { justify-content: center; }
  .subpage-hero-split .sama-hero-content .hero-buttons, .sama-hero.hero-split .sama-hero-content .hero-buttons { justify-content: center; }
  .subpage-hero-split .hero-image, .sama-hero.hero-split .hero-image { flex: none; width: 80%; max-width: 320px; }
}

/* ===== MODULES GRID ===== */
.modules-grid { display: grid; gap: 1rem; margin-top: 3rem; }
.modules-grid-2 { grid-template-columns: repeat(2, 1fr); }
.modules-grid-3 { grid-template-columns: repeat(3, 1fr); }
.modules-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .modules-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .modules-grid-2, .modules-grid-3, .modules-grid-4 { grid-template-columns: 1fr; } }

/* ===== CTA DE PAGE ===== */
.page-cta { padding: 4rem 0; text-align: center; position: relative; background: var(--sama-navy); margin-top: 2rem; }
.page-cta-icon { font-size: 2.5rem; color: var(--sama-gold); margin-bottom: 1rem; display: block; }
.page-cta h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: white; margin: 0 0 0.75rem; }
.page-cta p { font-size: 0.95rem; color: var(--sama-text-white-60); max-width: 520px; margin: 0 auto 1.5rem; line-height: 1.6; }

/* ===== PILIERS (Vision) ===== */
.pilier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pilier-card { background: white; border: 1px solid var(--sama-border-light); border-top: 2px solid var(--sama-gold); border-radius: var(--sama-radius); padding: 2rem; }
.pilier-card-link { color: inherit; cursor: pointer; text-decoration: none; display: block; }
.pilier-card-link:hover { color: inherit; }
.pilier-icon-wrap { width: 48px; height: 48px; background: rgba(13,27,62,0.06); border-radius: var(--sama-radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.pilier-card h3 { font-size: 1rem; font-weight: 700; color: var(--sama-navy); margin: 0 0 0.75rem; }
.pilier-card p { font-size: 0.82rem; color: var(--sama-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.pilier-list { list-style: none; margin: 0; padding: 0; }
.pilier-list li { padding: 4px 0; font-size: 0.8rem; color: var(--sama-text-muted); display: flex; align-items: center; gap: 8px; }
.pilier-list li::before { content: ''; width: 4px; height: 4px; background: var(--sama-gold); border-radius: 50%; flex-shrink: 0; }
@media (max-width: 1024px) { .pilier-grid { grid-template-columns: 1fr; } }

/* ===== MANIFESTE ===== */
.manifeste-icon { font-size: 2.5rem; color: var(--sama-gold); margin-bottom: 1rem; display: block; }
.manifeste h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: white; margin: 0 auto 1rem; max-width: 600px; }
.manifeste p { font-size: 1rem; color: var(--sama-text-white-60); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }
.manifeste-stats { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.manifeste-stat { display: flex; align-items: center; gap: 8px; padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--sama-radius); font-size: 0.8rem; color: var(--sama-text-white-60); }
.manifeste-stat i { color: var(--sama-gold); font-size: 1rem; }

/* ===== A PROPOS ===== */
.apropos-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; margin-top: 3rem; align-items: start; }
.apropos-text p { font-size: 0.9rem; color: var(--sama-text-muted); line-height: 1.65; margin-bottom: 1rem; }
.apropos-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.apropos-subcard { display: flex; align-items: center; gap: 10px; padding: 0.75rem; background: rgba(13,27,62,0.04); border-radius: var(--sama-radius); }
.apropos-subcard i { font-size: 1rem; color: var(--sama-gold); width: 24px; text-align: center; }
.apropos-subcard div { font-size: 0.75rem; }
.apropos-subcard strong { display: block; font-size: 0.78rem; color: var(--sama-navy); }
.apropos-subcard small { color: var(--sama-text-muted); font-size: 0.7rem; }
.apropos-contact { background: var(--sama-navy); border-radius: var(--sama-radius); padding: 2rem; color: white; }
.apropos-contact h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: white; }
.apropos-contact p { font-size: 0.85rem; color: var(--sama-text-white-60); line-height: 1.6; margin-bottom: 1.5rem; }
.apropos-contact .contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--sama-text-white-50); margin-bottom: 0.75rem; }
.apropos-contact .contact-item i { color: var(--sama-gold); width: 18px; text-align: center; }
.apropos-contact .contact-item a { color: var(--sama-text-white-50); }
.apropos-contact .contact-item a:hover { color: var(--sama-gold); }
.apropos-contact .btn-sama-gold { width: 100%; justify-content: center; }

@media (max-width: 1024px) { .apropos-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .apropos-subgrid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.sama-footer { background: var(--sama-night); border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { max-width: 220px; }
.footer-brand .navbar-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.8rem; color: var(--sama-text-white-40); line-height: 1.7; }
.footer-col h4 { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sama-gold); margin: 0 0 1rem; }
.footer-link { font-size: 0.8rem; color: var(--sama-text-white-40); text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer-link:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--sama-text-white-40); }
.footer-bottom span i { color: var(--sama-gold); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* ===== SCROLL ANIMATIONS ===== */
.sama-animate { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
.sama-card-animate { opacity: 1; transform: scale(1); transition: opacity 0.5s ease, transform 0.5s ease; }
.sama-animate:nth-child(1), .sama-card-animate:nth-child(1) { transition-delay: 0.0s; }
.sama-animate:nth-child(2), .sama-card-animate:nth-child(2) { transition-delay: 0.06s; }
.sama-animate:nth-child(3), .sama-card-animate:nth-child(3) { transition-delay: 0.12s; }
.sama-animate:nth-child(4), .sama-card-animate:nth-child(4) { transition-delay: 0.18s; }
.sama-animate:nth-child(5), .sama-card-animate:nth-child(5) { transition-delay: 0.24s; }
.sama-animate:nth-child(6), .sama-card-animate:nth-child(6) { transition-delay: 0.30s; }
.sama-animate:nth-child(7), .sama-card-animate:nth-child(7) { transition-delay: 0.36s; }
.sama-animate:nth-child(8), .sama-card-animate:nth-child(8) { transition-delay: 0.42s; }

/* ===== RESPONSIVE GLOBALS ===== */
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat + .hero-stat { border-left: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-tags { gap: 0.5rem; flex-direction: column; align-items: center; }
}

/* ===== CONTACT PAGE ===== */
.sama-contact-section { padding: 4rem 0; }
.sama-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; align-items: start; }
.sama-contact-info { background: var(--sama-navy); border-radius: var(--sama-radius); padding: 2.5rem; color: white; }
.sama-contact-info h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: white; }
.sama-contact-info p { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 2rem; }
.sama-contact-info .contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; line-height: 1.5; padding: 0; background: transparent !important; border: none !important; border-radius: 0; }
.sama-contact-info .contact-item i { color: var(--sama-gold); width: 20px; text-align: center; font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.sama-contact-info .contact-item a { color: rgba(255,255,255,0.9); text-decoration: none; }
.sama-contact-info .contact-item a:hover { color: var(--sama-gold); }
.sama-contact-form { background: white; border: 1px solid var(--sama-border-light); border-radius: var(--sama-radius); padding: 2.5rem; }
.sama-contact-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--sama-navy); margin-bottom: 0.35rem; font-family: var(--sama-font); }
.sama-contact-form input,
.sama-contact-form textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--sama-border-light); border-radius: var(--sama-radius); font-size: 0.9rem; font-family: var(--sama-font); color: var(--sama-navy); background: white; outline: none; transition: border-color 0.2s; }
.sama-contact-form input:focus,
.sama-contact-form textarea:focus { border-color: var(--sama-gold); }
.sama-contact-form .form-group { margin-bottom: 1.25rem; }

@media (max-width: 768px) { .sama-contact-grid { grid-template-columns: 1fr; } }


/* Keep generic module badges from leaking into the SAMA card system. */
.sama-pages-index .sama-card .card-badge {
  position: static;
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  color: var(--sama-navy);
  background: rgba(200,168,75,0.14);
  border: 1px solid rgba(200,168,75,0.5);
  border-radius: var(--sama-radius);
  padding: 4px 9px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
}
.sama-pages-index .sama-card .card-icon {
  position: static;
  flex: 0 0 40px;
}

/* Institution portfolio cards: compact, consistent with the SAMA design system. */
.sama-institution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sama-institution-card {
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sama-institution-card:hover,
.sama-institution-card:focus-visible {
  border-color: #c8a84b !important;
  box-shadow: 0 8px 22px rgba(13, 27, 62, .12);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .sama-institution-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
}
