/* =========================================================
   EAA Foundation - educaa.org - Feuille de style principale
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
  padding-top: 80px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
::selection { background: #C8102E; color: #fff; }

/* COULEURS PRINCIPALES :
   Rouge primaire : #C8102E
   Orange accent  : #F58220
   Violet accent  : #7B2D8E
   Gris clair     : #FAFAFA  */

.container { max-width: 1440px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: #C8102E;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.logo {
  border: 2px solid #fff;
  padding: 6px 12px;
  display: inline-flex; flex-direction: column;
  line-height: 1.1; flex-shrink: 0;
}
.logo-ar { color: #fff; font-size: 10px; font-weight: 300; direction: rtl; text-align: center; }
.logo-en { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Navigation desktop */
.main-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex: 1; justify-content: center;
  margin: 0 1.5rem;
}
@media (min-width: 1280px) { .main-nav { display: flex; } }
.main-nav > a,
.nav-item > a {
  color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
}
.main-nav > a:hover,
.nav-item > a:hover { opacity: 0.85; }

/* Dropdowns */
.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 280px;
  padding: 0.5rem 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  border-top: 3px solid #C8102E;
}
.nav-item:hover .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item .dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #333;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav-item .dropdown a:hover { background: #FAFAFA; color: #C8102E; }

/* Right cluster */
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  width: 36px; height: 36px;
  display: none; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
@media (min-width: 768px) { .icon-btn { display: inline-flex; } }

.lang-wrapper { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 14px; font-weight: 500;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.6); }
.lang-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.lang-menu.open { display: block; }
.lang-menu button {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 14px;
  color: #333;
  text-align: left;
  transition: background 0.15s;
}
.lang-menu button:hover { background: #f9f9f9; }
.lang-menu button.active { background: #fff5f6; color: #C8102E; font-weight: 600; }
.lang-menu .flag { font-size: 1.25rem; }

.btn-donate {
  display: none; align-items: center;
  padding: 0.65rem 1.25rem;
  border: 2px solid #fff;
  color: #fff;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}
.btn-donate:hover { background: #fff; color: #C8102E; }
@media (min-width: 768px) { .btn-donate { display: inline-flex; } }

.mobile-toggle {
  display: inline-flex; color: #fff; padding: 0.5rem;
}
@media (min-width: 1280px) { .mobile-toggle { display: none; } }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed; inset: 0;
  background: #C8102E;
  z-index: 2000;
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.mobile-drawer-header span { color: #fff; font-weight: 600; }
.mobile-drawer nav { display: flex; flex-direction: column; padding: 1.5rem; }
.mobile-drawer nav a,
.mobile-drawer nav summary {
  color: #fff;
  font-size: 17px; font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  list-style: none;
}
.mobile-drawer details a {
  padding-left: 1rem;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.92;
}
.mobile-drawer summary::-webkit-details-marker { display: none; }
.mobile-drawer summary::after { content: ' ▾'; opacity: 0.7; }
.mobile-drawer details[open] summary::after { content: ' ▴'; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: #C8102E; color: #fff; }
.btn-primary:hover { background: #a50c25; }
.btn-white { background: #fff; color: #C8102E; }
.btn-white:hover { background: #f0f0f0; }
.btn-outline {
  background: transparent; color: #C8102E;
  border: 2px solid #C8102E;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.btn-outline:hover { background: #C8102E; color: #fff; }

.btn-footer-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.btn-footer-cta:hover { background: #fff; color: #C8102E; }

/* =========================================================
   HERO PRINCIPAL (Home)
   ========================================================= */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 520px;
  overflow: hidden;
  margin-top: -1px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497486751825-1233686d5d80?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(200, 16, 46, 0.75); }
.hero-curves { position: absolute; inset: 0; pointer-events: none; }
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1440px; margin: 0 auto; padding: 0 1.5rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero .btn { margin-top: 2rem; }

.floating-donate {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #C8102E;
  border: 4px solid #fff;
  display: none; align-items: center; justify-content: center;
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 3;
  transition: transform 0.2s;
}
.floating-donate:hover { transform: scale(1.05); }
@media (min-width: 768px) { .floating-donate { display: inline-flex; } }

/* =========================================================
   PAGE HERO (pages internes)
   ========================================================= */
.page-hero {
  background: #C8102E;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
}
.page-hero .lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 720px;
  margin-top: 1.5rem;
}
.page-hero-curve-1, .page-hero-curve-2 {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
}
.page-hero-curve-1 { bottom: -40px; left: -40px; width: 500px; }
.page-hero-curve-2 { top: -40px; right: 0; width: 400px; }

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 5rem 0; }
section.bg-light { background: #FAFAFA; }
section.bg-grey { background: #F5F5F5; }

.section-title {
  color: #C8102E;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-eyebrow {
  color: #888;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-link {
  color: #C8102E;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.2s;
}
.section-link:hover { gap: 0.75rem; }

/* Article body content */
.content-body {
  max-width: 880px;
  margin: 0 auto;
}
.content-body p {
  font-size: 1.075rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.content-body h2 {
  color: #C8102E;
  font-size: 1.875rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}
.content-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: #1a1a1a;
}
.content-body ul, .content-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.75;
}
.content-body li { margin-bottom: 0.5rem; }
.content-body blockquote {
  border-left: 4px solid #C8102E;
  padding: 1rem 1.5rem;
  background: #FAFAFA;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  margin: 1.5rem 0;
}
.content-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 2rem 0;
  background: #f0f0f0;
}

/* =========================================================
   IMPACT GRID
   ========================================================= */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .impact-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .impact-tile.big { grid-row: span 2; }
}
.impact-tile {
  position: relative;
  overflow: hidden;
  min-height: 195px;
  background: #ddd;
}
.impact-tile.big { min-height: 400px; }
.impact-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.impact-tile:hover img { transform: scale(1.05); }
.impact-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 50%, transparent);
}
.impact-tile-content {
  position: absolute; inset: 0; z-index: 2;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.impact-tile.big .impact-tile-content { padding: 2rem; }
.impact-tile-number {
  font-size: 2.25rem; font-weight: 700;
  line-height: 1; margin-bottom: 0.5rem;
}
.impact-tile.big .impact-tile-number { font-size: 3.5rem; }
.impact-tile-label { font-size: 0.95rem; }
.impact-tile.big .impact-tile-label { font-size: 1.1rem; }

/* =========================================================
   NEWS CARDS
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card { display: block; cursor: pointer; }
.news-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eee;
  margin-bottom: 1.25rem;
}
.news-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-curve {
  position: absolute;
  bottom: -8px; right: -8px;
  width: 130px; height: 130px;
}
.news-card-tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #C8102E;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.news-card h3 {
  font-size: 1.25rem; font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  transition: color 0.2s;
}
.news-card:hover h3 { color: #C8102E; }
.news-card-date { font-size: 0.9rem; color: #888; }

/* =========================================================
   MAP & REGIONS
   ========================================================= */
.map-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.map-image {
  position: relative;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}
.map-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.map-image .btn { position: absolute; bottom: 1.25rem; right: 1.25rem; }
.map-disclaimer {
  padding: 1rem 1.5rem;
  font-size: 12px; font-style: italic; color: #777;
}

/* =========================================================
   KEY PARTNERS
   ========================================================= */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .partners-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partners-logos { grid-template-columns: repeat(5, 1fr); } }
.partner-logo {
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  border: 2px solid #e5e5e5;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-logo:hover { border-color: #aaa; }
.partner-logo.active { border-color: #C8102E; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.partner-detail h3 {
  color: #C8102E;
  font-size: 1.875rem; font-weight: 700;
  margin-bottom: 1rem;
}
.partner-detail p {
  color: #444;
  font-size: 1.05rem; line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 880px;
}

.arrow-circle {
  width: 48px; height: 48px;
  border: 2px solid #C8102E;
  color: #C8102E;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.arrow-circle:hover { background: #C8102E; color: #fff; }

/* =========================================================
   FILTER BAR (Media Centre)
   ========================================================= */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.65rem 1.25rem;
  font-size: 14px; font-weight: 600;
  border: 2px solid #d0d0d0;
  background: #fff;
  color: #444;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-btn:hover { border-color: #C8102E; color: #C8102E; }
.filter-btn.active { background: #C8102E; border-color: #C8102E; color: #fff; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info-card {
  display: flex; gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #FAFAFA;
  border-left: 4px solid #C8102E;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(200,16,46,0.1);
  color: #C8102E;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-card h4 { font-weight: 700; margin-bottom: 0.25rem; }
.contact-form { background: #FAFAFA; padding: 2.5rem; }
.form-row {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form-group label {
  font-size: 14px; font-weight: 600; color: #444;
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #d0d0d0;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #C8102E;
  box-shadow: 0 0 0 1px #C8102E;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f0f9f0;
  border: 1px solid #b8dab8;
  color: #2d6a2d;
}
.form-success.show { display: flex; align-items: center; gap: 0.5rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #C8102E; color: #fff; }
.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 3rem 0;
}
.footer-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .footer-newsletter-inner { grid-template-columns: 1fr 1fr; } }
.footer-newsletter h3 {
  font-size: 1.75rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-newsletter p { color: rgba(255,255,255,0.85); }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: #fff; color: #1a1a1a;
  border: none;
  font-family: inherit; font-size: 1rem;
}
.newsletter-form input:focus { outline: 2px solid #fff; outline-offset: -2px; }
.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: #fff; color: #C8102E;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #f0f0f0; }

.footer-main {
  padding: 3.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 {
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 14px;
}
.footer-col ul a { color: rgba(255,255,255,0.9); transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; text-decoration: underline; }

.footer-contact-info { font-size: 14px; }
.footer-contact-info > div {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.9);
}

.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.social-icons a:hover { background: #fff; color: #C8102E; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 1.25rem 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.footer-bottom-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-bottom-links a:hover { text-decoration: underline; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
section { animation: fadeUp 0.7s ease-out; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #C8102E; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #a50c25; }

/* =========================================================
   LIENS MAILTO
   ========================================================= */
.footer-email-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  word-break: break-all;
}
.footer-email-link:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-email-link {
  color: #C8102E;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
  word-break: break-all;
}
.contact-email-link:hover {
  color: #a50c25;
  text-decoration: underline;
}
