/* Design System for e-Muhira homepage - Light & Easy on Eyes Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary:       #2e7d52;       /* vert nature inspiré de la photo */
  --color-primary-light: #4caf7d;
  --color-accent:        #e67e22;       /* orange chaud du coucher de soleil */
  --color-bg:            #f4f7f3;       /* blanc verdâtre très doux */
  --color-surface:       #ffffff;
  --color-surface-alt:   #edf4ee;
  --color-text:          #2c3e30;       /* vert‑gris foncé, très lisible */
  --color-text-muted:    #5a7060;
  --color-border:        #d4e3d7;
  --border-radius:       14px;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:           0 6px 24px rgba(0,0,0,0.12);
  --font-family:         'Inter', sans-serif;
  --transition:          0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── NAVBAR ─── */
nav.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-sm);
}
nav.navbar .nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}
nav.navbar .nav-links { display: flex; gap: 2rem; }
nav.navbar .nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
nav.navbar .nav-links a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

/* ─── HERO BANNER ─── */
header.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  background: url('../assets/images/landscape.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  margin-top: 0;
}

header.hero .overlay {
  position: absolute;
  inset: 0;
  /* Voile doux crème‑vert très léger, non agressif */
  background: linear-gradient(
    to bottom,
    rgba(255,252,245,0.25) 0%,
    rgba(20,60,30,0.55) 100%
  );
}

header.hero .content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  animation: fadeUp 0.9s ease both;
}

header.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

header.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.93);
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-family);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: #235f3f; transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-alert {
  background: #e74c3c;
  color: #fff;
  margin-left: 0.75rem;
}
.btn-alert:hover { background: #c0392b; transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ─── SECTIONS ─── */
section {
  padding: 5rem 2rem;
}
section .inner {
  max-width: 1100px;
  margin: 0 auto;
}
section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}
section .subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ─── CARDS ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--color-surface-alt); }

.testimonial-card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card p { font-style: italic; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.testimonial-card .author { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; }

/* ─── CTA SECTION ─── */
#cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1b5e38 100%);
  text-align: center;
  color: #fff;
  padding: 5rem 2rem;
}
#cta h2 { color: #fff; font-size: 2.2rem; margin-bottom: 0.75rem; }
#cta p  { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* ─── FOOTER ─── */
footer {
  background: #1e2e22;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; text-decoration: none; }
footer .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.75rem; }

/* ─── MODAL ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}
.modal.active { display: flex; }

.modal-content {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.3s ease both;
}
.modal-content h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.modal-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.modal-actions { display: flex; gap: 0.75rem; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav.navbar .nav-links { gap: 1rem; }
  header.hero h1 { font-size: 2.2rem; }
  .btn-alert { margin-left: 0; margin-top: 0.75rem; }
  header.hero .content { padding: 1rem; }
}
