/* ═══════════════ EnergyLux — Site vitrine ═══════════════
   Reproduction fidèle du prototype Claude Design.
   Les styles inline du prototype sont conservés dans le HTML pour
   garantir un rendu pixel-perfect ; ce fichier gère uniquement la
   base globale, les états dynamiques (navigation, filtre pays) et
   le responsive. */

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

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: #fff;
  color: #1A2530;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

input, textarea, select { font-family: 'Outfit', sans-serif; }
input:focus, textarea:focus, select:focus { outline: 2px solid #5CA23F; outline-offset: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── Pages (SPA statique) ── */
.page { display: none; }
.page.active { display: block; animation: fadeUp .4s ease both; }

/* ── Navigation : état actif ── */
.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s;
}
.nav-link:hover { color: #5CA23F; }
.nav-link.active { font-weight: 700; color: #5CA23F; }

/* ── Filtre pays (page Services) ── */
.country-btn {
  background: #fff;
  color: #374151;
  border: 2px solid #5CA23F;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.country-btn.active { background: #5CA23F; color: #fff; }
.country-panel { display: none; }
.country-panel.active { display: block; }

/* ── Effets de survol (portés depuis style-hover du prototype) ── */
.hov-card { transition: box-shadow .2s, transform .2s, border-color .2s; }
.hov-lift:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }
.hov-service:hover { border-color: #5CA23F; box-shadow: 0 6px 28px rgba(92,162,63,0.1); transform: translateY(-2px); }
.hov-service-sm:hover { border-color: #5CA23F; box-shadow: 0 6px 24px rgba(92,162,63,0.08); }
.hov-proj:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); transform: translateY(-3px); }
.hov-article:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.07); }
.hov-job:hover { border-color: #5CA23F; box-shadow: 0 4px 20px rgba(92,162,63,0.08); }

/* ── Menu mobile (hamburger) ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid #E5E8EC;
  cursor: pointer;
  padding: 9px 11px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
  border-top: 1px solid #E5E8EC;
  background: #fff;
  padding: 10px 40px 18px;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link,
.mobile-menu .mobile-cta {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 15px;
}
.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: #5CA23F;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  header .desktop-nav { display: none !important; }
  header .desktop-cta { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
  .hero-grid { flex-direction: column !important; gap: 40px !important; }
  .hero-card-wrap { flex: 0 0 auto !important; width: 100% !important; max-width: 420px; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr !important; }
  .flex-split { flex-direction: column !important; align-items: flex-start !important; }
  .featured-article { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px !important; padding-right: 20px !important; }
  h1 { font-size: 38px !important; }
  .hide-sm { display: none !important; }
}
