/* =========================================================
   SENAGRIEXPERT – Main Stylesheet
   ========================================================= */

:root {
  --green-deep:  #1a3c2b;
  --green-mid:   #2d6a4f;
  --green-light: #52b788;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --cream:       #f9f5ec;
  --white:       #ffffff;
  --gray-soft:   #f2f0eb;
  --text-dark:   #1a1a1a;
  --text-muted:  #5a6a5f;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text-dark); overflow-x: hidden; }

/* ── NAV ───────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(26,60,43,0.97);
  backdrop-filter: blur(12px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
}
.nav-logo-text a,
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-logo-text span { color: var(--gold-light); }
#main-nav ul { list-style: none; display: flex; gap: 2.5rem; }
#main-nav ul li a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.25s;
}
#main-nav ul li a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--green-deep) !important;
  padding: 8px 20px; border-radius: 2px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ── HERO ──────────────────────────────────────────────── */
#accueil {
  min-height: 100vh; background: var(--green-deep);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(82,183,136,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(201,168,76,0.10) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.5) 40px, rgba(255,255,255,.5) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.5) 40px, rgba(255,255,255,.5) 41px);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 4rem 5%;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem;
}
.hero-label {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.4); padding: 6px 16px; border-radius: 2px; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 900; line-height: 1.12;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero-title em { color: var(--green-light); font-style: normal; }
.hero-desc { font-size: 1.02rem; line-height: 1.78; color: rgba(255,255,255,0.72); max-width: 520px; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--green-deep); padding: 14px 32px;
  border-radius: 2px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
  text-decoration: none; transition: background 0.25s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35); color: var(--white);
  padding: 13px 32px; border-radius: 2px; font-weight: 500;
  font-size: 0.9rem; text-decoration: none; transition: border-color 0.25s; display: inline-block;
}
.btn-outline:hover { border-color: var(--gold-light); }
.hero-stat-bar { display: flex; gap: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem; margin-top: 2rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-visual { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-end; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 1.8rem; width: 100%; max-width: 400px;
  animation: floatCard 5s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: -2.5s; margin-left: 3rem; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card-title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.card-desc { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── SECTION BASE ──────────────────────────────────────── */
section { padding: 6rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.2; color: var(--green-deep); margin-bottom: 1.2rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; max-width: 620px; }

/* ── ABOUT ─────────────────────────────────────────────── */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-block {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: 6px; height: 480px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem; position: relative; overflow: hidden;
}
.about-img-block::before { content: '🌱'; position: absolute; top: 2rem; right: 2rem; font-size: 6rem; opacity: 0.12; }
.about-img-block::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 21px); }
.about-badge { background: var(--gold); display: inline-block; padding: 10px 20px; border-radius: 3px; font-size: 0.82rem; font-weight: 600; color: var(--green-deep); margin-bottom: 1rem; position: relative; z-index: 1; }
.about-quote { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); line-height: 1.5; position: relative; z-index: 1; }
.about-director { margin-top: 1rem; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1rem; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.about-director strong { color: var(--gold-light); display: block; font-size: 1rem; }
.about-text p { font-size: 1.02rem; line-height: 1.82; color: var(--text-muted); margin-bottom: 1.4rem; }
.about-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.pill { background: var(--gray-soft); border: 1px solid rgba(45,106,79,0.15); color: var(--green-deep); padding: 7px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 500; }

/* ── SERVICES ──────────────────────────────────────────── */
#services { background: var(--gray-soft); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card { background: var(--white); border-radius: 6px; padding: 2.2rem; border: 1px solid rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0%; background: var(--green-mid); transition: height 0.35s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(26,60,43,0.12); }
.service-card:hover::before { height: 100%; }
.service-icon { width: 54px; height: 54px; background: rgba(82,183,136,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.4rem; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.8rem; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.service-link { display: inline-block; margin-top: 1.4rem; font-size: 0.8rem; font-weight: 600; color: var(--green-mid); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--green-light); padding-bottom: 2px; }
.service-link:hover { color: var(--gold); }
.service-card.featured { background: var(--green-deep); }
.service-card.featured::before { background: var(--gold); }
.service-card.featured .service-icon { background: rgba(201,168,76,0.15); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,0.62); }
.service-card.featured .service-link { color: var(--gold-light); border-bottom-color: var(--gold); }
.service-card--gold { background: linear-gradient(135deg, var(--gold) 0%, #a07c2a 100%) !important; border-color: transparent !important; }
.service-card--gold h3 { color: var(--green-deep) !important; }
.service-card--gold p { color: rgba(26,60,43,0.7) !important; }
.service-link--dark { color: var(--green-deep) !important; border-bottom-color: var(--green-deep) !important; }

/* ── VIDEO ─────────────────────────────────────────────── */
#video-section { background: var(--green-deep); }
.video-wrapper { max-width: 800px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5); border: 1px solid rgba(201,168,76,0.2); }
.video-wrapper video { width: 100%; display: block; }

/* ── CIBLES ────────────────────────────────────────────── */
#cibles { background: var(--white); }
.cibles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 3rem; }
.cible-item { background: var(--gray-soft); border-radius: 6px; padding: 1.8rem 1.5rem; text-align: center; border: 1px solid rgba(0,0,0,0.05); transition: background 0.3s, transform 0.3s; cursor: default; }
.cible-item:hover { background: var(--green-deep); transform: translateY(-4px); }
.cible-item:hover .cible-name { color: var(--white); }
.cible-item:hover .cible-icon-wrap { background: rgba(201,168,76,0.2); }
.cible-icon-wrap { width: 56px; height: 56px; background: rgba(45,106,79,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; transition: background 0.3s; }
.cible-name { font-size: 0.82rem; font-weight: 600; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4; transition: color 0.3s; }

/* ── CONTACTS ──────────────────────────────────────────── */
#contacts { background: var(--gray-soft); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--green-deep); margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 40px; height: 40px; background: var(--green-deep); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-detail-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.contact-detail-text strong { display: block; color: var(--green-deep); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-form { background: var(--white); border-radius: 8px; padding: 2.5rem; border: 1px solid rgba(0,0,0,0.06); }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--green-deep); margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 12px 16px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; color: var(--text-dark); background: var(--cream); outline: none; transition: border-color 0.2s; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green-mid); }
.form-group textarea { height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; background: var(--green-deep); color: var(--white); border: none; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.25s; margin-top: 0.5rem; }
.form-submit:hover { background: var(--green-mid); }
.form-success { background: rgba(82,183,136,0.15); border: 1px solid var(--green-light); border-radius: 6px; padding: 1.2rem; color: var(--green-deep); font-size: 0.95rem; line-height: 1.6; }
.form-error { background: rgba(200,50,50,0.08); border: 1px solid rgba(200,50,50,0.3); border-radius: 6px; padding: 1rem; color: #8b1a1a; font-size: 0.9rem; margin-bottom: 1rem; }

/* ── FOOTER ────────────────────────────────────────────── */
#footer { background: #0e2419; padding: 4rem 5% 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-brand .brand-name span { color: var(--gold-light); }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 340px; }
.footer-links h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.7rem; }
.footer-links ul li a { color: rgba(255,255,255,0.45); font-size: 0.87rem; text-decoration: none; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── ANIMATIONS ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2){transition-delay:0.1s}
.fade-in:nth-child(3){transition-delay:0.2s}
.fade-in:nth-child(4){transition-delay:0.3s}
.fade-in:nth-child(5){transition-delay:0.4s}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .cibles-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  #main-nav ul { display: none; }
  .nav-burger { display: flex; }
  #main-nav.open ul { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--green-deep); padding: 1.5rem 5%; gap: 1.2rem; }
}
@media (max-width: 600px) {
  .services-grid, .form-row { grid-template-columns: 1fr; }
  .cibles-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat-bar { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
