/* =====================================================================
   EB SOLAIRE S.A. — Stylesheet v1.0
   Palette : Navy #1E3258 | Gold #C9A52A | White #FFFFFF | Grey #F4F4F4
   ===================================================================== */

/* ── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1A1A1A;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CSS VARIABLES ─────────────────────────────────────────────────── */
:root {
  --navy:   #1E3258;
  --navy-d: #152440;
  --gold:   #C9A52A;
  --gold-l: #F0C84A;
  --white:  #FFFFFF;
  --grey:   #F4F4F4;
  --grey-m: #E8E8E8;
  --text:   #1A1A1A;
  --text-m: #555555;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.75; color: var(--text-m); }

.text-gold { color: var(--gold); }
.text-white { color: #fff; }
.text-navy { color: var(--navy); }
.text-center { text-align: center; }

/* ── LAYOUT ────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--navy); }
.section-grey { background: var(--grey); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 20px; }
.section-intro { font-size: 1.1rem; color: var(--text-m); margin-bottom: 48px; max-width: 680px; }

/* ── NAVIGATION ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-l); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  background: var(--navy-d);
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.open { display: block; }

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,165,42,0.15);
  border: 1px solid rgba(201,165,42,0.4);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-badge::before { content: '◆'; font-size: 8px; }
.hero h1 { color: #fff; margin-bottom: 8px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

/* ── KPI STRIP ─────────────────────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}
.kpi-item {
  background: rgba(15,25,50,0.8);
  padding: 20px 16px;
  text-align: center;
}
.kpi-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-lbl {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ── HERO SMALL (inner pages) ──────────────────────────────────────── */
.hero-sm {
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-sm .hero-bg { opacity: 0.3; }
.hero-sm-content {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}
.hero-sm h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero-sm .hero-sub { margin-bottom: 0; }

/* ── BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-l); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* ── CARDS ─────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--grey-m);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(30,50,88,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.card p { font-size: 0.9rem; }
.card-tag {
  display: inline-block;
  background: rgba(27,122,52,0.1);
  color: #1B7A34;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ── GOVERNMENT CARDS ──────────────────────────────────────────────── */
.gov-card { background: #fff; border: 1px solid var(--grey-m); border-radius: var(--radius); padding: 24px; }
.gov-card h3 { font-size: 1rem; margin-bottom: 8px; }
.gov-card p { font-size: 0.875rem; }

/* ── SPECS TABLE ───────────────────────────────────────────────────── */
.specs-table { border: 1px solid var(--grey-m); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: flex; border-bottom: 1px solid var(--grey-m); }
.spec-row:last-child { border-bottom: none; }
.spec-key {
  background: var(--grey);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-m);
  font-style: italic;
  width: 45%;
  flex-shrink: 0;
}
.spec-val { padding: 12px 16px; font-size: 0.875rem; font-weight: 600; color: var(--text); }

/* ── IMPACT SECTION ────────────────────────────────────────────────── */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.impact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.impact-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.impact-val { display: block; font-size: 1.8rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.impact-lbl { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ── TIMELINE ──────────────────────────────────────────────────────── */
.timeline { display: flex; align-items: flex-start; gap: 0; position: relative; padding: 20px 0; }
.tl-step { flex: 1; text-align: center; position: relative; }
.tl-step::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  width: 100%; height: 2px;
  background: var(--grey-m);
  z-index: 0;
}
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  font-size: 0.9rem; font-weight: 700;
  border: 2px solid var(--grey-m);
  background: #fff;
  color: var(--text-m);
}
.tl-dot.done { background: rgba(201,165,42,0.15); border-color: var(--gold); color: var(--gold); }
.tl-dot.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl-lbl { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tl-date { font-size: 0.78rem; color: var(--text-m); margin-bottom: 4px; }
.tl-tag {
  display: inline-block;
  background: rgba(201,165,42,0.1);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── CTA BANNER ────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--gold);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--navy); margin-bottom: 12px; }
.cta-banner p { color: rgba(30,50,88,0.7); margin-bottom: 28px; font-size: 1rem; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── MAP PLACEHOLDER ───────────────────────────────────────────────── */
.map-box {
  background: var(--grey);
  border: 1px solid var(--grey-m);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px;
  gap: 12px;
  min-height: 240px;
}
.map-pin {
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(201,165,42,0.2), 0 0 0 12px rgba(201,165,42,0.08);
}
.map-coords { font-size: 0.85rem; color: var(--text-m); text-align: center; }

/* ── PHOTO CARD ────────────────────────────────────────────────────── */
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey);
  aspect-ratio: 16/10;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card:hover img { transform: scale(1.03); }

/* ── STAT BOX ──────────────────────────────────────────────────────── */
.stat-box {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--grey);
}
.stat-val { font-size: 2.2rem; font-weight: 700; color: var(--navy); display: block; }
.stat-lbl { font-size: 0.85rem; color: var(--text-m); }

/* ── FORM ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-m);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.footer {
  background: #111d30;
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); padding: 3px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-gold { color: var(--gold); }

/* ── BREADCRUMB ────────────────────────────────────────────────────── */
.breadcrumb {
  position: relative; z-index: 2;
  display: flex; gap: 8px; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ── INFO BOX ──────────────────────────────────────────────────────── */
.info-box {
  background: rgba(201,165,42,0.08);
  border: 1px solid rgba(201,165,42,0.25);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box p { font-size: 0.9rem; color: var(--text); margin: 0; }

/* ── CEMAC MAP ─────────────────────────────────────────────────────── */
.cemac-map {
  background: var(--grey);
  border: 1px solid var(--grey-m);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}

/* ── NEWS CARDS ────────────────────────────────────────────────────── */
.news-card { border: 1px solid var(--grey-m); border-radius: var(--radius); overflow: hidden; background: #fff; }
.news-img { height: 200px; object-fit: cover; width: 100%; }
.news-body { padding: 20px; }
.news-tag {
  display: inline-block;
  background: rgba(30,50,88,0.08);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.news-date { font-size: 0.78rem; color: var(--text-m); margin-bottom: 8px; }
.news-card h3 { font-size: 1rem; margin-bottom: 8px; }
.news-card p { font-size: 0.85rem; }
.news-link { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-size: 0.85rem; font-weight: 600; margin-top: 12px; }
.news-link:hover { color: var(--gold); }

/* ── CONTACT INFO ──────────────────────────────────────────────────── */
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(30,50,88,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-label { font-size: 0.78rem; color: var(--text-m); margin-bottom: 2px; }
.contact-val { font-weight: 600; font-size: 0.9rem; color: var(--text); }

/* ── ANIMATE ON SCROLL ─────────────────────────────────────────────── */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }

/* ── DIVIDER ───────────────────────────────────────────────────────── */
.divider { height: 4px; background: var(--gold); width: 48px; margin: 16px 0 24px; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .timeline { flex-direction: column; gap: 16px; }
  .tl-step::before { display: none; }
  .tl-dot { margin: 0; }
  .tl-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .form-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 100vh; }
  .hero-sm { height: 280px; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .kpi-strip { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
