/*
Theme Name: APSMET
Theme URI: https://apsmet.org
Author: APSMET
Author URI: https://apsmet.org
Description: Thème officiel de l'Association de Pourvoyeurs de Solutions Médicales, Écologiques et Technologiques (APSMET) - Lomé, Togo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apsmet
Tags: association, ngo, togo, medical, ecology, technology
*/

/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --green: #3DBE29;
  --green-dark: #2a9e1e;
  --green-light: #eafae2;
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f8f8f8;
  --gray-200: #eeeeee;
  --gray-400: #aaaaaa;
  --gray-600: #666666;
  --gray-800: #333333;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ===========================
   UTILITAIRES
=========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-green { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); }
.badge-dark { background: #1a1a1a; color: var(--green); border: 1px solid #333; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: all 0.2s; border: none; }
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid #444; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline-dark { background: transparent; color: var(--black); border: 1.5px solid var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); }
.section-header { margin-bottom: 48px; }
.section-tag { display: inline-block; color: var(--green); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--black); margin-bottom: 12px; line-height: 1.2; }
.section-subtitle { font-size: 16px; color: var(--gray-600); max-width: 560px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ===========================
   HEADER / NAVIGATION
=========================== */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: rgba(0,0,0,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #1a1a1a; transition: all 0.3s; }
#site-header.scrolled { background: rgba(0,0,0,1); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo .site-name { color: var(--white); font-size: 18px; font-weight: 700; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a { color: #ccc; font-size: 14px; font-weight: 400; transition: color 0.2s; position: relative; }
.main-nav a::after { content:''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ===========================
   HERO
=========================== */
.hero { background: var(--black); min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 70px; }
.hero::before { content:''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 20% 50%, rgba(61,190,41,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; }
.hero-badge { margin-bottom: 20px; }
.hero-title { font-size: 52px; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { color: var(--green); }
.hero-desc { font-size: 17px; color: #888; line-height: 1.7; margin-bottom: 36px; max-width: 460px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-card-main { background: #111; border: 1px solid #222; border-radius: var(--radius-lg); padding: 28px; }
.hero-card-main .card-tag { color: var(--green); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.hero-card-main h3 { color: var(--white); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.hero-card-main p { color: #666; font-size: 14px; }
.hero-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.hero-stat { background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.hero-stat .num { color: var(--green); font-size: 24px; font-weight: 700; }
.hero-stat .lbl { color: #555; font-size: 11px; margin-top: 4px; }

/* ===========================
   STATS BAR
=========================== */
.stats-bar { background: var(--green); padding: 40px 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(0,0,0,0.15); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 36px; font-weight: 800; color: var(--black); }
.stat-item .label { font-size: 13px; color: rgba(0,0,0,0.7); margin-top: 4px; }

/* ===========================
   DOMAINS SECTION
=========================== */
.domains-section { background: var(--white); }
.domain-card { padding: 28px; }
.domain-icon { width: 52px; height: 52px; background: var(--green-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.domain-icon svg { width: 24px; height: 24px; color: var(--green); }
.domain-card h3 { font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.domain-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===========================
   PROJECTS
=========================== */
.projects-section { background: var(--gray-100); }
.project-card { }
.project-img { height: 200px; overflow: hidden; position: relative; background: #eee; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-img .project-category { position: absolute; top: 12px; left: 12px; }
.project-body { padding: 20px; }
.project-body h3 { font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.project-body p { font-size: 14px; color: var(--gray-600); line-height: 1.5; margin-bottom: 16px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gray-400); border-top: 1px solid var(--gray-200); padding-top: 14px; margin-top: 14px; }
.read-more { color: var(--green); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* ===========================
   GALLERY
=========================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery-item { overflow: hidden; aspect-ratio: 1; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(61,190,41,0.7); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* ===========================
   PARTNERS
=========================== */
.partners-section { background: var(--white); }
.partner-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: all 0.3s; }
.partner-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.partner-card img { height: 60px; width: auto; object-fit: contain; margin: 0 auto 16px; }
.partner-card h4 { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.partner-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.partner-card .partner-link { display: inline-block; margin-top: 12px; color: var(--green); font-size: 13px; }

/* ===========================
   ABOUT
=========================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-content .lead { font-size: 17px; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.value-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.value-item { display: flex; gap: 12px; }
.value-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 8px; flex-shrink: 0; }
.value-item p { font-size: 15px; color: var(--gray-800); line-height: 1.6; }

/* ===========================
   TEAM
=========================== */
.team-card { text-align: center; padding: 28px 20px; }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 3px solid var(--green-light); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { width: 100px; height: 100px; border-radius: 50%; background: var(--green-light); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--green-dark); border: 3px solid var(--green); }
.team-card h3 { font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--green); font-weight: 500; }

/* ===========================
   CONTACT
=========================== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info h3 { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 16px; }
.contact-info p { color: var(--gray-600); font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; background: var(--green-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .label { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.contact-item .value { font-size: 15px; color: var(--black); font-weight: 500; }
.contact-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-800); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-family: var(--font); color: var(--gray-800); transition: border-color 0.2s; background: var(--white); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================
   CTA BAND
=========================== */
.cta-band { background: var(--black); padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-band p { font-size: 17px; color: #666; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; }

/* ===========================
   FOOTER
=========================== */
#site-footer { background: #050505; padding: 64px 0 0; border-top: 1px solid #111; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 40px; }
.footer-brand p { font-size: 14px; color: #555; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: #555; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid #111; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: #333; }
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { font-size: 13px; color: #333; transition: color 0.2s; }
.footer-bottom .legal a:hover { color: var(--green); }

/* ===========================
   PAGE INNER
=========================== */
.page-hero { background: var(--black); padding: 140px 0 80px; text-align: center; }
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { font-size: 48px; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: #666; max-width: 520px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 20px; }
.breadcrumb a, .breadcrumb span { font-size: 13px; color: #555; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: #333; }

/* ===========================
   LIGHTBOX
=========================== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: fixed; top: 20px; right: 24px; background: none; border: none; color: var(--white); font-size: 32px; cursor: pointer; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .hero-title { font-size: 32px; }
  .main-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: #000; padding: 24px; border-top: 1px solid #111; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 20px; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats-row { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-buttons { flex-direction: column; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 32px; }
}
