/* ══════════════════════════════════════════════
   TERRA CORPORATION SARL — Stylesheet
   Auteur : Runable — Man, Côte d'Ivoire
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Sans+3:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── Reset & Base ───────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Source Sans 3', sans-serif; color: #1c2926; background: #fff; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Variables ──────────────────────────── */
:root {
  --green:       #1a6b2f;
  --green-mid:   #2d8c42;
  --green-light: #5cb85c;
  --green-pale:  #e8f5e9;
  --dark:        #1c2926;
  --gray:        #4a5568;
  --gray-light:  #f4f7f4;
  --white:       #ffffff;
  --gold:        #c8a84b;
  --border:      #d1e8d4;
  --shadow:      0 8px 30px rgba(26,107,47,0.10);
  --shadow-lg:   0 16px 50px rgba(26,107,47,0.18);
}

/* ── Layout ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-white  { background: var(--white); }
.bg-gray   { background: var(--gray-light); }
.bg-dark   { background: linear-gradient(135deg, var(--green) 0%, var(--dark) 100%); }

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--dark); }
h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 0.75rem; }
p  { color: var(--gray); }
.lead { font-size: 1.125rem; color: var(--gray); margin-bottom: 1rem; }
.text-green { color: var(--green-light); }
.text-white { color: var(--white) !important; }

/* ── Section header ─────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.section-eyebrow.green { color: var(--green-light); }
.section-sub { color: var(--gray); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-sub.light { color: rgba(255,255,255,0.7); }

/* ── Divider ────────────────────────────── */
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 2px; margin: 16px 0 20px;
}
.divider.center { margin: 16px auto 20px; }
.divider.gold   { background: linear-gradient(90deg, var(--green-light), var(--gold)); }

/* ── Buttons ────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white); font-family: 'Source Sans 3', sans-serif;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em;
  padding: 0.85rem 2.5rem; border-radius: 4px; border: none; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary:hover { background: linear-gradient(135deg, #155724, var(--green)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,107,47,0.35); }
.btn-primary.full { width: 100%; text-align: center; }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--white);
  font-family: 'Source Sans 3', sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.03em;
  padding: 0.85rem 2rem; border-radius: 4px; border: 2px solid var(--white); cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline:hover { background: var(--white); color: var(--green); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(26,107,47,0.12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 24px;
}
.nav-logo img { height: 52px; width: auto; border-radius: 4px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-family: 'Source Sans 3', sans-serif; font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9); transition: color 0.2s;
}
.navbar.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover, .navbar.scrolled .nav-links a:hover { color: var(--green); }
.nav-cta { font-size: 0.875rem; padding: 0.6rem 1.5rem; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }
.navbar.scrolled .hamburger span { background: var(--dark); }

/* Mobile nav */
.mobile-menu {
  display: none; position: absolute; top: 80px; left: 0; right: 0;
  background: white; padding: 8px 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 24px; color: var(--dark); font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: var(--green-pale); color: var(--green); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,107,47,0.88) 0%, rgba(28,41,38,0.75) 100%);
}
.hero-geo {
  position: absolute; top: 0; right: 0; width: 33%; height: 100%;
  background: linear-gradient(225deg, rgba(92,184,92,0.15) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding-top: 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); color: white;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; padding: 8px 20px; border-radius: 100px; margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-light);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-content h1 { color: white; margin-bottom: 16px; }
.hero-slogan {
  color: rgba(255,255,255,0.9); font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic; margin-bottom: 10px;
}
.hero-sub {
  color: rgba(255,255,255,0.7); font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  max-width: 700px; margin: 0 auto 36px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; overflow: hidden; }
.scroll-down {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6); transition: color 0.2s; z-index: 2;
}
.scroll-down:hover { color: rgba(255,255,255,0.9); }
.scroll-down span {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; overflow: hidden;
}
.scroll-down svg { width: 20px; height: 20px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ══════════════════════════════════════════
   À PROPOS
   ══════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.col-text h2 { margin-bottom: 4px; }
.col-text p { margin-bottom: 16px; }
.about-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px;
}
.about-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gray-light); border-radius: 8px; padding: 14px;
  border-left: 4px solid var(--green);
}
.about-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.about-card strong { display: block; font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.about-card p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* Image collage */
.img-collage { display: flex; gap: 16px; height: 520px; }
.img-col { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.img-col.offset { margin-top: 32px; }
.img-wrap { border-radius: 12px; overflow: hidden; flex: 1; }
.img-wrap.tall { flex: 2; }
.img-wrap.short { flex: 1; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.img-wrap:hover img { transform: scale(1.04); }

/* ══════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: 12px; padding: 28px;
  border-left: 4px solid var(--accent, var(--green));
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition-delay: var(--delay, 0s);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.service-pole {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.service-card p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 16px; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; color: var(--gray);
}
.service-list li::before {
  content: "✓"; color: var(--accent, var(--green));
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px;
}

/* ══════════════════════════════════════════
   RÉALISATIONS
   ══════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-bottom: 56px;
}
.stat-item { text-align: center; }
.stat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.stat-number {
  font-family: 'Space Mono', monospace; font-size: 3rem; font-weight: 700;
  color: var(--white); line-height: 1; display: inline;
}
.stat-suffix {
  font-family: 'Space Mono', monospace; font-size: 2rem; font-weight: 700;
  color: var(--green-light); display: inline;
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 8px; }
.realisations-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.photo-main { border-radius: 16px; overflow: hidden; position: relative; height: 300px; }
.photo-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-main:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 24px 20px 16px; color: white;
}
.photo-caption strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.photo-caption span { font-size: 0.85rem; opacity: 0.8; }
.photo-side { display: flex; flex-direction: column; gap: 24px; }
.photo-small { border-radius: 12px; overflow: hidden; position: relative; flex: 1; min-height: 120px; }
.photo-small img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-small:hover img { transform: scale(1.05); }
.photo-small .photo-caption { padding: 12px; }
.photo-small .photo-caption strong { font-size: 0.9rem; }

/* ══════════════════════════════════════════
   GALERIE
   ══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; filter: brightness(0.95); }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,107,47,0); transition: background 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { background: rgba(26,107,47,0.45); }
.gallery-overlay span {
  color: white; font-weight: 600; font-size: 0.85rem;
  opacity: 0; transition: opacity 0.3s; transform: translateY(6px); transition: all 0.3s;
}
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   PARTENAIRES
   ══════════════════════════════════════════ */
.partners-section { padding: 72px 0; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner-badge {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 24px; font-family: 'Space Mono', monospace;
  font-size: 0.72rem; font-weight: 700; color: var(--green);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s;
}
.partner-badge:hover { background: var(--green); color: white; border-color: var(--green); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 28px; transition: color 0.2s;
}
.contact-item:hover strong { color: var(--green); }
.contact-icon {
  width: 56px; height: 56px; background: var(--green-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--green); transition: all 0.3s;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-item:hover .contact-icon { background: var(--green); color: white; }
.contact-label { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 4px; }
.contact-item strong { display: block; font-size: 1.1rem; color: var(--dark); transition: color 0.2s; }
.contact-photo { border-radius: 16px; overflow: hidden; margin-top: 8px; }
.contact-photo img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.contact-photo-caption {
  background: var(--green); padding: 14px 18px; color: white;
}
.contact-photo-caption strong { display: block; font-family: 'Playfair Display', serif; font-size: 1rem; }
.contact-photo-caption span { font-size: 0.85rem; opacity: 0.8; }

/* Form */
.contact-form-wrap { background: var(--gray-light); border-radius: 20px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 8px;
}
.form-group label .required {
  color: #d32f2f; font-weight: 700;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
  color: var(--dark); background: white; transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green);
}
.form-group textarea { resize: none; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer { background: var(--dark); color: white; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px;
  padding: 72px 24px 56px;
}
.footer-brand img { height: 60px; width: auto; border-radius: 4px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 10px; }
.footer-location { font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; color: var(--green-light); }
.footer-nav h4, .footer-contact h4 { color: white; font-size: 1.1rem; margin-bottom: 20px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--green-light); }
.footer-contact a, .footer-contact p {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 14px; transition: color 0.2s;
}
.footer-contact a:hover { color: var(--green-light); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 24px;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom span { color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.footer-tags { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.05em; }

/* ══════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: white; fill: white; }
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
@keyframes pulse-wa {
  0%,100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%{ box-shadow: 0 4px 32px rgba(37,211,102,0.72); }
}

/* ══════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .img-collage { height: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .realisations-photos { grid-template-columns: 1fr; }
  .photo-side { flex-direction: row; }
}
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .img-collage { height: 280px; }
}
