@charset "UTF-8";
/* ============================================
   ASMIN - Association Marocaine des Ingenieurs Navals
   Complete Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0a1628;
  --navy-light: #12233d;
  --navy-mid: #1a3050;
  --navy-dark: #060d18;
  --moroccan-green: #006233;
  --moroccan-green-light: #007a40;
  --moroccan-green-dark: #004d28;
  --accent-gold: #c8a951;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --light-gray: #eef1f5;
  --mid-gray: #b0b8c4;
  --dark-gray: #5a6474;
  --text-dark: #1a1e2c;
  --text-body: #3d4555;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.14);
  --shadow-xl: 0 16px 60px rgba(10, 22, 40, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --max-width: 1200px;
  --header-height: 210px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--moroccan-green);
}

/* ============================================
   HEADER / NAVIGATION - 3-Tier Institutional
   ============================================ */

/* --- Top Bar --- */
.top-bar {
  width: 100%;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  z-index: 1100;
  position: relative;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.top-bar-item a:hover {
  color: var(--white);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher a {
  padding: 2px 8px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* --- Main Header --- */
.header {
  width: 100%;
  background: #0B2E59;
  z-index: 1050;
}

.header-grid {
  display: grid;
  grid-template-columns: 28% 52% 20%;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

/* LEFT: Logo + Name */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 90px;
  width: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  flex-shrink: 0;
}

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

.logo-text .logo-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-text .logo-highlight {
  background: linear-gradient(135deg, #00d4aa, #00b4d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .logo-arabic {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  direction: rtl;
  margin-top: 4px;
}

/* CENTER: Banner */
.header-banner {
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../pic/logo_4.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
}

.header-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 46, 89, 0.92) 0%, rgba(0, 98, 51, 0.85) 100%);
}

.header-banner-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 10px 20px;
}

.header-banner-text h2 {
  font-size: clamp(0.75rem, 1.3vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.header-banner-text p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

/* RIGHT: CTA */
.header-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-cta .btn {
  white-space: nowrap;
  padding: 14px 28px;
  font-size: 0.85rem;
}

/* --- Navigation Bar --- */
.nav-bar {
  width: 100%;
  background: #091E3A;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-bar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

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

.nav-links a {
  position: relative;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--moroccan-green-light);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.nav-search:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.nav-search svg {
  width: 16px;
  height: 16px;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 8px 0;
  z-index: 1101;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--navy-dark);
  z-index: 1200;
  padding: 100px 32px 40px;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  padding-left: 12px;
}

.mobile-nav .btn {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--moroccan-green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 98, 51, 0.3);
}

.btn-primary:hover {
  background: var(--moroccan-green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 98, 51, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 98, 51, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 48, 80, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background-image: url('../pic/logo_4.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  border-radius: 50%;
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 122, 64, 0.4);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 98, 51, 0.2);
  border: 1px solid rgba(0, 98, 51, 0.3);
  border-radius: 50px;
  color: var(--moroccan-green-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--moroccan-green-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--moroccan-green-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero-arabic {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
  direction: rtl;
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease forwards 1s;
  opacity: 0;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 100px 0;
}

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

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

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--moroccan-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--moroccan-green);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

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

/* ============================================
   ABOUT CARDS (Mission / Vision / Values)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  position: relative;
  padding: 48px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--moroccan-green), var(--navy));
  opacity: 0;
  transition: var(--transition);
}

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

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

.about-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 98, 51, 0.1), rgba(10, 22, 40, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--moroccan-green);
  font-size: 1.8rem;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

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

.objectives-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.objectives-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(0, 98, 51, 0.15);
  animation: rotate-slow 30s linear infinite;
}

.objectives-circle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--moroccan-green);
  border-radius: 50%;
  transform: translateX(-50%);
}

@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.objectives-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(10, 22, 40, 0.3);
}

.objectives-center img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 98, 51, 0.3);
  background: rgba(0, 98, 51, 0.08);
  padding: 6px;
  object-fit: contain;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.objective-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.objective-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 98, 51, 0.2);
  transform: translateX(8px);
}

.objective-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moroccan-green), var(--moroccan-green-light));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.objective-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.objective-text p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ============================================
   ACTIVITY CARDS
   ============================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.activity-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.activity-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.activity-card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  transition: var(--transition);
}

.activity-card:nth-child(1) .placeholder-img { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.activity-card:nth-child(2) .placeholder-img { background: linear-gradient(135deg, var(--moroccan-green-dark), var(--moroccan-green)); }
.activity-card:nth-child(3) .placeholder-img { background: linear-gradient(135deg, var(--navy-mid), var(--moroccan-green-dark)); }
.activity-card:nth-child(4) .placeholder-img { background: linear-gradient(135deg, #1a3a5c, #0d2137); }
.activity-card:nth-child(5) .placeholder-img { background: linear-gradient(135deg, var(--moroccan-green), var(--navy)); }
.activity-card:nth-child(6) .placeholder-img { background: linear-gradient(135deg, #0d2137, var(--moroccan-green-dark)); }

.activity-card:hover .placeholder-img {
  transform: scale(1.05);
}

.activity-card-date {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

.activity-card-category {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: var(--moroccan-green);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-card-body {
  padding: 28px;
}

.activity-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.activity-card-body p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.activity-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moroccan-green);
  transition: var(--transition-fast);
}

.activity-card-link:hover {
  gap: 10px;
  color: var(--moroccan-green-light);
}

/* ============================================
   PUBLICATION CARDS
   ============================================ */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.publication-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.publication-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.publication-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.publication-card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  transition: var(--transition);
}

.publication-card:nth-child(1) .placeholder-img { background: linear-gradient(135deg, var(--navy), #1e3a5f); }
.publication-card:nth-child(2) .placeholder-img { background: linear-gradient(135deg, var(--moroccan-green-dark), var(--moroccan-green)); }
.publication-card:nth-child(3) .placeholder-img { background: linear-gradient(135deg, #1e3a5f, var(--navy)); }
.publication-card:nth-child(4) .placeholder-img { background: linear-gradient(135deg, var(--moroccan-green), var(--navy-light)); }
.publication-card:nth-child(5) .placeholder-img { background: linear-gradient(135deg, var(--navy-dark), var(--moroccan-green-dark)); }
.publication-card:nth-child(6) .placeholder-img { background: linear-gradient(135deg, var(--navy-mid), var(--moroccan-green)); }

.publication-card:hover .placeholder-img {
  transform: scale(1.05);
}

.publication-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.publication-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.publication-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.publication-card-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.publication-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.publication-card-body p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.publication-card-actions {
  padding: 0 24px 24px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-download:hover {
  background: var(--moroccan-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 98, 51, 0.3);
}

.btn-download svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 98, 51, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(200, 169, 81, 0.08) 0%, transparent 50%);
  z-index: 0;
}

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

.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.75;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ABOUT PAGE - HERO
   ============================================ */
.page-hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at 30% 70%, rgba(0, 98, 51, 0.12) 0%, transparent 50%);
}

.page-hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

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

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

.breadcrumb-sep {
  font-size: 0.7rem;
}

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

.about-intro-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-intro-content p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-intro-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-intro-visual .visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro-visual .visual-placeholder img {
  width: 160px;
  opacity: 0.3;
  filter: brightness(2);
}

.about-intro-visual .floating-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--moroccan-green);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
}

.about-intro-visual .floating-badge span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--moroccan-green));
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--dark-gray);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 48px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--moroccan-green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--moroccan-green);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--moroccan-green);
  margin-bottom: 8px;
}

.timeline-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.65;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 98, 51, 0.2);
  transform: translateX(6px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 98, 51, 0.1), rgba(0, 98, 51, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moroccan-green);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-card a,
.contact-card p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-card a:hover {
  color: var(--moroccan-green);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--off-white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--moroccan-green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 98, 51, 0.1);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--moroccan-green);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--moroccan-green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 98, 51, 0.3);
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--dark-gray);
  margin-top: 32px;
  border: 2px dashed var(--mid-gray);
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.map-placeholder p {
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--moroccan-green);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-column ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-column ul li a::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--moroccan-green-light);
  transition: var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-column ul li a:hover::before {
  width: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--moroccan-green-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a,
.footer-contact-item span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--moroccan-green);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .header-grid {
    grid-template-columns: 28% 52% 20%;
    gap: 16px;
  }

  .header-banner {
    max-width: 400px;
  }

  .about-grid,
  .activities-grid,
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .objectives-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .objectives-visual {
    max-width: 360px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-bar .container {
    justify-content: space-between;
  }

  .nav-right .nav-search {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-overlay {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar-left .top-bar-item:first-child {
    display: none;
  }

  .header-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .header-left {
    justify-content: center;
    text-align: center;
  }

  .logo img {
    height: 72px;
    width: 72px;
  }

  .logo-text {
    align-items: center;
  }

  .header-banner {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

  .about-grid,
  .activities-grid,
  .publications-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .contact-form-wrapper {
    padding: 28px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 0 0 32px 52px;
    text-align: left !important;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

}

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

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

  .hero-scroll {
    display: none;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .cta-section {
    padding: 64px 0;
  }
}
